/* =========================================================================
   Somi OSB — main stylesheet
   Soft, rounded corporate/SaaS treatment: floating pill nav, elevated
   rounded cards, soft tinted shadows, pill buttons, generous whitespace.
   ========================================================================= */

:root {
  --ink: #1c2436;
  --night: #16203d;
  --night-2: #223056;
  --green: #1a7a48;
  --green-light: #43ae71;
  --green-soft: #e7f5ec;
  --paper: #f6f7f9;
  --paper-2: #eef1f4;
  --line: #e3e6ea;
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --signal: #d98f00;
  --signal-soft: #fdf1dd;
  --signal-text: #8a5a00;
  --white: #ffffff;
  --surface: #ffffff;
  --header-glass: rgba(255, 255, 255, 0.82);
  --header-glass-border: rgba(255, 255, 255, 0.7);
  --tools-glass: rgba(246, 247, 249, 0.92);

  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-body);

  --content-w: 77.5rem;
  --gutter: 1rem;

  --r-sm: 0.75rem;
  --r-md: 1.125rem;
  --r-lg: 1.75rem;
  --r-pill: 62.4375rem;

  --shadow-sm: 0 2px 0.625rem rgba(22, 32, 61, 0.06);
  --shadow-md: 0 0.75rem 1.75rem rgba(22, 32, 61, 0.10);
  --shadow-lg: 0 1.5rem 3.75rem rgba(22, 32, 61, 0.16);

  --grad-brand: linear-gradient(135deg, #166a3f 0%, #1c7f4b 100%);
  --green-on-dark: #72d39b;
  --grad-night: linear-gradient(160deg, #182548 0%, #0f1730 100%);
}

/* Dark theme: "--white" stays literal white (text on photos / green);
   surfaces switch through "--surface". Chosen with the header toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1320;
    --paper-2: #141a2b;
    --ink: #e9ebf1;
    --line: #262e44;
    --night: #0a0f1e;
    --night-2: #141d36;
    --surface: #171f33;
    --green: #43ae71;
    --green-soft: rgba(67, 174, 113, 0.14);
    --signal-text: #f0b44c;
    --header-glass: rgba(20, 26, 43, 0.86);
    --header-glass-border: rgba(255, 255, 255, 0.08);
    --tools-glass: rgba(15, 19, 32, 0.9);
    --shadow-sm: 0 2px 0.625rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --paper: #0f1320;
  --paper-2: #141a2b;
  --ink: #e9ebf1;
  --line: #262e44;
  --night: #0a0f1e;
  --night-2: #141d36;
  --surface: #171f33;
  --green: #43ae71;
  --green-soft: rgba(67, 174, 113, 0.14);
  --signal-text: #f0b44c;
  --header-glass: rgba(20, 26, 43, 0.86);
  --header-glass-border: rgba(255, 255, 255, 0.08);
  --tools-glass: rgba(15, 19, 32, 0.9);
  --shadow-sm: 0 2px 0.625rem rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

.container {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sizing: everything is in rem, so the root font-size scales the whole
   site (type, spacing, cards, header) in proportion. Phones stay at 16px. */
@media (min-width: 640px) {
  html { font-size: 103.125%; }
  :root { --gutter: 1.5rem; }
}
@media (min-width: 1000px) {
  html { font-size: 106.25%; }
  :root { --gutter: 2.25rem; }
}
@media (min-width: 1440px) {
  html { font-size: 109.375%; }
  :root { --gutter: 2.75rem; }
}
@media (min-width: 1680px) {
  html { font-size: 112.5%; }
  :root { --content-w: 84rem; }
}
@media (min-width: 1920px) {
  html { font-size: 118.75%; }
  :root { --content-w: 88rem; }
}
@media (min-width: 2400px) {
  html { font-size: 131.25%; }
  :root { --content-w: 92rem; }
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a.skip-link {
  position: absolute;
  left: 0; top: -3rem;
  background: var(--night);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 200;
  transition: top .15s ease;
}
a.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Header / nav — floating rounded pill bar
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: 0.875rem;
}

/* Pages without a full-bleed hero need top clearance for the fixed nav;
   the homepage's hero is 100vh and sits behind the nav on purpose. */
main { padding-top: 5.375rem; }
main:has(> .titleblock) { padding-top: 0; }
.site-header__bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6875rem var(--gutter);
}
/* The pill is drawn on a pseudo-element hugging the logo and icons (1.125rem
   around them), while the content itself stays on the page's content edges. */
.site-header__bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: max(0px, calc(var(--gutter) - 1.125rem));
  right: max(0px, calc(var(--gutter) - 1.125rem));
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* The bar starts fully transparent (so it disappears into the hero photo);
   once the page is scrolled past that first screen, the pill returns so
   the nav stays legible over whatever content is underneath it. */
body.nav-scrolled .site-header__bar::before {
  background: var(--header-glass);
  border-color: var(--header-glass-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(1.125rem) saturate(160%);
  -webkit-backdrop-filter: blur(1.125rem) saturate(160%);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 2.25rem; width: auto;
}
@media (max-width: 400px) { .site-header__logo img { height: 2rem; } }
/* 2.75rem keeps the bar 4rem tall, so the sticky directory tools (top: 4.875rem)
   still sit flush under the header */
@media (min-width: 1000px) { .site-header__logo img { height: 2.75rem; } }
.site-header__logo .logo--dark { display: none; }
[data-theme="dark"] .site-header__logo .logo--light { display: none; }
[data-theme="dark"] .site-header__logo .logo--dark { display: block; }
.site-nav { margin-left: auto; }

/* Instagram + light/dark toggle, right after the menu */
.site-header__tools { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }
.header-icon {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.header-icon:hover { background: var(--paper-2); border-color: transparent; color: var(--green); }
.header-icon svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

.site-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2px;
}
.site-nav__list a {
  display: block;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.625rem 1rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  opacity: 0.72;
  transition: background-color .15s ease, opacity .15s ease, color .15s ease;
}
.site-nav__list a:hover {
  opacity: 1;
  background: var(--paper-2);
}
.site-nav__list a[aria-current="page"] {
  opacity: 1;
  color: var(--white);
  background: var(--grad-brand);
}

/* While the hero photo is still behind it (unscrolled), the header has
   no background, so the links need light, shadowed text instead of the
   ink tone the plain/scrolled pages use. */
/* Only the inline desktop menu sits on the photo; the mobile dropdown has
   its own solid panel and keeps the normal ink colours. */
@media (min-width: 1101px) {
  body.has-hero:not(.nav-scrolled) .site-nav__list a {
    color: #fff;
    opacity: 1;
    text-shadow: 0 1px 0.1875rem rgba(0,0,0,.6), 0 2px 0.875rem rgba(0,0,0,.4);
  }
  body.has-hero:not(.nav-scrolled) .site-nav__list a:hover { background: rgba(255,255,255,0.16); }
  body.has-hero:not(.nav-scrolled) .site-nav__list a[aria-current="page"] { text-shadow: none; }
}
body.has-hero:not(.nav-scrolled) .nav-toggle { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32); backdrop-filter: blur(0.375rem); }
body.has-hero:not(.nav-scrolled) .header-icon {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  backdrop-filter: blur(0.375rem);
}
body.has-hero:not(.nav-scrolled) .header-icon:hover { background: rgba(255,255,255,0.26); color: #fff; }
/* Force the (navy/green) logo mark to solid white so it reads against
   any of the carousel photos, instead of relying on its own colors. */
body.has-hero:not(.nav-scrolled) .site-header__logo img {
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--night);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  padding: 0.625rem 1.125rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
[data-theme="dark"] .nav-toggle { background: var(--surface); border: 1px solid var(--line); }

@media (max-width: 1100px) {
  /* The collapsed nav is an empty flex item; take it out of the spacing so
     the menu button sits on the right content edge. */
  .site-header__bar { gap: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: static; width: 0; margin: 0 -0.5rem 0 0; }
  .site-header__tools { margin-left: auto; }
  .site-nav__list {
    flex-direction: column;
    gap: 2px;
    position: absolute;
    left: var(--gutter); right: var(--gutter); top: 4.5rem;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 0.625rem;
    display: none;
  }
  .site-nav__list a { padding: 0.8125rem 1rem; }
  .site-nav.is-open .site-nav__list { display: flex; }
}
/* narrow phones: icon-only menu button so logo + icons + button fit */
@media (max-width: 400px) {
  .nav-toggle { padding: 0; width: 2.5rem; height: 2.5rem; justify-content: center; }
  .nav-toggle__label { display: none; }
}

/* =========================================================================
   Title block — full-bleed, full-height hero
   ========================================================================= */
.titleblock {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}
.titleblock__track {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.titleblock__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.titleblock__slide picture, .titleblock__slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.titleblock__scrim {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Two layers: a shallow top-down darkening so the floating nav stays
     legible no matter how bright a given slide is, plus the taller
     bottom-up one that keeps the title text readable. */
  background:
    linear-gradient(180deg, rgba(4, 7, 16, 0.6) 0%, rgba(4, 7, 16, 0) 10.625rem),
    linear-gradient(0deg, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.18) 55%, rgba(10, 15, 30, 0.38) 100%);
}
.titleblock__arrow {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(0.375rem);
  transition: background-color .15s ease;
}
.titleblock__arrow:hover { background: rgba(255,255,255,0.28); }
.titleblock__arrow svg { width: 1rem; height: 1rem; }
.titleblock__panel {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.5rem;
}
@media (min-width: 640px) { .titleblock__panel { padding-block: 2.5rem 3rem; } }
@media (min-width: 1000px) { .titleblock__panel { padding-block: 3rem 3.5rem; } }

/* Compact variant — the same full-bleed, sliding banner, used as a page
   header on subpages instead of the homepage's full 100vh hero. */
.titleblock--compact {
  min-height: unset;
  height: 18.75rem;
}
@media (min-width: 700px) { .titleblock--compact { height: 22.5rem; } }
@media (min-width: 1100px) { .titleblock--compact { height: 26.25rem; } }
.titleblock--compact .titleblock__panel {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .titleblock--compact .titleblock__panel { padding-top: 1.5rem; padding-bottom: 1.75rem; }
}
@media (min-width: 1000px) {
  .titleblock--compact .titleblock__panel { padding-top: 1.75rem; padding-bottom: 2rem; }
}
.titleblock--compact .titleblock__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 24ch;
}
.titleblock--compact .titleblock__lead { max-width: 52ch; }

/* Content that directly follows a subpage banner needs breathing room.
   A following .section's head adds 1rem itself, so its padding is 1rem less. */
.titleblock--compact + .section { padding-top: 1rem; }
@media (min-width: 640px) { .titleblock--compact + .section { padding-top: 1.5rem; } }
@media (min-width: 1000px) { .titleblock--compact + .section { padding-top: 2rem; } }
/* Page edge spacing: the same gap sits below the subpage banner and above
   the footer (the footer's own 1.5rem margin is part of the bottom gap). */
:root { --page-gap: 2rem; }
@media (min-width: 640px) { :root { --page-gap: 2.5rem; } }
@media (min-width: 1000px) { :root { --page-gap: 3rem; } }
.titleblock--compact + .container { margin-top: var(--page-gap); }
.titleblock--compact + .section--tight { padding-top: var(--page-gap); }
main > .container:last-child { padding-bottom: calc(var(--page-gap) - 1.5rem); }

.titleblock__slides-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.titleblock__dots { display: flex; gap: 0.5rem; }
.titleblock__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease, border-radius .2s ease;
}
.titleblock__dot.is-active { background: var(--white); width: 1.375rem; border-radius: 0.25rem; }
.titleblock__slide-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.titleblock__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
  backdrop-filter: blur(0.375rem);
}
.titleblock__title {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  color: var(--white);
  max-width: 16ch;
}
.titleblock__lead {
  margin-top: 0.875rem;
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.86);
}
.titleblock__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}
.titleblock__meta > div {
  min-width: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-sm);
  padding: 0.625rem 1rem;
  backdrop-filter: blur(0.375rem);
}
.titleblock__meta dt { font-size: 0.72rem; opacity: 0.7; }
.titleblock__meta dd { margin: 2px 0 0; color: var(--white); font-size: 0.95rem; font-weight: 700; }

/* =========================================================================
   Sections & type
   ========================================================================= */
.section { padding-block: 2.5rem; }
@media (min-width: 640px) { .section { padding-block: 3.5rem; } }
@media (min-width: 1000px) { .section { padding-block: 4.5rem; } }
.section--tight { padding-block: 1.75rem; }
@media (min-width: 640px) { .section--tight { padding-block: 2.5rem; } }
.section--dark { background: var(--grad-night); color: var(--white); }
.section--alt { background: var(--paper-2); }
.section--rule-top { }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  color: inherit;
}
.section--dark .section__head { color: var(--white); }
.section__index {
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-pill);
  display: block;
  margin-bottom: 0.875rem;
}
.section--dark .section__index { color: var(--green-on-dark); background: rgba(67,174,113,0.16); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 62ch;
}

.prose { max-width: 68ch; color: var(--ink); opacity: 0.85; }
.prose + .prose { margin-top: 1.2em; }

.two-col {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 0.625rem 1.5rem rgba(31, 138, 82, 0.32);
}
.btn--primary:hover { box-shadow: 0 1rem 2rem rgba(31, 138, 82, 0.4); }
.btn--on-dark { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: var(--white); }
.btn--on-dark:hover { background: var(--white); color: var(--night); }

/* =========================================================================
   Facts strip — glass stat cards on a dark gradient
   ========================================================================= */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(5, 1fr); gap: 0.875rem; }
}
.fact {
  padding: 1.375rem 1.125rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  backdrop-filter: blur(0.25rem);
}
.fact__value {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  display: block;
}
.fact__unit { font-size: 0.95rem; font-weight: 500; opacity: 0.6; margin-left: 0.25rem; }
.fact__label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.fact__link {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-on-dark);
  text-decoration: none;
}

/* =========================================================================
   Distance readout (route km) — homepage "Konum" block
   ========================================================================= */
.routes { display: flex; flex-direction: column; gap: 0.625rem; }
.route {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.route__km { font-size: 1rem; font-weight: 800; color: var(--green); text-align: left; }
.route__km sup { font-size: 0.6em; margin-left: 1px; font-weight: 600; }
.route__place { font-size: 0.96rem; font-weight: 500; }

/* =========================================================================
   Sector index — rounded cards with a numbered badge
   ========================================================================= */
.sector-index {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .sector-index { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .sector-index { grid-template-columns: repeat(4, 1fr); } }
.sector-index__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.625rem 1.375rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sector-index__row:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 138, 82, 0.3);
}
.section--dark .sector-index__row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.sector-index__icon {
  flex-shrink: 0;
  width: 4.5rem; height: 4.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-sm);
  transition: transform .18s ease, background-color .18s ease;
}
.sector-index__row:hover .sector-index__icon { transform: scale(1.04); background: var(--green); color: var(--white); }
.sector-index__icon svg { width: 2.875rem; height: 2.875rem; }
.section--dark .sector-index__icon { color: var(--green-light); background: rgba(67,174,113,0.18); }
.sector-index__name { font-size: 1.03rem; font-weight: 600; line-height: 1.35; }

/* =========================================================================
   Instagram band (homepage)
   ========================================================================= */
.social-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.125rem 1.25rem;
  padding: 1.625rem 1.375rem;
  background: var(--grad-night);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  color: var(--white);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 768px) { .social-card { flex-wrap: nowrap; gap: 1.75rem; padding: 2.25rem 2.75rem; } }
/* soft green glow behind the icon */
.social-card::before {
  content: "";
  position: absolute;
  left: -4.375rem; top: 50%;
  width: 18.75rem; height: 18.75rem;
  translate: 0 -50%;
  background: radial-gradient(closest-side, rgba(67, 174, 113, 0.28), transparent);
  pointer-events: none;
}
.social-card:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-lg); }
.social-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  border-radius: var(--r-md);
  box-shadow: 0 0.5rem 1.25rem rgba(31, 138, 82, 0.35);
}
.social-card__icon svg { width: 1.875rem; height: 1.875rem; }
@media (min-width: 768px) {
  .social-card__icon { width: 4.5rem; height: 4.5rem; }
  .social-card__icon svg { width: 2.375rem; height: 2.375rem; }
}
.social-card__body {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.social-card__handle { font-size: 0.9rem; font-weight: 700; color: var(--green-light); }
.social-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 768px) { .social-card__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); } }
.social-card__cta {
  position: relative;
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  box-shadow: 0 0.625rem 1.5rem rgba(31, 138, 82, 0.32);
}
@media (min-width: 768px) { .social-card__cta { flex: 0 0 auto; } }
.social-card__cta svg { width: 1rem; height: 1rem; transition: transform .15s ease; }
.social-card:hover .social-card__cta svg { transform: translateX(0.1875rem); }

/* =========================================================================
   Announcement — same card language as the Duyurular list, inside the
   page container so it aligns with the content below it.
   ========================================================================= */
/* The next section's head adds 1rem of its own top padding, so subtract it
   to keep the visual gap above and below the card equal. */
.announce { padding-top: 2rem; }
.announce + .section { padding-top: 1rem; }
@media (min-width: 640px) {
  .announce { padding-top: 2.5rem; }
  .announce + .section { padding-top: 1.5rem; }
}
@media (min-width: 1000px) {
  .announce { padding-top: 3rem; }
  .announce + .section { padding-top: 2rem; }
}
.announce__bar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem;
  background: var(--grad-night);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  color: var(--white);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 640px) { .announce__bar { flex-wrap: nowrap; padding: 1.375rem 1.75rem; } }
/* soft green glow behind the icon */
.announce__bar::before {
  content: "";
  position: absolute;
  left: -3.75rem; top: 50%;
  width: 16.25rem; height: 16.25rem;
  translate: 0 -50%;
  background: radial-gradient(closest-side, rgba(67, 174, 113, 0.28), transparent);
  pointer-events: none;
}
.announce__bar:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.announce__icon {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem; height: 3.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  box-shadow: 0 0.5rem 1.25rem rgba(31, 138, 82, 0.35);
}
.announce__icon svg { width: 1.75rem; height: 1.75rem; }
.announce__body {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}
.announce__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-on-dark);
  background: rgba(67, 174, 113, 0.16);
  padding: 0.25rem 0.75rem 0.25rem 0.625rem;
  border-radius: var(--r-pill);
}
.announce__pulse {
  position: relative;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--green-light);
}
.announce__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-light);
  animation: announce-pulse 1.8s ease-out infinite;
}
@keyframes announce-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.8); opacity: 0; }
}
.announce__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}
@media (min-width: 640px) { .announce__text { font-size: 1.2rem; } }
.announce__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  box-shadow: 0 0.625rem 1.5rem rgba(31, 138, 82, 0.32);
  white-space: nowrap;
  transition: box-shadow .15s ease;
}
@media (min-width: 640px) { .announce__link { flex: 0 0 auto; } }
.announce__bar:hover .announce__link { box-shadow: 0 0.875rem 1.875rem rgba(31, 138, 82, 0.45); }
.announce__link svg { width: 1rem; height: 1rem; transition: transform .15s ease; }
.announce__bar:hover .announce__link svg { transform: translateX(0.1875rem); }

/* =========================================================================
   Video / brochure band
   ========================================================================= */
/* width is pinned to the grid column: when the neighbouring card is taller,
   the frame stretches in height instead of letting 16:9 push it wider */
.media-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16/9;
  background: var(--night);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-frame--cta { cursor: pointer; }
.media-frame picture { position: absolute; inset: 0; }
.media-frame picture img { width: 100%; height: 100%; object-fit: cover; }
/* Play control sits in the optical center of the frame, over a vignette
   that keeps the white ring and label legible on any frame of the photo. */
.media-frame__cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15, 23, 48, 0.25) 0%, rgba(15, 23, 48, 0.7) 100%);
}
.media-frame__cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.5);
}
.play-ring {
  width: 4.75rem; height: 4.75rem;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.625rem rgba(255, 255, 255, 0.18), var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* margin-left nudges the triangle so its visual center, not its box, is centered */
.play-ring::before {
  content: "";
  width: 0; height: 0;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.1875rem solid var(--green);
  margin-left: 0.375rem;
}
.media-frame--cta:hover .play-ring,
.media-frame--cta:focus-visible .play-ring {
  transform: scale(1.08);
  box-shadow: 0 0 0 0.875rem rgba(255, 255, 255, 0.24), var(--shadow-lg);
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .doc-card { gap: 1.375rem; padding: 1.875rem; } }
.doc-card__head { display: flex; align-items: center; gap: 1.125rem; }
@media (min-width: 640px) { .doc-card__head { gap: 1.5rem; } }
/* cover thumbnail drawn as a small stack of pages */
.doc-card__cover {
  flex-shrink: 0;
  width: 6.75rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 0.375rem;
  box-shadow:
    0.25rem 0.25rem 0 -1px var(--surface), 0.25rem 0.25rem 0 0 var(--line),
    0.5rem 0.5rem 0 -1px var(--surface), 0.5rem 0.5rem 0 0 var(--line),
    var(--shadow-md);
  transition: transform .25s ease;
}
@media (min-width: 640px) { .doc-card__cover { width: 10.5rem; } }
.doc-card__cover img { display: block; width: 100%; height: auto; border-radius: 0.375rem; }
.doc-card:hover .doc-card__cover { transform: translateY(-0.1875rem) rotate(-2deg); }
.doc-card__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.doc-card__meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.25rem 0.6875rem;
  border-radius: var(--r-pill);
}
.doc-card__title { font-size: 1.15rem; line-height: 1.25; }
@media (min-width: 640px) { .doc-card__title { font-size: 1.3rem; } }
.doc-card__facts { font-size: 0.85rem; font-weight: 600; opacity: 0.72; }
.doc-card__text { font-size: 0.98rem; line-height: 1.6; opacity: 0.8; }
.doc-card__actions { margin-top: auto; }
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--grad-night);
  color: rgba(255,255,255,0.85);
  margin-top: 1.5rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.site-footer a { text-decoration: none; }
.site-footer__top {
  display: grid;
  gap: 2rem;
  padding-block: 3.25rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer__brand img { height: 1.75rem; margin-bottom: 0.875rem; }
.site-footer__brand p { font-size: 0.9rem; opacity: 0.7; max-width: 34ch; }
.site-footer .social-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.625rem; }
.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  transition: background-color .15s ease, border-color .15s ease;
}
.site-footer .social-link:hover { background: var(--green); border-color: var(--green); }
.social-link svg { width: 1.25rem; height: 1.25rem; }
.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.875rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.site-footer ul a { font-weight: 500; opacity: 0.85; }
.site-footer ul a:hover { color: var(--green-light); opacity: 1; }
.site-footer__bottom {
  position: relative;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.6;
}
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-on-dark);
}
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity .15s ease;
}
.site-footer__credit:hover { opacity: 1; }
.site-footer__credit img { height: 1.25rem; width: auto; display: block; }

/* =========================================================================
   Firmalar directory
   ========================================================================= */
.directory-tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--content-w) - 2 * var(--gutter));
  margin: 0.375rem auto 1.5rem;
  padding: 1.125rem;
  background: var(--tools-glass);
  backdrop-filter: blur(0.875rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  z-index: 20;
}
/* Sticky from tablet up (on phones the wrapped A–Z list is too tall to pin);
   sits a few px below the fixed header. */
@media (min-width: 768px) { .directory-tools { position: sticky; top: 5.25rem; } }
@media (min-width: 1000px) { .directory-tools { top: 5.625rem; } }
.directory-search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.75rem 1.125rem;
}
.directory-search input {
  border: 0; background: none; outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}
.directory-search__icon { color: var(--green); font-weight: 700; }
.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.az-nav a {
  padding: 0.375rem 0.6875rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  text-decoration: none;
  color: var(--ink);
  transition: background-color .12s ease, color .12s ease;
}
.az-nav a:hover { background: var(--green); color: var(--white); }
.directory-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
}

.directory-group__letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  padding-top: 1.75rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: var(--dir-offset, 9.375rem);
}
@media (min-width: 640px) { .directory-group__letter { padding-top: 2.25rem; margin-bottom: 0.875rem; } }
.directory-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .directory-list { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; } }
@media (min-width: 1200px) { .directory-list { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.directory-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.375rem 1.625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.directory-row:hover { border-color: rgba(31,138,82,.3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.directory-row__index { font-size: 0.8rem; font-weight: 700; color: var(--green); }
.directory-row__name { font-size: 0.94rem; font-weight: 600; line-height: 1.35; }
.directory-empty {
  display: none;
  padding: 2.5rem 0;
  color: var(--ink);
  opacity: 0.6;
}

/* =========================================================================
   Yönetim roster
   ========================================================================= */
.roster-group { margin-top: 2.75rem; }
.roster-group:first-child { margin-top: 0; }
.roster-group__title { font-size: 1.3rem; margin-bottom: 1rem; }
.roster-group__note { font-size: 0.85rem; font-weight: 600; color: var(--green); margin-bottom: 1.125rem; display: block; }

/* Hierarchy: Başkan → Başkan Vekili → Üyeler, each tier centered under the
   previous one with a thin connector. Cards keep one column's width so the
   tiers line up with the members grid. */
.roster-tier {
  --cols: 2;
  --gap: 0.75rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
@media (min-width: 640px) { .roster-tier { --cols: 3; --gap: 0.875rem; } }
@media (min-width: 1000px) { .roster-tier { --cols: 4; --gap: 1rem; } }
.roster-tier > .roster-card { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.roster-tier + .roster-tier { margin-top: 1.75rem; }
.roster-tier + .roster-tier::before {
  content: "";
  position: absolute;
  top: -1.75rem;
  left: 50%;
  width: 1px;
  height: 1.75rem;
  background: rgba(31, 138, 82, 0.35);
}
.roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.roster-card:hover { transform: translateY(-0.1875rem); box-shadow: var(--shadow-md); border-color: rgba(31,138,82,.3); }
.roster-card__name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.roster-card__role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.1875rem 0.6875rem;
  border-radius: var(--r-pill);
}
.roster-card__note { font-size: 0.8rem; opacity: 0.72; }
.roster-card--baskan { border-color: rgba(31, 138, 82, 0.35); box-shadow: var(--shadow-md); }
.roster-card--baskan .roster-card__name { font-size: 1.1rem; }
.roster-card--baskan .roster-card__role { background: var(--grad-brand); color: var(--white); }
.roster-card--uye .roster-card__role { background: var(--paper-2); color: var(--ink); opacity: 0.75; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-panel {
  padding: 1.625rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .contact-panel { padding: 2rem 2.125rem; } }
.contact-panel h2 { font-size: 1.3rem; margin-bottom: 1.375rem; }
.contact-panel dl { margin: 0; }
.contact-item { padding-block: 0.875rem; border-top: 1px solid var(--line); }
.contact-item:first-of-type { border-top: none; padding-top: 0; }
.contact-item:last-of-type { padding-bottom: 0; }
.contact-item dt { font-size: 0.75rem; font-weight: 700; color: var(--green); margin-bottom: 0.25rem; }
.contact-item dd { margin: 0; font-weight: 500; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--green); }
.contact-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.contact-social svg { width: 1.25rem; height: 1.25rem; color: var(--green); }

.map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .map-frame { aspect-ratio: auto; height: 100%; min-height: 26.25rem; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.02); }

/* =========================================================================
   Duyurular
   ========================================================================= */
.notice-list { display: flex; flex-direction: column; gap: 0.75rem; }
.notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1.125rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.notice-row__date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  width: fit-content;
  flex-shrink: 0;
}
.notice-row__title { flex: 1 1 16.25rem; font-weight: 600; }
.notice-row__link { font-size: 0.85rem; font-weight: 700; color: var(--green); text-decoration: none; white-space: nowrap; }
.notice-row--current { border-color: rgba(31, 138, 82, 0.35); box-shadow: 0 0 0 0.1875rem var(--green-soft); }
.notice-row--current .notice-row__date { color: var(--white); background: var(--grad-brand); }
.notice-row__badge {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--r-pill);
  vertical-align: 2px;
}

/* =========================================================================
   Konum ve ulaşım
   ========================================================================= */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.more-link svg { width: 1rem; height: 1rem; transition: transform .15s ease; }
.more-link:hover svg { transform: translateX(0.1875rem); }

.transport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) { .transport-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .transport-grid { grid-template-columns: repeat(4, 1fr); } }
.transport-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: 1.5rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.transport-card__head { display: flex; align-items: center; gap: 0.875rem; }
.transport-card__icon {
  flex-shrink: 0;
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-sm);
}
.transport-card__icon svg { width: 2.5rem; height: 2.5rem; }
.transport-card__mode { font-size: 1.15rem; }
.transport-card__lead {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--line);
}
.transport-card__km {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.transport-card__km small { margin-left: 0.25rem; font-size: 1rem; font-weight: 700; color: var(--green); letter-spacing: 0; }
.transport-card__place { font-size: 0.92rem; font-weight: 600; opacity: 0.75; }
.transport-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.transport-card__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.9rem; }
.transport-card__list b { font-weight: 700; color: var(--green); white-space: nowrap; }

.distance-grid { display: grid; gap: 0.875rem; }
@media (min-width: 900px) { .distance-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.distance-panel {
  padding: 1.5rem 1.375rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
}
@media (min-width: 640px) { .distance-panel { padding: 1.75rem; } }
.distance-panel__title { font-size: 1.15rem; margin-bottom: 1.25rem; color: var(--white); }
.distance-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.distance-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.375rem 0.75rem; }
.distance-row__name { font-size: 0.95rem; font-weight: 600; }
.distance-row__km { font-size: 0.95rem; font-weight: 700; color: var(--green-light); }
.distance-row__bar {
  grid-column: 1 / -1;
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.distance-row__fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--grad-brand);
  border-radius: inherit;
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1) calc(250ms + var(--i) * 70ms);
}
/* bars grow from zero each time their panel slides into view */
.js-reveal .distance-panel:not(.is-visible) .distance-row__fill { width: 0; transition-delay: 0ms; }

.site-map {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}
.site-map img { width: 100%; height: auto; }
.site-map figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(15, 23, 48, 0.72);
  border-radius: var(--r-pill);
  backdrop-filter: blur(0.375rem);
  pointer-events: none;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-top: 0.875rem;
}
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; } }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-tile {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.photo-tile { position: relative; }
.photo-tile picture, .photo-tile img { display: block; width: 100%; height: 100%; }
.photo-tile img { object-fit: cover; transition: transform .4s ease; }
.photo-tile:hover img { transform: scale(1.05); }
.site-map__link { display: block; position: relative; }
[data-lightbox] { cursor: zoom-in; }

/* expand hint on clickable photos: shown on hover/focus, always on touch */
.zoom-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  background: rgba(15, 23, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(0.375rem);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .2s ease, transform .2s ease;
}
.zoom-badge svg { width: 1rem; height: 1rem; }
[data-lightbox]:hover .zoom-badge,
[data-lightbox]:focus-visible .zoom-badge { opacity: 1; transform: none; }
@media (hover: none) { .zoom-badge { opacity: 1; transform: none; } }

/* Lightbox — native <dialog> in the top layer */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 12, 26, 0.94);
  color: var(--white);
  overflow: hidden;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in .25s ease both;
}
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: calc(100vw - 2rem);
  touch-action: pan-y;
}
@media (min-width: 1000px) { .lightbox__figure { max-width: min(80rem, calc(100vw - 12.5rem)); } }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 9.375rem);
  width: auto; height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity .3s ease, transform .3s ease;
}
.lightbox__img.is-loaded { opacity: 1; transform: none; }
.lightbox__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-light);
  background: rgba(67, 174, 113, 0.16);
  padding: 0.1875rem 0.625rem;
  border-radius: var(--r-pill);
}
.lightbox__btn {
  position: absolute;
  z-index: 1;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(0.375rem);
  transition: background-color .15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
@media (min-width: 1000px) {
  .lightbox__close { top: 1.5rem; right: 1.5rem; }
  .lightbox__prev { left: 2rem; }
  .lightbox__next { right: 2rem; }
}

/* =========================================================================
   404
   ========================================================================= */
.error-page { padding-block: 6.875rem; }
.error-page__code {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-pill);
}
.error-page__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 1.125rem; }

/* =========================================================================
   Load & scroll reveal — elements slide in from the left/right as they
   enter the viewport (and again when scrolling back up). Only active when
   the <head> snippet set .js-reveal, so no-JS / reduced-motion users get
   static content.
   ========================================================================= */
main { overflow-x: clip; }

.js-reveal .site-header { animation: header-in .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes header-in { from { opacity: 0; translate: 0 -1.5rem; } }

.js-reveal:not(.reveal-ready) :is(
  .titleblock__eyebrow, .titleblock__title, .titleblock__lead, .titleblock__meta, .titleblock__slides-row,
  .section__head, .prose, .lede, .announce__bar, .directory-group__letter, .roster-group__title,
  .two-col .section__index, .btn,
  .sector-index > *, .facts > *, .social-card, .roster-tier > *, .directory-list > *, .routes > *,
  .notice-list > *, .contact-grid > *, .media-frame, .doc-card,
  .transport-grid > *, .distance-grid > *, .photo-grid > *, .site-map, .more-link
),
.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  translate: var(--rx, -3rem) 0;
}
.reveal {
  --rx: -3rem;
  --rd: 0ms;
  transition:
    opacity .8s cubic-bezier(.2, .7, .2, 1) var(--rd),
    translate .9s cubic-bezier(.2, .7, .2, 1) var(--rd),
    transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .15s ease, color .15s ease;
}
.reveal--right { --rx: 3rem; }
@media (max-width: 639px) {
  .reveal { --rx: -1.5rem; }
  .reveal--right { --rx: 1.5rem; }
}
.reveal-setup .reveal { transition: none !important; }
