/* =========================================================
   DESIGN TOKENS
   Every color, size, and spacing value used on the page is
   defined once here and referenced everywhere else so that
   every section shares the same visual language.
   ========================================================= */
:root {
  /* ---- Color palette ---- */
  /* Blue and dark tones are matched to the logo (twenty6dentallogo-transparent.svg:
     #60a1c4 blue, #111b27 dark). The logo's exact blue fails WCAG AA as text/button
     fill (2.84:1, needs 4.5:1), so it's used as-is only where decoration doesn't
     require text-level contrast, with darker same-hue variants for text/CTAs. */
  --color-primary: #4a90b8;       /* logo-blue-hued, DECORATIVE use only (icons, borders, tints, glows, focus rings — 3:1 is enough here) */
  --color-primary-text: #2f6d8f;  /* logo-blue-hued, AA-safe for TEXT and solid button fills (5.2–5.7:1 on light backgrounds, white-on-this 5.67:1) */
  --color-primary-dark: #1f4a5f;  /* hover/active state for buttons using --color-primary-text; also the hero photo overlay tint */
  --color-primary-soft: #82b4da;  /* accent — tertiary highlights (glow blob); same value hardcoded into the footer logo SVG's blue fill since it clears 4.5:1 against the footer gradient */
  --color-neutral: #e4e9ed;       /* neutral tint — alt section backgrounds */
  --color-bg: #f3f5f7;            /* page background */
  --color-ink: #111b27;           /* headings, primary text — exact logo dark */
  --color-ink-soft: #5b6b79;      /* body copy, secondary text */
  --color-white: #ffffff;

  --color-primary-rgb: 74, 144, 184;
  --color-primary-dark-rgb: 31, 74, 95;
  --color-ink-rgb: 17, 27, 39;

  /* ---- Typography scale (exactly 4 sizes, used consistently) ---- */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-heading: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);        /* main heading — hero h1 only */
  --fs-subheading: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);  /* subheading — every section h2 */
  --fs-body: 1rem;                                           /* all body copy + component titles (h3) */
  --fs-label: 0.8125rem;                                     /* eyebrows, form labels, fine print */

  --lh-heading: 1.25;
  --lh-body: 1.65;

  /* ---- Spacing scale (4px base unit) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radius scale ---- */
  --radius-sm: 10px;   /* form inputs */
  --radius-md: 14px;   /* small components: icons, chips, media frames */
  --radius-lg: 20px;   /* panels */
  --radius-pill: 999px; /* buttons, pills */

  /* ---- Glass surface ---- */
  --glass-bg: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: blur(10px) saturate(140%);

  --shadow-md: 0 4px 20px rgba(var(--color-ink-rgb), 0.06);
  --shadow-lg: 0 10px 28px rgba(var(--color-ink-rgb), 0.1);

  --container-width: 1120px;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-ink);
  font-weight: 700;
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: var(--lh-heading);
  color: var(--color-ink);
  font-weight: 600;
}

h1 { font-size: var(--fs-heading); }
h2 { font-size: var(--fs-subheading); }

p { font-size: var(--fs-body); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---- Visible keyboard-focus indicator for every interactive element ----
   Dark ring by default (for the light backgrounds most of the site uses);
   overridden to a light ring wherever the surrounding context is dark or
   photographic (footer, hero), further down. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Screen-reader-only content: visually hidden, still announced ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Skip link: hidden until keyboard-focused, then jumps above everything ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-primary-text);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section { padding: var(--space-9) 0; position: relative; }
.section-alt { background: rgba(228, 233, 237, 0.35); }

.section h2 { margin-bottom: var(--space-5); }

.section-intro { margin-top: var(--space-5); margin-bottom: var(--space-5); }

/* ---- Small label style (eyebrows, uppercase tags) ---- */
.eyebrow {
  display: inline-block;
  color: var(--color-primary-text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* =========================================================
   AMBIENT BACKGROUND GLOWS
   ========================================================= */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: var(--color-primary);
  top: -180px;
  left: -140px;
  opacity: 0.3;
}

.glow-2 {
  width: 460px;
  height: 460px;
  background: var(--color-neutral);
  top: 35%;
  right: -180px;
  opacity: 0.3;
}

.glow-3 {
  width: 480px;
  height: 480px;
  background: var(--color-primary-soft);
  bottom: -220px;
  left: 25%;
  opacity: 0.25;
}

/* =========================================================
   GLASSMORPHISM SURFACES
   Shared by: header, hero, about, cards, hours, contact, privacy
   ========================================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

/* =========================================================
   BUTTONS
   One shared shape/size for every button-like element;
   only the fill (primary vs ghost) changes.
   ========================================================= */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-primary-text);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--color-primary-rgb), 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-block { width: 100%; text-align: center; }

/* ---- Pulsing CTA (hero primary button) ---- */
@media (prefers-reduced-motion: no-preference) {
  .btn-pulse { animation: pulse-cta 5s ease-in-out infinite; }
  .btn-pulse:hover, .btn-pulse:focus-visible { animation-play-state: paused; }
}

@keyframes pulse-cta {
  0%, 90%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
  95% { transform: scale(1.06); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45); }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-ink);
}

.logo img {
  height: 80px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-6);
}

.main-nav a {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--color-primary-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) 0;
  padding-top: calc(var(--space-9) + var(--space-6));
  text-align: center;
  /* Overlay uses the darker blue at high opacity so hero text stays >=4.5:1
     even over the photo's brightest areas (e.g. the ceiling lights) — a
     lighter/more-transparent tint measured well below AA in the worst case. */
  background-image:
    linear-gradient(rgba(var(--color-primary-dark-rgb), 0.8), rgba(var(--color-primary-dark-rgb), 0.8)),
    url('Images/twenty6-dental-hero-banner-optimized.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-5);
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* The hero's primary CTA sits on a blue-toned photo, so the standard
   blue button fill barely stood out. A solid white fill gives it real
   contrast against that backdrop while keeping the brand blue as its
   text color. */
.hero .btn-primary {
  background: var(--color-white);
  color: var(--color-primary-text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero .btn-primary:hover {
  background: var(--color-primary-text);
  color: var(--color-white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-7);
  align-items: start;
}

.about-text p + p { margin-top: var(--space-4); }

.usp-card h3 {
  margin-bottom: var(--space-4);
}

.usp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.usp-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-ink-soft);
}

.usp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.12);
  font-size: 1.1rem;
}

/* =========================================================
   TREATMENTS
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.card {
  padding: var(--space-6);
  position: relative;
}

.cards-grid.stagger-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-primary-rgb), 0.4);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid.stagger-grid .gallery-item:hover img {
  transform: scale(1.06);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--color-primary-rgb), 0.12);
}

.card h3 { margin-bottom: var(--space-2); }

/* =========================================================
   OPENING HOURS
   ========================================================= */
.hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: var(--space-4) var(--space-2);
  font-size: var(--fs-body);
  font-weight: 400;
  text-align: left;
  border-bottom: 1px solid rgba(var(--color-ink-rgb), 0.1);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary-text);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-2) 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-item summary h3::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-primary-text);
  transition: transform 0.2s ease;
}

.faq-item[open] summary h3::after { transform: rotate(45deg); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-primary-text);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq-item p {
  padding-top: var(--space-3);
  color: var(--color-ink-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.contact-details strong {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-text);
  margin-bottom: var(--space-1);
}

.contact-details span { font-size: var(--fs-body); }

.contact-details a:hover { color: var(--color-primary-text); text-decoration: underline; }

.find-us-note { margin-bottom: var(--space-5); }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-5);
}

.btn-directions {
  display: inline-block;
  margin-bottom: var(--space-5);
}

/* ---- Consent placeholder shown in .map-embed until Functional cookies are allowed ---- */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  min-height: 300px;
  padding: var(--space-6);
  background: rgba(var(--color-primary-rgb), 0.06);
}

.map-placeholder p {
  font-size: var(--fs-label);
  color: var(--color-ink-soft);
  margin: 0;
}

.map-placeholder-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.map-placeholder-link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-label);
  color: var(--color-primary-text);
  text-decoration: underline;
  cursor: pointer;
}

.social-links { display: flex; gap: var(--space-4); }

.social-links a {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--color-primary-text);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(var(--color-primary-rgb), 0.3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--color-primary-text);
  color: var(--color-white);
  border-color: transparent;
  transform: translateY(-2px);
}

.contact-form h3 { margin-bottom: var(--space-2); }

.form-required-note {
  font-size: var(--fs-label);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-5);
}

.form-row { margin-bottom: var(--space-4); }

.form-row label span[aria-hidden="true"] {
  color: var(--color-primary-text);
}

.form-row label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-2);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(var(--color-ink-rgb), 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}

.checkbox-label {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--fs-label);
}

.checkbox-label input { width: auto; margin-top: var(--space-1); }

.checkbox-label a { color: var(--color-primary-text); text-decoration: underline; }

.form-status {
  font-size: var(--fs-label);
  font-weight: 600;
  margin-top: var(--space-4);
  min-height: 1.2em;
}

.form-status:empty { margin-top: 0; }

.form-status-pending { color: var(--color-ink-soft); }
.form-status-success { color: #1e7a49; }
.form-status-error { color: #b3261e; }

/* =========================================================
   PRIVACY
   ========================================================= */
.privacy p a { color: var(--color-primary-text); text-decoration: underline; }

/* =========================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions)
   ========================================================= */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content .eyebrow { display: block; }

.legal-content h1 { margin-top: var(--space-3); margin-bottom: var(--space-3); }

/* ---- 404 page: reuses .legal-content, centred instead of left-aligned ---- */
.error-content { text-align: center; }
.error-content h1 { font-size: var(--fs-subheading); }

.legal-updated {
  color: var(--color-ink-soft);
  font-size: var(--fs-label);
  margin-bottom: var(--space-7);
}

.legal-content h2 {
  font-size: var(--fs-body);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content p { margin-bottom: var(--space-4); }

.legal-content ul {
  margin: 0 0 var(--space-4) var(--space-5);
}

.legal-content li { margin-bottom: var(--space-2); }

.legal-content a:not(.btn) { color: var(--color-primary-text); text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(135deg, var(--color-ink) 0%, #29414f 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-8) 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-6);
}

.footer-logo img {
  height: 64px;
  width: auto;
}

.footer-brand p {
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.65);
  max-width: 260px;
  margin: var(--space-3) 0 var(--space-5);
}

.footer-col h3 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-list li,
.footer-list a,
.footer-list button {
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.65);
}

.footer-list a,
.footer-list button {
  display: block;
  padding: var(--space-2) 0;
  margin: calc(var(--space-2) * -1) 0;
  transition: color 0.15s ease;
}

.footer-list button {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-list a:hover,
.footer-list button:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p { font-size: var(--fs-label); color: rgba(255, 255, 255, 0.6); }

.site-footer .social-links { margin-top: var(--space-1); }

.site-footer .social-links a {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.site-footer .social-links a:hover {
  background: var(--color-primary-text);
  color: var(--color-white);
}

/* =========================================================
   FLOATING MOBILE CTA
   Compact round icon button, bottom-right corner.
   ========================================================= */
.floating-cta {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-text);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-cta svg { width: 26px; height: 26px; }

.floating-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--color-primary-rgb), 0.4);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   Persistent contact shortcut, bottom-right corner, shown on
   desktop and mobile alike. On mobile it stacks above the
   Book Appointment button (below) so the two don't overlap.
   ========================================================= */
.floating-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-whatsapp svg { width: 28px; height: 28px; }

.floating-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
}

/* ---- Light focus ring for controls on dark/photo backgrounds ---- */
.hero a:focus-visible,
.hero button:focus-visible,
.floating-cta:focus-visible,
.floating-whatsapp:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--color-white);
}

/* =========================================================
   SCROLL REVEAL
   JS adds .in-view when an element enters the viewport.
   The hidden/revealed states apply unconditionally so the
   effect can never be silently switched off; only the speed
   is collapsed for prefers-reduced-motion, below.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Staggered reveal (treatments cards, gallery): item 1 -> 2 -> 3 -> ... ---- */
.stagger-grid .stagger-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stagger-grid.in-view .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-grid .stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-grid .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-grid .stagger-item:nth-child(3) { transition-delay: 0.4s; }
.stagger-grid .stagger-item:nth-child(4) { transition-delay: 0.6s; }
.stagger-grid .stagger-item:nth-child(5) { transition-delay: 0.8s; }
.stagger-grid .stagger-item:nth-child(6) { transition-delay: 1s; }
.stagger-grid .stagger-item:nth-child(7) { transition-delay: 1.2s; }
.stagger-grid .stagger-item:nth-child(8) { transition-delay: 1.4s; }
.stagger-grid .stagger-item:nth-child(9) { transition-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger-grid .stagger-item {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid,
  .hours-inner,
  .contact-grid { grid-template-columns: 1fr; }

  .cards-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .floating-cta { display: flex; }
  .floating-whatsapp { bottom: calc(var(--space-5) + 56px + var(--space-3)); }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-8) 0; }
  .hero { padding-top: calc(var(--space-8) + var(--space-5)); padding-bottom: var(--space-8); }
  .glass-panel { padding: var(--space-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* ---- Gallery: horizontal swipeable strip instead of stacked images ---- */
  .gallery-grid {
    display: flex;
    grid-template-columns: unset;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--space-5) * -1);
    padding: 0 var(--space-5) var(--space-2);
  }

  .gallery-grid::-webkit-scrollbar { display: none; }

  .gallery-item {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
}

.main-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-4) var(--space-5);
}

.main-nav.open ul {
  flex-direction: column;
  gap: var(--space-2);
}

.main-nav.open a {
  display: block;
  padding: var(--space-3) 0;
}
