/*
Theme Name:  AFZ Tema
Theme URI:   https://afztekstil.com.tr
Author:      AFZ Tekstil
Description: AFZ Tekstil kurumsal WordPress teması. WooCommerce ve WPML desteklidir.
Version:     1.0.0
Text Domain: afz-tema
Tags:        corporate, woocommerce, multilingual
*/

/* ====================================================
   TASARIM SİSTEMİ
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-deep:   #0B1F33;
  --navy:        #1E3A5F;
  --navy-mid:    #2A4F7C;
  --amber:       #D4890A;
  --amber-light: #F0A820;
  --surface:     #F5F7FA;
  --surface-2:   #EBF0F7;
  --white:       #FFFFFF;
  --text:        #1A2332;
  --text-muted:  #5A6A7E;
  --border:      #D8E3EF;
  --divider:     #E4EBF5;
  --shadow-sm:   0 1px 3px rgba(11,31,51,0.08);
  --shadow:      0 4px 16px rgba(11,31,51,0.10);
  --shadow-lg:   0 12px 40px rgba(11,31,51,0.16);
  --nav-h:       96px;
  --topbar-h:    0px;
  --radius:      6px;
  --max-w:       1600px;
  --max-w-home:  1280px;
}
/* Üst çubuk yalnızca render edildiğinde (afz_render_top_bar → body.has-top-bar)
   gerçek yükseklik alır; yoksa 0px kalır ve hiçbir offset hesabını etkilemez. */
body.has-top-bar { --topbar-h: 40px; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tipografi ── */
.display { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; line-height: 1.0; text-wrap: balance; letter-spacing: -0.01em; }
h1, h2, h3, h4 { text-wrap: balance; }
h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.1; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; max-width: 58ch; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding-inline: 24px; }
/* Ana sayfaya özel içerik genişliği — diğer sayfalardaki --max-w:1600px'e dokunmaz.
   Header ve footer .container'ı paylaşıyor (tüm sayfalarda ortak); bu redesign
   turunda kapsam dışı olduğundan hariç tutulup normal --max-w'de bırakılıyor. */
body.home .container:not(.header-inner) { max-width: var(--max-w-home); padding-inline: 32px; }
body.home .site-footer .container { max-width: var(--max-w); padding-inline: 24px; }
.section { padding-block: 88px; }
.section--alt { background: var(--white); }
.section--dark { background: var(--white); }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { margin-bottom: 14px; }

/* ── Butonlar ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; border: none; text-decoration: none; }
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,137,10,0.35); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn--outline { background: transparent; color: var(--amber); border: 1.5px solid var(--amber); }
.btn--outline:hover { background: var(--amber); color: var(--white); }
.btn--white { background: var(--white); color: var(--amber); font-weight: 700; }
.btn--white:hover { background: var(--surface); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ── Header ── */
.site-header { position: fixed; inset-inline: 0; top: var(--topbar-h); z-index: 200; height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow 0.3s, top 0.2s; }

/* Üst çubuk: sosyal ikonlar + Ürün Takip Sistemi linki tek grup halinde
   sağa yaslı (.top-bar-right). İkisi de boşsa render edilmez (bkz.
   afz_render_top_bar). Header'la aynı beyaz zemin, aralarında yalnızca
   ince bir çizgi var — ayrı bir "renk bloğu" gibi durmuyor. */
.top-bar { position: fixed; inset-inline: 0; top: 0; z-index: 201; height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--border); overflow: hidden; }
.top-bar-inner { height: 100%; display: flex; align-items: center; min-width: 0; }
.top-bar-right { margin-left: auto; display: flex; align-items: center; min-width: 0; max-width: 100%; }
.top-bar-link { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 0.15s; white-space: nowrap; }
.top-bar-link:hover, .top-bar-link:focus-visible { color: var(--amber); outline: none; }
.top-bar-link.has-divider { border-left: 1px solid var(--border); padding-left: 14px; margin-left: 14px; }
@media (max-width: 480px) {
  .top-bar-link { font-size: 0.66rem; letter-spacing: 0.05em; }
  .top-bar-link.has-divider { padding-left: 10px; margin-left: 10px; }
  .social-links { gap: 0; }
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: auto; }
.custom-logo-link { flex-shrink: 0; margin-right: auto; display: flex; align-items: center; }
.custom-logo-link img { height: 72px !important; width: auto !important; max-width: none !important; display: block; }
.logo-mark { width: 38px; height: 38px; background: var(--amber); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark span { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--white); letter-spacing: -0.02em; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); letter-spacing: 0.03em; }
.logo-sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li { list-style: none; }
.nav-links a { display: block; padding: 8px 14px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); border-radius: 4px; transition: all 0.18s; }
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--navy); background: var(--surface); }
.nav-links a.current-menu-item { color: var(--amber); }
.nav-links .nav-cta { background: var(--amber) !important; color: #fff !important; padding: 8px 18px !important; }
.nav-links .nav-cta:hover { background: var(--amber-light) !important; }

/* Dil menüsü */
.lang-switcher { display: flex; gap: 4px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
.lang-switcher a { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 4px 8px; border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.15s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--amber); background: var(--surface); }

/* Üst çubuktaki sosyal medya ikonları */
.social-links { display: flex; align-items: center; gap: 2px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--text-muted); transition: all 0.15s; }
.social-links a:hover, .social-links a:focus-visible { color: var(--amber); background: var(--surface); outline: none; }
.social-links svg { width: 15px; height: 15px; flex-shrink: 0; display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; }

/* ── Hero (Ana Sayfa) ── */
.hero { background: var(--white); padding-top: calc(var(--nav-h) + var(--topbar-h)); position: relative; }
.hero-inner { padding-block: 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-content { max-width: 620px; }
.hero-headline { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(3.5rem, 5vw, 4.75rem); line-height: 0.98; letter-spacing: 0.01em; color: var(--text); text-wrap: balance; margin-block: 16px 24px; }
.hero-headline em { font-style: normal; color: var(--amber); }
.hero-desc { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.75; max-width: 50ch; margin-bottom: 28px; }
.hero-link { display: inline-block; margin-bottom: 48px; }
.hero-media { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) {
  .hero-inner { padding-block: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { max-width: none; }
  .hero-media { aspect-ratio: 16/9; order: -1; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2.75rem; }
}

/* ── Page Hero (iç sayfalar) ── */
.page-hero { background: var(--white); padding-top: calc(var(--nav-h) + var(--topbar-h) + 56px); padding-bottom: 56px; border-bottom: 3px solid var(--amber); position: relative; overflow: hidden; }
.page-hero::before { content: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.0; color: var(--text); letter-spacing: -0.01em; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; max-width: 55ch; }

/* ── Statik sayfa içeriği (entry-content) ── */
.entry-content { max-width: 100%; font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); }
.entry-content h2, .entry-content h3 { color: var(--text); margin: 32px 0 12px; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content a:not(.btn) { color: var(--amber); text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.entry-content table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 0.88rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface); font-weight: 700; color: var(--text); }

/* ── Hizmet kartları ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-fallback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon { width: 44px; height: 44px; background: rgba(212,137,10,0.10); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--amber); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; font-weight: 500; }

/* ── Vizyon/Misyon 2 kolon (editorial vurgu) ── */
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editorial-card { background: var(--white); border-top: 3px solid var(--amber); box-shadow: var(--shadow-sm); padding: 40px 36px; }
.editorial-card .eyebrow { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0; text-transform: none; color: var(--navy-deep); margin-bottom: 14px; }
.editorial-text { color: var(--text-muted); line-height: 1.8; font-size: 1.0625rem; }
@media (max-width: 1000px) {
  .editorial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .editorial-card { padding: 32px 28px; }
}

/* ── Ürün kategorisi kartları (görsel) ──
   Gerçek WooCommerce fotoğrafı geldiğinde ($img_url dolu) arkaplan foto olur
   ve ikon rozeti otomatik gizlenir (front-page.php'de koşullu render).
   Fotoğraf yokken kart, ikon + alt amber çizgi ile "bitmiş" bir kompozisyon
   sunar; sadece boş gradyan blok gibi görünmez. */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; transition: box-shadow 0.2s; border-bottom: 3px solid var(--amber); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,51,0.85) 0%, rgba(11,31,51,0) 55%); }
.category-card-icon { position: relative; z-index: 1; width: 46px; height: 46px; background: rgba(255,255,255,0.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--amber-light); flex-shrink: 0; }
.category-card-title { position: relative; z-index: 1; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.3rem; }
.category-card:hover { box-shadow: var(--shadow-lg); }
@media (max-width: 480px) {
  .category-card { aspect-ratio: 1/1; padding: 16px; }
  .category-card-icon { width: 36px; height: 36px; }
  .category-card-icon svg { width: 18px; height: 18px; }
  .category-card-title { font-size: 1rem; }
}

/* ── Kalite & Enerji Politikası (vurgu bandı) ── */
.policy-band { background: var(--navy-deep); padding-block: 112px; }
.policy-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.policy-band .eyebrow--light { color: var(--amber-light); }
.policy-band .policy-text { color: rgba(255,255,255,0.82); font-size: 1.0625rem; line-height: 1.8; max-width: 62ch; margin-top: 10px; }

/* ── Sertifika kartları ── */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 36px 28px; transition: border-color 0.2s, box-shadow 0.2s; }
.cert-card:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.cert-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(212,137,10,0.1); color: var(--amber); border: 1px solid rgba(212,137,10,0.25); padding: 4px 10px; border-radius: 100px; margin-bottom: 20px; }
.cert-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.cert-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.cert-no { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cert-logo { max-width: 180px; max-height: 88px; width: auto; height: auto; object-fit: contain; margin: 0 auto 20px; }

/* ── CTA strip ── */
.cta-strip { background: var(--white); border-top: 1px solid var(--border); padding: 64px 24px; text-align: center; }
.cta-strip h2 { color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.cta-strip p { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }
.cta-strip .btn--white { background: var(--amber); color: #fff; }
.cta-strip .btn--white:hover { background: var(--amber-light); }

/* ── WooCommerce Ürün Kataloğu ── */
.woo-page { padding-top: calc(var(--nav-h) + var(--topbar-h) + 40px); }

.woo-hero { background: var(--white); padding: 48px 0 40px; border-bottom: 3px solid var(--amber); position: relative; overflow: hidden; }
.woo-hero::before { content: none; }
.woo-hero-inner { position: relative; z-index: 1; }
.woo-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.woo-hero p { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }

.woo-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 56px; }

/* Sidebar */
.woo-sidebar h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--amber); }
.woo-cat-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.woo-cat-list a { font-size: 0.88rem; color: var(--text-muted); padding: 7px 10px; border-radius: var(--radius); transition: all 0.15s; display: flex; justify-content: space-between; align-items: center; }
.woo-cat-list a:hover, .woo-cat-list a.current { background: rgba(212,137,10,0.08); color: var(--amber); }
.woo-cat-list .count { font-size: 0.75rem; background: var(--surface-2); color: var(--text-muted); padding: 2px 7px; border-radius: 100px; }

/* Ürün grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card a { color: inherit; text-decoration: none; }

.product-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); position: relative; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border); }

.product-body { padding: 18px 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.product-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy-deep); }
.product-price .woocommerce-Price-amount { color: var(--navy-deep); }
.btn-cart { font-size: 0.8rem; padding: 7px 14px; }

/* WooCommerce mesajları */
.woocommerce-message, .woocommerce-info { background: var(--surface-2); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.9rem; color: var(--text); }
.woocommerce-error { background: #fff0f0; border-left: 4px solid #c0392b; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.9rem; }

/* Tekil ürün */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 56px; }
.single-product-gallery { display: flex; flex-direction: column; gap: 12px; }
.main-image { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; }
.thumb-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s; }
.thumb-row img:hover, .thumb-row img.active { border-color: var(--amber); }
.single-product-info { }
.single-product-info .product-cat { font-size: 0.75rem; margin-bottom: 10px; }
.single-product-info h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.5rem; color: var(--navy-deep); line-height: 1.1; margin-bottom: 16px; }
.product-summary { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.product-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; padding: 20px; background: var(--surface-2); border-radius: var(--radius); }
.product-meta-row { display: flex; gap: 12px; font-size: 0.88rem; }
.product-meta-label { color: var(--text-muted); font-weight: 500; min-width: 120px; }
.product-meta-value { color: var(--text); font-weight: 600; }
.btn-inquiry { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }

/* İletişim formu */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }
.field input, .field select, .field textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text); background: var(--white); transition: border-color 0.15s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,137,10,0.1); }
.field textarea { min-height: 130px; }

/* wpcf7 */
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text); background: var(--white); width: 100%; transition: border-color 0.15s; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--amber); }
.wpcf7-form input[type="submit"] { background: var(--amber); color: #fff; border: none; border-radius: var(--radius); padding: 14px 32px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; }
.wpcf7-form input[type="submit"]:hover { background: var(--amber-light); }

/* İletişim bilgileri */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; background: rgba(212,137,10,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--amber); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text); }
.contact-item a:hover { color: var(--amber); }

/* İstatistikler */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--white); padding: 28px 20px; text-align: center; }
.stat-cell-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.stat-cell-num sup { font-size: 1.2rem; font-weight: 700; color: var(--amber); vertical-align: super; }
.stat-cell-label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }

/* Footer */
.site-footer { background: var(--white); padding-block: 18px 12px; border-top: 1px solid var(--border); overflow-x: clip; }
.footer-grid { position: relative; display: flex; justify-content: center; padding: 6px 0 12px; border-bottom: 1px solid var(--divider); margin-bottom: 8px; }
.footer-brand { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.footer-links-center { display: flex; gap: 260px; }
.footer-logo img { height: 110px !important; width: auto !important; max-width: none !important; display: block; margin-top: -20px; margin-bottom: -20px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin-top: 16px; max-width: 28ch; }
.footer-social { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 10px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--navy); transition: all 0.15s; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--amber); color: #fff; outline: none; }
.footer-social svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.footer-col h4 { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { font-size: 0.85rem; line-height: 1.2; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); }

/* Timeline */
.timeline { display: flex; flex-direction: column; position: relative; }
.timeline::before { content: ''; position: absolute; left: 68px; top: 0; bottom: 0; width: 2px; background: var(--divider); }
.timeline-item { display: grid; grid-template-columns: 68px 20px 1fr; gap: 0 20px; align-items: start; padding-block: 24px; }
.timeline-year { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text-muted); text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.timeline-dot { width: 12px; height: 12px; background: var(--amber); border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--amber); margin-top: 5px; position: relative; z-index: 1; justify-self: center; flex-shrink: 0; }
.timeline-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Tag */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; font-weight: 500; background: var(--surface-2); color: var(--text-muted); padding: 4px 10px; border-radius: 100px; border: 1px solid var(--border); }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { display: flex; flex-direction: column; gap: 14px; }
.why-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--border); }
.why-item h3 { font-size: 1.05rem; color: var(--text); }
.why-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* About */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
/* the_content() çıktısındaki <p> etiketleri — eski satır-içi stillerin
   yerini alıyor (WPML/panel üzerinden düzenlenebilir gövde metni). */
.about-intro-prose p { color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; font-size: 0.95rem; }
.about-intro-prose p:last-child { margin-bottom: 0; }
.about-visual { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.about-visual-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 5rem; color: var(--border); line-height: 1; text-align: center; }
.vision-mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.policy-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }

/* Sertifika sayfası */
.cert-detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.cert-icon-box { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 40px; text-align: center; }
.cert-icon-box .cert-code { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; color: var(--amber); line-height: 1; }
.cert-icon-box .cert-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 2rem; color: var(--text); line-height: 1.1; }
.cert-icon-box .cert-type { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.cert-num-box { background: var(--surface-2); border-radius: var(--radius); padding: 16px 20px; display: inline-block; }
.cert-num-box p:first-child { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.cert-num-box p:last-child { font-weight: 700; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Ana sayfa bileşen büyütmeleri (yalnızca body.home — diğer sayfalar etkilenmez) ── */
/* not: grid-template-columns burada tanımlanır; front-page.php'deki eski inline
   "repeat(4,1fr)" stilleri kaldırıldı çünkü inline stil media query'leri ezip
   768px gibi genişliklerde taşmaya (horizontal overflow) yol açıyordu. */
body.home .services-grid,
body.home .certs-grid,
body.home .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
body.home .service-card { padding: 40px 32px; }
body.home .service-icon { width: 60px; height: 60px; }
body.home .service-card h3 { font-size: 1.25rem; }
body.home .cert-card { padding: 48px 36px; }
body.home .cta-strip { padding: 100px 24px; }
body.home .cta-strip h2 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
@media (max-width: 1000px) {
  body.home .services-grid,
  body.home .certs-grid,
  body.home .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* Üretim kartları: metin aynı kalıyor, iç boşluk/tipografi sıkılaştırılıyor */
  body.home .service-card { padding: 24px 20px; }
  body.home .service-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  body.home .service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
  body.home .service-card p { font-size: 0.85rem; line-height: 1.6; font-weight: 500; }
  /* Sertifika kartları: ~%30 daha kompakt */
  body.home .cert-card { padding: 32px 24px; }
  body.home .cert-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
  body.home .cert-card p { font-size: 0.78rem; margin-bottom: 10px; }
  body.home .cta-strip { padding: 56px 24px; }
}

/* Responsive */
@media (max-width: 1000px) {
  .about-intro { grid-template-columns: 1fr; }
  .footer-links-center { gap: 32px; }
  .woo-layout { grid-template-columns: 1fr; }
  .woo-sidebar { display: none; }
  /* .category-grid'in temel (body.home dışı) kuralı repeat(4,1fr) sabit —
     bu, /magaza/ landing'inde 1000px altında taşmaya yol açar (bkz. yukarısı,
     body.home versiyonu için aynı sorun zaten çözülmüştü). */
  .woo-page .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cert-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Sticky header mobilde ~%25 küçültülüyor (tüm sayfalarda — içerikten
     gereğinden fazla yer çalmasın diye); --nav-h'ye bağlı her şey (hero,
     page-hero, woo-page top padding, mobil menü konumu) otomatik uyum sağlar. */
  :root { --nav-h: 72px; }
  .custom-logo-link img { height: 54px !important; }
  .section { padding-block: 60px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .vision-mission-grid { grid-template-columns: 1fr; }
  .policy-list-grid { grid-template-columns: 1fr; }
  .service-cat-grid { grid-template-columns: 1fr 1fr; }
  .service-fallback-grid { grid-template-columns: 1fr; }
  .cert-logo { max-height: 64px; margin-bottom: 14px; }
  .policy-band { padding-block: 72px; }
  .policy-band-inner { align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  /* Footer: kompakt, 2 kolon yan yana (tüm dikey liste yerine) */
  .footer-grid { flex-direction: column; align-items: center; gap: 16px; padding-block: 4px 8px; }
  .footer-brand { position: static; transform: none; }
  .footer-social { position: static; transform: none; justify-content: center; }
  .footer-logo img { height: 64px !important; margin-block: 0; }
  .footer-links-center { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; text-align: left; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: fixed; inset-inline: 0; top: calc(var(--nav-h) + var(--topbar-h)); background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius); }
  .lang-switcher { margin-left: 0; padding-left: 0; border-left: none; padding-top: 12px; border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .service-cat-grid { grid-template-columns: 1fr; }
  body.home .services-grid,
  body.home .certs-grid { grid-template-columns: 1fr; }
  /* category-grid burada 1fr'e düşürülmüyor — .category-card kendi
     aspect-ratio:1/1 kuralıyla zaten kompakt, 2 kolonda kalması "4 dev
     koyu blok" sorununu çözüyor. */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
