/* =====================================================================
   ALMEIDA FAMILY CONSTRUCTION — Public site styles
   Mobile-first. Every breakpoint is min-width.
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset for the sticky header when jumping to an anchor */
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* Visible focus for keyboard users only */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 999;
  background: var(--accent); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap-slim { max-width: var(--wrap-slim); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-sunk { background: var(--bg-sunk); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.012em; }
p  { text-wrap: pretty; }

.lead {
  font-size: var(--fs-md);
  color: var(--text-soft);
  line-height: 1.62;
}

/* Section label: small caps with a short brand rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 30px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand-300));
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--sp-4); }

/* Highlight inside headings — a hand-drawn brush underline */
.mark {
  color: var(--accent);
  position: relative; white-space: nowrap;
}
.mark::after {
  content: ""; position: absolute;
  left: -2%; right: -2%; bottom: 0.02em; height: 0.30em;
  background: var(--accent); opacity: 0.18;
  border-radius: 0.15em;
  transform: rotate(-0.7deg);
  z-index: -1;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.012em;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  /* Comfortable tap target on phones */
  min-height: 52px;
}
.btn svg { flex-shrink: 0; }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: rgba(255,255,255,0.10); color: #fff;
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,0.20); border-color: #fff; }

.btn-lg { padding: 1.15rem 2.2rem; font-size: var(--fs-base); min-height: 58px; }
.btn-block { width: 100%; }

/* Text link with a sliding arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; color: var(--accent);
  font-family: var(--font-display);
}
.link-arrow svg { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* Slim top strip: phone + hours + socials */
.topbar {
  display: none;
  background: var(--ink-900); color: rgba(255,255,255,0.82);
  font-size: var(--fs-xs);
}
@media (min-width: 900px) {
  .topbar { display: block; }
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 42px;
}
.topbar a { color: rgba(255,255,255,0.92); }
.topbar a:hover { color: var(--brand-300); }
.topbar-items { display: flex; align-items: center; gap: var(--sp-5); }
.topbar-item { display: inline-flex; align-items: center; gap: var(--sp-2); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.02rem; letter-spacing: -0.015em; color: var(--text);
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600;
}
@media (max-width: 400px) {
  .brand-sub { display: none; }
  .brand img { width: 44px; height: 44px; }
}

/* ---------- Desktop nav ---------- */
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--sp-2); }
}
.nav-link {
  position: relative;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.28rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-18deg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Hamburger */
.nav-toggle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility var(--dur);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.mobile-nav-close {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  color: var(--text);
}
.mobile-nav-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg); font-weight: 700;
  border-bottom: 1px solid var(--line);
  /* Staggered entrance, driven by --i set inline */
  opacity: 0; transform: translateX(22px);
}
.mobile-nav.is-open .mobile-nav-list a {
  animation: navIn var(--dur) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}
@keyframes navIn { to { opacity: 1; transform: translateX(0); } }
.mobile-nav-list a.is-active { color: var(--accent); }
.mobile-nav-foot { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }

body.nav-open { overflow: hidden; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-overlay);
}
/* Subtle continuous drift on the hero photo */
.hero-bg img { animation: heroDrift 26s var(--ease-soft) infinite alternate; }
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1.4%, 0); }
}

.hero-inner { max-width: 780px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 .mark { color: var(--brand-300); }
.hero h1 .mark::after { background: var(--brand-300); opacity: 0.26; }
.hero-lead {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.90);
  max-width: 58ch; margin-bottom: var(--sp-6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 0.5rem 1.1rem 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  font-size: var(--fs-xs); font-weight: 600;
  color: #fff; margin-bottom: var(--sp-5);
}
.hero-badge .stars { color: #FFC24A; letter-spacing: 1px; }
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #62D08A; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(98, 208, 138, 0.7);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  70%  { box-shadow: 0 0 0 9px rgba(98, 208, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(98, 208, 138, 0); }
}

/* Trust strip under the hero */
.hero-trust {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4); margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.18);
}
@media (min-width: 760px) { .hero-trust { grid-template-columns: repeat(4, 1fr); } }
.hero-trust-item { color: rgba(255,255,255,0.88); }
.hero-trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg); font-weight: 800; color: #fff;
}
.hero-trust-item span { font-size: var(--fs-xs); letter-spacing: 0.04em; }

/* =====================================================================
   CARDS
   ===================================================================== */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.85rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Service card ---------- */
.card-service {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
/* Brand wash that wipes up on hover */
.card-service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--accent-soft), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.card-service:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.card-service:hover::before { opacity: 1; }

.card-icon {
  width: 62px; height: 62px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-5);
  transition: transform var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.card-service:hover .card-icon {
  transform: scale(1.06) rotate(-5deg);
  background: var(--accent); color: #fff;
}
.card-icon svg { width: 32px; height: 32px; }

.card-service h3 { margin-bottom: var(--sp-3); }
.card-service p {
  color: var(--text-soft); font-size: var(--fs-sm);
  margin-bottom: var(--sp-5); flex-grow: 1;
}
.card-service .link-arrow { margin-top: auto; }

/* Make the whole card clickable while keeping semantic links */
.card-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Feature / value card ---------- */
.card-feature {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.card-feature p  { color: var(--text-soft); font-size: var(--fs-sm); }
.card-feature .num {
  font-family: var(--font-display); font-size: var(--fs-xl);
  font-weight: 800; color: var(--accent); line-height: 1;
  display: block; margin-bottom: var(--sp-3);
}

/* ---------- Post card ---------- */
.card-post {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunk); }
.card-post-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card-post:hover .card-post-media img { transform: scale(1.07); }
.card-post-body { padding: var(--sp-5); display: flex; flex-direction: column; flex-grow: 1; }
.card-post h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.card-post p  { color: var(--text-soft); font-size: var(--fs-sm); flex-grow: 1; }
.card-post-meta {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-mute);
  margin-bottom: var(--sp-3);
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.03em;
}

/* =====================================================================
   SPLIT / MEDIA SECTIONS
   ===================================================================== */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Floating stat chip over the image */
.media-chip {
  position: absolute; left: var(--sp-5); bottom: var(--sp-5);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--sp-4);
  max-width: calc(100% - var(--sp-8));
}
.media-chip .chip-num {
  font-family: var(--font-display); font-size: var(--fs-xl);
  font-weight: 800; color: var(--accent); line-height: 1;
}
.media-chip .chip-label { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.35; }

.check-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.check-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.check-list .ck {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.check-list .ck svg { width: 15px; height: 15px; }
.check-list strong { display: block; font-family: var(--font-display); font-size: var(--fs-base); }
.check-list span { color: var(--text-soft); font-size: var(--fs-sm); }

/* =====================================================================
   PROCESS / STEPS
   ===================================================================== */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: var(--fs-lg);
  font-weight: 800; color: var(--accent);
}
.step::after {
  content: ""; position: absolute; top: 12px; left: 46px; right: -12px;
  height: 2px; background: var(--line);
}
@media (max-width: 759px) { .step::after { display: none; } }
.steps .step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.step p  { color: var(--text-soft); font-size: var(--fs-sm); }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(125deg, var(--ink-900), var(--brand-700) 130%);
  color: #fff; overflow: hidden; isolation: isolate;
}
.cta-band::before {
  /* Soft brush-like glow, echoing the logo ring */
  content: ""; position: absolute; z-index: -1;
  width: 640px; height: 640px; border-radius: 50%;
  right: -180px; top: -280px;
  background: radial-gradient(circle, rgba(226,85,31,0.42), transparent 66%);
}
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,0.86); }
.cta-inner {
  display: grid; gap: var(--sp-6); align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1.4fr auto; }
}
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 520px) {
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quote {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote .stars { color: #F5A524; letter-spacing: 2px; margin-bottom: var(--sp-3); }
.quote p { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.quote footer { display: flex; align-items: center; gap: var(--sp-3); }
.quote .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 800;
}
.quote cite { font-style: normal; font-weight: 700; font-size: var(--fs-sm); display: block; }
.quote .src { font-size: var(--fs-xs); color: var(--text-mute); }

/* Rating summary block */
.rating-summary {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.rating-summary .score {
  font-family: var(--font-display); font-size: var(--fs-xl);
  font-weight: 800; color: var(--accent); line-height: 1;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-card {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.contact-card .ci {
  width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent);
}
.contact-card h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.contact-card .big {
  font-family: var(--font-display); font-size: var(--fs-lg);
  font-weight: 800; color: var(--text); word-break: break-word;
}
.contact-card a.big:hover { color: var(--accent); }
.contact-card .note { font-size: var(--fs-xs); color: var(--text-mute); margin-top: var(--sp-2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--ink-900); color: rgba(255,255,255,0.72);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer h4 {
  color: #fff; font-size: var(--fs-sm); font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer a { color: rgba(255,255,255,0.72); transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--brand-300); }

.footer-grid {
  display: grid; gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-brand { display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img { width: 58px; height: 58px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub  { color: rgba(255,255,255,0.55); }
.footer-about { font-size: var(--fs-sm); max-width: 42ch; }

.footer-list { display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.footer-contact-item { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-400); }

.socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social-link {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.social-link:hover {
  background: var(--brand-500); border-color: var(--brand-500);
  transform: translateY(-3px); color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-block: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  align-items: center; text-align: center;
  font-size: var(--fs-xs);
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =====================================================================
   MOBILE STICKY CALL BAR
   The single most important conversion element on phones.
   ===================================================================== */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.call-bar.is-visible { transform: translateY(0); }
@media (min-width: 1024px) { .call-bar { display: none; } }
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.95rem 0.5rem;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--fs-sm);
  min-height: 56px;
}
.call-bar a.primary { background: var(--accent); color: #fff; }
/* Keep page content clear of the bar */
@media (max-width: 1023px) {
  body { padding-bottom: 62px; }
}

/* =====================================================================
   PAGE HEADER (inner pages)
   ===================================================================== */
.page-head {
  position: relative; isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head.has-image { border-bottom: 0; }
.page-head.has-image .page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head.has-image .page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head.has-image .page-head-bg::after {
  content: ""; position: absolute; inset: 0; background: var(--hero-overlay);
}
.page-head.has-image, .page-head.has-image h1 { color: #fff; }
.page-head.has-image .lead { color: rgba(255,255,255,0.88); }
.page-head.has-image .breadcrumb, .page-head.has-image .breadcrumb a { color: rgba(255,255,255,0.72); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-mute);
  margin-bottom: var(--sp-4);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* =====================================================================
   ARTICLE / PROSE
   ===================================================================== */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text-soft); font-size: var(--fs-md); line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: var(--sp-3); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { color: var(--text); font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Photo gallery on service pages */
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-sunk);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.08); }

/* Sticky sidebar CTA */
.sidebar-cta {
  position: sticky; top: 100px;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.sidebar-cta h3 { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.sidebar-cta p  { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: var(--sp-5); }

.layout-article { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 1000px) {
  .layout-article { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

/* =====================================================================
   SCROLL-REVEAL MOTION
   Elements start hidden and animate in when observed by main.js.
   If JS is unavailable, .no-js in <html> keeps everything visible.
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-zoom  { transform: scale(0.94); }

html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg img { animation: none; }
  .hero-badge .dot { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Count-up numbers keep their box size steady while animating */
.counter { font-variant-numeric: tabular-nums; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.stack-3 { display: grid; gap: var(--sp-3); }
.stack-4 { display: grid; gap: var(--sp-4); }
.stack-5 { display: grid; gap: var(--sp-5); }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  border: 1px solid;
  display: flex; gap: var(--sp-3); align-items: flex-start;
}
.alert-info  { background: var(--accent-soft); border-color: var(--brand-200); color: var(--text); }
.alert-warn  { background: #FFF7E6; border-color: #F5D48A; color: #6B4E00; }
:root[data-theme="dark"] .alert-warn { background: #2A2312; border-color: #5C4A1E; color: #F0D89A; }

.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem) var(--sp-5);
  text-align: center;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text-mute);
}
.empty-state svg { margin: 0 auto var(--sp-4); color: var(--line-strong); }
.empty-state h3 { color: var(--text-soft); font-size: var(--fs-md); margin-bottom: var(--sp-2); }
