/*
Theme Name: Dentick Dental Care
Theme URI: https://dentickdentalcare.in
Author: Dentick Dental Care
Description: High-performance, SEO-optimised theme for Dentick Dental Care — Implant Centre & Multi-Speciality Clinic, Bengaluru.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: dentick
*/

/* ============================================================
   1. DESIGN TOKENS
============================================================ */
:root {
  --blue:        #0249eb;
  --blue-dark:   #0136b0;
  --blue-light:  #e8efff;
  --teal:        #00d1ba;
  --teal-light:  #e0faf7;
  --ink:         #0b1530;
  --ink-mid:     #3d4760;
  --ink-soft:    #6b7593;
  --bg:          #fefefe;
  --bg-soft:     #f5f7ff;
  --line:        #e4e8f4;
  --line-soft:   #eef0f9;
  --warn:        #f59e0b;
  --success:     #10b981;

  --grad:        linear-gradient(135deg,#0249eb 0%,#1a5cff 50%,#00d1ba 100%);
  --grad-soft:   linear-gradient(135deg,#eef2ff 0%,#e0faf7 100%);
  --grad-dark:   linear-gradient(135deg,#0b1530 0%,#0d2060 100%);

  --ff-head: 'Sora', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-pill:999px;

  --sh-sm:  0 2px 8px rgba(11,21,48,.05);
  --sh-md:  0 8px 24px rgba(11,21,48,.08);
  --sh-lg:  0 20px 48px rgba(11,21,48,.12);
  --sh-xl:  0 32px 80px rgba(11,21,48,.18);

  --wrap: 1180px;
  --topbar-h: 38px;
  --nav-h: 70px;
}

/* ============================================================
   2. RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p { color: var(--ink-soft); }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--blue); color:#fff; padding:.5rem 1rem; z-index:9999; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
  html { scroll-behavior:auto; }
}

/* Focus visible */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   3. SVG ICON SAFETY NET
============================================================ */
svg { width: 1em; height: 1em; flex-shrink: 0; fill: none; }
.icon-14 svg { width: 14px; height: 14px; }
.icon-16 svg { width: 16px; height: 16px; }
.icon-18 svg { width: 18px; height: 18px; }
.icon-20 svg { width: 20px; height: 20px; }
.icon-24 svg { width: 24px; height: 24px; }
.icon-28 svg { width: 28px; height: 28px; }
.icon-40 svg { width: 40px; height: 40px; }
.icon-48 svg { width: 48px; height: 48px; }

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 56px 0; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--grad-dark); }
.section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.section--dark p { color: rgba(255,255,255,.75); }

/* Grids */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.g2-wide { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.g2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

@media (max-width:980px) {
  .g2, .g2-wide, .g2-even { grid-template-columns: 1fr; gap: 32px; }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Section head */
.sh { margin-bottom: 48px; }
.sh--center { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sh__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.sh__label svg { color: var(--teal); }
.sh h2 { margin-bottom: .4em; }
.sh p { font-size: 1.05rem; max-width: 58ch; }
.sh--center p { margin: 0 auto; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }

/* ============================================================
   5. TOPBAR
============================================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  display: flex; align-items: center;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar a:hover { color: var(--teal); }
.topbar__emergency { font-weight: 700; color: var(--teal) !important; }
.topbar__emergency svg { color: var(--teal); }
@media (max-width:780px) { .topbar__right { display: none; } }
@media (max-width:520px) { .topbar__left .tb-hide { display: none; } }

/* ============================================================
   6. HEADER — SINGLE LINE NAV
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(254,254,254,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
}
.site-header .wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; height: 100%;
  overflow: visible;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
.site-logo__mark { height: 38px; width: auto; }
.site-logo__text { height: 22px; width: auto; }
@media (max-width:640px) { .site-logo__text { display: none; } }

/* Nav — desktop */
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--ff-head); font-weight: 600; font-size: .88rem;
  color: var(--ink-mid); padding: 8px 12px; border-radius: var(--r-sm);
  white-space: nowrap; transition: color .15s, background .15s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
  color: var(--blue); background: var(--blue-light);
}
/* Dropdown toggle arrow */
.main-nav li.has-dropdown > a::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px; margin-left: 2px; margin-top: -2px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.main-nav li.has-dropdown:hover > a::after { transform: rotate(225deg) translateY(-3px); }

/* Dropdowns — desktop only positioning */
@media (min-width:861px) {
  .main-nav .dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 220px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--sh-lg); padding: 6px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav li.has-dropdown { position: relative; }
  .main-nav li.has-dropdown:hover .dropdown,
  .main-nav li.has-dropdown.is-open .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
}
.main-nav .dropdown li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500; color: var(--ink-mid);
  white-space: normal; word-break: break-word; transition: background .15s, color .15s;
}
.main-nav .dropdown li a:hover { background: var(--bg-soft); color: var(--blue); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-book {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff;
  font-family: var(--ff-head); font-weight: 700; font-size: .82rem;
  padding: 9px 16px; border-radius: var(--r-pill);
  white-space: nowrap; transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 14px rgba(2,73,235,.35);
}
.btn-book:hover { opacity: .92; transform: translateY(-1px); color: #fff; }
.btn-book svg { width: 15px; height: 15px; }

.hdr-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-mid);
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.hdr-icon:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.hdr-icon svg { width: 17px; height: 17px; }

/* Hamburger */
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink); background: #fff;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
.nav-open .nav-toggle .ic-menu { display: none; }
.nav-open .nav-toggle .ic-close { display: block; }

/* Mobile nav */
@media (max-width:1020px) {
  .main-nav > ul > li > a { font-size: .82rem; padding: 7px 10px; }
  .btn-book span { display: none; }
}
@media (max-width:860px) {
  /* Lock body scroll when nav is open */
  .nav-open { overflow: hidden !important; position: fixed; width: 100%; height: 100%; }

  .nav-toggle { display: flex; z-index: 1002; }

  /* Clip the header wrap so nothing leaks out */
  .site-header .wrap { overflow: hidden; }

  /* Backdrop overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11,21,48,.45);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-in drawer from right — hidden by default, shown when nav-open */
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: 82vw;
    max-width: 320px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: none;             /* Kill the desktop flex:1 */
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
    box-shadow: -8px 0 30px rgba(11,21,48,.12);
    z-index: 1001;
  }
  .nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer header */
  .main-nav::before {
    content: 'Menu';
    display: block;
    padding: 20px 24px 16px;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
  }

  /* JS-injected close button inside drawer */
  .menu-close-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: var(--bg-soft) !important;
    border: 1px solid var(--line) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: var(--ink);
    line-height: 1;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px 32px;
    overflow-x: hidden;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--line-soft);
    position: static;        /* Override any desktop position:relative */
  }
  .main-nav > ul > li:last-child {
    border-bottom: none;
  }
  .main-nav > ul > li > a {
    padding: 14px 12px;
    font-size: .95rem;
    justify-content: space-between;
    border-radius: var(--r-sm);
    white-space: normal;
    transition: background .15s, color .15s;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a:active {
    background: var(--bg-soft);
  }
  .main-nav li.has-dropdown > a::after { margin-left: auto; }

  /* Mobile dropdowns — override ALL desktop positioning */
  .main-nav .dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: var(--bg-soft);
    border-radius: var(--r-sm);
    margin: 4px 0 8px 14px;
    display: none;
    min-width: 0 !important;
    width: auto;
    max-width: 100%;
    padding: 4px;
  }
  .main-nav li.has-dropdown.is-open .dropdown { display: block; }
  .main-nav li.has-dropdown:hover .dropdown { display: none; }
  .main-nav li.has-dropdown.is-open:hover .dropdown { display: block; }
  .main-nav .dropdown li a {
    white-space: normal;
    word-break: break-word;
    font-size: .88rem;
  }

  .hdr-icon.phone-icon { display: none; }
  .btn-book span { display: inline; }
}

/* ============================================================
   7. BUTTONS & CHIPS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: .92rem;
  padding: 13px 24px; border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(2,73,235,.3); }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(2,73,235,.4); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(0,209,186,.3); }
.btn--teal:hover { background: #00bba6; color: #fff; }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Icon-only button */
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--blue);
  border: 1px solid var(--line);
  transition: background .15s, color .15s, transform .15s;
}
.icon-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); border-color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-mid); box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.chip svg { color: var(--teal); width: 13px; height: 13px; }
.chip--blue { background: var(--blue-light); color: var(--blue); border-color: transparent; }
.chip--teal { background: var(--teal-light); color: #007d6e; border-color: transparent; }
.chip--star { background: #fef3c7; color: #92400e; border-color: transparent; }
.chip--star svg { color: var(--warn); }

/* ============================================================
   8. VIDEO HERO
============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  min-height: calc(100dvh - var(--topbar-h) - var(--nav-h));
  display: flex; align-items: center;
  background: var(--grad-dark);
}
/* Video background */
.hero__video-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero__video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11,21,48,.88) 0%,
    rgba(11,21,48,.72) 40%,
    rgba(11,21,48,.40) 70%,
    rgba(11,21,48,.55) 100%
  );
  z-index: 1;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
/* LCP poster image shown before video loads */
.hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  z-index: 0;
  /* Will be hidden once video plays */
  transition: opacity .5s ease;
}
.hero__video.is-playing ~ .hero__poster,
.hero__video-wrap.video-loaded .hero__poster { opacity: 0; }

/* Hero content */
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; padding: 80px 0;
}
.hero__grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.hero__content { color: #fff; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
  background: rgba(0,209,186,.12); border: 1px solid rgba(0,209,186,.25);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.hero__eyebrow svg { width: 13px; height: 13px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--teal), #4df5e5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 52ch; margin-bottom: 24px; line-height: 1.7; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust-item { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: rgba(255,255,255,.75); font-weight: 600; }
.hero__trust-item svg { color: var(--teal); width: 16px; height: 16px; }

/* Hero form card (right column) */
.hero__form-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--sh-xl);
  backdrop-filter: blur(10px);
}
.hero__form-card h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--ink); }
.hero__form-card > p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width:980px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__form-card { max-width: 540px; }
  .hero__inner { padding: 60px 0; }
}
@media (max-width:640px) {
  .hero { min-height: auto; }
  .hero__inner { padding: 36px 0 32px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__lead { font-size: .95rem; margin-bottom: 20px; }
  .hero__eyebrow { font-size: .68rem; padding: 5px 10px; }
  .hero__trust { gap: 10px; }
  .hero__trust-item { font-size: .76rem; }
  .hero__video,
  .hero__poster {
    object-position: 65% top;
  }
  .hero__video-wrap::after {
    background: linear-gradient(
      180deg,
      rgba(11,21,48,.92) 0%,
      rgba(11,21,48,.78) 50%,
      rgba(11,21,48,.60) 100%
    );
  }
  .lead-form-wrap { padding: 20px; border-radius: var(--r-lg); }
}

/* ============================================================
   9. PAGE HERO (interior pages)
============================================================ */
.page-hero {
  background: var(--grad-soft); padding: 48px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top:-100px; right:-100px;
  width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, rgba(2,73,235,.08), transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .cur { color: var(--ink); font-weight: 600; }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero__lead { font-size: 1.05rem; max-width: 54ch; margin-bottom: 20px; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
@media (max-width:860px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { display: none; } }

/* ============================================================
   10. CARDS
============================================================ */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--blue);
  margin-bottom: 16px; flex-shrink: 0;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .3em; }
.card p { flex: 1; font-size: .95rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ff-head); font-weight: 700; font-size: .88rem;
  color: var(--blue); margin-top: 14px; transition: gap .15s;
}
.card:hover .card__link { gap: 8px; }
.card__link svg { width: 15px; height: 15px; }

/* Stat card */
.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-sm);
}
.stat-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--grad-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card strong { display: block; font-family: var(--ff-head); font-size: 1.5rem; color: var(--ink); }
.stat-card span { font-size: .82rem; color: var(--ink-soft); }

/* Review card */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.review-card__stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review-card__stars svg { width: 16px; height: 16px; color: var(--warn); fill: var(--warn); }
.review-card p { font-size: .93rem; font-style: italic; margin-bottom: 14px; }
.review-card__name { font-family: var(--ff-head); font-weight: 700; font-size: .85rem; color: var(--ink); }
.review-card__loc { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }

/* ============================================================
   11. STEPS
============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: none; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 800; font-size: 1rem;
}
.step__body h3 { margin-bottom: .25em; }
.step__body p { margin: 0; }

/* ============================================================
   12. FAQ ACCORDION
============================================================ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; text-align: left;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem; color: var(--ink);
  background: none; border: none; cursor: pointer;
}
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .2s ease;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 800px; }
.faq-a__inner { padding: 0 22px 18px; }
.faq-a__inner p { margin: 0; font-size: .93rem; }

/* ============================================================
   13. BEFORE/AFTER SLIDER
============================================================ */
.ba { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--sh-md); border: 1px solid var(--line); user-select: none; cursor: ew-resize; }
.ba__before, .ba__after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__before img, .ba__after img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { overflow: hidden; width: 50%; }
.ba__after img { width: 200%; max-width: none; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; display: flex; align-items: center; justify-content: center; }
.ba__handle::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); transform: translateX(-1.5px); }
.ba__grip {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center; color: var(--blue); z-index: 2; position: relative;
}
.ba__grip svg { width: 18px; height: 18px; }
.ba__label {
  position: absolute; top: 14px; z-index: 3;
  font-family: var(--ff-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(11,21,48,.65); color: #fff;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }

/* ============================================================
   14. PRICE TABLE
============================================================ */
.price-section { margin-bottom: 36px; }
.price-section h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); font-family: var(--ff-head); margin-bottom: 12px;
}
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.price-table th { font-family: var(--ff-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--bg-soft); font-weight: 700; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:first-child { font-weight: 600; color: var(--ink); }
.price-val { font-family: var(--ff-head); font-weight: 700; color: var(--blue); white-space: nowrap; }
.price-note { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 6px; }
.price-note svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); width: 14px; height: 14px; }

/* ============================================================
   15. LEAD FORM & CAPTCHA
============================================================ */
.lead-form-wrap {
  background: #fff; border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--sh-md); border: 1px solid var(--line);
}
.lead-form-wrap h3 { margin-bottom: .25em; }
.lead-form-wrap > p { font-size: .88rem; margin-bottom: 22px; }
.lf { display: flex; flex-direction: column; gap: 14px; }
.lf label { font-weight: 600; font-size: .85rem; display: block; margin-bottom: 5px; color: var(--ink); }
.lf input, .lf select, .lf textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--ff-body); font-size: .93rem;
  background: var(--bg-soft); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.lf input:focus, .lf select:focus, .lf textarea:focus {
  border-color: var(--blue); background: #fff; outline: none;
}
.lf textarea { min-height: 80px; resize: vertical; }
.lf .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:480px) { .lf-row { grid-template-columns: 1fr; } }
.lf-turnstile { display: flex; justify-content: flex-start; margin-top: 4px; }
.lf-submit { width: 100%; }
.lf-msg { display: none; padding: 11px 14px; border-radius: var(--r-sm); font-size: .87rem; font-weight: 600; margin-top: 4px; }
.lf-msg.error { background: #fff0f0; color: #c0392b; border: 1px solid #fcc; display: block; }
.lf-msg.success { background: #eafaf3; color: #0d7a4e; border: 1px solid #b2e8d0; display: flex; align-items: center; gap: 8px; }
.lf-msg.success svg { width: 18px; height: 18px; flex-shrink: 0; }
.lf-note { font-size: .75rem; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.lf-note svg { width: 12px; height: 12px; vertical-align: middle; color: var(--teal); }

/* ============================================================
   16. CTA BAND
============================================================ */
.cta-band {
  background: var(--grad); border-radius: var(--r-xl); padding: 52px 48px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-band__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band__ctas { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width:780px) {
  .cta-band { padding: 36px 28px; }
  .cta-band__grid { grid-template-columns: 1fr; }
  .cta-band__ctas { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   17. BRANCH CARD
============================================================ */
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); }
.branch-card__map { display: block; width: 100%; height: 200px; border: none; }
.branch-card__body { padding: 24px; }
.branch-card__rating { display: inline-flex; align-items: center; gap: 5px; background: #fef3c7; color: #92400e; padding: 5px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.branch-card__rating svg { width: 13px; height: 13px; fill: var(--warn); color: var(--warn); }
.branch-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.branch-card__detail { display: flex; gap: 10px; margin-bottom: 9px; font-size: .88rem; color: var(--ink-mid); align-items: flex-start; }
.branch-card__detail svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.branch-card__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============================================================
   18. BLOG
============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width:980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-card__thumb { aspect-ratio: 16/9; background: var(--grad-soft); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--blue); opacity: .3; }
.post-card__thumb-placeholder svg { width: 48px; height: 48px; }
.post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--ff-head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.post-card h3 { font-size: 1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: .87rem; flex: 1; }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .78rem; color: var(--ink-soft); }

/* Single post / prose */
.prose { max-width: 740px; }
.prose h2 { margin: 1.8em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.1em; }
.prose ul, .prose ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: 1rem; color: var(--ink-soft); margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .post-cta {
  background: var(--grad-soft); border-radius: var(--r-lg); padding: 28px 32px;
  margin: 2.5em 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line);
}
.prose .post-cta p { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ============================================================
   19. FOOTER
============================================================ */
.site-footer { background: var(--ink); }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width:980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width:580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--teal); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .15s; }
.footer-col li a:hover { color: var(--teal); }
.footer-col .branch-mini h5 { color: #fff; font-family: var(--ff-head); font-size: .9rem; margin-bottom: 6px; }
.footer-col .branch-mini p { color: rgba(255,255,255,.55); font-size: .83rem; margin-bottom: 8px; }
.footer-col .branch-mini a { color: var(--teal); font-size: .83rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--teal); }

/* ============================================================
   20. FLOAT WHATSAPP + EXIT POPUP
============================================================ */
.float-wa {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; color: #fff; }

.exit-overlay {
  position: fixed; inset: 0; background: rgba(11,21,48,.6);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.exit-overlay.show { display: flex; }
.exit-modal {
  background: #fff; border-radius: var(--r-xl); max-width: 420px; width: 100%;
  padding: 36px; text-align: center; position: relative; box-shadow: var(--sh-xl);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.exit-modal__ico { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.exit-modal__ico svg { width: 28px; height: 28px; }
.exit-modal h3 { margin-bottom: .3em; }
.exit-modal p { font-size: .92rem; margin-bottom: 20px; }
.exit-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); cursor: pointer; }
.exit-modal__close svg { width: 14px; height: 14px; }

/* ============================================================
   21. MISC UTILITY
============================================================ */
.map-embed { width: 100%; height: 300px; border: none; border-radius: var(--r-lg); display: block; }
.content-page { padding: 56px 0 80px; }
.thanks-wrap { text-align: center; max-width: 520px; margin: 60px auto; }
.thanks-wrap .ico { width: 80px; height: 80px; border-radius: 50%; background: var(--teal-light); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.thanks-wrap .ico svg { width: 40px; height: 40px; }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .num { font-size: clamp(4rem,10vw,8rem); font-family: var(--ff-head); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.standalone-page * { box-sizing: border-box; }

/* ============================================================
   22. CORE WEB VITALS HELPERS
============================================================ */
/* Prevent layout shift for images */
img { aspect-ratio: attr(width) / attr(height); }
/* Stable scrollbar to prevent CLS */
html { scrollbar-gutter: stable; }
/* Font display fallback to prevent FOIT */

/* Ensure all media stays within containers */
img, video, iframe { max-width: 100%; }

/* ============================================================
   23. MOBILE-SPECIFIC OVERRIDES
============================================================ */

/* Topbar: tighter on very small screens */
@media (max-width:420px) {
  .topbar { font-size: .72rem; }
  .topbar .wrap { padding: 0 12px; gap: 8px; }
  .topbar__emergency { font-size: .72rem; }
}

/* Header: compact on mobile */
@media (max-width:640px) {
  :root { --nav-h: 56px; }
  .site-header .wrap { padding: 0 12px; gap: 8px; }
  .btn-book { padding: 7px 12px; font-size: .78rem; }
  .hdr-icon { width: 32px; height: 32px; }
  .hdr-icon svg { width: 15px; height: 15px; }
  .nav-toggle { width: 34px; height: 34px; }
}

/* Prevent any child from overflowing on mobile */
@media (max-width:860px) {
  .wrap { overflow-x: hidden; }
  main { overflow-x: hidden; }
}

/* Footer grid single column on small screens */
@media (max-width:480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   24. UI POLISH
============================================================ */
.card,
.service-card,
.review-card,
.branch-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: .3s ease;
}

.card:hover,
.service-card:hover,
.review-card:hover,
.branch-card:hover {
  transform: translateY(-4px);
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.footer-grid {
  align-items: flex-start;
}
