/* ========================================
 * EgoYüzme Website UI Kit — styles
 * ======================================== */
@import url("assets/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--fg-link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--surface { background: var(--ego-surface); }
.section--blue { background: var(--ego-blue); color: #fff; }
.section--blue .t-eyebrow { color: #BDE6F0; }
.section--blue h2 { color: #fff; }
.section--blue p { color: rgba(255,255,255,0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: var(--fs-16); }
.btn--sm { padding: 9px 16px; font-size: var(--fs-13); }
.btn--primary { background: var(--ego-blue); color: #fff; border-color: var(--ego-blue); }
.btn--primary:hover { background: var(--ego-blue-600); border-color: var(--ego-blue-600); text-decoration: none; }
.btn--primary:active { background: var(--ego-blue-700); transform: scale(.97); }
.btn--secondary { background: transparent; color: var(--ego-blue); border-color: var(--ego-blue); }
.btn--secondary:hover { background: var(--ego-blue-50); text-decoration: none; }
.btn--secondary--on-blue { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--secondary--on-blue:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.btn--accent { background: var(--ego-orange); color: #fff; border-color: var(--ego-orange); }
.btn--accent:hover { background: var(--ego-orange-600); border-color: var(--ego-orange-600); }
.btn--ghost { background: transparent; color: var(--fg); border-color: transparent; padding: 8px 12px; }
.btn--ghost:hover { background: var(--ego-surface-2); text-decoration: none; }
.btn--glow { box-shadow: var(--shadow-blue-glow); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-13); font-weight: var(--w-semibold); letter-spacing: 0.02em; }
.field .help { font-size: var(--fs-12); color: var(--fg-subtle); }
.field .err { font-size: var(--fs-12); color: var(--color-danger); font-weight: var(--w-semibold); }
.input {
  font: inherit; font-size: var(--fs-14);
  padding: 12px 14px;
  background: #fff; color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus { border-color: var(--ego-blue); box-shadow: var(--shadow-focus); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--feature {
  background: var(--ego-blue); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue-glow);
}
.card--feature .t-eyebrow { color: #BDE6F0; }
.card--feature h3 { color: #fff; }
.card--feature p { color: rgba(255,255,255,0.85); }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: var(--w-semibold);
  letter-spacing: 0.02em;
  background: var(--ego-blue-100); color: var(--ego-blue-700);
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.chip--orange { background: #FDEBCC; color: #A85F00; }
.chip--slate  { background: #EEF0F2; color: #4B5563; }
.chip--soft   { background: #D6EDF4; color: #024F66; }
.chip--navy   { background: #DEE7EC; color: #024F66; }
.chip--success { background: #E3F5EC; color: #1A7C4B; }
.chip--solid-blue { background: var(--ego-blue); color: #fff; }
.chip--solid-orange { background: var(--ego-orange); color: #fff; }
.chip--outline { background: #fff; border: 1.5px solid var(--border-strong); color: var(--fg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-weight: var(--w-bold);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ego-blue);
}

/* ---------- Segmented control ---------- */
.seg {
  display: inline-flex; background: var(--ego-surface-2);
  border-radius: var(--r-pill); padding: 4px; gap: 2px;
}
.seg button {
  font: inherit; font-weight: var(--w-semibold); font-size: var(--fs-13);
  letter-spacing: 0.02em;
  padding: 9px 18px;
  background: transparent; border: none;
  color: var(--fg-muted);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background var(--dur-base), color var(--dur-base), box-shadow var(--dur-base);
}
.seg button[aria-pressed="true"] {
  background: #fff; color: var(--ego-blue-700);
  box-shadow: var(--shadow-sm);
}

/* ---------- Branch pills ---------- */
.branch-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.branch-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  background: #fff; border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: var(--w-semibold); font-size: var(--fs-13);
  color: var(--fg);
  transition: border-color var(--dur-base), background var(--dur-base), color var(--dur-base);
}
.branch-pill .pin { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); }
.branch-pill[aria-pressed="true"] {
  border-color: var(--ego-blue); background: var(--ego-blue-50); color: var(--ego-blue-700);
}
.branch-pill[aria-pressed="true"] .pin { background: var(--ego-blue); }

/* ---------- WhatsApp FAB ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  z-index: 80;
  border: none;
  transition: transform var(--dur-base);
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 28px; height: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 18px; }
.site-header .inner > a { flex: none; display: inline-flex; }
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; }
.site-header .brand .mark { height: 42px; width: auto; }
.site-header img.logo { height: 38px; width: auto; }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a { color: var(--fg); font-weight: var(--w-semibold); font-size: var(--fs-14); letter-spacing: 0.02em; text-align: center; line-height: 1.2; }
.site-header nav a:hover { color: var(--ego-blue); text-decoration: none; }
.site-header .cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ego-blue-800); color: #fff; padding: 64px 0 32px; }
.site-footer h4 { color: #fff; font-weight: var(--w-bold); font-size: var(--fs-14); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: var(--fs-14); }
.site-footer a:hover { color: #fff; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); display: flex; justify-content: space-between; font-size: var(--fs-13); color: rgba(255,255,255,0.6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0596C0;
}
.hero .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}
.hero .photo.is-active { opacity: 1; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.is-active {
  background: #fff;
  width: 28px;
}
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero .protection {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,79,102,0.55) 0%, rgba(2,79,102,0.25) 40%, rgba(2,79,102,0.55) 100%);
}
.hero .inner { position: relative; padding: 80px 0; max-width: 760px; }
.hero h1 {
  font-weight: var(--w-black);
  font-size: clamp(var(--fs-40), 6vw, var(--fs-72));
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.hero .lead {
  margin-top: 18px;
  font-size: var(--fs-18);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 540px;
}
.hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Global cta-row — used in blue bands, page sections, etc */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .turtle-bg {
  position: absolute;
  right: -60px; bottom: -60px;
  width: 380px; height: 380px;
  opacity: 0.15;
  pointer-events: none;
}

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-strip .item {
  padding: 22px; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
}
.trust-strip .item:last-child { border-right: none; }
.trust-strip .stat { font-weight: var(--w-black); font-size: var(--fs-40); color: var(--ego-blue); line-height: 1; letter-spacing: -0.01em; }
.trust-strip .lbl { font-size: var(--fs-13); color: var(--fg-muted); font-weight: var(--w-medium); }

/* Program grid */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-grid .card { display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.program-grid .card h3 { margin: 4px 0; }
.program-grid .card p { font-size: var(--fs-14); color: var(--fg-muted); line-height: 1.55; flex: 1; }
.program-grid .card .meta { display: flex; gap: 14px; font-size: var(--fs-12); color: var(--fg-subtle); }
.program-grid .card .more { margin-top: 6px; font-weight: var(--w-semibold); color: var(--ego-blue-700); font-size: var(--fs-13); display: inline-flex; gap: 4px; align-items: center; }
.program-grid .card .more::after { content: '›'; font-size: 16px; line-height: 1; }
.program-grid .card:hover .more { color: var(--ego-blue); }

/* Branch map */
.branch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.branch-card {
  padding: 18px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 6px;
}
.branch-card .name { font-weight: var(--w-bold); font-size: var(--fs-16); }
.branch-card .addr { font-size: var(--fs-12); color: var(--fg-muted); line-height: 1.4; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-row {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.faq-row[data-open="true"] { border-color: var(--ego-blue); background: #F3FAFC; }
.faq-row .q {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: var(--w-semibold);
  font-size: var(--fs-14);
  background: none; border: none; width: 100%; text-align: left;
  color: var(--fg);
}
.faq-row .ic {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--ego-blue-100); color: var(--ego-blue);
  display: flex; align-items: center; justify-content: center;
  flex: none; font-weight: var(--w-bold); font-size: 18px;
}
.faq-row[data-open="true"] .ic { background: var(--ego-blue); color: #fff; }
.faq-row .a { padding: 0 20px 18px 60px; font-size: var(--fs-14); color: var(--fg-muted); line-height: 1.6; }

/* Enrollment / form section */
.enroll {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
}
.enroll h2 { margin: 0 0 8px; }
.enroll .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 22px;
}

/* utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.flex { display: flex; } .gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .items-center { align-items: center; }

/* responsive */
@media (max-width: 1080px) {
  .site-header nav { display: none; }
}
@media (max-width: 920px) {
  .program-grid { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip .item:nth-child(2) { border-right: none; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .enroll .grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) and (min-width: 921px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
 * Site-specific extensions (EgoYüzme Web Sitesi)
 * ============================================================ */

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Body min-height so footer sits properly */
body { min-height: 100vh; display: flex; flex-direction: column; }
#root { display: flex; flex-direction: column; flex: 1; }
main { flex: 1; }

/* Body type tweaks */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Header: mobile menu ---------- */
.site-header .mobile-toggle {
  display: none; background: none; border: none; padding: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg);
}
.site-header .mobile-toggle svg { width: 24px; height: 24px; }
.site-header nav a.is-active { color: var(--ego-blue); }
.site-header nav a.is-active::after {
  content: ""; display: block; height: 2px;
  background: var(--ego-blue); margin-top: 4px;
  border-radius: 2px;
}

/* ---------- Page heroes (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--ego-blue);
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0 clamp(80px, 11vw, 140px);
}
.page-hero .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.page-hero .protection {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,79,102,0.6) 0%, rgba(2,79,102,0.85) 100%);
}
.page-hero .turtle-bg {
  position: absolute; right: -80px; bottom: -80px;
  width: 360px; height: 360px; opacity: 0.10;
  pointer-events: none;
}
.page-hero .inner { position: relative; max-width: 820px; }
.page-hero .crumbs {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-13); font-weight: var(--w-semibold);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero .crumbs a { color: rgba(255,255,255,0.78); }
.page-hero .crumbs a:hover { color: #fff; text-decoration: none; }
.page-hero h1 {
  color: #fff;
  font-weight: var(--w-extrabold);
  font-size: clamp(var(--fs-32), 5vw, var(--fs-56));
  letter-spacing: var(--tr-wide);
  line-height: 1.05;
}
.page-hero .lead {
  font-size: var(--fs-18); line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-top: 16px; max-width: 620px;
}

/* ---------- Long-form prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p {
  font-size: var(--fs-16); line-height: 1.7;
  color: var(--fg); margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose .lead-p {
  font-size: var(--fs-20); line-height: 1.6;
  color: var(--fg); font-weight: var(--w-medium);
  margin-bottom: 28px;
}

/* ---------- Quote block ---------- */
.quote-block {
  background: var(--ego-blue-50);
  border-left: 4px solid var(--ego-blue);
  padding: 28px 32px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 32px 0;
}
.quote-block .q-text {
  font-style: italic;
  font-weight: var(--w-light);
  font-size: var(--fs-20); line-height: 1.55;
  color: var(--ego-blue-800);
}
.quote-block .q-attrib {
  margin-top: 12px;
  font-size: var(--fs-13); letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ego-blue-700);
  font-weight: var(--w-bold);
}

/* ---------- Value/feature grid ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 32px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
}
.value-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--ego-blue-100);
  color: var(--ego-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--fg-muted); font-size: var(--fs-14); line-height: 1.6; margin: 0; }
.value-card.accent .icon-wrap { background: var(--ego-orange-100); color: var(--ego-orange-600); }
.value-card.dark .icon-wrap { background: var(--ego-blue-800); color: #fff; }

/* ---------- Program detail layout ---------- */
.program-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.program-detail:last-child { border-bottom: none; }
.program-detail.flip { direction: rtl; }
.program-detail.flip > * { direction: ltr; }
.program-detail .imagery {
  border-radius: var(--r-lg);
  aspect-ratio: 5 / 4;
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.program-detail .imagery .label {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--ego-blue-700);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12); font-weight: var(--w-bold);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.program-detail .imagery .wm {
  position: absolute; right: 14px; bottom: 14px;
  width: 48px; height: 48px; opacity: 0.65;
}
.program-detail .text h2 { margin-bottom: 14px; }
.program-detail .text .meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;
}
.program-detail .text p { margin-bottom: 16px; }
.program-detail .text .checks {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0;
}
.program-detail .text .checks li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-14); line-height: 1.5;
  color: var(--fg);
}
.program-detail .text .checks li .ck {
  flex: none; width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--ego-blue-100); color: var(--ego-blue);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.program-detail .text .checks li .ck svg { width: 12px; height: 12px; }
.program-detail .text ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ego-blue-800);
  color: #fff;
  padding: 56px 0;
}
.stats-band .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: left;
}
.stats-band .stat-num {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: clamp(var(--fs-40), 4vw, var(--fs-56));
  line-height: 1; color: #fff;
  letter-spacing: -0.01em;
}
.stats-band .stat-lbl {
  font-size: var(--fs-14); color: rgba(255,255,255,0.78);
  margin-top: 8px;
}

/* ---------- Branch detail cards ---------- */
.branch-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.branch-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex; gap: 20px;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.branch-detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.branch-detail-card .map {
  width: 140px; height: 140px; flex: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--ego-blue-100), var(--ego-blue-50));
  display: flex; align-items: center; justify-content: center;
  color: var(--ego-blue);
  position: relative; overflow: hidden;
}
.branch-detail-card .map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 79px, rgba(5,150,192,0.18) 80px),
    linear-gradient(90deg, transparent 79px, rgba(5,150,192,0.18) 80px);
  background-size: 80px 80px;
}
.branch-detail-card .map svg { width: 40px; height: 40px; position: relative; z-index: 1; }
.branch-detail-card .body { flex: 1; min-width: 0; }
.branch-detail-card .name {
  font-weight: var(--w-bold); font-size: var(--fs-20);
  margin-bottom: 4px; color: var(--fg);
}
.branch-detail-card .addr {
  font-size: var(--fs-14); color: var(--fg-muted);
  margin-bottom: 12px; line-height: 1.5;
}
.branch-detail-card .meta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: var(--fs-13); color: var(--fg-muted);
  margin-bottom: 14px;
}
.branch-detail-card .meta-row span {
  display: inline-flex; align-items: center; gap: 6px;
}
.branch-detail-card .meta-row svg {
  width: 14px; height: 14px; color: var(--ego-blue);
}
.branch-detail-card .actions {
  display: flex; gap: 8px;
}

/* ---------- Discipline pills (Programs page) ---------- */
.discipline-nav {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.discipline-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-13); font-weight: var(--w-semibold);
  color: var(--fg);
  cursor: pointer;
  transition: all var(--dur-base);
}
.discipline-pill .dot { width: 8px; height: 8px; border-radius: 999px; }
.discipline-pill:hover { border-color: var(--ego-blue); color: var(--ego-blue); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--ego-blue);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .turtle-bg {
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; opacity: 0.12;
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-band .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band .row .text { max-width: 560px; }

/* ---------- Schedule / hours table ---------- */
.hours-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-14);
  margin-top: 20px;
}
.hours-table th, .hours-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.hours-table th {
  font-weight: var(--w-bold);
  color: var(--ego-blue-700);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-size: var(--fs-12);
}
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Side-by-side layout helpers ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-grid .imagery {
  border-radius: var(--r-lg); aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-grid .imagery .wm {
  position: absolute; right: 16px; bottom: 16px;
  width: 52px; height: 52px; opacity: 0.65;
}

/* ---------- Step / process list ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 32px;
}
.step {
  padding: 24px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--border);
  position: relative;
}
.step .num {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: var(--fs-32);
  color: var(--ego-blue);
  line-height: 1; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: var(--fs-14); color: var(--fg-muted); margin: 0; line-height: 1.5; }

/* ---------- Team/Coach mock card ---------- */
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coach-card {
  background: #fff; border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--border);
}
.coach-card .photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center top;
  background-color: var(--ego-blue-50);
}
.coach-card .body { padding: 20px; }
.coach-card .name { font-weight: var(--w-bold); font-size: var(--fs-18); }
.coach-card .role { font-size: var(--fs-13); color: var(--ego-blue-700);
  font-weight: var(--w-semibold); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
.coach-card .bio { font-size: var(--fs-14); color: var(--fg-muted); margin-top: 12px; line-height: 1.55; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info .item .ic {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--ego-blue-100); color: var(--ego-blue);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-info .item .ic svg { width: 22px; height: 22px; }
.contact-info .item .label {
  font-size: var(--fs-12); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: var(--w-bold);
  color: var(--fg-subtle); margin-bottom: 2px;
}
.contact-info .item .value {
  font-size: var(--fs-16); color: var(--fg); font-weight: var(--w-medium);
}
.contact-info .item .value a { color: var(--fg); }
.contact-info .item .value a:hover { color: var(--ego-blue); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2, 79, 102, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100; backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff; border-radius: var(--r-lg);
  max-width: 480px; width: 100%;
  padding: 32px; box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-box .close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--ego-surface);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 96px; right: 24px;
  background: var(--ego-blue-800); color: #fff;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.02em;
  z-index: 90;
  animation: toast-in 220ms var(--ease-out);
}
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Decoration ---------- */
.section-eyebrow-center { text-align: center; margin-bottom: 12px; }
.section-title-center { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.section-sub-center { text-align: center; max-width: 720px; margin: 0 auto; color: var(--fg-muted); }

/* ---------- Page transitions ---------- */
.page-enter { animation: page-in 280ms var(--ease-out); }
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header .mobile-toggle { display: inline-flex; }
  .site-header .cta { display: none; }
  .site-header nav.is-open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .site-header nav.is-open a {
    padding: 14px 0; border-bottom: 1px solid var(--border);
  }
  .site-header nav.is-open a:last-child { border-bottom: none; }
}
@media (max-width: 920px) {
  .program-detail { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .program-detail.flip { direction: ltr; }
  .stats-band .grid { grid-template-columns: 1fr 1fr; }
  .branch-detail-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .coach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .stats-band .grid { grid-template-columns: 1fr; }
  .branch-detail-card { flex-direction: column; }
  .branch-detail-card .map { width: 100%; height: 120px; }
}

/* ============================================================
   Mobile UX/UI refactor — Faz 2 (additive only, desktop unaffected)
   ============================================================ */

/* ---------- Touch targets — tablet & below ---------- */
@media (max-width: 920px) {
  .input { min-height: 48px; padding: 14px 16px; font-size: 16px; }
  textarea.input { min-height: 80px; padding-top: 14px; }
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .hero-dot { width: 14px; height: 14px; }
  .hero-dot.is-active { width: 32px; }
  .faq-row .q { padding: 18px 16px; min-height: 56px; }
}

/* ---------- Mobile menu CTA — nav içinde flex item (nav.is-open zaten flex-column) ---------- */
.site-header .mobile-menu-cta { display: none; }
@media (max-width: 1080px) {
  .site-header nav.is-open .mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .site-header nav.is-open .mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
  }
  /* nav.is-open: padding-bottom artır ki CTA'ya nefes alma alanı ver */
  .site-header nav.is-open { padding-bottom: 18px; }
}

/* ---------- Breadcrumbs wrap ---------- */
.page-hero .crumbs {
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* ---------- FAB notch / home indicator safe area ---------- */
.fab-wa {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Trust strip 2x2 grid (481–600px) ---------- */
@media (min-width: 481px) and (max-width: 600px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip .item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .trust-strip .item:nth-child(2n) { border-right: none; }
  .trust-strip .item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- Hero floor at 600px ---------- */
@media (max-width: 600px) {
  .hero { min-height: clamp(420px, 70vh, 600px); }
  .hero h1 { font-size: clamp(var(--fs-36), 8vw, var(--fs-56)); }
}

/* ---------- Mobile <480px (phones) ---------- */
@media (max-width: 480px) {
  /* Hero — above-the-fold CTA visibility */
  .hero { min-height: clamp(380px, 78vh, 560px); }
  .hero .inner { padding: 40px 0 32px; max-width: 100%; }
  .hero h1 { font-size: clamp(var(--fs-32), 9vw, var(--fs-48)); letter-spacing: 0.02em; }
  .hero .lead { font-size: var(--fs-16); margin-top: 14px; }
  .hero .turtle-bg { width: 220px; height: 220px; right: -50px; bottom: -50px; }
  .hero .cta-row { margin-top: 22px; flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }

  /* Layout: stack everything */
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip .item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .trust-strip .item:last-child { border-bottom: none; }
  .branch-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }

  /* PageHero scale-down */
  .page-hero { padding: 60px 0 50px; }
  .page-hero h1 { font-size: clamp(var(--fs-28), 7vw, var(--fs-40)); }
  .page-hero .lead { font-size: var(--fs-16); }

  /* Typography */
  h2 { font-size: clamp(var(--fs-22), 5.5vw, var(--fs-32)); line-height: 1.2; }
  .lead-p { font-size: var(--fs-16); }

  /* Section spacing — tighter */
  .section { padding: 48px 0; }

  /* Forms */
  .enroll { padding: 22px 18px; }
  .enroll button[type="submit"] { width: 100%; }
  .enroll .flex.gap-4 { gap: 14px; }
  .enroll .flex.gap-4 label { padding: 6px 0; }

  /* CtaBand: stack title + CTAs */
  .cta-band .row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-band .cta-row { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-band .cta-row .btn { width: 100%; justify-content: center; }

}

/* ---------- Very small (≤360px) ---------- */
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(var(--fs-28), 8vw, var(--fs-40)); }
  .hero .lead { font-size: var(--fs-15, 0.9375rem); }
  .container, .container.narrow { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   Mobile UX/UI — Patch 2 (sistematik tarama düzeltmeleri)
   ============================================================ */

/* Footer: <480'de 1 sütun + center align */
@media (max-width: 480px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .bottom { flex-direction: column; gap: 12px; text-align: center; padding-top: 18px; }
}

/* Header brand mobilde: hem mark hem wordmark görünür, daha küçük */
@media (max-width: 480px) {
  .site-header .inner { gap: 10px; padding: 12px 0; }
  .site-header .brand { gap: 6px; }
  .site-header .brand .mark { height: 32px; }
  .site-header .brand .logo { height: 22px; }
}
@media (max-width: 360px) {
  .site-header .brand .mark { height: 28px; }
  .site-header .brand .logo { height: 20px; }
  .site-header .mobile-toggle { padding: 6px; }
}

/* Hero — global .cta-row override edip Hero-spesifik mobil stack zorla */
@media (max-width: 480px) {
  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
}

/* Trust strip — Hero'nun -56 negative margin overlap'ı mobilde sıfırla */
@media (max-width: 600px) {
  .home-trust-wrap { margin-top: 0 !important; }
}

/* Program detail: flip RTL'i mobilde kaldır (1-col'da sırayı bozmasın) */
@media (max-width: 920px) {
  .program-detail.flip { direction: ltr; }
  .program-detail.flip > * { direction: ltr; }
}

/* Branch detail card meta-row mobilde stack */
@media (max-width: 600px) {
  .branch-detail-card .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .branch-detail-card .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .branch-detail-card .actions .btn { width: 100%; justify-content: center; }
}

/* Discipline nav (Programs page): horizontal scroll on mobile */
@media (max-width: 600px) {
  .discipline-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .discipline-nav::-webkit-scrollbar { display: none; }
  .discipline-nav .discipline-pill { flex: none; white-space: nowrap; }
}

/* FAQ search input mobil */
@media (max-width: 480px) {
  .faq-row .q { font-size: var(--fs-15, 0.9375rem); line-height: 1.4; }
}

/* Contact info aside mobilde altta, padding tweak */
@media (max-width: 920px) {
  .contact-info { padding-top: 8px; }
  .contact-info .item { gap: 12px; }
}

/* Programs page p.lead-p mobil */
@media (max-width: 480px) {
  .prose .lead-p { font-size: var(--fs-16); }
  .quote-block .q-text { font-size: var(--fs-16); line-height: 1.5; }
}

/* Split-grid imagery mobilde aspect ratio tweak (resim kart çok küçük olmasın) */
@media (max-width: 480px) {
  .split-grid .imagery { aspect-ratio: 16/10; min-height: 200px; }
  .program-detail .imagery { aspect-ratio: 16/10; min-height: 200px; }
}

/* Toast mobilde tam ortada */
@media (max-width: 480px) {
  .toast {
    left: 16px; right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    text-align: center;
  }
}

/* Hide horizontal scroll on body (extra safety) */
html, body { overflow-x: hidden; }
