/* ============================================================
   acente.peganom.com — main stylesheet (rebuilt 2026-04-26)
   Mobile-first, modern, ASCII-only comments
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #0d9488;
  --primary-rgb: 13, 148, 136;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;

  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #16a34a;

  --max-w: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,.15);

  --header-h: 72px;
  --bottom-nav-h: 64px;

  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: .75rem; }
.section-title { margin-bottom: .5rem; }
.section-subtitle { color: var(--muted); font-size: 1.0625rem; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tag {
  display: inline-block; padding: .25rem .65rem; border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--primary-dark);
  font-size: .75rem; font-weight: 600;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-outline { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.0625rem; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; }
.btn-ig { background: linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); color:#fff; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, backdrop-filter .2s;
}
.header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--border);
}
/* Anasayfada header şeffafken yazılar/butonlar beyaz */
body.has-hero-video .header:not(.is-scrolled) .main-nav > a,
body.has-hero-video .header:not(.is-scrolled) .main-nav > a > svg,
body.has-hero-video .header:not(.is-scrolled) .has-mega > a,
body.has-hero-video .header:not(.is-scrolled) .lang-btn,
body.has-hero-video .header:not(.is-scrolled) .mobile-toggle {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
body.has-hero-video .header:not(.is-scrolled) .lang-btn {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.has-hero-video .header:not(.is-scrolled) .lang-btn:hover {
  background: rgba(255,255,255,.25);
}
body.has-hero-video .header:not(.is-scrolled) .mobile-toggle {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.has-hero-video .header:not(.is-scrolled) .main-nav > a:hover,
body.has-hero-video .header:not(.is-scrolled) .has-mega > a:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-overlay img {
  height: 56px; width: auto; max-width: 160px; object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}
@media (min-width: 768px) { .logo-overlay img { height: 64px; max-width: 200px; } }

.main-nav { display: none; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
@media (min-width: 1100px) { .main-nav { display: flex; } }
.main-nav > a, .main-nav .has-mega > a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem;
  font-size: .92rem; font-weight: 600; color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav > a:hover, .main-nav .has-mega > a:hover { color: var(--primary); background: var(--primary-50); }
.main-nav .nav-ico { stroke: currentColor; flex-shrink: 0; }

/* Mega panel */
.has-mega { position: relative; }
/* Görünmez köprü — hover bağlantısını kopartmaz */
.has-mega::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: .6rem;
  pointer-events: none;
}
.has-mega:hover::after, .has-mega:focus-within::after { pointer-events: auto; }
.mega-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  margin-top: .5rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 1.25rem;
  min-width: 640px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.has-mega:hover > .mega-panel,
.has-mega:focus-within > .mega-panel,
.mega-panel:hover {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-panel-mini { grid-template-columns: 1fr; min-width: 240px; padding: .5rem; }
.mega-col { display: flex; flex-direction: column; gap: .35rem; }
.mega-cat-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--gray-900); padding: .35rem 0;
  border-bottom: 1px solid var(--border); margin-bottom: .35rem;
}
.mega-cat-link:hover { color: var(--primary); }
.mega-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.mega-col ul li a, .mega-panel-mini ul li a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .55rem; border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.mega-col ul li a:hover, .mega-panel-mini ul li a:hover { background: var(--primary-50); color: var(--primary-dark); }
.mega-all-link { margin-top: .35rem; font-size: .8rem; color: var(--primary); font-weight: 600; }
.mega-all-link:hover { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; color: var(--gray-700);
  border: 1px solid var(--border); background: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.lang-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.lang-btn .flag, .lang-dropdown a .flag { display: inline-flex; }
.flag-img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.flag-fallback { font-size: 1rem; }
.lang-dropdown {
  position: absolute; top: calc(100% + .35rem); right: 0;
  min-width: 200px; max-height: 360px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .35rem; display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 210;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-dropdown a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .65rem; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--gray-700);
}
.lang-dropdown a:hover { background: var(--primary-50); color: var(--primary-dark); }
.lang-dropdown a.active { background: var(--primary); color: var(--white); }
.lang-dropdown a.active .flag-img { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }

/* CTA */
.btn-contact-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.btn-contact-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.18); border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.btn-cta-icon svg { width: 20px; height: 20px; }
.btn-cta-text { display: inline-flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
.btn-cta-title { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.btn-cta-sub { font-size: .7rem; opacity: .85; white-space: nowrap; }

/* Mobile menu toggle */
.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.4rem; color: var(--gray-800);
  background: var(--gray-100);
}
@media (min-width: 1100px) { .mobile-toggle { display: none; } }

/* Mobile open nav (toggle 'is-open' on .main-nav) */
@media (max-width: 1099px) {
  .main-nav.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 1rem; gap: .25rem;
    overflow-y: auto; z-index: 90; align-items: stretch; justify-content: flex-start;
  }
  .main-nav.is-open > a, .main-nav.is-open .has-mega > a {
    padding: .85rem 1rem; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .main-nav.is-open .mega-panel,
  .main-nav.is-open .mega-panel-mini {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; padding: .25rem 0 .75rem 1rem;
    grid-template-columns: 1fr; min-width: 0;
    background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: .5rem;
  }
  /* Mobil menü açıkken zemin beyaz olduğu için link rengini koyu zorla
     (hero-video transparan header beyaz yazı override'ını ezer) */
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open > a,
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open > a > svg,
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open .has-mega > a,
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open .mega-panel a,
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open .mega-panel-mini a {
    color: var(--gray-900);
    text-shadow: none;
  }
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open > a:hover,
  body.has-hero-video .header:not(.is-scrolled) .main-nav.is-open .has-mega > a:hover {
    background: var(--primary-50);
    color: var(--primary);
  }
}

/* ---------- 6. Hero (slider + video) ---------- */

/* Hero-video is the WHOLE hero section; bg + overlay absolute, content + cats stack */
.hero-video {
  position: relative;
  background: var(--gray-900);
  overflow: hidden;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-video-bg iframe, .hero-video-bg video, .hero-video-bg img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* cover the area without distortion using 16:9 trick */
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  min-width: 100%; min-height: 100%;
  border: 0;
  opacity: .55;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  transform: scale(1.04);
}
.hero-slide-bg.active { opacity: 1; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}

.hero-video-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 1rem 1.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  color: var(--white); text-align: left;
}
@media (min-width: 980px) {
  .hero-video-content {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: calc(var(--header-h) + 2.5rem) 1.5rem 3rem;
    gap: 3rem;
  }
}
/* Mobile: image stacks above content (responsive, no crop) */
@media (max-width: 979px) {
  .hero-video {
    min-height: 70vh;
  }
  .hero-video-bg {
    position: absolute;
    inset: 0;
  }
  .hero-slide-bg {
    background-size: cover;
    background-position: center;
  }
  .hero-video-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.85) 100%);
  }
  .hero-video-content {
    padding: calc(var(--header-h) + 1.25rem) 1rem 2rem;
  }
}
.hero-left { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.hero-right { display: flex; min-width: 0; }
.hero-right > .wa-form { width: 100%; }

.hero-slides {
  position: relative;
  display: grid;
  grid-template-areas: "slide";
}
.hero-slide {
  grid-area: slide;
  display: flex; flex-direction: column;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  pointer-events: none;
}
.hero-slide.active, .hero-slide.is-on {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.hero-slide-eyebrow {
  display: inline-block; align-self: flex-start;
  padding: .35rem .8rem;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-slide-title {
  color: var(--white);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin: 0 0 .75rem; max-width: 560px;
}
.hero-slide-sub {
  color: rgba(255,255,255,.92);
  font-size: clamp(.95rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  max-width: 540px;
  margin: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .25rem; }
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-hero:hover { transform: translateY(-2px); }
.btn-hero-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(13,148,136,.35); }
.btn-hero-primary:hover { background: var(--primary-dark); }
.btn-hero-outline { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-hero-outline:hover { background: rgba(255,255,255,.2); border-color: var(--white); }

.hero-dots {
  display: flex; gap: .5rem;
  margin-top: .5rem;
}
.hero-dot {
  width: 28px; height: 4px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.35);
  transition: background .25s, width .25s;
  cursor: pointer;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.active, .hero-dot.is-on { background: var(--white); width: 44px; }

/* WA-form on dark hero gets a subtle frame */
.hero-right .wa-form {
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

/* Hero category cards — sits below .hero-video-content, full-width grid of clickable cards */
.hero-cats {
  position: relative; z-index: 2;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.hero-cats-inner {
  display: grid; gap: .6rem; padding: 1rem;
  grid-template-columns: repeat(3, 1fr);
  width: 100%; max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 640px) { .hero-cats-inner { gap: .85rem; padding: 1.25rem 1.5rem; } }
@media (min-width: 980px)  { .hero-cats-inner { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
.hero-cat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  padding: 1rem .5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white); color: var(--gray-700);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2;
  text-decoration: none;
  min-height: 96px;
}
.hero-cat:hover {
  background: var(--primary-50); color: var(--primary-dark);
  border-color: var(--primary-200, var(--primary-100));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-cat-ico {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-50); color: var(--primary);
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}
.hero-cat:hover .hero-cat-ico { background: var(--primary); color: var(--white); }
.hero-cat-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.hero-cat-lbl { line-height: 1.2; font-size: .78rem; }
@media (min-width: 640px) {
  .hero-cat { padding: 1.15rem .65rem; min-height: 110px; }
  .hero-cat-ico { width: 48px; height: 48px; }
  .hero-cat-ico svg { width: 26px; height: 26px; }
  .hero-cat-lbl { font-size: .85rem; }
}

/* Generic page hero */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 3rem 0; text-align: center; }
.page-hero h1 { color: var(--white); }

/* ---------- 7. Footer ---------- */
.footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 3rem 0 1.5rem; margin-top: 4rem;
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: var(--gray-300); transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-row {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}
.footer-row > .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 1rem .9rem;
}
.footer-row .footer-col-brand { align-items: center; text-align: center; }
.footer-row .footer-col-brand .footer-tagline,
.footer-row .footer-col-brand .footer-cert-caption { text-align: center; margin-left: auto; margin-right: auto; }
.footer-row .footer-list { width: 100%; }
.footer-row .footer-contact-list li { justify-content: flex-start; }
@media (min-width: 720px) {
  .footer-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 1024px) {
  .footer-row {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}
.footer-col h4 { color: var(--white); font-size: .9rem; margin: 0 0 .65rem; font-weight: 700; letter-spacing: .02em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-list li { font-size: .82rem; line-height: 1.35; }
.footer-list a { color: rgba(255,255,255,.78); transition: color .2s ease; text-decoration: none; }
.footer-list a:hover { color: #fff; }
.footer-contact-list { margin-top: .85rem; gap: .55rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .45rem; color: rgba(255,255,255,.78); font-size: .8rem; line-height: 1.4; word-break: break-word; }
.footer-contact-list .fci { flex-shrink: 0; line-height: 1.3; }

.footer-col-brand { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.footer-brand-logo { display: inline-block; }
.footer-brand-logo img { max-width: 140px; height: auto; display: block; }
.footer-cert-row {
  display: flex; flex-direction: row; align-items: center; gap: .75rem;
  flex-wrap: wrap;
}
.footer-cert-item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .4rem; background: #fff; border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: zoom-in;
}
.footer-cert-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.footer-cert-item img { display: block; max-width: 110px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.footer-cert-item-health img { max-height: 70px; max-width: 90px; }
.footer-cert-thumb {
  display: inline-block; padding: .35rem; background: #fff; border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.footer-cert-thumb:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.footer-cert-thumb img { display: block; max-width: 110px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.footer-cert-caption {
  font-size: .72rem;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
  max-width: 200px;
  margin-top: -.15rem;
}
.footer-cert-caption .footer-cert-no {
  display: inline-block;
  margin-top: .15rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .3px;
}
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.65); margin: .25rem 0 0; line-height: 1.45; max-width: 260px; }

.footer-cert-note {
  margin-top: 2rem; padding: .65rem 1rem;
  font-size: .72rem; color: rgba(255,255,255,.55); text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  letter-spacing: .02em;
}

.footer-bottom {
  margin-top: .5rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-800);
  font-size: .8rem; color: var(--gray-400);
  text-align: center;
}
.footer-bottom-copy { display: block; }

.footer-col-legal .footer-legal-link { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s ease; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.footer-col-legal .footer-legal-link:hover { color: #fff; }
.footer-col-legal .footer-legal-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: #2563eb; color: #fff;
  font-size: .62rem; font-weight: 700; flex-shrink: 0;
}

.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .25rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: var(--gray-800); color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }

/* Cert popup modal */
.cert-popup { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; padding: 1rem; }
.cert-popup.is-open { display: flex; }
.cert-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); cursor: pointer; }
.cert-popup-inner { position: relative; max-width: 92vw; max-height: 92vh; }
.cert-popup-inner img { display: block; max-width: 92vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); background: #fff; }
.cert-popup-close {
  position: absolute; top: -42px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: none;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.cert-popup-close:hover { background: rgba(255,255,255,.3); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; }
.footer-bottom-credit { font-size: .82rem; color: rgba(255,255,255,.7); }
.footer-bottom-credit a { color: rgba(255,255,255,.92); text-decoration: none; font-weight: 600; }
.footer-bottom-credit a:hover { text-decoration: underline; color: #fff; }

/* ---------- 8. Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select,
.lang-input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus, .lang-input:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- 9. Generic cards & home sections ---------- */
.home-treatments, .home-doctors-v2, .home-partners-v2, .home-stats, .home-blog,
.home-gallery, .home-testimonials, .home-videos, .home-instagram, .home-hotels, .home-ba, .home-brands {
  padding: 3.5rem 0;
}

/* Implant Brands - Marquee */
.home-brands { background: #fafaf7; overflow: hidden; }
.home-brands .section-head { margin-bottom: 2rem; }
.brands-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.brands-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: brandsScroll 35s linear infinite;
  align-items: center;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  min-width: 180px;
  padding: 0 1.5rem;
  background: #fff;
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 10px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-color: var(--primary, #c9967b);
}
.brand-item img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter .25s ease;
}
.brand-item:hover img { filter: grayscale(0%); }
.brand-text { text-align: center; line-height: 1.2; }
.brand-text .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900, #111);
  letter-spacing: .5px;
}
.brand-text .brand-country {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary, #c9967b);
  margin-top: .25rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* Stats */
.home-stats { background: var(--primary); color: var(--white); }
.home-stats-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr); text-align: center;
}
@media (min-width: 768px) { .home-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.home-stat-val { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1; margin-bottom: .35rem; color: var(--white); }
.home-stat-lbl { font-size: .9rem; opacity: .9; }

/* Treatments cards */
.home-treatments-cta { text-align: center; margin-top: 2rem; }
.tx-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tx-grid { grid-template-columns: repeat(3, 1fr); } }
.tx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.tx-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--gray-100); overflow: hidden; }
.tx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tx-card:hover .tx-card-media img { transform: scale(1.05); }
.tx-card-badge { position: absolute; top: .75rem; left: .75rem; background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius-full); }
.tx-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tx-card-title { font-size: 1.125rem; margin-bottom: .35rem; }
.tx-card-sub { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; flex: 1; }
.tx-card-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.tx-card-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; color: var(--primary); font-size: .9rem;
}
.tx-card-cta:hover { gap: .55rem; }

/* Photo treatment grid (home) — 2 cols mobile, 3 cols tablet+ (3×2 with 6 cats) */
.home-tx-photo-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .home-tx-photo-grid { grid-template-columns: repeat(3, 1fr); } }
.home-tx-photo-card {
  position: relative; aspect-ratio: 1 / 1.15;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: flex-end;
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-tx-photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-tx-photo-card img,
.home-tx-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-tx-photo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); font-size: 2rem; }
.home-tx-photo-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
}
.home-tx-photo-ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: rgba(255,255,255,.18); border-radius: var(--radius-sm); align-self: flex-start; }
.home-tx-photo-ico svg { width: 22px; height: 22px; }
.home-tx-photo-lbl { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.home-tx-photo-arrow { position: absolute; right: .85rem; bottom: .85rem; width: 32px; height: 32px; border-radius: var(--radius-full); background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; z-index: 3; }
@media (max-width: 767px) { .home-tx-mobile-8 > .home-tx-photo-card:nth-child(n+9) { display: none; } }

/* Doctors — 3 columns x 2 rows */
.dr-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dr-grid { gap: 1.25rem; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dr-grid { grid-template-columns: repeat(3, 1fr); } }
.dr-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dr-photo-wrap {
  position: relative; width: 100%; height: 260px; background: var(--gray-100); overflow: hidden;
}
.dr-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.dr-photo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); color: var(--primary); font-size: 2rem; font-weight: 700; width: 100%; height: 100%; }
@media (max-width: 640px) { .dr-photo-wrap { height: 220px; } }
.dr-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.dr-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: .15rem; line-height: 1.25; }
.dr-spec { color: var(--primary); font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.dr-desc { display: block; color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.45; }

/* Hospital/partner cards (h-) */
.hp-grid, .home-partner-cards {
  display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .hp-grid, .home-partner-cards { gap: 1.25rem; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hp-grid, .home-partner-cards { grid-template-columns: repeat(3, 1fr); } }
.hp-card, .home-partner-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hp-card:hover, .home-partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hp-media, .home-partner-card-logo { aspect-ratio: 4 / 3; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.hp-media img, .home-partner-card-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hp-body, .home-partner-card-link { padding: .65rem .7rem .8rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.hp-icon, .home-partner-card-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.hp-name, .home-partner-card-name { font-size: .9rem; font-weight: 700; margin: 0; line-height: 1.25; }
.hp-city, .home-partner-card-city { font-size: .72rem; color: var(--primary); font-weight: 600; }
.hp-desc, .home-partner-card-desc { display: none; color: var(--muted); font-size: .82rem; margin: 0; }
.hp-link { color: var(--primary); font-weight: 600; font-size: .8rem; margin-top: auto; }
@media (min-width: 640px) {
  .hp-body, .home-partner-card-link { padding: 1.1rem 1.2rem 1.25rem; gap: .35rem; }
  .hp-icon, .home-partner-card-icon { width: 44px; height: 44px; }
  .hp-name, .home-partner-card-name { font-size: 1.0625rem; }
  .hp-city, .home-partner-card-city { font-size: .85rem; }
  .hp-desc, .home-partner-card-desc { display: block; font-size: .9rem; }
  .hp-link { font-size: .9rem; }
}

.hotel-photo, .media-thumb, .video-thumb {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--gray-100);
}

/* Testimonials */
.ts-grid, .ts-grid-compact {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ts-grid { grid-template-columns: repeat(2, 1fr); } .ts-grid-compact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ts-grid { grid-template-columns: repeat(3, 1fr); } .ts-grid-compact { grid-template-columns: repeat(4, 1fr); } }
.ts-card, .testimonial {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem;
  position: relative;
}
.ts-card-compact { padding: 1.25rem; }
.testimonial-stars, .ts-stars { color: #f59e0b; letter-spacing: .1em; font-size: .95rem; }
.testimonial-text { color: var(--gray-700); font-size: .95rem; line-height: 1.6; margin: 0; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial-avatar-fallback { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-country { color: var(--muted); font-size: .8rem; }

.ts-c-media { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: .85rem; background: var(--gray-100); }
.ts-c-media img { width: 100%; height: 100%; object-fit: cover; }
.ts-c-media-icon, .ts-c-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); color: var(--white); }
.ts-c-svg { width: 48px; height: 48px; }
.ts-c-quote { color: var(--gray-700); font-size: .92rem; margin: 0 0 .75rem; }
.ts-c-foot { display: flex; align-items: center; gap: .5rem; }
.ts-c-name { font-weight: 700; font-size: .85rem; }
.ts-c-country, .ts-c-tx { color: var(--muted); font-size: .75rem; }
.ts-c-video-btn { background: var(--primary); color: var(--white); padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; }

/* Blog */
.bl-toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.bl-search { flex: 1; min-width: 200px; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.bl-count { font-size: .85rem; color: var(--muted); }
.bl-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }
.bl-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bl-card-media { aspect-ratio: 16 / 10; background: var(--gray-100); }
.bl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.bl-meta { display: flex; gap: .75rem; align-items: center; font-size: .78rem; color: var(--muted); }
.bl-dot { width: 4px; height: 4px; border-radius: var(--radius-full); background: var(--gray-400); }
.bl-readmore { color: var(--primary); font-weight: 600; font-size: .9rem; margin-top: auto; }
.bl-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* Blog post */
.bp-hero { position: relative; min-height: 200px; color: var(--white); background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.bp-hero-inner { position: relative; z-index: 2; padding: 3rem 0 2rem; }
.bp-title { color: var(--white); }
.bp-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; opacity: .9; }
.bp-meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.bp-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); margin: 1.5rem 0; }
.bp-layout {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 960px) { .bp-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.bp-article { font-size: 1.0625rem; line-height: 1.75; color: var(--gray-800); }
.bp-article h2, .bp-article h3 { margin-top: 2rem; }
.bp-article img { border-radius: var(--radius); margin: 1rem 0; }
.bp-lead { font-size: 1.125rem; color: var(--gray-700); }
.bp-section { margin-top: 1.5rem; }
.bp-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.bp-cta-card { background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--radius-lg); padding: 1.25rem; }
.bp-cta-icon { width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.bp-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.bp-share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.bp-share-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.bp-share-btn { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--gray-100); display: inline-flex; align-items: center; justify-content: center; color: var(--gray-700); transition: background var(--transition), color var(--transition); }
.bp-share-btn:hover { background: var(--primary); color: var(--white); }
.bp-body { font-size: 1.0625rem; line-height: 1.75; }

/* Treatment category page */
.cat-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); padding: 3rem 0;
}
.cat-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cat-hero-crumb { font-size: .85rem; opacity: .9; }
.cat-hero-crumb a { color: var(--white); text-decoration: underline; }
.cat-hero-ico { width: 64px; height: 64px; background: rgba(255,255,255,.2); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.cat-hero-ico svg { width: 36px; height: 36px; stroke: var(--white); }
.cat-hero h1 { color: var(--white); margin: 0; }
.cat-hero-count { background: rgba(255,255,255,.2); padding: .35rem .75rem; border-radius: var(--radius-full); font-size: .85rem; font-weight: 600; }

.cat-subnav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 50; }
.cat-subnav-inner {
  display: flex; gap: .5rem; overflow-x: auto;
  padding: .85rem 0; scrollbar-width: none;
}
.cat-subnav-inner::-webkit-scrollbar { display: none; }
.cat-subnav-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  flex-shrink: 0; padding: .55rem .85rem;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: var(--radius-full); font-size: .85rem; font-weight: 600;
  white-space: nowrap; transition: background var(--transition), color var(--transition);
}
.cat-subnav-chip:hover { background: var(--primary-50); color: var(--primary-dark); }
.cat-subnav-badge { background: var(--gray-200); padding: .15rem .45rem; border-radius: var(--radius-full); font-size: .7rem; }

.cat-sub { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.cat-sub:last-child { border-bottom: 0; }
.cat-sub-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.cat-sub-head-ico { width: 44px; height: 44px; background: var(--primary-50); color: var(--primary); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }

.tx-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem; background: var(--gray-100);
  border-radius: var(--radius-full); font-size: .8rem; color: var(--gray-700);
}

.tx-category-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.tx-category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tx-category-body { padding: 1.25rem; }

/* Treatment detail */
.tx-detail-hero { background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.tx-detail-main { padding: 2.5rem 0; }
.tx-info-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.tx-faq { display: flex; flex-direction: column; gap: .75rem; }
.tx-faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.tx-faq-item summary { cursor: pointer; font-weight: 600; }

/* Gallery */
.gl-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gl-grid { grid-template-columns: repeat(4, 1fr); } }
.gl-item {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--gray-100);
}
.gl-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; }
.gl-item:hover img { transform: scale(1.05); }
.gl-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background var(--transition); color: var(--white); }
.gl-item:hover .gl-overlay { background: rgba(0,0,0,.4); }
.gl-zoom { font-size: 1.5rem; opacity: 0; transition: opacity var(--transition); }
.gl-item:hover .gl-zoom { opacity: 1; }
.gl-play-badge, .ba-play, .play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: rgba(0,0,0,.6); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

/* Lightbox */
.gl-lb {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.92);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.gl-lb.is-on { opacity: 1; visibility: visible; }
.gl-lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; }
.gl-lb-stage img, .gl-lb-stage video { max-width: 100%; max-height: 100%; border-radius: var(--radius); }
.gl-lb-close, .gl-lb-prev, .gl-lb-next {
  position: absolute; width: 48px; height: 48px;
  border-radius: var(--radius-full); background: rgba(255,255,255,.15); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: background var(--transition);
}
.gl-lb-close:hover, .gl-lb-prev:hover, .gl-lb-next:hover { background: rgba(255,255,255,.3); }
.gl-lb-close { top: 1rem; right: 1rem; }
.gl-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gl-lb-prev { left: 1rem; }
.gl-lb-next { right: 1rem; }
.gl-lb-foot { padding: 1rem; color: var(--white); display: flex; justify-content: space-between; align-items: center; }
.gl-lb-cap { font-size: .9rem; opacity: .9; }
.gl-lb-counter { font-size: .85rem; opacity: .7; }

/* Before/after grid */
.home-ba .ba-video, .ba-video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; position: relative; }
.ba-video video { width: 100%; height: 100%; object-fit: cover; }

/* Home gallery / videos / instagram */
.home-gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .home-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.home-gallery-item {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--gray-100);
}
/* Instagram: 3 columns x 3 rows, 9:16 cover */
.home-ig-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .home-ig-grid { grid-template-columns: repeat(3, 1fr); } }
.home-ig-item {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--gray-100);
}
.home-videos-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .home-videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .home-videos-grid { grid-template-columns: repeat(3, 1fr); } }
.home-video-card {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); display: block;
  border: 0; padding: 0; margin: 0; cursor: pointer; width: 100%; font: inherit; color: inherit; text-align: left;
}

/* Video popup modal */
.video-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.video-modal.open { display: block; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); cursor: pointer; }
.video-modal-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(96vw, 1100px); max-height: 92vh;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.video-modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(255,255,255,.2); }
.video-modal-body { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.video-modal-body iframe,
.video-modal-body video { width: 100%; height: 100%; display: block; border: 0; }
.home-ig-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--gray-100);
}
.home-gallery-item img, .home-video-card img, .home-ig-item img,
.home-video-placeholder, .home-ig-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; font-size: 1.75rem; }
.home-video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: .65rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); color: #fff; font-size: .82rem; font-weight: 600; }
.home-ig-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); color: var(--white); transition: background var(--transition); }
.home-ig-item:hover .home-ig-overlay { background: rgba(0,0,0,.45); }
.home-ig-heart { font-size: 1.5rem; opacity: 0; transition: opacity var(--transition); }
.home-ig-item:hover .home-ig-heart { opacity: 1; }
.home-ig-video-badge { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.6); color: #fff; padding: .15rem .4rem; border-radius: var(--radius-sm); font-size: .7rem; }
.home-ig-placeholder { background: linear-gradient(135deg, var(--gray-200), var(--gray-300)); }
.ig-username-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; color: var(--primary); }

/* Home blog */
.home-blog-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 960px) { .home-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.home-blog-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-blog-img { aspect-ratio: 16 / 10; background: var(--gray-100); overflow: hidden; }
.home-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-blog-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.home-blog-date { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.home-blog-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--text); }
.home-blog-excerpt { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-blog-cta { color: var(--primary); font-weight: 600; font-size: .85rem; margin-top: auto; padding-top: .25rem; }
@media (min-width: 640px) {
  .home-blog-title { font-size: 1.0625rem; }
}

/* About v4 */
.ab4-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); padding: 4rem 0; }
.ab4-hero-inner { max-width: 760px; }
.ab4-eyebrow, .ab4-hero-sub { display: inline-block; padding: .35rem .85rem; background: rgba(255,255,255,.2); border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.ab4-hero-title { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.ab4-crumb { font-size: .85rem; opacity: .9; margin-bottom: 1rem; }
.ab4-section { padding: 3.5rem 0; }
.ab4-bg { background: var(--gray-50); }
.ab4-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.ab4-head-sub { color: var(--muted); font-size: 1.0625rem; }
.ab4-stats-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .ab4-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.ab4-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.ab4-stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .35rem; }
.ab4-stat-lbl { font-size: .85rem; color: var(--muted); }

.ab4-grid-4 {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ab4-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ab4-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.ab4-card, .ab4-card-sm {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.ab4-num, .ab4-num-filled {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.ab4-num { background: var(--primary-50); color: var(--primary); border: 2px solid var(--primary); }
.ab4-num-filled { background: var(--primary); color: var(--white); }

.ab4-mv-grid, .ab4-story-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) { .ab4-mv-grid, .ab4-story-grid { grid-template-columns: repeat(2, 1fr); } }
.ab4-story-media img { border-radius: var(--radius-lg); }
.ab4-checklist { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .5rem; }
.ab4-check { display: flex; align-items: center; gap: .5rem; }
.ab4-check::before { content: "✓"; color: var(--primary); font-weight: 800; }
.ab4-tag { display: inline-block; padding: .25rem .65rem; background: var(--primary-50); color: var(--primary-dark); border-radius: var(--radius-full); font-size: .75rem; font-weight: 600; margin-bottom: .5rem; }
.ab4-cta { background: var(--primary); color: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; }
.ab4-cta-eyebrow { display: inline-block; padding: .25rem .7rem; background: rgba(255,255,255,.2); border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.ab4-cta h2 { color: var(--white); }
.ab4-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.ab4-cta-wrap { padding: 3rem 0; }

/* Contact / WhatsApp form */
.wa-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  overflow: hidden;
}
.wa-form-head {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  color: var(--white);
  padding: 1.25rem 1.5rem 1.4rem;
  text-align: left;
  margin: 0;
}
.wa-form-head h2, .wa-form-head h3 {
  color: var(--white);
  margin: 0 0 .25rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex; align-items: center; gap: .55rem;
}
.wa-form-head h3 svg, .wa-form-head h2 svg {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 5px;
  flex-shrink: 0;
  margin: 0 !important;
  vertical-align: middle !important;
}
.wa-form-head p { color: rgba(255,255,255,.9); margin: 0; font-size: .85rem; line-height: 1.35; }
.wa-form-body { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem 1.5rem 1.5rem; }
.wa-form-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wa-form-grid { grid-template-columns: repeat(2, 1fr); } }
.wa-form-field { display: flex; flex-direction: column; gap: .3rem; }
.wa-form-field label {
  font-size: .72rem; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .05em;
}
.wa-form-field input, .wa-form-field textarea, .wa-form-field select {
  padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: 8px; background: #f8fafc; font-size: .95rem;
  color: #111827;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.wa-form-field select option { color: #111827; background: #fff; }
.wa-form-field input:hover, .wa-form-field textarea:hover, .wa-form-field select:hover { background: var(--white); }
.wa-form-field input:focus, .wa-form-field textarea:focus, .wa-form-field select:focus {
  outline: 0; border-color: var(--wa-green); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,211,102,.18);
}
.wa-form-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .25rem; }
.wa-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.25rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.wa-btn-primary { background: var(--wa-green); color: var(--white); box-shadow: 0 6px 14px rgba(37,211,102,.35); }
.wa-btn-primary:hover { background: var(--wa-green-dark); transform: translateY(-1px); }
.wa-btn-outline { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--border); font-weight: 600; }
.wa-btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }
.wa-form-trust { text-align: center; font-size: .75rem; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; padding-top: .25rem; }
.wa-form-trust span { display: inline-flex; align-items: center; gap: .25rem; }

/* Contact agents */
.contact-agents-section { background: linear-gradient(180deg, var(--gray-50), var(--white)); padding: 3rem 0; }
.contact-agents-head { text-align: center; margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.contact-agents-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; background: var(--wa-green); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; letter-spacing: .08em; box-shadow: 0 2px 8px rgba(37,211,102,.3); }
.contact-agents-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.contact-agents-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin: 0; }

.contact-agents-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .contact-agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-agents-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-agent-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: .25rem 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.contact-agent-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--wa-green), var(--wa-green-dark));
}
.contact-agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--wa-green);
  box-shadow: 0 8px 24px rgba(37,211,102,.18);
}

.contact-agent-card .agent-avatar {
  position: relative;
  grid-row: 1 / span 2;
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: visible;
  background: var(--gray-100);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-agent-card .agent-avatar img,
.contact-agent-card .agent-avatar-initials {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.25rem;
}
.contact-agent-card .agent-wa-badge {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  border: 2px solid var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

.contact-agent-card .agent-info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.contact-agent-card .agent-name {
  font-weight: 700; font-size: 1rem; color: var(--gray-900);
  line-height: 1.25;
  word-break: break-word;
}
.contact-agent-card .agent-role {
  color: var(--gray-500); font-size: .8rem; line-height: 1.3;
}
.contact-agent-card .agent-langs {
  display: flex; flex-wrap: wrap; gap: .25rem;
  margin-top: .35rem;
}
.contact-agent-card .agent-lang-badge {
  display: inline-flex; align-items: center;
  gap: .3rem;
  padding: .12rem .42rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.contact-agent-card .agent-lang-badge .flag-img {
  width: 16px; height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

.contact-agent-card .agent-cta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .6rem 1rem;
  margin-top: .85rem;
  background: var(--wa-green);
  color: #fff;
  border-radius: 10px;
  font-weight: 600; font-size: .88rem;
  transition: background .2s ease;
}
.contact-agent-card .agent-cta:hover { background: var(--wa-green-dark); }
.contact-agent-card .agent-cta svg { flex-shrink: 0; }

/* ---------- 10. WhatsApp floating + agents sheet ---------- */
.whatsapp-float {
  position: fixed; right: 1rem; bottom: calc(1rem + var(--bottom-nav-h, 0px));
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--wa-green); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  z-index: 80;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
@media (min-width: 768px) { .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 64px; height: 64px; } }

.wa-agents-mini {
  position: fixed; right: 1rem; bottom: calc(1rem + var(--bottom-nav-h, 0px));
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--wa-green); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  z-index: 80;
  transition: transform var(--transition);
}
.wa-agents-mini:hover { transform: scale(1.08); }
@media (min-width: 768px) { .wa-agents-mini { bottom: 1.25rem; right: 1.25rem; width: 64px; height: 64px; } }

.wa-agents-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9000; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.wa-agents-backdrop.is-on { opacity: 1; visibility: visible; }

.wa-agents-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 9001;
  max-height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.18);
}
.wa-agents-sheet.is-on { transform: translateY(0); }
@media (min-width: 768px) {
  .wa-agents-sheet {
    left: auto; right: 1.25rem; bottom: 1.25rem;
    width: 480px; max-width: calc(100vw - 2.5rem);
    max-height: min(640px, calc(100vh - 2.5rem));
    border-radius: var(--radius-xl);
    transform: translateY(20px) scale(.96);
    opacity: 0; visibility: hidden;
    transition: transform .28s, opacity .28s, visibility .28s;
  }
  .wa-agents-sheet.is-on { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  /* Single agent: keep panel narrow */
  .wa-agents-sheet:has(.wa-agents-list.wa-count-1) { width: 360px; }
}

.wa-agents-header {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  color: var(--white);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; align-items: flex-start; gap: .65rem;
  position: sticky; top: 0; z-index: 2;
}
.wa-agents-header-inner { display: flex; gap: .7rem; align-items: center; flex: 1 1 auto; min-width: 0; }
.wa-agents-header-inner > div:last-child { flex: 1 1 auto; min-width: 0; }
.wa-agents-logo {
  position: relative; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
}
.wa-agents-logo-badge {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px; border-radius: var(--radius-full);
  background: var(--white); color: var(--wa-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--wa-green);
}
.wa-agents-header h3 { color: var(--white); margin: 0 0 .15rem; font-size: 1rem; line-height: 1.25; word-break: normal; overflow-wrap: break-word; }
.wa-agents-header p { color: rgba(255,255,255,.85); margin: 0; font-size: .78rem; line-height: 1.3; word-break: normal; overflow-wrap: break-word; }
.wa-agents-close {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.18); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.wa-agents-close:hover { background: rgba(255,255,255,.3); }

.wa-agents-counter {
  background: var(--gray-50); padding: .65rem 1.25rem;
  font-size: .82rem; color: var(--gray-700); font-weight: 600;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .35rem;
}
.wa-agents-counter::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--wa-green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Grid: 1 agent => 1 col; 2+ agents => 2 cols (responsive, never breaks) */
.wa-agents-list {
  padding: .85rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
/* Custom scrollbar (subtle) */
.wa-agents-list::-webkit-scrollbar { width: 6px; }
.wa-agents-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
.wa-agents-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.32); }
.wa-agents-list.wa-count-1 { grid-template-columns: 1fr; padding: 1rem; }
.wa-agents-list.wa-count-2,
.wa-agents-list.wa-count-4,
.wa-agents-list.wa-count-5plus { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Card: horizontal — avatar left, body (name + flags) right, WA button far right */
.wa-agent {
  position: relative;
  display: flex; flex-direction: row; align-items: center; gap: .7rem;
  padding: .7rem .8rem;
  border: 1.5px solid var(--wa-green);
  border-radius: var(--radius);
  background: var(--white); color: inherit;
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.wa-agent:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,.15); }
.wa-agent-preferred { background: linear-gradient(180deg, rgba(37,211,102,.06), transparent); }

.wa-agent-avatar {
  position: relative; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: var(--radius-full);
  background: var(--gray-100); color: var(--gray-500);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.wa-avatar-female { color: #ec4899; background: #fce7f3; }
.wa-avatar-male { color: #2563eb; background: #dbeafe; }
.wa-agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-avatar-icon { width: 36px; height: 36px; }
.wa-agent-online {
  position: absolute; right: 1px; bottom: 1px;
  width: 12px; height: 12px; border-radius: var(--radius-full);
  background: var(--wa-green); border: 2px solid var(--white);
}
.wa-agent-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
}
.wa-agent-name {
  font-weight: 700; font-size: .88rem; color: var(--gray-900);
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
}
.wa-agent-role { display: none; }
.wa-agent-langs { display: flex; gap: .25rem; flex-wrap: wrap; }
.wa-agent-langs .flag-img {
  width: 20px; height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.wa-agent-cta {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--radius-full); background: var(--wa-green); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(37,211,102,.35);
}
.wa-agent-cta svg { width: 14px !important; height: 14px !important; }

/* ---------- 11. Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  z-index: 70;
  padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .25rem .15rem; color: var(--gray-500);
  font-size: .68rem; font-weight: 600;
  transition: color var(--transition);
  min-width: 0;
}
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--primary); }
.bottom-nav-ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.bottom-nav-ico svg { width: 22px; height: 22px; }
.bottom-nav-lbl { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 1; }

/* When bottom-nav is present, leave space at bottom of page */
@media (max-width: 1023px) {
  body:has(.bottom-nav) { padding-bottom: var(--bottom-nav-h); }
  body:has(.bottom-nav) { --bottom-nav-h: 64px; }
  body { --bottom-nav-h: 0px; }
  body:has(.bottom-nav) { --bottom-nav-h: 64px; }
  .footer { margin-bottom: 0; }
}

/* ---------- 12. RTL support ---------- */
.rtl { direction: rtl; }
.rtl .lang-dropdown { right: auto; left: 0; }
.rtl .gl-lb-prev { left: auto; right: 1rem; }
.rtl .gl-lb-next { right: auto; left: 1rem; }
.rtl .home-tx-photo-arrow { right: auto; left: .85rem; transform: scaleX(-1); }
.rtl .whatsapp-float, .rtl .wa-agents-mini { right: auto; left: 1rem; }
@media (min-width: 768px) {
  .rtl .whatsapp-float, .rtl .wa-agents-mini { left: 1.25rem; right: auto; }
  .rtl .wa-agents-sheet { right: auto; left: 1.25rem; }
}

/* ---------- 13. Utility / safety ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary); color: var(--white); }

img[loading="lazy"] { background: var(--gray-100); }

/* Mobile-specific tightening for header CTA */
@media (max-width: 720px) {
  .header-inner { gap: .55rem; padding-left: .75rem; padding-right: .75rem; }
  .logo-overlay img { height: 70px; max-width: 180px; }
  .header-actions { gap: .35rem; }
  .lang-btn { padding: .4rem .55rem; font-size: .8rem; gap: .35rem; }
  .lang-btn .flag-img, .lang-dropdown a .flag-img { width: 22px; height: 16px; }
  .btn-cta-sub { display: none; }
  .btn-cta-title { font-size: .72rem; }
  .btn-contact-cta { padding: .4rem .55rem; gap: .4rem; border-radius: 10px; }
  .btn-cta-icon { width: 30px; height: 30px; }
  .btn-cta-icon svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .logo-overlay img { height: 62px; max-width: 160px; }
}
@media (max-width: 360px) {
  .btn-cta-title { display: none; }
  .btn-contact-cta { padding: .4rem .5rem; gap: 0; }
  .logo-overlay img { height: 56px; max-width: 140px; }
}

/* Print */
@media print {
  .header, .footer, .bottom-nav, .whatsapp-float, .wa-agents-mini, .wa-agents-sheet, .wa-agents-backdrop { display: none !important; }
}

/* ===== Before/After & Galeri Sekmeleri ===== */
.ba-tabs { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:0 auto 2rem; }
.ba-tab { display:inline-flex; align-items:center; gap:.5rem; padding:.7rem 1.25rem; border:1.5px solid var(--gray-300); background:var(--white); color:var(--gray-700); font-weight:600; font-size:.95rem; border-radius:999px; cursor:pointer; transition:all var(--transition); }
.ba-tab:hover { border-color:var(--primary); color:var(--primary); }
.ba-tab.is-active { background:var(--primary); border-color:var(--primary); color:var(--white); box-shadow:0 4px 12px rgba(0,0,0,.12); }
.ba-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.5rem; height:1.5rem; padding:0 .4rem; background:rgba(0,0,0,.1); color:inherit; border-radius:999px; font-size:.75rem; font-weight:700; }
.ba-tab.is-active .ba-tab-count { background:rgba(255,255,255,.25); }
.ba-panel { display:none; }
.ba-panel.is-active { display:block; animation: baFade .3s ease; }
@keyframes baFade { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }


/* ============================================================
   12. Mobile Carousel (mobile-carousel.js ile calisir)
   640px altinda: tek sutun + scroll-snap + ok + dot + autoplay
============================================================ */
@media (max-width: 640px) {
  .mc-wrap { position: relative; }
  .mc-track {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    margin: 0;
  }
  .mc-track::-webkit-scrollbar { display: none; }
  .mc-track > * {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }
  .mc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .2s ease;
  }
  .mc-arrow:hover, .mc-arrow:active { background: rgba(0,0,0,.65); }
  .mc-prev { left: 8px; }
  .mc-next { right: 8px; }
  .mc-arrow svg { display: block; }
  .mc-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: .85rem;
  }
  .mc-dot {
    width: 8px; height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
  }
  .mc-dot.is-active {
    background: var(--primary, #c9967b);
    width: 22px;
    border-radius: 4px;
  }
  /* Dark sections: white dots */
  .home-doctors-v2 .mc-dot { background: rgba(255,255,255,.25); }
  .home-doctors-v2 .mc-dot.is-active { background: #fff; }

  /* Instagram on mobile: show 8 (2x4), hide 9th */
  .home-ig-grid > a:nth-child(n+9) { display: none !important; }
}


/* === Gallery filter (ba-tabs) mobile: hepsi sigsin, alt alta sarsin === */
@media (max-width: 640px) {
  .ba-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    padding: 0 .25rem;
    margin: 0 0 1.25rem;
  }
  .ba-tab {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: .4rem .65rem;
    font-size: .72rem;
    gap: .25rem;
    border-width: 1px;
    line-height: 1;
  }
  .ba-tab-count {
    min-width: 1.05rem;
    height: 1.05rem;
    font-size: .62rem;
    padding: 0 .25rem;
  }
}

/* === Contact agent card overrides (legacy, replaced by main rules above) === */
/* Footer cert label always visible */
.footer-cert-label { color: rgba(255,255,255,.95); }


/* === Footer legal links + Modal === */
/* Standalone .footer-legal-links rules moved into .footer-bottom scope above */
.footer-legal-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  cursor: pointer;
  padding: .15rem 0;
  transition: color .2s ease;
  background: none;
  border: none;
}
.footer-legal-link:hover { color: #fff; }

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.legal-modal.is-open { display: flex; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.legal-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  animation: legalIn .25s ease-out;
}
@keyframes legalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  flex-shrink: 0;
}
.legal-modal-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--gray-900, #111827);
  font-weight: 700;
}
.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gray-500, #6b7280);
  cursor: pointer;
  padding: 0 .25rem;
  transition: color .2s;
}
.legal-modal-close:hover { color: var(--gray-900, #111827); }
.legal-modal-body {
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-y: auto;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--gray-700, #374151);
  flex: 1;
}
.legal-modal-body p { margin: 0 0 .85rem; }
.legal-modal-body h2,
.legal-modal-body h3 {
  margin: 1.25rem 0 .6rem;
  color: var(--gray-900, #111827);
  font-weight: 700;
}
.legal-modal-body h2 { font-size: 1.1rem; }
.legal-modal-body h3 { font-size: 1rem; }
.legal-modal-body ul,
.legal-modal-body ol { margin: 0 0 .85rem 1.25rem; padding: 0; }
.legal-modal-body li { margin-bottom: .35rem; }
.legal-modal-body a { color: var(--primary, #c9967b); text-decoration: underline; }

@media (max-width: 640px) {
  .legal-modal { padding: 0; }
  .legal-modal-dialog { max-height: 100vh; height: 100%; border-radius: 0; }
}

/* === Page media gallery (admin-uploaded) === */
.page-media-section { padding: 3rem 0; background: #fafafa; }
.page-media-heading { font-size: 1.6rem; margin: 0 0 1.5rem; text-align: center; color: var(--gray-900, #111); }
.page-media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page-media-item { position: relative; display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #000; aspect-ratio: 4/3; }
.page-media-item img, .page-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.page-media-item:hover img { transform: scale(1.04); }
.page-media-item video { background: #000; }
@media (max-width: 600px) { .page-media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .65rem; } .page-media-section { padding: 2rem 0; } }
