/* ============================================================
   KONYA DİŞ HEKİMİ — STYLE.CSS
   Vanilla CSS · CSS Custom Properties · Glassmorphism · Dark Mode
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Brand colors */
    --green-900: #06302e;
    --green-800: #0a3f3c;
    --green-700: #0d4d4d;
    --green-600: #11665f;
    --teal-700: #0f766e; /* AA: white text contrast 5.39:1 — use for CTA bg / on-teal text */
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --mint-100: #e6fbf6;
    --accent: var(--teal-400);

    /* Neutrals */
    --bg: #f4f9f8;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f7f6;
    --text: #0f2826;
    --text-soft: #4a615f;
    --text-muted: #7c918f;
    --border: rgba(13, 77, 77, 0.10);
    --border-strong: rgba(13, 77, 77, 0.18);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-blur: 16px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(6, 48, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(6, 48, 46, 0.10);
    --shadow-lg: 0 24px 60px rgba(6, 48, 46, 0.16);
    --shadow-glow: 0 10px 40px rgba(20, 184, 166, 0.30);

    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--green-700) 0%, var(--teal-700) 100%);
    --grad-brand-soft: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 60%, var(--teal-700) 100%);

    /* Spacing */
    --space-section: clamp(4rem, 8vw, 7rem);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Typo */
    --font-head: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --nav-h: 76px;
    --ann-h: 44px;
    --maxw: 1200px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- DARK MODE ---------- */
html[data-theme="dark"] {
    --bg: #07191a;
    --bg-alt: #0b2122;
    --surface: #0e2627;
    --surface-2: #102b2c;
    --text: #e7f5f3;
    --text-soft: #a9c4c1;
    --text-muted: #7a9794;
    --border: rgba(94, 234, 212, 0.12);
    --border-strong: rgba(94, 234, 212, 0.22);

    --glass-bg: rgba(14, 38, 39, 0.55);
    --glass-border: rgba(94, 234, 212, 0.18);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- A11Y: skip link + keyboard focus ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 10000;
    background: var(--teal-700); color: #fff; padding: 0.7rem 1.1rem;
    border-radius: 0 0 10px 0; font-weight: 600; box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
#main:focus { outline: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; }
.section { padding: var(--space-section) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--teal-700);
    background: rgba(15, 118, 110, 0.12);
    padding: 0.4rem 1rem; border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-desc { color: var(--text-soft); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 2.8rem; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.95rem;
    padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--grad-brand); color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, var(--teal-600), var(--green-600));
    opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn-primary span, .btn-primary { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 50px rgba(20, 184, 166, 0.45); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 2; }
/* Press feedback: subtle push-down on tap/click (all buttons) */
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.12); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--grad-brand-soft);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; color: #fff; }
.preloader-logo {
    width: 240px; max-width: 72vw; height: auto; display: block; margin: 0 auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(0,0,0,0.25));
    animation: logoPulse 1.7s var(--ease) infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}
.preloader-bar { width: 180px; height: 4px; background: rgba(255,255,255,0.25); border-radius: 99px; margin: 1.8rem auto 0; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: #fff; border-radius: 99px; animation: loadBar 1.2s var(--ease) infinite; }
@keyframes loadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
    position: fixed; top: var(--ann-h); left: 0; height: 4px; width: 0%;
    background: var(--grad-brand); z-index: 1000; border-radius: 0 99px 99px 0;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
    transition: width 0.1s linear;
}

/* ---------- ANNOUNCEMENT BAR (marquee) ---------- */
.announce-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--ann-h); z-index: 999;
    display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 60%, #f97316 100%);
    color: #fff; box-shadow: 0 2px 14px rgba(180, 60, 10, 0.35);
}
.announce-viewport {
    flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.announce-track {
    display: flex; flex-wrap: nowrap; align-items: center; width: max-content; will-change: transform;
}
.announce-bar.marquee-on .announce-track {
    animation-name: announce-marquee; animation-timing-function: linear; animation-iteration-count: infinite;
}
.announce-bar:hover .announce-track { animation-play-state: paused; }
.announce-item { display: flex; align-items: center; gap: 0.55rem; white-space: nowrap; padding-right: 2.6rem; font-size: 0.92rem; }
.announce-ic { width: 18px; height: 18px; flex-shrink: 0; }
.announce-item strong { font-weight: 800; }
.announce-tel { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.announce-tel:hover { color: #ffedd5; }
.announce-sep { opacity: 0.65; font-weight: 700; }
.announce-close {
    flex-shrink: 0; margin: 0 0.5rem 0 0.25rem;
    width: 30px; height: 30px; display: grid; place-items: center;
    font-size: 1.5rem; line-height: 1; color: rgba(255,255,255,0.9); border-radius: 50%;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.announce-close:hover { background: rgba(255,255,255,0.22); color: #fff; }
@keyframes announce-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-bar.marquee-on .announce-track { animation: none; transform: none; } }
html.ann-dismissed { --ann-h: 0px; }
html.ann-dismissed .announce-bar { display: none; }

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed; top: var(--ann-h); left: 0; width: 100%; height: var(--nav-h); z-index: 900;
    display: flex; align-items: center;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.navbar.transparent { background: transparent; }
.navbar.solid {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; font-family: var(--font-head); }
.logo-img { height: 40px; width: auto; display: block; transition: filter 0.4s var(--ease), transform 0.4s var(--ease-out); }
.logo:hover .logo-img { transform: scale(1.04); }
/* White logo on transparent (home top) navbar and in dark mode */
.navbar.transparent .logo-img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); }
.logo-footer .logo-img { filter: brightness(0) invert(1); height: 38px; }
/* transparent navbar text color on home top */
.navbar.transparent .nav-link { color: rgba(255,255,255,0.92); }
.navbar.transparent .theme-toggle { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
    position: relative; font-weight: 500; font-size: 0.97rem; white-space: nowrap;
    padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
    color: var(--text-soft); transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-link::after {
    content: ''; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px;
    background: var(--teal-400); border-radius: 2px; transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--teal-500); }
.nav-link.active { color: var(--teal-500); font-weight: 600; }
.nav-link.active::after { width: 22px; }
.navbar.transparent .nav-link.active { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    color: var(--text-soft); transition: background 0.3s, transform 0.4s var(--ease-out);
    border: 1px solid var(--border);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 0.35rem; height: 42px; padding: 0 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text-soft); font-weight: 600; font-size: 0.85rem; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.lang-btn:hover { background: var(--surface-2); }
.lang-caret { transition: transform 0.3s var(--ease); }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.navbar.transparent .lang-btn { color: #fff; border-color: rgba(255,255,255,0.4); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s; z-index: 60; }
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: block; width: 100%; text-align: left; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text); transition: background 0.25s; }
.lang-option:hover { background: var(--surface-2); }
.lang-option.active { background: var(--grad-brand); color: #fff; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-option { text-align: right; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; }
.hamburger span { width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.navbar.transparent .hamburger { color: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- PAGES ---------- */
.page { display: none; animation: pageIn 0.5s var(--ease-out); }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    overflow: hidden; color: #fff;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(120deg, rgba(6,48,46,0.92) 0%, rgba(10,63,60,0.78) 45%, rgba(17,102,95,0.55) 100%),
        radial-gradient(circle at 80% 20%, rgba(20,184,166,0.35), transparent 50%);
}
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + var(--ann-h)); max-width: 760px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px); padding: 0.5rem 1.1rem; border-radius: var(--radius-pill);
    color: var(--teal-300);
}
.hero-badge-night {
    background: rgba(45,212,191,0.18); border-color: rgba(94,234,212,0.45); color: #fff;
}
.hero-badge-night svg { width: 15px; height: 15px; color: var(--teal-300); }
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 1.3rem; text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero-title-lead { display: block; }
/* Animated tagline line under the brand lead. Requirements: ALWAYS one line, never
   wraps, never overflows (even on small phones), and never changes the hero height
   (zero CLS — the lead "Konya Diş Kliniği" must not move).
   How: its OWN responsive font-size (smaller than the lead) keeps the longest phrase
   on one line down to ~320px; white-space:nowrap forbids wrapping; overflow:hidden is
   a hard guard against any sub-pixel spill; min-height = exactly one line of THIS
   font-size, so the reserved box is constant whether the text is empty, typing, or full. */
.hero-tw {
    display: block;
    font-size: clamp(1.1rem, 3.6vw, 2.4rem);
    line-height: 1.25;
    min-height: 1.25em;          /* one line of the line above → fixed height, no jump */
    white-space: nowrap;         /* tek satır — asla ikinci satıra taşmaz */
    overflow: hidden;            /* taşma guard'ı */
    text-overflow: clip;
    max-width: 100%;
}
.typewriter { background: linear-gradient(120deg, #fff 30%, var(--teal-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cursor { animation: blink 0.9s steps(1) infinite; font-weight: 400; -webkit-text-fill-color: var(--teal-300); color: var(--teal-300); }
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.9); max-width: 600px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-slider-dots { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.6rem; }
.hero-slider-dots button {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease);
}
.hero-slider-dots button.active { background: var(--teal-300); width: 30px; border-radius: 99px; }

.scroll-down { position: absolute; bottom: 2rem; right: 2.5rem; z-index: 3; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.5); border-radius: 99px; }
.scroll-down span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { top: 8px; opacity: 1; } 80% { top: 26px; opacity: 0; } 100% { opacity: 0; } }

/* ---------- EMERGENCY / NIGHT BAND ---------- */
.emergency-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--green-800) 0%, var(--green-600) 45%, var(--teal-700) 100%);
    color: #fff;
}
.emergency-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18), transparent 35%),
                radial-gradient(circle at 90% 90%, rgba(45,212,191,0.35), transparent 45%);
    pointer-events: none;
}
.emergency-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
    flex-wrap: wrap; padding: 1.8rem 1.5rem;
}
.emergency-text { display: flex; align-items: center; gap: 1.1rem; }
.emergency-icon {
    flex-shrink: 0; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
}
.emergency-icon svg { width: 30px; height: 30px; color: #fff; }
.emergency-title { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em; }
.emergency-sub { font-size: 0.97rem; color: rgba(255,255,255,0.9); margin-top: 0.2rem; max-width: 540px; }
.emergency-sub strong { color: #fff; font-weight: 700; }
/* Per-branch CTA groups: [Branch name] over [Phone] over [WhatsApp], stacked.
   Three equal columns on desktop, each column stacks vertically on mobile. */
.emergency-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: stretch; }
.ebb-group {
    display: flex; flex-direction: column; gap: 0.5rem;
    flex: 1 1 190px; min-width: 170px;
}
.ebb-branch {
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    color: #fff; opacity: 0.92; padding-left: 0.15rem; margin-bottom: 0.1rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.ebb-branch::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal-300); flex-shrink: 0;
}
.ebb-group .btn { width: 100%; justify-content: flex-start; }
.btn-emergency { background: #fff; color: var(--green-700); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.btn-emergency svg { width: 18px; height: 18px; }
.btn-emergency:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.28); background: #fff; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,0.35); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,211,102,0.45); }
.emergency-branch-btn { padding: 0.78rem 1.3rem; font-weight: 800; }
.emergency-branch-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ebb-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.ebb-label small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; opacity: 0.7; }
.ebb-label strong { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; }
@media (max-width: 768px) {
    .emergency-inner { flex-direction: column; align-items: flex-start; }
    .emergency-actions { width: 100%; }
    .ebb-group { flex: 1 1 100%; }
    .ebb-group .btn { justify-content: center; }
}

/* ---------- STATS ---------- */
.stats-section {
    background: var(--grad-brand-soft); padding: 3.5rem 0; position: relative; overflow: hidden;
}
.stats-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(45,212,191,0.25), transparent 40%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.stat-card {
    text-align: center; color: #fff; padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius); backdrop-filter: blur(10px);
    transition: transform 0.4s var(--ease-out), background 0.3s;
}
.stat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.13); }
.stat-icon { margin-bottom: 0.7rem; display: grid; place-items: center; }
.stat-icon svg { width: 44px; height: 44px; color: var(--teal-300); }
.stat-number { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--teal-300); line-height: 1; }
.stat-label { margin-top: 0.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); font-weight: 500; }

/* ---------- BRANCHES ---------- */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.branch-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.branch-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.branch-map { height: 200px; overflow: hidden; position: relative; }
.branch-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(1.05); display: block; }
.map-facade {
    cursor: pointer;
    background:
        radial-gradient(circle at 30% 30%, rgba(45,212,191,0.18), transparent 45%),
        linear-gradient(135deg, var(--surface-2), var(--mint-100));
    background-color: var(--surface-2);
}
html[data-theme="dark"] .map-facade { background: linear-gradient(135deg, #0e2627, #102b2c); }
.map-facade::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(13,77,77,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,77,77,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
html[data-theme="dark"] .map-facade::before {
    background-image:
        linear-gradient(rgba(94,234,212,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94,234,212,0.06) 1px, transparent 1px);
}
.map-facade-content {
    position: relative; z-index: 1; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    color: var(--green-700); font-weight: 600; font-size: 0.92rem;
    transition: transform 0.3s var(--ease-out);
}
html[data-theme="dark"] .map-facade-content { color: var(--teal-300); }
.map-facade-content svg { width: 34px; height: 34px; color: var(--teal-500); }
.map-facade:hover .map-facade-content { transform: scale(1.06); }
.map-facade.map-loaded { cursor: default; background: none; }
.map-facade.map-loaded::before { display: none; }
.branch-body { padding: 1.5rem; }
.branch-body h3 { font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--green-700); }
html[data-theme="dark"] .branch-body h3 { color: var(--teal-300); }
.branch-addr, .branch-phone { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.branch-addr .ico, .branch-phone .ico { width: 17px; height: 17px; color: var(--teal-500); flex-shrink: 0; margin-top: 3px; }
.branch-phone a:hover { color: var(--teal-500); }
.branch-link { display: inline-block; margin-top: 0.6rem; font-weight: 600; color: var(--teal-500); transition: gap 0.3s, transform 0.3s; }
.branch-link:hover { transform: translateX(4px); }

/* ---------- BRANDS ---------- */
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 840px; margin: 0 auto; }
.brand-logo-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2.5rem 2rem; min-height: 220px; display: grid; place-items: center;
    box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.brand-logo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brand-logo-card img { max-height: 170px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- ÇOCUK DİŞ KLİNİĞİ ---------- */
.cocuk-section {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fff6ed 0%, #eef9f6 50%, #eef4ff 100%);
}
html[data-theme="dark"] .cocuk-section { background: linear-gradient(135deg, #161a2e 0%, #0e2330 60%, #1a1430 100%); }
.cocuk-blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.5; z-index: 0; }
.cocuk-blob.cb1 { width: 180px; height: 180px; background: #f6b318; top: -50px; right: 8%; opacity: 0.35; }
.cocuk-blob.cb2 { width: 130px; height: 130px; background: #e8643c; bottom: -30px; left: 5%; opacity: 0.3; }
.cocuk-blob.cb3 { width: 100px; height: 100px; background: #1aa088; top: 40%; right: 42%; opacity: 0.25; }
.cocuk-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.cocuk-visual { position: relative; width: 100%; max-width: 360px; margin-inline: auto; }
.cocuk-photo { width: 100%; border-radius: 38px 38px 38px 12px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
/* KDH Çocuk tanıtım videosu — sabit 9:16 oran (CLS yok), poster + preload:none
   (oynatılana kadar ağ yükü yok), responsive ve taşmasız. */
.cocuk-video-wrap {
    position: relative; width: 100%; aspect-ratio: 9 / 16;
    border-radius: 38px 38px 38px 12px; overflow: hidden;
    box-shadow: var(--shadow-lg); background: #0e2330;
}
.cocuk-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cocuk-video-play {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
    display: grid; place-items: center; border: none; cursor: pointer;
    border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--teal-500);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.cocuk-video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.cocuk-video-play:hover { transform: scale(1.08); background: #fff; }
.cocuk-video-wrap.is-playing .cocuk-video-play { opacity: 0; visibility: hidden; }

/* ---------- KVKK Çerez Onayı (Consent Mode v2) ---------- */
.cookie-consent {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1300;
    max-width: 940px; margin-inline: auto;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(18px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-consent.show { opacity: 1; transform: translateY(0); }
.cc-inner { display: flex; gap: 1.3rem; align-items: center; padding: 1.1rem 1.3rem; flex-wrap: wrap; }
.cc-body { flex: 1 1 320px; min-width: 240px; }
.cc-title { display: block; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: .25rem; }
.cc-text { font-size: .9rem; color: var(--text-soft); line-height: 1.5; margin: 0; }
.cc-panel { margin-top: .85rem; display: flex; flex-direction: column; gap: .55rem; }
.cc-toggle { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--text-soft); cursor: pointer; }
.cc-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.cc-btn { padding: .62rem 1.15rem; font-size: .9rem; }
.footer-cookie-link {
    display: inline-block; background: none; border: none; cursor: pointer; font: inherit;
    font-size: .85rem; color: rgba(255,255,255,.72); text-decoration: underline; padding: 0; margin-top: .45rem;
}
.footer-cookie-link:hover { color: #fff; }
@media (max-width: 640px) {
    .cc-inner { flex-direction: column; align-items: stretch; }
    .cc-actions .cc-btn { flex: 1 1 auto; justify-content: center; }
}

/* Honeypot anti-spam field — hidden from humans, off-screen, not focusable. */
.hp-field {
    position: absolute !important; left: -9999px !important; top: auto;
    width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---------- ÖNCESİ / SONRASI SONUÇLAR (drag-compare) ---------- */
.results-section { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); }
html[data-theme="dark"] .results-section { background: linear-gradient(180deg, var(--bg) 0%, #11202a 100%); }
.ba-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem; margin-top: 2.6rem;
}
.ba-card {
    background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ba-compare {
    position: relative; aspect-ratio: 3 / 2;        /* sabit oran → CLS yok */
    overflow: hidden; cursor: ew-resize; touch-action: pan-y;
    user-select: none; background: #0e2330; --p: 50%;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }   /* öncesi'ni sola kırp */
.ba-divider {
    position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px;
    background: #fff; transform: translateX(-50%); pointer-events: none;
    box-shadow: 0 0 12px rgba(0,0,0,.45);
}
.ba-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 44px; height: 44px; border-radius: 50%; background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.35); display: grid; place-items: center;
}
.ba-handle::before, .ba-handle::after { content: ""; width: 0; height: 0; border: 6px solid transparent; }
.ba-handle::before { border-right-color: var(--teal-500); margin-right: 4px; }
.ba-handle::after { border-left-color: var(--teal-500); margin-left: 4px; }
.ba-label {
    position: absolute; bottom: .75rem; padding: .25rem .7rem; border-radius: var(--radius-pill);
    font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: #fff; pointer-events: none; z-index: 2;
}
.ba-label-before { left: .75rem; background: rgba(15,40,38,.62); }
.ba-label-after { right: .75rem; background: rgba(20,184,166,.9); }
/* Full-cover transparent range = click + drag + keyboard, tek kontrol. */
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; }
.ba-range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; }
.ba-range:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.ba-caption {
    padding: .95rem 1.1rem; font-family: var(--font-head); font-weight: 700;
    color: var(--green-700); text-align: center; font-size: 1rem;
}
html[data-theme="dark"] .ba-caption { color: var(--teal-300); }
.cocuk-logo-card {
    position: absolute; bottom: -26px; right: -10px; background: #fff;
    border-radius: 20px; padding: 0.9rem 1.2rem; box-shadow: var(--shadow-lg);
    border: 2px solid #fff; transform: rotate(-3deg); transition: transform 0.4s var(--ease-out);
}
.cocuk-logo-card:hover { transform: rotate(0) scale(1.03); }
.cocuk-logo-card img { height: 70px; width: auto; display: block; }
.cocuk-tag { background: linear-gradient(90deg, #e8643c, #f6b318); color: #fff; }
.cocuk-features { margin: 1.8rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cocuk-features li { display: flex; align-items: center; gap: 0.8rem; }
.cf-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.cf-ic svg { width: 22px; height: 22px; }
.cocuk-features strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--text); }
.cocuk-features span { display: block; font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; margin-top: 0.1rem; }

/* ---------- DOCTORS ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
/* Doctor card: photo + body (name, specialty, bio, social) — fields ready to fill. */
.doctor-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease-out); }
.doctor-card:hover .doctor-photo img { transform: scale(1.06); }
.doctor-photo-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--teal-500); }
.doctor-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.doctor-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--green-700); }
html[data-theme="dark"] .doctor-name { color: var(--teal-300); }
.doctor-role { font-size: 0.85rem; color: var(--teal-500); font-weight: 600; }
.doctor-bio { font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; margin-top: 0.3rem; }
.doctor-social { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.doctor-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--teal-500); transition: background 0.3s, color 0.3s; }
.doctor-social a:hover { background: var(--grad-brand); color: #fff; }
.doctor-social svg { width: 17px; height: 17px; }

/* ---------- GOOGLE RATING BADGE ---------- */
.google-rating {
    max-width: 640px; margin: 0 auto 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.1rem 1.6rem; box-shadow: var(--shadow-md);
}
.grs-left { display: flex; align-items: center; gap: 1rem; }
.google-rating-logo { display: grid; place-items: center; flex-shrink: 0; }
.grs-top { display: flex; align-items: center; gap: 0.6rem; }
.grs-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1; }
.grs-stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; }
.grs-count { font-size: 0.85rem; color: var(--text-muted); }
.google-rating-btn { white-space: nowrap; }
@media (max-width: 560px) {
    .google-rating { flex-direction: column; text-align: center; }
    .grs-left { flex-direction: column; }
    .google-rating-btn { width: 100%; }
}

/* ---------- REVIEWS ---------- */
.reviews-carousel-wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.reviews-track {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.5rem 0.3rem 1.5rem; scroll-behavior: smooth;
    scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 360px; max-width: 360px; min-height: 280px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.6rem; box-shadow: var(--shadow-sm); scroll-snap-align: start;
    display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-head); flex-shrink: 0; }
.review-meta strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.review-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 1px; }
.review-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-500); background: rgba(20,184,166,0.12); padding: 0.25rem 0.7rem; border-radius: 99px; align-self: flex-start; margin-bottom: 0.7rem; }
.review-text {
    color: var(--text-soft); font-size: 0.95rem; line-height: 1.7;
    overflow-y: auto; flex: 1; padding-right: 0.5rem; max-height: 130px;
}
.review-text::-webkit-scrollbar { width: 5px; }
.review-text::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 99px; }
.review-text::-webkit-scrollbar-thumb { background: var(--teal-400); border-radius: 99px; }
.review-google { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.8rem; color: var(--text-muted); }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; background: var(--surface);
    box-shadow: var(--shadow-md); font-size: 1.6rem; color: var(--green-700);
    display: grid; place-items: center; transition: transform 0.3s, background 0.3s, color 0.3s;
    border: 1px solid var(--border);
}
.carousel-btn:hover { background: var(--grad-brand); color: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-align: left; }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; color: var(--teal-500); transition: transform 0.35s var(--ease), background 0.3s; }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--grad-brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: var(--text-soft); }

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--text-soft); font-size: clamp(0.9rem, 2.4vw, 0.97rem); line-height: 1.5; }
.contact-list li > span:first-child { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.contact-list li > span:first-child svg { width: 18px; height: 18px; }
/* Phone numbers must never break across lines (no mid-number wrap) and read clearly. */
.contact-list a[href^="tel:"] { white-space: nowrap; font-weight: 700; color: var(--teal-500); font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .contact-list a[href^="tel:"] { color: var(--teal-300); }
.contact-form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--text-soft); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
    font-size: 0.95rem; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,0.15);
}
.form-group textarea { resize: vertical; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status.success, .form-status.error {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
    animation: statusPop 0.35s var(--ease-out) both;
}
.form-status.success { color: var(--teal-700); background: rgba(15, 118, 110, 0.10); }
.form-status.error { color: #c0392b; background: rgba(192, 57, 43, 0.10); }
@keyframes statusPop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- PAGE HERO (sub pages) ---------- */
.page-hero {
    padding: calc(var(--nav-h) + var(--ann-h) + 3.5rem) 0 3.5rem;
    background: var(--grad-brand-soft); color: #fff; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(45,212,191,0.3), transparent 45%); }
.page-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); position: relative; }
.page-hero-sub { color: rgba(255,255,255,0.85); margin-top: 0.6rem; font-size: 1.1rem; position: relative; }

/* ---------- ABOUT ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text p { color: var(--text-soft); margin-top: 1rem; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.value-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-icon { margin-bottom: 1rem; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--surface-2); }
.value-icon svg { width: 34px; height: 34px; color: var(--teal-500); }
.value-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--green-700); }
html[data-theme="dark"] .value-card h3 { color: var(--teal-300); }
.value-card p { color: var(--text-soft); font-size: 0.95rem; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.why-item {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    font-weight: 500; transition: transform 0.3s, box-shadow 0.3s;
}
.why-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.why-item > span:first-child { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------- TREATMENTS ---------- */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.treatment-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s; position: relative;
}
.treatment-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.treatment-img { height: 190px; overflow: hidden; position: relative; }
.treatment-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.treatment-card:hover .treatment-img img { transform: scale(1.08); }
.treatment-body { padding: 1.5rem; }
.treatment-body h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--green-700); }
html[data-theme="dark"] .treatment-body h3 { color: var(--teal-300); }
.treatment-body p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1rem; }
.treatment-more { font-weight: 600; color: var(--teal-500); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.3s; }
.treatment-card:hover .treatment-more { gap: 0.7rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,0.8); padding-top: 4rem; }
html[data-theme="dark"] .footer { background: #04100f; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.logo-footer .logo-text { color: #fff; }
.footer-about { margin-top: 1rem; font-size: 0.92rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 0.7rem; transition: color 0.3s, transform 0.3s; }
.footer-col p svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; color: var(--teal-300); }
.footer-col a:hover { color: var(--teal-300); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.blog-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-card-img { position: relative; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.blog-card:hover .blog-card-img img { transform: scale(1.07); }
.blog-cat {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: #fff; background: var(--grad-brand); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.blog-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.blog-card-body h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 0.6rem; color: var(--text); }
.blog-card-body p { color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.blog-more { margin-top: 1rem; font-weight: 600; color: var(--teal-500); font-size: 0.9rem; transition: gap 0.3s; }
.blog-card:hover .blog-more { color: var(--green-600); }

/* Article view */
.blog-back {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.8rem;
    font-weight: 600; color: var(--teal-500); padding: 0.5rem 1rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border); transition: background 0.3s, transform 0.3s;
}
.blog-back:hover { background: var(--surface-2); transform: translateX(-4px); }
.blog-article .blog-cat { position: static; display: inline-block; margin-bottom: 1rem; }
.blog-article-title { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.blog-article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
.blog-article-img { height: clamp(220px, 40vw, 400px); border-radius: var(--radius-lg); background-size: cover; background-position: center; margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.blog-article-body { color: var(--text-soft); font-size: 1.05rem; line-height: 1.8; }
.blog-article-body p { margin-bottom: 1.2rem; }
.blog-article-body h3 { font-size: 1.35rem; color: var(--green-700); margin: 2rem 0 0.9rem; }
html[data-theme="dark"] .blog-article-body h3 { color: var(--teal-300); }
.blog-article-body ul { margin: 0 0 1.2rem; padding-left: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.blog-article-body li { display: flex; align-items: flex-start; gap: 0.6rem; }
.blog-article-body li::before { content: '✓'; color: var(--teal-500); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }
.blog-article-body strong { color: var(--text); }
.blog-article-cta {
    margin-top: 2.5rem; padding: 2rem; text-align: center;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.blog-article-cta p { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 1.2rem; }

/* ---------- WHATSAPP WIDGET ---------- */
.wa-widget { position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 800; }
.wa-button {
    width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    transition: transform 0.4s var(--ease-out);
    animation: waPulse 2.5s infinite;
}
.wa-button:hover { transform: scale(1.1) rotate(8deg); }
@keyframes waPulse { 0% { box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); } }
.wa-popup {
    position: absolute; bottom: 74px; right: 0; width: 250px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1rem; opacity: 0; visibility: hidden;
    transform: translateY(14px) scale(0.95); transform-origin: bottom right;
    transition: all 0.35s var(--ease-out);
}
.wa-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-popup-head { margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.wa-popup-head strong { display: block; font-family: var(--font-head); }
.wa-popup-head span { font-size: 0.8rem; color: var(--text-muted); }
.wa-branch { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.92rem; transition: background 0.3s, transform 0.3s; }
.wa-branch:hover { background: var(--surface-2); transform: translateX(3px); }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37,211,102,0.2); }

/* ---------- SCROLL TOP ---------- */
.scroll-top {
    position: fixed; bottom: 1.8rem; left: 1.8rem; z-index: 700;
    width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    font-size: 1.3rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transform: translateY(14px); transition: all 0.4s var(--ease-out);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px) scale(1.08); }

/* ---------- MOBILE STICKY CTA BAR ---------- */
.mobile-cta { display: none; }
.mobile-cta .mcta-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 54px; font-weight: 700; font-size: 1rem; color: #fff;
    transition: filter 0.25s var(--ease), transform 0.15s var(--ease-out);
}
.mobile-cta .mcta-btn svg { flex-shrink: 0; }
.mobile-cta .mcta-call { background: var(--grad-brand); }
.mobile-cta .mcta-wa { background: #25d366; }
.mobile-cta .mcta-btn:active { transform: scale(0.97); filter: brightness(0.94); }

/* ---------- MODALS ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1100; background: rgba(6,48,46,0.6);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(0.96); transition: transform 0.4s var(--ease-out);
    border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem; z-index: 10; width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface-2); font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
    color: var(--text-soft); transition: background 0.3s, transform 0.3s;
}
.modal-close:hover { background: var(--grad-brand); color: #fff; transform: rotate(90deg); }
.modal-head { margin-bottom: 1.6rem; }
.modal-head h3 { font-size: 1.6rem; color: var(--green-700); }
html[data-theme="dark"] .modal-head h3 { color: var(--teal-300); }
.modal-head p { color: var(--text-soft); margin-top: 0.3rem; }

.modal-treatment { max-width: 600px; }
.treatment-modal-img { height: 240px; background-size: cover; background-position: center; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.treatment-modal-body { padding: 2rem; }
.treatment-modal-body h3 { font-size: 1.7rem; margin: 0.4rem 0 0.8rem; color: var(--green-700); }
html[data-theme="dark"] .treatment-modal-body h3 { color: var(--teal-300); }
.treatment-modal-body > p { color: var(--text-soft); margin-bottom: 1.2rem; }
.tm-list { display: flex; flex-direction: column; gap: 0.6rem; }
.tm-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-soft); font-size: 0.95rem; }
.tm-list li::before { content: '✓'; color: var(--teal-500); font-weight: 700; flex-shrink: 0; }

/* Treatment modal — detailed sections */
.tm-callout { background: rgba(20,184,166,0.08); border-left: 3px solid var(--teal-400); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
.tm-callout strong { display: block; color: var(--green-700); margin-bottom: 0.2rem; font-family: var(--font-head); }
html[data-theme="dark"] .tm-callout strong { color: var(--teal-300); }
.tm-section { margin-bottom: 1.6rem; }
.tm-subtitle { font-size: 1.08rem; color: var(--green-700); margin-bottom: 0.9rem; font-family: var(--font-head); }
html[data-theme="dark"] .tm-subtitle { color: var(--teal-300); }
.tm-process { display: flex; flex-direction: column; gap: 0.95rem; counter-reset: step; }
.tm-process li { position: relative; padding-left: 3rem; counter-increment: step; }
.tm-process li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); font-size: 0.95rem; box-shadow: var(--shadow-glow); }
.tm-process li::after { content: ''; position: absolute; left: calc(1rem - 1px); top: 2.2rem; bottom: -0.95rem; width: 2px; background: var(--border-strong); }
.tm-process li:last-child::after { display: none; }
.tm-process li strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 0.97rem; margin-bottom: 0.15rem; }
.tm-process li span { display: block; color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .branches-grid, .treatments-grid, .values-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap, .about-intro, .cocuk-inner { grid-template-columns: 1fr; }
    .cocuk-logo-card { right: 1rem; }
}

/* Collapse the primary nav to a slide-in menu up to 1024px so the 6-item menu
   never crowds/wraps on tablets and small laptops; full inline nav stays ≥1025px. */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .btn-nav-cta { display: none; }
    .logo-img { height: 34px; }
    .nav-links {
        position: fixed; top: calc(var(--nav-h) + var(--ann-h)); right: 0; height: calc(100vh - var(--nav-h) - var(--ann-h));
        width: min(80vw, 320px); flex-direction: column; align-items: stretch; gap: 0.3rem;
        background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform 0.4s var(--ease-out); z-index: 950;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { transform: translateX(0); }
    .navbar.transparent .nav-link { color: var(--text-soft); }
    .nav-link { padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .nav-link.active { background: var(--surface-2); }
    .navbar.transparent .nav-link.active { color: var(--teal-500); }
    .nav-link::after { display: none; }
}

@media (max-width: 768px) {
    .carousel-btn { display: none; }
    .review-card { flex: 0 0 85vw; max-width: 85vw; }
    /* Mobile sticky CTA bar: thumb-zone quick contact */
    .mobile-cta {
        display: grid; grid-template-columns: 1fr 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
        background: var(--surface); box-shadow: 0 -6px 24px rgba(6,48,46,0.14);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    /* Inline phone links: meet 44px touch target on mobile (a11y) */
    .branch-phone a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
    /* Bar replaces the floating widget on mobile; lift scroll-top above it */
    .wa-widget { display: none; }
    .scroll-top { bottom: calc(54px + env(safe-area-inset-bottom, 0px) + 0.9rem); left: 1.2rem; }
    /* Reserve space so fixed bar never hides footer content */
    body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .branches-grid, .treatments-grid, .values-grid, .doctors-grid, .why-grid, .footer-grid, .brands-grid, .cocuk-features, .blog-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-content { padding-top: calc(var(--nav-h) + var(--ann-h) + 1rem); }
    .scroll-down { display: none; }
    .contact-form { padding: 1.5rem; }
    /* .wa-widget hidden on mobile (≤768) — sticky CTA bar handles WhatsApp.
       scroll-top stays lifted above the bar (set in the ≤768 query). */
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
