/* ============================================================
   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; }
html { overflow-x: hidden; max-width: 100vw; }
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;
  max-width: 100vw;
}
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);
}
/* Mobil menü açıldığında yazılar koyu (beyaz zemin üstünde) */
body.has-hero-video .header .main-nav.is-open > a,
body.has-hero-video .header .main-nav.is-open > a > svg,
body.has-hero-video .header .main-nav.is-open .has-mega > a {
  color: var(--gray-800) !important;
  text-shadow: none !important;
}
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; }
@media (min-width: 768px) { .logo-overlay img { height: 64px; max-width: 200px; } }
/* Light backdrop strip behind logo when header is transparent over dark hero */
body.has-hero-video .header:not(.is-scrolled) .logo {
  background: rgba(255,255,255,.92);
  padding: .35rem .8rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.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; }
.mega-panel {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%) translateY(8px);
  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;
}
/* Invisible hover bridge so cursor can travel from link to panel without closing */
.has-mega::after {
  content: ""; position: absolute; left: -.5rem; right: -.5rem; top: 100%; height: .75rem;
  display: none;
}
@media (min-width: 1100px) {
  .has-mega::after { display: block; }
}
.has-mega:hover > .mega-panel,
.has-mega:focus-within > .mega-panel,
.has-mega.is-open > .mega-panel {
  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;
  }
}

/* ---------- 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;
}

/* Mobile: image as full-bleed background; content overlays on top */
@media (max-width: 979px) {
  .hero-video {
    min-height: 88svh;
    min-height: 88vh;
    display: block;
  }
  .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-900);
  }
  .hero-slide-bg {
    background-size: cover;
    background-position: center;
    transform: none;
  }
  .hero-video-overlay {
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.85) 100%);
  }
  .hero-video-content {
    position: relative;
    z-index: 2;
    min-height: 88svh;
    min-height: 88vh;
    padding: calc(var(--header-h) + 1.5rem) 1rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    background: transparent;
  }
}
.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;
  }
}
.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-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer ul li { font-size: .9rem; line-height: 1.5; }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--gray-800); color: var(--white); font-weight: 700; font-size: .8rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  text-align: center; font-size: .85rem; color: var(--gray-400);
}

/* ---------- 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 {
  padding: 3.5rem 0;
}

/* 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) */
.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(2, 1fr); } }
@media (min-width: 1024px) { .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; }

/* Doctors */
.dr-grid {
  display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .dr-grid { gap: 1.25rem; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dr-grid { grid-template-columns: repeat(4, 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; aspect-ratio: 4 / 5; background: var(--gray-100); }
.dr-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.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; height: 100%; }
.dr-body { padding: .65rem .7rem .8rem; }
.dr-name { font-size: .92rem; font-weight: 700; margin-bottom: .15rem; line-height: 1.25; }
.dr-spec { color: var(--primary); font-size: .75rem; font-weight: 600; margin-bottom: .35rem; }
.dr-desc { display: none; color: var(--muted); font-size: .82rem; margin: 0; }
@media (min-width: 640px) {
  .dr-body { padding: 1rem 1.1rem 1.15rem; }
  .dr-name { font-size: 1.0625rem; margin-bottom: .25rem; }
  .dr-spec { font-size: .85rem; margin-bottom: .5rem; }
  .dr-desc { display: block; font-size: .9rem; }
}

/* 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: 16 / 10; background: var(--gray-100); display: flex; align-items: center; justify-content: center; padding: .75rem; }
.hp-media img, .home-partner-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.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: 220px; color: var(--white); background: linear-gradient(135deg, var(--primary-dark, #0b6b67) 0%, var(--primary, #128c87) 60%, var(--primary-dark, #0b6b67) 100%); }
.bp-hero--solid { background: linear-gradient(135deg, var(--primary-dark, #0b6b67) 0%, var(--primary, #128c87) 60%, var(--primary-dark, #0b6b67) 100%); }
.bp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.75)); }
.bp-hero-inner { position: relative; z-index: 2; padding: 3rem 0 2.25rem; }
.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: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--gray-100);
}
.gl-item img { width: 100%; height: 100%; object-fit: cover; 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, .home-videos-grid, .home-ig-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .home-gallery-grid, .home-videos-grid, .home-ig-grid { grid-template-columns: repeat(4, 1fr); } }
/* Instagram: always 3 columns × 3 rows, larger square tiles */
.home-ig-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 980px; margin: 0 auto; }
@media (min-width: 768px) { .home-ig-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.home-gallery-item, .home-video-card, .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; }
.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-grid {
  display: grid; gap: 1.25rem; 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;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  color: inherit; text-decoration: none;
}
.contact-agent-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agent-avatar {
  width: 84px; height: 84px; border-radius: var(--radius-full);
  flex-shrink: 0; background: var(--primary-50); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border);
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-avatar-initials { font-weight: 700; font-size: 1.6rem; color: #fff; width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; }
.agent-info { display: flex; flex-direction: column; gap: .25rem; align-items: center; width: 100%; }
.agent-name { font-weight: 700; font-size: 1.05rem; color: var(--gray-900); line-height: 1.2; }
.agent-role { color: var(--muted); font-size: .82rem; }
.agent-langs { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin-top: .35rem; }
.agent-lang-badge {
  display: inline-block;
  padding: .2rem .55rem;
  background: var(--gray-100); color: var(--gray-700);
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.agent-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1rem; background: var(--wa-green); color: var(--white);
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  width: 100%; margin-top: .5rem;
}
.agent-cta:hover { background: var(--wa-green-dark); }
.agent-match { background: var(--primary-50); border-color: var(--primary-200); }
.agent-match .agent-lang-badge { background: rgba(13,148,136,.12); color: var(--primary-dark); }
.agent-match-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: .3rem .8rem; background: var(--primary); color: #fff;
  border-radius: var(--radius-full); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(13,148,136,.3);
}
.agent-wa-badge { display: none; }

/* ---------- 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: .35rem; padding-left: 0; padding-right: 0; flex-wrap: nowrap; }
  .logo-overlay img { height: 52px; max-width: 140px; }
  .header-actions { gap: .35rem; flex-shrink: 1; min-width: 0; }
  .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; }
  .mobile-toggle { width: 38px; height: 38px; flex-shrink: 0; }
}
@media (max-width: 600px) {
  /* Hide CTA on small mobile to leave room for hamburger; WhatsApp float still available */
  .btn-contact-cta { display: none; }
}
@media (max-width: 480px) {
  .logo-overlay img { height: 46px; max-width: 120px; }
}
@media (max-width: 360px) {
  .btn-cta-title { display: none; }
  .btn-contact-cta { padding: .4rem .5rem; gap: 0; }
  .logo-overlay img { height: 42px; max-width: 100px; }
}

/* Print */
@media print {
  .header, .footer, .bottom-nav, .whatsapp-float, .wa-agents-mini, .wa-agents-sheet, .wa-agents-backdrop { display: none !important; }
}

/* Legal disclaimer strip (under hero) */
.legal-disclaimer-strip {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-top: 1px solid #fcd34d;
  border-bottom: 1px solid #fcd34d;
  padding: .85rem 0;
}
.legal-disclaimer-inner {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  max-width: 980px; margin: 0 auto; text-align: center;
  color: #78350f;
}
.legal-disclaimer-inner svg { color: #b45309; flex-shrink: 0; }
.legal-disclaimer-inner p {
  margin: 0; font-size: .88rem; line-height: 1.5; font-weight: 500;
}
@media (max-width: 640px) {
  .legal-disclaimer-inner { flex-direction: row; align-items: flex-start; padding: 0 .5rem; }
  .legal-disclaimer-inner p { font-size: .8rem; text-align: left; }
}

/* Mobile carousel (m-carousel) � desktop ignores, mobile horizontal scroll */
.m-carousel-wrap { position: relative; }
.m-carousel-arrow, .m-carousel-dots { display: none; }

@media (max-width: 768px) {
  .m-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem !important;
    padding: .25rem 1rem 1rem;
    margin: 0 -1rem;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * {
    flex: 0 0 calc(100vw - 4rem);
    width: calc(100vw - 4rem);
    max-width: calc(100vw - 4rem);
    scroll-snap-align: center;
  }
  .m-carousel-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 45%;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    color: var(--gray-800, #1f2937); font-size: 1.5rem; line-height: 1; font-weight: 600;
    cursor: pointer; z-index: 10; padding: 0;
  }
  .m-carousel-prev { left: 6px; }
  .m-carousel-next { right: 6px; }
  .m-carousel-dots {
    display: flex; justify-content: center; gap: .35rem;
    margin-top: 1rem; padding: 0;
  }
  .m-carousel-dots button {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gray-300, #d1d5db); border: 0; padding: 0; cursor: pointer;
    transition: all .2s;
  }
  .m-carousel-dots button.is-active {
    background: var(--primary, #0d9488); width: 22px; border-radius: 4px;
  }
}

/* ============ FOOTER V2 ============ */
.footer-v2 {
  position: relative;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3d 50%, #0a1628 100%);
  color: rgba(255,255,255,.85);
  padding: 0;
  margin-top: 4rem;
  overflow: hidden;
}
.footer-v2 .footer-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 0% 0%, rgba(13,148,136,.15), transparent 50%),
    radial-gradient(800px circle at 100% 100%, rgba(20,184,166,.10), transparent 50%);
  pointer-events: none;
}
.footer-v2 > * { position: relative; z-index: 1; }

.footer-cta {
  background: linear-gradient(135deg, var(--primary, #0d9488) 0%, var(--primary-dark, #0f766e) 100%);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: .5rem;
}
.footer-cta-text h3 {
  color: #fff; font-size: 1.6rem; font-weight: 700; margin: 0 0 .35rem;
  line-height: 1.25;
}
.footer-cta-text p { color: rgba(255,255,255,.85); margin: 0; font-size: .95rem; }
.footer-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: all .2s; border: 2px solid transparent;
}
.footer-btn-wa { background: #25D366; color: #fff; }
.footer-btn-wa:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.footer-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.footer-btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }

.footer-grid-v2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-v2 .footer-brand-name { color: #fff; font-size: 1.4rem; font-weight: 700; margin: 0 0 .5rem; }
.footer-v2 .footer-logo { max-height: 50px; width: auto; margin-bottom: .9rem; filter: brightness(1.1); }
.footer-brand-tagline { color: rgba(255,255,255,.65); font-size: .92rem; line-height: 1.6; margin: 0 0 1.25rem; }
.footer-trust { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-trust-item {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75); padding: .4rem .75rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.footer-trust-item svg { color: var(--primary-light, #2dd4bf); }

.footer-v2 .footer-col h4 {
  color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 1.1rem;
  position: relative; padding-bottom: .65rem;
}
.footer-v2 .footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary, #0d9488), var(--primary-light, #2dd4bf));
}
.footer-v2 .footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-v2 .footer-col li { margin-bottom: .65rem; font-size: .92rem; }
.footer-v2 .footer-col a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-v2 .footer-col a:hover { color: var(--primary-light, #2dd4bf); }

.footer-contact-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  color: rgba(255,255,255,.7);
}
.footer-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  background: rgba(13,148,136,.15); border-radius: 50%;
  color: var(--primary-light, #2dd4bf);
}

.footer-social-sub { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.6; margin: 0 0 1rem; }
.footer-social-v2 { display: flex; gap: .55rem; flex-wrap: wrap; }
.footer-social-v2 a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff !important;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .25s;
}
.footer-social-v2 a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.footer-social-v2 .fs-ig:hover { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); border-color: transparent; }
.footer-social-v2 .fs-fb:hover { background: #1877f2; border-color: #1877f2; }
.footer-social-v2 .fs-yt:hover { background: #ff0000; border-color: #ff0000; }
.footer-social-v2 .fs-tt:hover { background: #000; border-color: #fff; }
.footer-social-v2 .fs-wa:hover { background: #25D366; border-color: #25D366; }

.footer-bottom-v2 {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}
.footer-bottom-meta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-meta svg { color: #ef4444; }

@media (max-width: 768px) {
  .footer-grid-v2 { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-cta-text h3 { font-size: 1.3rem; }
  .footer-bottom-v2 { flex-direction: column; text-align: center; }
}

/* ============ TREATMENT PLACEHOLDER COVER ============ */
.home-tx-photo-card-noimg img {
  background: linear-gradient(135deg, var(--primary, #0d9488), var(--primary-dark, #0f766e));
}

/* ============ INSTAGRAM SECTION POLISH ============ */
.home-instagram .section-head { margin-bottom: 1.5rem; }
.home-instagram .section-title {
  font-family: inherit;
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.btn-ig {
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
  color: #fff !important; border: 0 !important;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.btn-ig:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,39,67,.4); }
