/* ==========================================================================
   RIEOS AUTO STUDIO — Design System
   Palette: Black / Dark Grey / Accent Grey / White / Light Grey (brief-spec)
   Signature motif: technical "spec-sheet" dimension lines + corner brackets,
   echoing the blueprint/measurement marks on the brand's own logo sheet.
   ========================================================================== */

:root {
  /* Brand palette (exact spec) */
  --c-black: #000000;
  --c-dark-grey: #2B2B2B;
  --c-accent-grey: #555555;
  --c-white: #FFFFFF;
  --c-light-bg: #F5F5F5;

  /* Derived tones — default (light-surface) context.
     Dark surfaces (.section--dark, .hero, .site-footer, etc.) re-scope
     these two below, so every component that uses them auto-adapts. */
  --c-line: rgba(0,0,0,0.12);
  --c-line-soft: rgba(0,0,0,0.08);
  --c-muted: #6B6B6B;

  /* Type */
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --container: 1240px;
  --radius: 2px; /* near-square, technical, not soft/bubbly */
  --gap-xl: clamp(64px, 8vw, 120px);
  --gap-lg: clamp(40px, 5vw, 72px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--f-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-black); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--gap-xl) 0; position: relative; }
.section--light { background: var(--c-light-bg); color: var(--c-black); }
.section--white { background: var(--c-white); color: var(--c-black); }
.section--dark, .hero, .site-footer, .appointment-modal__panel {
  background: var(--c-black); color: var(--c-white);
  --c-line: rgba(255,255,255,0.14);
  --c-line-soft: rgba(255,255,255,0.10);
  --c-muted: #9A9A9A;
}
.section--grey { background: #ECECEC; color: var(--c-black); }

/* ---- Eyebrow / dimension-line signature ---- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow::before { width: 22px; flex: none; }
.eyebrow::after { flex: 1; }
.eyebrow .tick { position: relative; }
.eyebrow .tick::before {
  content: '';
  position: absolute; left: -14px; top: 50%;
  width: 1px; height: 8px; background: currentColor; opacity: .5;
  transform: translateY(-50%);
}

.section-title { font-size: clamp(28px, 4vw, 46px); letter-spacing: 0.01em; max-width: 720px; }
.section-sub { font-family: var(--f-body); text-transform: none; font-size: 16px; color: var(--c-muted); max-width: 560px; margin-top: 16px; font-weight: 400; }
.section--light .section-sub, .section--white .section-sub, .section--grey .section-sub { color: #555; }

/* dimension-line divider used between sections */
.dim-divider { display: flex; align-items: center; gap: 12px; color: var(--c-accent-grey); margin: 0 auto; max-width: var(--container); padding: 0 24px; }
.dim-divider .bracket { width: 1px; height: 14px; background: currentColor; }
.dim-divider .line { flex: 1; height: 1px; background: currentColor; opacity: .4; }
.dim-divider .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; white-space: nowrap; opacity: .7; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-white); color: var(--c-black); }
.btn-primary:hover { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.section--light .btn-primary, .section--white .btn-primary, .section--grey .btn-primary { background: var(--c-black); color: var(--c-white); }
.section--light .btn-primary:hover, .section--white .btn-primary:hover, .section--grey .btn-primary:hover { background: transparent; color: var(--c-black); border-color: var(--c-black); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--c-white); }
.btn-outline:hover { background: var(--c-white); color: var(--c-black); }
.section--light .btn-outline, .section--white .btn-outline, .section--grey .btn-outline { border-color: rgba(0,0,0,0.3); color: var(--c-black); }
.section--light .btn-outline:hover, .section--white .btn-outline:hover, .section--grey .btn-outline:hover { background: var(--c-black); color: var(--c-white); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line-soft);
  transition: box-shadow .3s var(--ease), padding .3s;
  padding: 20px 0;
  color: var(--c-black);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 13px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-black); opacity: .7; position: relative; padding: 4px 0;
}
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--c-black);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.has-mega { position: relative; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(880px, 90vw); padding-top: 22px; margin-top: -22px;
  background: transparent;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mega-menu-inner {
  background: var(--c-white); border: 1px solid var(--c-line-soft); box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 30px;
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu a { display: block; padding: 9px 0; opacity: .7; color: var(--c-black); border-bottom: 1px solid var(--c-line-soft); font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.mega-menu a:hover { opacity: 1; }
.mega-menu a::after { display: none; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 12px 22px; }
.header-cta .btn-outline { border-color: rgba(0,0,0,0.3); color: var(--c-black); }
.header-cta .btn-outline:hover { background: var(--c-black); color: var(--c-white); }
.header-cta .btn-primary { background: var(--c-black); color: var(--c-white); }
.header-cta .btn-primary:hover { background: transparent; color: var(--c-black); border-color: var(--c-black); }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-line-soft); color: var(--c-black); width: 44px; height: 44px; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--c-white); flex-direction: column; justify-content: center; transform: translateX(100%); transition: transform .35s var(--ease); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; text-align: center; gap: 22px; }
  .main-nav a { font-size: 16px; color: var(--c-black); }
  .mega-menu { position: static; transform: none; width: 100%; padding-top: 0; margin-top: 10px; opacity: 1; visibility: visible; display: none; }
  .mega-menu-inner { grid-template-columns: 1fr; background: transparent; border: none; box-shadow: none; padding: 0; }
  .has-mega:hover .mega-menu, .has-mega.is-open .mega-menu { display: block; }
  .has-mega:hover .mega-menu-inner, .has-mega.is-open .mega-menu-inner { display: grid; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* Floating action buttons */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-black); color: var(--c-white); box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.whatsapp { background: #25D366; color: #fff; }

.brand-text-fallback { font-family: var(--f-display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-black); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 80% 0%, #1c1c1c 0%, #000 60%);
  padding-top: 140px; padding-bottom: var(--gap-lg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.hero-illustration {
  position: absolute; right: -5%; bottom: 0; width: 65%; max-width: 900px; height: auto;
  opacity: 0.12; pointer-events: none;
}
@media (max-width: 900px) { .hero-illustration { width: 90%; right: -10%; opacity: 0.08; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: end; width: 100%; }
.hero-kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--c-muted); display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-kicker .dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { font-size: clamp(42px, 7vw, 92px); letter-spacing: 0.005em; }
.hero h1 span { color: var(--c-muted); }
.hero-desc { font-family: var(--f-body); text-transform: none; font-size: 18px; color: #c9c9c9; max-width: 480px; margin-top: 24px; font-weight: 300; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--c-line); padding-left: 34px; }
.hero-stat b { font-family: var(--f-display); font-size: 40px; display: block; }
.hero-stat span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--c-muted); text-transform: uppercase; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; border-left: none; border-top: 1px solid var(--c-line); padding-left: 0; padding-top: 24px; flex-wrap: wrap; }
}

/* ==========================================================================
   INTRO / WHY CHOOSE US
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--gap-lg); align-items: center; }
.intro-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.corner-bracket { position: absolute; width: 26px; height: 26px; }
.corner-bracket.tl { top: 14px; left: 14px; border-top: 2px solid var(--c-white); border-left: 2px solid var(--c-white); }
.corner-bracket.br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--c-white); border-right: 2px solid var(--c-white); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); margin-top: var(--gap-lg); border: 1px solid var(--c-line); }
.why-card { background: var(--c-black); padding: 34px 26px; color: var(--c-white); }
.why-icon { width: 30px; height: 30px; color: var(--c-white); margin-bottom: 18px; }
.why-card .num { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
.why-card h3 { font-size: 19px; margin: 18px 0 10px; }
.why-card p { font-family: var(--f-body); text-transform: none; font-size: 14.5px; color: var(--c-muted); font-weight: 400; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   FEATURED SERVICES
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,0.08); margin-top: var(--gap-lg); }
.service-card {
  background: var(--c-white); color: var(--c-black); padding: 38px 30px; position: relative; overflow: hidden;
  border: 1px solid var(--c-line); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.service-card { position: relative; overflow: hidden; }
.service-card .thumb { aspect-ratio: 16/10; overflow: hidden; margin: -38px -30px 22px; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .idx { font-family: var(--f-mono); font-size: 12px; color: var(--c-accent-grey); }
.service-card h3 { font-size: 22px; margin: 22px 0 12px; }
.service-card p { font-family: var(--f-body); text-transform: none; font-size: 14.5px; color: #666; font-weight: 400; }
.service-card:hover p { color: #bbb; }
.service-card .link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 22px; }
.service-card .link .arrow { transition: transform .3s var(--ease); }
.service-card:hover .link .arrow { transform: translateX(6px); }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   BEFORE / AFTER SLIDER
   ========================================================================== */
.ba-slider { position: relative; aspect-ratio: 16/9; max-width: 900px; margin: var(--gap-lg) auto 0; overflow: hidden; cursor: ew-resize; user-select: none; border: 1px solid var(--c-line); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .after-wrap { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba-slider .after-wrap img { width: var(--ba-width, 900px); max-width: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--c-white); transform: translateX(-1px); }
.ba-handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; background: var(--c-white); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ba-label { position: absolute; top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,0.6); padding: 6px 12px; }
.ba-label.before { left: 16px; } .ba-label.after { right: 16px; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: var(--gap-lg); position: relative; }
.timeline::before { content: ''; position: absolute; top: 17px; left: 0; right: 0; height: 1px; background: var(--c-line); }
.timeline-step { position: relative; padding-top: 50px; }
.timeline-step .marker { position: absolute; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--c-line); background: var(--c-black); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; }
.timeline-step h3 { font-size: 17px; margin-bottom: 10px; }
.timeline-step p { font-family: var(--f-body); text-transform: none; font-size: 14px; color: var(--c-muted); font-weight: 400; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before{ display:none; } }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-slider { margin-top: var(--gap-lg); position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s var(--ease); }
.testi-card { min-width: 100%; padding: 0 4px; }
.testi-card blockquote { font-family: var(--f-display); text-transform: none; font-size: clamp(20px, 2.6vw, 30px); font-weight: 400; line-height: 1.4; max-width: 780px; }
.testi-meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); text-transform: uppercase; }
.testi-stars { color: var(--c-black); letter-spacing: 2px; }
.testi-controls { display: flex; gap: 10px; margin-top: 34px; }
.testi-dot { width: 26px; height: 2px; background: var(--c-line); border: none; cursor: pointer; transition: background .3s; }
.testi-dot.is-active { background: var(--c-black); }

/* ==========================================================================
   FRANCHISE HIGHLIGHT
   ========================================================================== */
.franchise-banner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gap-lg); align-items: center; }
.franchise-banner .stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.franchise-banner .stat b { font-family: var(--f-display); font-size: 34px; display: block; }
.franchise-banner .stat span { font-family: var(--f-mono); font-size: 11px; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; }
.franchise-partner-tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); border: 1px solid var(--c-line); display: inline-block; padding: 8px 14px; margin-top: 28px; }

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: var(--gap-lg); }
.blog-card .thumb { aspect-ratio: 4/3; background: var(--c-dark-grey); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin-top: 18px; display: block; }
.blog-card h3 { font-size: 18px; text-transform: none; margin-top: 10px; font-weight: 600; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICE AREAS
   ========================================================================== */
.areas-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--gap-lg); }
.area-chip { font-family: var(--f-mono); font-size: 13px; letter-spacing: .05em; border: 1px solid var(--c-line-soft); padding: 12px 20px; text-transform: uppercase; }
.section--light .area-chip, .section--white .area-chip, .section--grey .area-chip { border-color: rgba(0,0,0,0.15); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { max-width: 820px; margin-top: var(--gap-lg); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.section--light .faq-item, .section--white .faq-item, .section--grey .faq-item { border-color: rgba(0,0,0,0.12); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; background: none; border: none; color: inherit; text-align: left; font-family: var(--f-display); font-size: 17px; text-transform: none; letter-spacing: .01em; }
.faq-q .plus { font-family: var(--f-mono); font-size: 20px; transition: transform .3s var(--ease); flex: none; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding-bottom: 24px; font-family: var(--f-body); font-size: 15px; color: var(--c-muted); max-width: 680px; }
.section--light .faq-a p, .section--white .faq-a p, .section--grey .faq-a p { color: #555; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band .section-title { max-width: none; margin: 0 auto 30px; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--c-black); border-top: 1px solid var(--c-line); padding: var(--gap-lg) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand p { font-family: var(--f-body); color: var(--c-muted); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--c-muted); margin-bottom: 20px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14.5px; opacity: .85; }
.footer-col a:hover { opacity: 1; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Animated counters + reveal-on-scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   INNER PAGE HEADER + BREADCRUMB
   ========================================================================== */
.page-header { padding: 150px 0 60px; background: var(--c-white); color: var(--c-black); }
.breadcrumb { margin-bottom: 30px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; color: var(--c-muted); text-transform: uppercase; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-black); }
.breadcrumb li[aria-current="page"] { color: var(--c-black); }
.breadcrumb .sep { opacity: .4; }

/* ---- Service detail hero ---- */
.service-hero-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: var(--gap-lg); align-items: end; }
.service-price-peek {
  border: 1px solid var(--c-line); padding: 30px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.service-price-peek .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--c-muted); text-transform: uppercase; }
.service-price-peek b { font-family: var(--f-display); font-size: 40px; }
.service-price-peek .pkg-name { font-family: var(--f-body); font-size: 13px; color: var(--c-muted); }
@media (max-width: 860px) { .service-hero-grid { grid-template-columns: 1fr; } }

/* ---- Benefits grid ---- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: var(--gap-lg); max-width: 900px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; font-size: 15.5px; }
.benefit-item .check { flex: none; width: 24px; height: 24px; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }
@media (max-width: 700px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---- Pricing cards ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: var(--gap-lg); }
.price-card { background: var(--c-black); color: var(--c-white); border: 1px solid var(--c-line); padding: 36px 30px; position: relative; }
.price-card.is-featured { border-color: var(--c-white); }
.price-badge { position: absolute; top: -1px; right: -1px; background: var(--c-white); color: #000; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.price-card h3 { font-size: 18px; }
.price-amount { font-family: var(--f-display); font-size: 34px; margin: 16px 0 22px; }
.price-features { display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-family: var(--f-body); font-size: 14px; color: var(--c-muted); padding-left: 20px; position: relative; }
.price-features li::before { content: '—'; position: absolute; left: 0; opacity: .5; }

/* ---- Team grid (About Us) ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: var(--gap-lg); }
.team-card { text-align: left; }
.team-photo { aspect-ratio: 1/1; background: linear-gradient(160deg, #e4e4e4, #c9c9c9); margin-bottom: 18px; }
.team-card h3 { font-size: 16px; margin-bottom: 8px; }
.team-card p { font-family: var(--f-body); text-transform: none; font-size: 13.5px; color: #666; font-weight: 400; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Gallery grid (About Us) ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: var(--gap-lg); }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Shared lead-capture forms (franchise, appointment, contact) ---- */
.lead-form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin-top: var(--gap-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.section--light .form-field label, .section--white .form-field label, .section--grey .form-field label { color: #555; }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid var(--c-line); color: inherit;
  padding: 14px 16px; font-family: var(--f-body); font-size: 15px; border-radius: var(--radius);
  width: 100%;
}
.section--light .form-field input, .section--white .form-field input, .section--grey .form-field input,
.section--light .form-field select, .section--white .form-field select, .section--grey .form-field select,
.section--light .form-field textarea, .section--white .form-field textarea, .section--grey .form-field textarea { background: #fff; border-color: rgba(0,0,0,0.15); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.section--light .form-field input:focus, .section--white .form-field input:focus, .section--grey .form-field input:focus,
.section--light .form-field select:focus, .section--white .form-field select:focus, .section--grey .form-field select:focus,
.section--light .form-field textarea:focus, .section--white .form-field textarea:focus, .section--grey .form-field textarea:focus { border-color: rgba(0,0,0,0.4); }
.field-error { font-family: var(--f-body); font-size: 12.5px; color: #c0392b; }
.form-alert { max-width: 760px; margin-top: var(--gap-lg); padding: 18px 22px; font-family: var(--f-body); font-size: 14.5px; border: 1px solid; }
.form-alert--success { border-color: #3fae5c; background: rgba(63,174,92,0.1); }
.form-alert--error { border-color: #d15c5c; background: rgba(209,92,92,0.1); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: var(--gap-lg); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { border: 1px solid var(--c-line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-card .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.contact-card .contact-value { font-family: var(--f-display); font-size: 19px; text-transform: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.map-placeholder {
  aspect-ratio: 21/9; border: 1px dashed var(--c-line-soft); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .05em; color: var(--c-muted); text-align: center; padding: 20px;
}

.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--gap-lg); }
.branch-card { border: 1px solid var(--c-line); padding: 28px; }
.branch-card h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.branch-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--c-line); padding: 3px 8px; }
.branch-card p { font-family: var(--f-body); text-transform: none; font-size: 14px; color: var(--c-muted); font-weight: 400; margin-bottom: 10px; }
.branch-phone { font-family: var(--f-mono); font-size: 13px; }
@media (max-width: 860px) { .branch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .branch-grid { grid-template-columns: 1fr; } }

/* ---- Blog listing toolbar ---- */
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.blog-search { display: flex; gap: 10px; }
.blog-search input { padding: 12px 16px; border: 1px solid rgba(0,0,0,0.15); font-family: var(--f-body); font-size: 14px; min-width: 220px; border-radius: var(--radius); }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 16px; border: 1px solid rgba(0,0,0,0.15); }
.cat-pill.is-active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

.blog-pagination { display: flex; gap: 8px; margin-top: var(--gap-lg); justify-content: center; }
.page-link { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.15); font-family: var(--f-mono); font-size: 13px; }
.page-link.is-active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

/* ---- Article prose (blog detail) ---- */
.article-body { max-width: 760px; font-family: var(--f-body); font-size: 16.5px; line-height: 1.8; color: #444; }
.article-body p { margin-bottom: 22px; }
.article-body h2, .article-body h3 { text-transform: none; color: var(--c-black); margin: 40px 0 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { margin: 30px 0; }
.article-body a { text-decoration: underline; }

/* ---- Appointment popup modal ---- */
.appointment-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.appointment-modal.is-open { display: flex; }
.appointment-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.appointment-modal__panel { position: relative; background: var(--c-dark-grey); border: 1px solid var(--c-line); padding: 40px; width: 100%; max-width: 420px; }
.appointment-modal__panel h3 { font-size: 22px; }
.appointment-modal__panel .modal-sub { font-family: var(--f-body); text-transform: none; font-size: 14px; color: var(--c-muted); margin-top: 10px; font-weight: 400; }
.appointment-modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--c-white); font-size: 26px; line-height: 1; }
.appointment-form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.appointment-form input {
  background: rgba(255,255,255,0.06); border: 1px solid var(--c-line); color: var(--c-white);
  padding: 14px 16px; font-family: var(--f-body); font-size: 14.5px; border-radius: var(--radius);
}
.appointment-form input::placeholder { color: var(--c-muted); }
.appointment-form input:focus { outline: none; border-color: rgba(255,255,255,0.5); }

/* ---- Utility ---- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
