/* =====================================================================
   Rite Family Dental — Design System
   Style: Olive (Boutique Family)  •  Type: Playfair Display / Geist
   Self-contained, production CSS. No framework runtime → fast on any device.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Warm boutique palette */
  --bg:          #FBF8F3;  /* warm ivory            */
  --bg-alt:      #F3ECE0;  /* deeper sand           */
  --surface:     #FFFFFF;
  --primary:     #5C6A2F;  /* deep sage / teal      */
  --primary-dark:#3E4A1E;
  --primary-700: #4A5726;
  --sage:        #A7B56C;  /* soft sage accent      */
  --sage-soft:   #E6EAD2;
  --accent:      #C2A24C;  /* warm gold             */
  --accent-dark: #A8893A;
  --accent-soft: #F0E6CB;
  --text:        #2B2724;  /* warm charcoal         */
  --muted:       #5B544C;  /* warm gray (AA on bg)  */
  --border:      #E7DECF;
  --border-soft: #EFE8DB;

  /* Typography */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Soft-UI shadows */
  --shadow-sm: 0 1px 2px rgba(43,39,36,.04), 0 2px 6px rgba(43,39,36,.05);
  --shadow-md: 0 6px 16px rgba(43,39,36,.06), 0 12px 28px rgba(43,39,36,.06);
  --shadow-lg: 0 14px 34px rgba(43,39,36,.10), 0 28px 64px rgba(92,106,47,.10);
  --shadow-gold: 0 10px 26px rgba(194,162,76,.28);
  --shadow-green: 0 10px 26px rgba(92,106,47,.26);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --ease: cubic-bezier(.22,.7,.2,1);

  --header-h: 80px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem); }
p  { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sage));
}
.eyebrow--center::before { display: none; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: clamp(4rem, 3rem + 6vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p  { margin-top: 1rem; font-size: 1.08rem; }
.bg-alt { background: var(--bg-alt); }
.bg-sage { background: var(--sage-soft); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.7rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-green); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(92,106,47,.34); }
.btn--gold { background: var(--accent); color: #2A220C; box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: var(--accent-dark); color: #2A220C; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(194,162,76,.40); }
.btn--ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); transform: translateY(-2px); background: #fff; }
.btn--light { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--primary);
}
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(251,248,243,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--border-soft), 0 10px 30px rgba(43,39,36,.05);
  height: 68px;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  position: relative; padding: .55rem .85rem; border-radius: var(--r-sm);
  font-weight: 500; font-size: .96rem; color: var(--text);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .34rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-call {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.15rem; border-radius: var(--r-pill);
  background: var(--primary); color: #fff; font-weight: 600; font-size: .94rem;
  box-shadow: var(--shadow-green);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav-call:hover { background: var(--primary-dark); transform: translateY(-2px); }
.nav-call svg { width: 17px; height: 17px; }

/* Brand wordmark */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; color: var(--text);
  letter-spacing: -.01em;
}
.brand-text span {
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 600; margin-top: 3px;
}

/* Mobile nav */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 8%, rgba(194,162,76,.16), transparent 60%),
    radial-gradient(55% 65% at 8% 90%, rgba(167,181,108,.22), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 36rem; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.hero-trust .ht { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--muted); }
.hero-trust .ht b { display: block; color: var(--text); font-size: 1.02rem; }
.hero-trust .ht svg { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--sage), var(--primary));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(36,74,67,.28)); }
.hero-badge {
  position: absolute; z-index: 2; background: var(--surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem;
}
.hero-badge--rating { top: 1.3rem; left: -1.2rem; }
.hero-badge--hours { bottom: 1.3rem; right: -1.1rem; }
.hero-badge .stars { display: flex; gap: 2px; color: var(--accent); }
.hero-badge .stars svg { width: 15px; height: 15px; }
.hero-badge small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.hero-badge b { font-family: var(--font-head); font-size: 1.05rem; }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #C0392B; flex: none; }
.hero-badge .dot.open { background: #3FA76A; box-shadow: 0 0 0 4px rgba(63,167,106,.18); }

.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; z-index: -1; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.card-ico {
  width: 58px; height: 58px; border-radius: var(--r-md); margin-bottom: 1.25rem;
  display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(150deg, var(--sage-soft), #fff);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.card-ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .98rem; }

/* Service card variant */
.service-card { position: relative; overflow: hidden; }
.service-card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); padding: .3rem .7rem; border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.service-card ul { margin-top: 1.1rem; display: grid; gap: .55rem; }
.service-card li { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; color: var(--muted); }
.service-card li svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 2px; }

/* Feature (why us) */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature .f-ico {
  width: 50px; height: 50px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--primary), var(--sage));
  box-shadow: var(--shadow-green);
}
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.feature p { font-size: .96rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: linear-gradient(150deg, var(--sage), var(--primary-dark)); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(92,106,47,.05), rgba(92,106,47,.30)); }
.stat-strip { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 1.8rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-head); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); color: var(--primary); display: block; }
.stat span { font-size: .86rem; color: var(--muted); }
.checklist { margin-top: 1.5rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text); font-weight: 500; }
.checklist li svg { width: 22px; height: 22px; color: var(--sage); flex: none; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center; font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 600; color: #fff; position: relative;
  background: linear-gradient(150deg, var(--primary), var(--sage));
  box-shadow: var(--shadow-md), inset 0 0 0 5px rgba(255,255,255,.5);
}
.avatar--gold { background: linear-gradient(150deg, var(--accent-dark), var(--accent)); }
.avatar--sm { width: 52px; height: 52px; font-size: 1.05rem; margin: 0; box-shadow: var(--shadow-sm), inset 0 0 0 3px rgba(255,255,255,.5); }
.team-card h3 { margin-bottom: .2rem; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; }
.team-card p { margin-top: .9rem; font-size: .97rem; text-align: left; }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; height: 100%; }
.review-card .stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 1rem; }
.review-card .stars svg { width: 19px; height: 19px; }
.review-card blockquote { font-size: 1.02rem; color: var(--text); line-height: 1.7; flex: 1; }
.review-card .reviewer { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--border-soft); }
.review-card .reviewer b { display: block; font-size: .98rem; }
.review-card .reviewer small { color: var(--muted); font-size: .82rem; }
.gquote { width: 30px; height: 30px; color: var(--sage); opacity: .6; margin-bottom: .4rem; }

/* ---------- Location / Hours ---------- */
.locate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3vw, 2.6rem); align-items: stretch; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 360px; background: var(--sage-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border-soft); }
.hours-table tr:last-child { border-bottom: 0; }
.hours-table td { padding: .72rem .2rem; font-size: .98rem; }
.hours-table td:first-child { color: var(--text); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.is-today td { color: var(--primary); font-weight: 700; }
.hours-table tr.is-today td:first-child::after { content: " • Today"; color: var(--accent-dark); font-weight: 600; font-size: .78rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; }
.info-row svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.info-row b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.info-row a, .info-row span { color: var(--text); font-size: 1.05rem; }
.info-row a:hover { color: var(--primary); }

.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; background: var(--sage-soft); color: var(--primary-dark); }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #C0392B; }
.status-pill .dot.open { background: #3FA76A; box-shadow: 0 0 0 4px rgba(63,167,106,.18); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.6rem, 5vw, 4.2rem); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--sage)); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 80% 10%, rgba(194,162,76,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); margin: 1rem auto 0; max-width: 52ch; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-phone { display: inline-block; font-family: var(--font-head); font-size: clamp(1.6rem,1.2rem+1.4vw,2.2rem); color: #fff; margin-top: .4rem; }
.cta-phone:hover { color: var(--accent-soft); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(2.4rem, 5vw, 4rem)); padding-bottom: clamp(2.4rem, 4vw, 3.6rem); text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, rgba(167,181,108,.20), transparent 60%), var(--bg-alt); }
.page-hero p { margin: 1rem auto 0; max-width: 56ch; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: var(--container-narrow); margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 0 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; color: var(--primary); flex: none; transition: transform .3s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding-bottom: 1.3rem; color: var(--muted); margin-top: -.3rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step .num { counter-increment: step; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; background: linear-gradient(150deg, var(--primary), var(--sage)); box-shadow: var(--shadow-green); }
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.step p { font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer { background: #36421B; color: rgba(255,255,255,.74); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.2rem; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text span { color: var(--accent); }
.footer-about { margin-top: 1.1rem; font-size: .95rem; color: rgba(255,255,255,.66); max-width: 30ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.74); font-size: .96rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 1rem; top: -120%; z-index: 100; background: var(--primary); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r-sm); font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }

/* ---------- Scroll-reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Hero entrance (load) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.anim-up { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .31s; }
.d4 { animation-delay: .44s; } .d5 { animation-delay: .57s; } .d6 { animation-delay: .70s; }
.hero-visual .hero-photo { animation: fadeUp 1s var(--ease) .25s both; }
.hero-badge--rating { animation: fadeUp .8s var(--ease) .7s both; }
.hero-badge--hours { animation: fadeUp .8s var(--ease) .85s both; }
.float-slow { animation: floaty 7s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; order: -1; }
  .hero-badge--rating { left: .4rem; } .hero-badge--hours { right: .4rem; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .locate, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .nav-links, .nav-call span { display: none; }
  .nav-toggle { display: inline-flex; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile slide-down menu */
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 45;
    background: rgba(251,248,243,.98); backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-soft);
    padding: 1rem clamp(1.1rem,4vw,2rem) 1.6rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: .95rem .6rem; font-size: 1.08rem; font-weight: 500; border-bottom: 1px solid var(--border-soft); color: var(--text); }
  .mobile-menu a[aria-current="page"] { color: var(--primary); font-weight: 600; }
  .mobile-menu .btn { margin-top: 1.2rem; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge--rating, .hero-badge--hours { position: static; margin: .8rem 0 0; animation: none; }
  .hero-visual { box-shadow: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .anim-up { opacity: 1 !important; animation: none !important; }
  .hero-visual .hero-photo, .hero-badge--rating, .hero-badge--hours { animation: none !important; opacity: 1 !important; }
}

/* ---------- Print ---------- */
@media print { .site-header, .mobile-menu, .cta-band, .nav-toggle { display: none !important; } body { font-size: 12pt; } }

/* =====================================================================
   Blog
   ===================================================================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.blog-layout { display:grid; grid-template-columns: 1fr 320px; gap: clamp(1.6rem,3vw,3rem); align-items:start; }
.blog-main { grid-column:1; grid-row:1; }
.sidebar { grid-column:2; grid-row:1; display:grid; gap:1.2rem; position:sticky; top: calc(var(--header-h) + 16px); }

.blog-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.2rem,2.2vw,1.7rem); }

.post-card { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.post-thumb { position:relative; display:block; aspect-ratio:16/10; overflow:hidden; background:linear-gradient(150deg,var(--sage),var(--primary-dark)); }
.post-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-cat { position:absolute; left:.9rem; bottom:.9rem; z-index:2; font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:#2A220C; background:var(--accent); padding:.35rem .7rem; border-radius:var(--r-pill); box-shadow:var(--shadow-sm); }
.post-body { padding: clamp(1.2rem,2vw,1.5rem); display:flex; flex-direction:column; flex:1; }
.post-meta { display:flex; align-items:center; gap:.45rem; font-size:.82rem; color:var(--muted); margin-bottom:.6rem; }
.post-meta svg { width:15px; height:15px; color:var(--sage); }
.post-card h3 { font-size:1.2rem; line-height:1.25; margin-bottom:.55rem; }
.post-card h3 a { transition: color .2s var(--ease); }
.post-card h3 a:hover { color:var(--primary); }
.post-card p { font-size:.95rem; flex:1; }
.read-more { display:inline-flex; align-items:center; gap:.4rem; margin-top:1.1rem; font-weight:600; color:var(--primary); align-self:flex-start; }
.read-more svg { width:17px; height:17px; transition: transform .25s var(--ease); }
.read-more:hover svg { transform: translateX(4px); }

.sidebar-card { padding: clamp(1.2rem,2vw,1.5rem); }
.sidebar-title { font-family:var(--font-body); font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-dark); margin-bottom:1rem; }
.search-box { display:flex; align-items:center; gap:.6rem; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-pill); padding:.15rem .4rem .15rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search-box:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(92,106,47,.12); }
.search-box svg { width:18px; height:18px; color:var(--muted); flex:none; }
.search-box input { flex:1; border:none; background:none; padding:.7rem 0; font:inherit; font-size:.95rem; color:var(--text); outline:none; min-width:0; }
.search-box input::placeholder { color:var(--muted); }
.cat-list { display:grid; gap:.25rem; }
.cat-link { display:flex; width:100%; align-items:center; justify-content:space-between; gap:.6rem; padding:.7rem .85rem; border-radius:var(--r-sm); font-size:.96rem; font-weight:500; color:var(--text); text-align:left; cursor:pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.cat-link:hover { background:var(--sage-soft); color:var(--primary); }
.cat-link.is-active { background:var(--primary); color:#fff; }
.cat-count { font-size:.78rem; font-weight:600; min-width:24px; height:24px; padding:0 .45rem; display:inline-flex; align-items:center; justify-content:center; border-radius:var(--r-pill); background:var(--accent-soft); color:var(--accent-dark); transition: background-color .2s var(--ease), color .2s var(--ease); }
.cat-link.is-active .cat-count { background:rgba(255,255,255,.22); color:#fff; }

.sidebar-cta { text-align:center; background:linear-gradient(150deg,var(--primary-dark),var(--primary)); color:#fff; border:none; }
.sidebar-cta h3 { color:#fff; font-size:1.18rem; margin-bottom:.4rem; }
.sidebar-cta p { color:rgba(255,255,255,.82); font-size:.9rem; margin-bottom:1.1rem; }

.no-results { display:none; text-align:center; padding:3.5rem 1rem; color:var(--muted); grid-column:1 / -1; }
.no-results.show { display:block; }
.no-results svg { width:40px; height:40px; color:var(--sage); margin-bottom:.8rem; }

/* Nav collapses to hamburger earlier so the 7-item menu never crowds */
@media (max-width: 940px) {
  .nav-links, .nav-call span { display:none; }
  .nav-toggle { display:inline-flex; }
  .mobile-menu { display:block; position:fixed; inset: var(--header-h) 0 auto 0; z-index:45;
    background: rgba(251,248,243,.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg); border-top:1px solid var(--border-soft);
    padding:1rem clamp(1.1rem,4vw,2rem) 1.6rem;
    transform: translateY(-12px); opacity:0; pointer-events:none;
    transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .mobile-menu.open { transform:none; opacity:1; pointer-events:auto; }
  .mobile-menu a { display:block; padding:.9rem .6rem; font-size:1.06rem; font-weight:500; border-bottom:1px solid var(--border-soft); color:var(--text); }
  .mobile-menu a[aria-current="page"] { color:var(--primary); font-weight:600; }
  .mobile-menu .btn { margin-top:1.1rem; }
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns:1fr; }
  .sidebar { position:static; grid-column:1; grid-row:auto; }
  .blog-main { grid-column:1; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns:1fr; }
}

/* =====================================================================
   Article (single blog post)
   ===================================================================== */
.article-head { max-width:790px; margin-inline:auto; text-align:center; }
.article-tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#2A220C; background:var(--accent); padding:.35rem .8rem; border-radius:var(--r-pill); }
.article-head h1 { font-size: clamp(2rem,1.45rem+2.2vw,3.05rem); margin-top:1.1rem; }
.article-meta { display:flex; align-items:center; justify-content:center; gap:.8rem 1.4rem; flex-wrap:wrap; margin-top:1.4rem; color:var(--muted); font-size:.92rem; }
.article-meta .am { display:inline-flex; align-items:center; gap:.45rem; }
.article-meta svg { width:16px; height:16px; color:var(--sage); flex:none; }
.article-author { display:inline-flex; align-items:center; gap:.55rem; color:var(--text); font-weight:600; }
.article-meta .avatar--sm { width:36px; height:36px; font-size:.78rem; }

.article-featured { max-width:1000px; margin:clamp(2rem,4vw,3rem) auto 0; border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow-lg); aspect-ratio:16 / 7.5; background:linear-gradient(150deg,var(--sage),var(--primary-dark)); }
.article-featured img { width:100%; height:100%; object-fit:cover; }

.prose { max-width:720px; margin-inline:auto; }
.prose > * + * { margin-top:1.25rem; }
.prose p { font-size:1.075rem; line-height:1.8; color:var(--text); }
.prose .lead { font-size:1.2rem; line-height:1.7; color:var(--muted); }
.prose h2 { font-size:clamp(1.5rem,1.2rem+1vw,1.95rem); margin-top:2.5rem; }
.prose h3 { font-size:1.28rem; margin-top:1.9rem; }
.prose ul, .prose ol { padding-left:1.4rem; display:grid; gap:.55rem; }
.prose ul li { list-style:disc; }
.prose ol li { list-style:decimal; }
.prose li { color:var(--text); font-size:1.05rem; line-height:1.7; padding-left:.25rem; }
.prose li::marker { color:var(--accent-dark); }
.prose a:not(.btn):not(.read-more) { color:var(--primary); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--sage); transition:text-decoration-color .2s var(--ease); }
.prose a:not(.btn):not(.read-more):hover { text-decoration-color:var(--primary); }
.prose strong { color:var(--text); font-weight:700; }
.prose blockquote { border-left:4px solid var(--accent); background:var(--bg-alt); padding:1.2rem 1.6rem; border-radius:0 var(--r-md) var(--r-md) 0; font-family:var(--font-head); font-size:1.25rem; font-style:italic; line-height:1.5; color:var(--primary-dark); }
.prose hr { border:0; height:1px; background:var(--border); margin:2.6rem 0; }

.callout { background:linear-gradient(150deg,var(--sage-soft),#fff); border:1px solid var(--border-soft); border-radius:var(--r-lg); padding:1.5rem 1.7rem; box-shadow:var(--shadow-sm); }
.callout h3 { margin-top:0 !important; display:flex; align-items:center; gap:.55rem; font-size:1.12rem; }
.callout h3 svg { width:22px; height:22px; color:var(--primary); flex:none; }
.callout > p, .callout ul { margin-top:.8rem; }

.article-foot { max-width:720px; margin:2.6rem auto 0; padding-top:1.6rem; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.article-tags { display:flex; gap:.5rem; flex-wrap:wrap; }
.chip { font-size:.78rem; font-weight:600; color:var(--primary-dark); background:var(--sage-soft); padding:.32rem .7rem; border-radius:var(--r-pill); }
.back-link { display:inline-flex; align-items:center; gap:.45rem; font-weight:600; color:var(--primary); }
.back-link svg { width:18px; height:18px; transition: transform .25s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }
.disclaimer { max-width:720px; margin:1.8rem auto 0; font-size:.85rem; color:var(--muted); font-style:italic; text-align:center; }

@media (max-width: 560px) {
  .article-meta { gap:.55rem 1rem; font-size:.86rem; }
  .article-foot { flex-direction:column; align-items:flex-start; }
}

/* =====================================================================
   Premium polish (v3): texture, depth & hand-crafted motion
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }

/* Fine film grain — tactile, printed depth across the whole page */
body::before {
  content:""; position:fixed; inset:0; z-index:60; pointer-events:none;
  opacity:.05; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:180px 180px;
}

/* Section depth — soft tonal light instead of flat colour fills */
.bg-alt {
  background:
    radial-gradient(78% 60% at 100% -15%, rgba(194,162,76,.09), transparent 55%),
    radial-gradient(62% 60% at -8% 115%, rgba(92,106,47,.06), transparent 55%),
    var(--bg-alt);
  box-shadow: inset 0 1px 0 rgba(43,39,36,.05), inset 0 -1px 0 rgba(43,39,36,.04);
}
.bg-sage {
  background:
    radial-gradient(65% 72% at 0% -8%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(60% 65% at 100% 110%, rgba(92,106,47,.13), transparent 55%),
    var(--sage-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(92,106,47,.06);
}
/* a whisper of warmth so plain sections never read as flat white */
.section:not(.bg-alt):not(.bg-sage) {
  background-image: radial-gradient(55% 45% at 50% -12%, rgba(167,181,108,.06), transparent 62%);
}
.site-footer {
  background:
    radial-gradient(70% 130% at 50% -25%, #46531F, transparent 60%),
    #36421B;
}

/* Refined entrance — slow ease-out + a soft focus-pull (kills the AOS-fade feel) */
.reveal {
  transform: translateY(18px) scale(.992);
  filter: blur(2px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal.is-visible { transform: none; filter: blur(0); }

/* The eyebrow hairline draws itself in as the section arrives */
.reveal .eyebrow::before { transform: scaleX(0); transform-origin:left; transition: transform .7s .15s var(--ease-out); }
.reveal.is-visible .eyebrow::before { transform: scaleX(1); }

/* Key imagery reveals with an editorial clip-wipe, not a slide */
.split-media.reveal, .article-featured.reveal {
  opacity:1 !important; transform:none !important; filter:none !important;
  clip-path: inset(0 round var(--r-xl));
  transition: clip-path 1.15s var(--ease-out);
}
.split-media.reveal:not(.is-visible), .article-featured.reveal:not(.is-visible) {
  clip-path: inset(0 0 100% 0 round var(--r-xl));
}
.split-media.reveal img, .article-featured.reveal img { transition: transform 1.4s var(--ease-out); }
.split-media.reveal:not(.is-visible) img, .article-featured.reveal:not(.is-visible) img { transform: scale(1.14); }

/* Buttons get a quiet light-sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content:""; position:absolute; top:0; bottom:0; left:-130%; width:55%; z-index:-1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease-out); pointer-events:none;
}
.btn:hover::after { left: 150%; }

/* Service tiles draw a gold/sage rule on hover */
.service-card::after {
  content:""; position:absolute; left:0; top:0; height:3px; width:100%; z-index:2;
  background: linear-gradient(90deg, var(--accent), var(--sage));
  transform: scaleX(0); transform-origin:left; transition: transform .5s var(--ease-out);
}
.service-card:hover::after { transform: scaleX(1); }

/* Hero visual: smoothing for the JS pointer-parallax */
.hero-visual { transition: transform .6s var(--ease-out); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  body::before { display:none; }
  .reveal { filter:none !important; }
  .split-media.reveal, .article-featured.reveal { clip-path:none !important; }
  .split-media.reveal img, .article-featured.reveal img { transform:none !important; }
  .reveal .eyebrow::before { transform: scaleX(1) !important; }
  .btn::after { display:none !important; }
  .hero-visual { transition:none !important; }
}

/* =====================================================================
   Sparkle text — vanilla port of Magic UI's <SparklesText>.
   Usage: <span data-sparkles data-sparkles-count="7">text</span>
   Optional: data-sparkles-c1 / data-sparkles-c2 to override the colors.
   ===================================================================== */
[data-sparkles] { position: relative; display: inline-block; }
.sparkle {
  position: absolute; pointer-events: none; z-index: 2;
  width: 17px; height: 17px; transform: scale(0); transform-origin: center;
  animation: sparkle .8s linear infinite;
}
@keyframes sparkle {
  0%   { opacity: 0; transform: scale(0) rotate(75deg); }
  50%  { opacity: 1; transform: scale(var(--s, 1)) rotate(120deg); }
  100% { opacity: 0; transform: scale(0) rotate(150deg); }
}
@media (prefers-reduced-motion: reduce) { .sparkle { display: none !important; } }
