/* =========================================================
   YOLHAN ENDÜSTRİ — Kurumsal site
   Renk ve yazı tipleri B2B prototipiyle aynıdır (hirdavat/assets/css/tokens.css).
   ========================================================= */
:root {
  --brand: #2a539f;
  --brand-600: #234789;
  --brand-700: #1c3a72;
  --brand-50: #eef3fb;
  --brand-100: #dbe5f5;
  --brand-300: #8fb0ea;

  --coal-950: #121211;
  --coal-900: #1b1b19;
  --coal-800: #242422;
  --ink: #22211f;

  --steel-25: #fafbfc;
  --steel-50: #f4f5f7;
  --steel-100: #eceef1;
  --steel-200: #dfe2e7;
  --steel-300: #c8cdd4;
  --steel-500: #666d77;
  --steel-600: #4c525a;

  --wa: #128c4a;

  --bg: #ffffff;
  --surface-2: var(--steel-50);
  --text: var(--ink);
  --text-2: var(--steel-600);
  --line: var(--steel-200);
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.74);
  --on-dark-3: rgba(255, 255, 255, 0.56);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-display: clamp(2.4rem, 1.1rem + 4.4vw, 4.5rem);

  --section: clamp(56px, 3rem + 4vw, 112px);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --sh-2: 0 10px 24px -12px rgba(20, 20, 18, 0.24);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--brand-300); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface-2); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.on-dark .eyebrow { color: var(--brand-300); }
.h1 { font-size: var(--fs-3xl); font-weight: 800; }
.h2 { font-size: var(--fs-2xl); font-weight: 800; }
.h3 { font-size: var(--fs-lg); font-weight: 700; font-stretch: 105%; letter-spacing: 0; }
.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 60ch; }
.on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--text-2); }

.section-head { display: grid; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: 600 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--outline { border-color: var(--steel-300); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost-dark { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0d6f3a; }
.btn .i--arrow { transition: transform .2s var(--ease-out); }
.btn:hover .i--arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.on-dark .link-arrow { color: var(--brand-300); }

/* ---------- Üst şerit ---------- */
.topbar { background: var(--coal-950); color: var(--on-dark-2); font-size: 0.8125rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar ul { display: flex; gap: 24px; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 15px; height: 15px; }
@media (max-width: 899.98px) { .topbar { display: none; } }

/* ---------- Başlık ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__logo { display: inline-flex; margin-right: auto; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); background: var(--steel-50); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav a.btn { padding: 0 18px; color: #fff; font-size: 0.9375rem; }
.nav a.btn:hover { color: #fff; background: var(--brand-700); }
.header__cta { margin-left: 12px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px; border: 0; background: none; color: var(--text); border-radius: var(--r); cursor: pointer; }
.menu-btn .i { width: 26px; height: 26px; }
.menu-btn .i-close { display: none; }

@media (max-width: 899.98px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 28px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; color: var(--text); }
  .nav a[aria-current="page"] { color: var(--brand); }
  .nav a.btn { padding: 0 20px; border-bottom: 0; border-radius: var(--r); min-height: 52px; }
  .nav a[aria-current="page"]::after { display: none; }
  .header__cta { margin: 16px 0 0; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu-open .menu-btn .i-menu { display: none; }
  .menu-open .menu-btn .i-close { display: block; }
}

/* ---------- Giriş (hero) ---------- */
.on-dark { background: var(--coal-900); color: var(--on-dark); }
.hero { position: relative; overflow: hidden; padding: clamp(64px, 6vw + 32px, 136px) 0 clamp(56px, 5vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(42, 83, 159, 0.42), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25));
}
.hero__mark { position: absolute; right: -6%; bottom: -14%; width: min(58vw, 640px); opacity: 0.16; filter: brightness(0) invert(1); pointer-events: none; }
.hero .container { position: relative; }
.hero__title { font-size: var(--fs-display); font-weight: 900; max-width: 14ch; margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--brand-300); }
.hero .lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-dark); }
.fact { padding: 20px 20px 0 0; }
.fact dt { order: 2; font-size: 0.875rem; color: var(--on-dark-3); }
.fact dd { margin: 0 0 4px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.375rem, 1rem + 1.3vw, 2.125rem); line-height: 1.1; white-space: nowrap; }
.fact { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
}

.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 5vw + 24px, 104px) 0 clamp(48px, 4vw, 72px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 90% at 90% 10%, rgba(42, 83, 159, 0.4), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero .hero__mark { width: min(44vw, 440px); bottom: -24%; }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 900; max-width: 18ch; margin-bottom: 16px; }

/* ---------- Ürün grupları ---------- */
.groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.group {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out);
}
.group:hover { border-color: var(--brand-100); box-shadow: var(--sh-2); transform: translateY(-2px); }
.group__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: var(--r); background: var(--brand-50); color: var(--brand); }
.group__ic .i { width: 26px; height: 26px; }
.group p { font-size: 0.9375rem; }
.group__brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--steel-100); color: var(--steel-600); font-size: 0.8125rem; font-weight: 600; }

.groups--detail { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.groups--detail .group { scroll-margin-top: calc(var(--header-h) + 16px); }
.groups--detail .group:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.group__summary { font-weight: 600; color: var(--text); }

/* ---------- Markalar ---------- */
.brands { display: grid; gap: 12px; }
@media (min-width: 560px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brands--kompakt { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)) !important; gap: 10px; }
.brands--kompakt .brand { padding: 16px 18px; font-size: 1.125rem; }
.brand {
  padding: 20px 20px 18px; border: 1px solid var(--line); border-top: 3px solid var(--brand-100); border-radius: var(--r-lg); background: #fff;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.375rem; line-height: 1.2; letter-spacing: 0.02em; color: var(--ink);
  transition: border-color .2s;
}
.brand:hover { border-top-color: var(--brand); }
.brand small { display: block; margin-top: 8px; font: 500 0.8125rem/1.45 var(--font-body); letter-spacing: 0; color: var(--steel-500); }

/* ---------- Hikâye / ilkeler ---------- */
.story { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .story { grid-template-columns: 5fr 7fr; gap: 64px; } }
.story__year { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: 0.9; color: var(--brand); letter-spacing: -0.03em; }
.story__year-label { margin-top: 12px; font-weight: 600; color: var(--text-2); }
.story__text p + p { margin-top: 18px; }
.story__text p { font-size: var(--fs-md); color: var(--text-2); }
.story__text p:first-child { color: var(--text); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.5; }

.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.value { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.value__no { display: block; font: 600 0.8125rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--steel-500); margin-bottom: 20px; }
.value .i { width: 32px; height: 32px; color: var(--brand); margin-bottom: 16px; }
.value .h3 { margin-bottom: 8px; }
.on-dark .value { background: var(--coal-800); border-color: var(--line-dark); }
.on-dark .value .i { color: var(--brand-300); }
.on-dark .value p { color: var(--on-dark-2); }
.on-dark .value__no { color: var(--on-dark-3); }

/* ---------- Şubeler ---------- */
.branches { display: grid; gap: 16px; }
@media (min-width: 900px) { .branches { grid-template-columns: 1fr 1fr; } }
.branch { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.branch__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.branch__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 0.8125rem; font-weight: 700; }
.branch__tag .i { width: 16px; height: 16px; }
.branch address { font-style: normal; color: var(--text-2); }
.branch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

.map { position: relative; aspect-ratio: 16 / 9; background: var(--steel-100); border-bottom: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; text-align: center;
  background:
    linear-gradient(0deg, rgba(244, 245, 247, 0.6), rgba(244, 245, 247, 0.6)),
    repeating-linear-gradient(0deg, transparent 0 38px, #fff 38px 46px),
    repeating-linear-gradient(90deg, transparent 0 58px, #fff 58px 64px),
    #e6e9ed; }
.map__facade small { max-width: 34ch; color: var(--steel-600); font-size: 0.8125rem; }

/* ---------- İletişim ---------- */
.contact-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .25s; }
a.contact-card:hover { border-color: var(--brand-100); box-shadow: var(--sh-2); }
.contact-card__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); background: var(--brand-50); color: var(--brand); }
.contact-card__ic--wa { background: #e5f4ec; color: var(--wa); }
.contact-card b { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.contact-card > div { min-width: 0; }
.contact-card span { font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Bayi çağrısı ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(56px, 6vw, 96px) 0; background: var(--brand); color: #fff; }
.cta-band__mark { position: absolute; right: -40px; top: 50%; width: 360px; transform: translateY(-50%); opacity: 0.12; filter: brightness(0) invert(1); pointer-events: none; }
.cta-band .container { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 12px; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { background: #fff; color: var(--brand-700); }
.cta-band .btn--primary:hover { background: var(--brand-50); }

/* ---------- Alt bilgi ---------- */
.footer { background: var(--coal-950); color: var(--on-dark-2); padding: 64px 0 28px; font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } }
.footer__logo img { height: 34px; width: auto; }
.footer__about { margin-top: 18px; max-width: 34ch; color: var(--on-dark-3); }
.footer h2 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer address { font-style: normal; }
.footer address + address { margin-top: 14px; }
.footer address b { display: block; color: #fff; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; color: var(--on-dark-3); }

/* ---------- WhatsApp kısayolu ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45); transition: transform .2s var(--ease-out); }
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 28px; height: 28px; }

/* ---------- Görünme hareketi ---------- */
.js-motion [data-reveal] { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), border-color .2s, box-shadow .25s; }
.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; } }
