/*
  Small Business template stylesheet.
  Theme: change colors, fonts, radius and shadows in :root only; every component uses these tokens.
  Sections below: base, layout, header and nav, buttons, hero, shared components, page sections,
  footer, responsive, reduced motion.
*/
:root {
  /* Colors (keep the WCAG AA contrast pairs listed in template.json) */
  --color-bg: #ffffff;
  --color-surface: #f4f6ef;
  --color-text: #24352b;
  --color-muted: #4c5d50;
  --color-primary: #315b48;
  --color-primary-hover: #254637;
  --color-primary-contrast: #ffffff;
  --color-accent: #8a542f;
  --color-border: #d8ded2;
  --color-dark: #203329;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #c3cedd;

  /* Fonts (system font stacks only; no web fonts) */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape, depth and layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 5px 12px rgb(15 29 51 / 0.16), 0 16px 34px -8px rgb(15 29 51 / 0.26);
  --shadow: 0 18px 40px -18px rgb(15 29 51 / 0.35);
  --shadow-button: 0 0.55rem 1rem -0.35rem rgb(15 29 51 / 0.42);
  --shadow-image-vertical: 0 1rem 1.5rem -0.6rem rgb(15 29 51 / 0.38), 0 2rem 2.5rem -1.4rem rgb(15 29 51 / 0.28);
  --shadow-trust-icon: drop-shadow(0 0.35rem 0.25rem rgb(0 0 0 / 0.35));
  --max-width: 76rem;
  --header-height: 4.75rem;
  --space-section: clamp(4rem, 9vw, 6.5rem);
  --hero-overlay: rgb(0 0 0 / 0.65);
  --hero-gold: #f2c66d;
  --color-button-hover: var(--hero-gold);
  --color-button-hover-text: #203329;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--hero-gold); text-decoration-thickness: 2px; }
a.button:hover { color: var(--color-button-hover-text); }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1.25rem;
  background: var(--color-dark); color: var(--color-on-dark); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: var(--space-section); }
.section-alt { background: var(--color-surface); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.grid { display: grid; gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-height); }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto;
  color: var(--color-text); text-decoration: none; font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; color: var(--color-primary); }
.brand-mark-fg { fill: none; stroke: var(--color-primary-contrast); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo { height: 2.75rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.site-nav a {
  display: inline-block; padding: 0.4rem 0; color: var(--color-text); font-weight: 550;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.header-call { white-space: nowrap; box-shadow: var(--shadow-button); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem;
  padding: 0; cursor: pointer; background: var(--color-bg); color: var(--color-primary);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--color-primary); border-color: var(--color-primary); color: var(--hero-gold); }
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border: 2px solid var(--color-primary); border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-primary-contrast);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 700ms ease-out, box-shadow 0.2s ease-out;
}
.button:hover { transform: scale(1.05); }

.button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.button-outline { background: transparent; color: var(--color-primary); }
.button-outline:hover { background: var(--color-button-hover); border-color: var(--color-button-hover); color: var(--color-button-hover-text); }
.button-light { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-dark); }
.button-light:hover { background: var(--color-surface); border-color: var(--color-surface); }
.cta-band .button-light { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-primary); }
.cta-band .button-light:hover, .cta-band .button-light:focus-visible { background: transparent; border-color: var(--color-on-dark); color: var(--color-on-dark); }
.button-ghost-light { background: transparent; border-color: var(--color-on-dark); color: var(--color-on-dark); }
.button-ghost-light:hover { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-dark); }
.button-small { min-height: 2.75rem; padding: 0.55rem 1.1rem; }
.header-call:hover, .header-call:focus-visible { background: var(--hero-gold); border-color: var(--hero-gold); color: var(--color-dark); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1rem; margin-top: 2rem; }
.button-row .button[href^="tel:"] { animation: call-button-pulse 2.8s ease-in-out infinite; }
.button.about-contact-button { box-shadow: var(--shadow-button), var(--shadow-image-vertical); }
@keyframes call-button-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(242 198 109 / 0.42); }
  50% { box-shadow: 0 0 0 0.45rem rgb(242 198 109 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .button-row .button[href^="tel:"] { animation: none; }
}
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 1.05rem; height: 1.05rem; transition: transform 0.2s ease-out; }
.text-link:hover svg { transform: translateX(3px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem); background: linear-gradient(180deg, var(--color-surface), var(--color-bg)); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 42rem; height: 42rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-image-bg {
  background-color: var(--color-dark);
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url("../assets/uploads/nikola-knezevic-sdyxolpcray-unsplash-11.jpg");
  background-position: center;
  background-size: cover;
  color: var(--color-on-dark);
}
.hero-image-bg::before { display: none; }
.hero-image-bg .container { display: block; }
.hero-image-bg .container > div { max-width: 54rem; }
.hero-image-bg h1, .hero-image-bg .lead, .hero-image-bg .check-list-inline { color: var(--color-on-dark); }
.hero-image-bg .eyebrow { color: var(--hero-gold); }
.hero-image-bg .hero-arrow-icon { color: var(--hero-gold); transition: color 0.2s ease-out, transform 0.25s ease-out; }
.hero-image-bg .hero-arrow-list li:hover .hero-arrow-icon,
.hero-image-bg .hero-arrow-list li:focus-within .hero-arrow-icon { color: var(--color-on-dark); animation: hero-arrow-nudge 650ms ease-out both; }
.hero-image-bg .hero-arrow-list li { transition: color 0.2s ease-out; }
.hero-image-bg .hero-arrow-list li:hover,
.hero-image-bg .hero-arrow-list li:focus-within { color: var(--color-on-dark); }
@keyframes hero-arrow-nudge {
  0% { transform: translateX(0); }
  45% { transform: translateX(5px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-bg .hero-arrow-icon { transition: none; }
  .hero-image-bg .hero-arrow-list li:hover .hero-arrow-icon,
  .hero-image-bg .hero-arrow-list li:focus-within .hero-arrow-icon { animation: none; transform: none; }
}
.hero-image-bg .button-outline { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-primary); }
.hero-image-bg .button-outline:hover { background: var(--hero-gold); border-color: var(--hero-gold); color: var(--color-dark); }
.hero-image-bg .button:not(.button-outline):hover,
.hero-image-bg .button:not(.button-outline):focus-visible {
  background: var(--hero-gold);
  border-color: var(--hero-gold);
  color: var(--color-dark);
}
@keyframes rubberband {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.18, 0.82, 1); }
  40% { transform: scale3d(0.82, 1.18, 1); }
  50% { transform: scale3d(1.12, 0.88, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

@media (max-width: 40rem) {
  .hero-image-bg .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
  .hero-image-bg h1,
  .hero-image-bg .lead,
  .hero-image-bg .check-list-inline { text-align: center; margin-inline: auto; }
  .hero-image-bg .check-list-inline { justify-content: center; }
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 38rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  color: var(--color-primary); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--color-accent); }
.check-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.15rem; color: var(--color-accent); }
.check-list-inline { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-weight: 550; font-size: 0.95rem; }
.value-arrow-list li { align-items: center; }
.value-arrow-icon { width: 1.2rem; height: 1.2rem; flex: none; color: var(--color-primary); transition: color 0.2s ease-out, transform 0.2s ease-out; }
.value-arrow-list li:hover .value-arrow-icon, .value-arrow-list li:focus-within .value-arrow-icon { color: var(--color-primary); transform: translateX(0.25rem); }
.value-arrow-list li:hover, .value-arrow-list li:focus-within { color: var(--color-primary); }
.media-frame { position: relative; isolation: isolate; }
.media-frame::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 2px solid color-mix(in srgb, var(--color-accent) 45%, transparent); border-radius: var(--radius-lg);
}
.media-frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow), var(--shadow-image-vertical); }
.about-image-hover { transition: transform 500ms ease-out, box-shadow 500ms ease-out; }
.about-image-hover:hover, .about-image-hover:focus-visible { transform: scale(1.035); box-shadow: 0 24px 48px -18px rgb(15 29 51 / 0.42); }
.story-image-shadow, .story-image-shadow:hover, .story-image-shadow:focus-visible { box-shadow: var(--shadow), var(--shadow-image-vertical); }
@media (prefers-reduced-motion: reduce) {
  .about-image-hover { transition: none; }
  .about-image-hover:hover, .about-image-hover:focus-visible { transform: none; }
}

/* Image ratios: any photo is cropped to its slot */
.ratio-4x3, .ratio-4x5, .ratio-16x9, .ratio-1x1 { width: 100%; object-fit: cover; background: var(--color-surface); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Shared components */
.section-heading { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
@media (max-width: 40rem) {
  [data-section="services"] .section-heading { margin-inline: auto; text-align: center; }
  [data-section="services"] .section-heading .eyebrow { justify-content: center; }
  [data-section="about-preview"] .container > div:first-child { text-align: center; }
  [data-section="about-preview"] .container > div:first-child .eyebrow { justify-content: center; }
  [data-section="about-preview"] .container > div:first-child .value-arrow-list { width: fit-content; margin-inline: auto; text-align: left; }
  [data-section="about-preview"] .container > div:first-child .button-row { justify-content: center; }
}
.section-heading p:last-child { margin-bottom: 0; }
.section-footer { margin-top: 2.5rem; }
.card {
  display: flex; flex-direction: column; padding: 2rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.card p { color: var(--color-muted); }
.card-link { margin-top: auto; padding-top: 0.5rem; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-hover:hover h3, .card-hover:focus-within h3 { color: var(--hero-gold); }
.icon-tile {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.4rem; border-radius: var(--radius-sm);
  background: transparent; color: var(--hero-gold);
  transition: color 0.2s ease-out;
}
.card-hover:hover .icon-tile, .card-hover:focus-within .icon-tile { color: var(--color-primary); }
.icon-tile svg { width: 1.6rem; height: 1.6rem; }
[data-section="services"] .card-hover { align-items: center; text-align: center; }
[data-section="services"] .card-hover .icon-tile { margin-inline: auto; }
[data-section="services"] .card-hover .card-link { justify-content: center; }
.card-hover:hover .icon-tile svg, .card-hover:focus-within .icon-tile svg { animation: service-icon-hover 700ms ease-out both; }
.contact-card { box-shadow: var(--shadow-sm); }
.contact-card:hover, .contact-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card:hover .icon-tile, .contact-card:focus-within .icon-tile { color: var(--color-primary); }
.contact-card:hover .icon-tile svg, .contact-card:focus-within .icon-tile svg { animation: service-icon-hover 700ms ease-out both; }
.contact-card .contact-value:hover, .contact-card .contact-value:focus-visible { color: var(--hero-gold); }
@media (prefers-reduced-motion: reduce) {
  .contact-card { transition: none; }
  .contact-card:hover, .contact-card:focus-within { transform: none; }
  .contact-card:hover .icon-tile svg, .contact-card:focus-within .icon-tile svg { animation: none; }
}
@media (max-width: 40rem) {
  [data-section="contact-options"] .contact-card { align-items: center; text-align: center; }
  [data-section="contact-options"] .contact-card h2,
  [data-section="contact-options"] .contact-card p,
  [data-section="contact-options"] .contact-card .contact-value { text-align: center; }
  [data-section="contact-options"] .contact-card .contact-value { overflow-wrap: anywhere; }
  [data-section="hours-area"] .contact-card { align-items: center; text-align: center; }
  [data-section="hours-area"] .contact-card h2,
  [data-section="hours-area"] .contact-card .hours-table,
  [data-section="hours-area"] .contact-card .hours-table th,
  [data-section="hours-area"] .contact-card .hours-table td { text-align: center; }
  [data-section="hours-area"] .contact-card .hours-table { margin-inline: auto; }
  [data-section="hours-area"] > .container > div:nth-child(2) { text-align: center; }
  [data-section="hours-area"] > .container > div:nth-child(2) .eyebrow { justify-content: center; }
  [data-section="hours-area"] > .container > div:nth-child(2) .area-list { justify-content: center; }
}
@keyframes service-icon-hover {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.12) rotate(-5deg); }
  75% { transform: translateY(1px) scale(0.97) rotate(2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

/* Trust band */
.trust-band { padding-block: 2.5rem; }
.trust-grid { display: grid; gap: 1.75rem 2rem; }
.trust-item { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; }
.trust-item > svg { width: 2rem; height: 2rem; flex: none; color: var(--hero-gold); filter: var(--shadow-trust-icon); transition: color 0.2s ease-out, filter 0.2s ease-out, transform 0.25s ease-out; }
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; transition: color 0.2s ease-out; }
.trust-item span { color: var(--color-on-dark-muted); font-size: 0.95rem; }
.trust-item:hover > svg, .trust-item:focus-within > svg { color: var(--color-on-dark); animation: trust-icon-hover 700ms ease-out both; }
.trust-item:hover strong, .trust-item:focus-within strong { color: var(--hero-gold); }
@keyframes trust-icon-hover {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.18) rotate(-8deg); }
  75% { transform: scale(0.96) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 4.5rem; text-align: left; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  left: 0; transform: none;
  border-radius: 50%; background: var(--hero-gold); color: var(--color-dark);
  font-family: var(--font-heading); font-weight: 700;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.step:hover::before, .step:focus-within::before { background: var(--color-primary); color: var(--color-primary-contrast); }

.step p { color: var(--color-muted); }
.step h3 { display: flex; align-items: center; justify-content: flex-start; gap: 0.65rem; text-align: left; }
.process-icon { width: 1.35rem; height: 1.35rem; flex: none; color: var(--hero-gold); transition: color 0.2s ease-out, transform 0.25s ease-out; }
.step:hover .process-icon, .step:focus-within .process-icon { color: var(--color-primary); transform: translateY(-3px) scale(1.12) rotate(-5deg); }
@media (prefers-reduced-motion: reduce) { .step:hover .process-icon, .step:focus-within .process-icon { transform: none; } }

/* Testimonials */
.quote-card { margin: 0; }
.quote-card svg { width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; color: var(--color-accent); }
.quote-card blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; color: var(--color-text); }
.quote-card figcaption { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: 0.95rem; color: var(--color-muted); }
.quote-card figcaption strong { display: block; color: var(--color-text); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(2.75rem, 6vw, 4.5rem); border-radius: var(--radius-lg);
  background: var(--color-primary); color: var(--color-primary-contrast);
}
.cta-vertical-shadow { box-shadow: 0 1rem 2rem -1rem rgb(15 29 51 / 0.5), 0 1.75rem 2.5rem -1.5rem rgb(15 29 51 / 0.38); }
.cta-band::after {
  content: ""; position: absolute; right: -6rem; bottom: -10rem; width: 26rem; height: 26rem; border-radius: 50%;
  border: 3.5rem solid color-mix(in srgb, var(--color-primary-contrast) 10%, transparent); pointer-events: none;
}
.cta-band h2 { max-width: 34rem; }
.cta-band p { max-width: 36rem; font-size: 1.1rem; opacity: 0.92; }
.cta-band .button-row { position: relative; z-index: 1; }
.cta-gold-trim .button { border-color: var(--hero-gold); }
.cta-gold-trim .button:hover, .cta-gold-trim .button:focus-visible { border-color: var(--hero-gold); }
@media (max-width: 40rem) {
  [data-section="cta"] .cta-band { text-align: center; }
  [data-section="cta"] .cta-band h2,
  [data-section="cta"] .cta-band p { margin-inline: auto; }
  [data-section="cta"] .cta-band .button-row { justify-content: center; }
}
.services-cta-band .button-row .button[href^="tel:"] { animation-duration: 4.2s; }
@media (prefers-reduced-motion: reduce) { .services-cta-band .button-row .button[href^="tel:"] { animation: none; } }

@media (max-width: 40rem) {
  .services-page-header .container { text-align: center; }
  .services-page-header .breadcrumb ol { justify-content: center; }
  .services-page-header .eyebrow { justify-content: center; }
  .services-page-header .lead { margin-inline: auto; }
  .services-page-header .services-contact-button { display: flex; width: fit-content; margin-inline: auto; }
  [data-section="service-list"] .service-row > div { text-align: center; }
  [data-section="service-list"] .service-row > div .eyebrow { justify-content: center; }
  [data-section="service-list"] .service-row > div .service-arrow-list { width: fit-content; margin-inline: auto; text-align: left; }
}

.area-list li { box-shadow: var(--shadow-button); }
.faq details { box-shadow: var(--shadow-button); transition: transform 220ms ease-out, box-shadow 220ms ease-out; }
.faq details:hover, .faq details:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .faq details { transition: none; } .faq details:hover, .faq details:focus-within { transform: none; } }

.site-footer, .site-footer :where(*) { text-align: left; overflow-wrap: anywhere; min-width: 0; }
.site-footer nav,
.site-footer nav .footer-heading,
.site-footer nav .footer-list,
.site-footer nav .footer-list li,
.site-footer nav .footer-list a { display: block; width: 100%; text-align: center; }
.site-footer nav .footer-list { padding-inline: 0; margin-inline: 0; }
.site-footer .footer-grid > div:nth-of-type(2),
.site-footer .footer-grid > div:nth-of-type(2) .footer-heading,
.site-footer .footer-grid > div:nth-of-type(2) .footer-list,
.site-footer .footer-grid > div:nth-of-type(2) .footer-list li,
.site-footer .footer-grid > div:nth-of-type(2) .footer-list a,
.site-footer .footer-grid > div:nth-of-type(2) address { text-align: left; }
.site-footer .footer-grid > div:nth-of-type(2) .footer-list { width: 100%; padding: 0; margin: 0; list-style: none; text-align: left; }
.site-footer .footer-grid > div:nth-of-type(2) .footer-list > li,
.site-footer .footer-grid > div:nth-of-type(2) .footer-list > li > a,
.site-footer .footer-grid > div:nth-of-type(2) address { display: block; width: 100%; text-align: left; }
.site-footer .footer-bottom a { color: inherit; text-decoration: none; }
.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible { color: var(--hero-gold); text-decoration: underline; }
.site-footer .footer-grid,
.site-footer .footer-bottom { padding-right: 1rem; }
.site-footer .footer-grid > div:nth-of-type(3) .footer-heading,
.site-footer .footer-grid > div:nth-of-type(3) .footer-hours { text-align: center; }
.site-footer .footer-grid > div:nth-of-type(3) .footer-hours {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 40rem) {
  .site-footer,
  .site-footer :where(*) { text-align: center !important; overflow-wrap: anywhere; min-width: 0; }
  .site-footer .footer-grid { justify-items: center !important; }
  .site-footer .footer-brand .brand { align-items: center !important; justify-content: center !important; }
  .site-footer .footer-grid > *,
  .site-footer nav,
  .site-footer .footer-list,
  .site-footer .footer-list li,
  .site-footer .footer-list a,
  .site-footer address,
  .site-footer .footer-hours,
  .site-footer .footer-bottom { margin-inline: auto !important; }
  .site-footer .footer-hours { display: flex; justify-content: center; gap: 0.5rem; text-align: center !important; }
  .site-footer .footer-list,
  .site-footer .footer-hours { padding-inline: 0 !important; }
  .site-footer .footer-brand .brand span { text-align: center !important; }
  .site-footer .footer-grid { justify-items: start; }
  .site-footer .footer-brand .brand { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-inline: 0; justify-content: flex-start; text-align: left; }
  .site-footer .footer-brand .brand span { display: block; flex: 0 0 auto; width: 100%; margin-inline: 0; text-align: left; }
  .site-footer nav,
  .site-footer .footer-grid > div { width: 100%; justify-self: start; text-align: left; }
  .site-footer .footer-list { width: 100%; margin-inline: 0; padding-inline: 0; text-align: left; }
  .site-footer .footer-list li,
  .site-footer address { text-align: left; }
  .site-footer .footer-hours { justify-content: flex-start; }
  .site-footer .footer-bottom { width: 100%; display: grid; justify-items: start; gap: 0.75rem; padding-inline: 0; text-align: left; }
  .site-footer .footer-bottom > p { width: 100%; margin-inline: 0; text-align: left; }
}

/* Page header (inner pages) */
.page-header { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.75rem); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.breadcrumb { margin-bottom: 1.25rem; font-size: 0.92rem; color: var(--color-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.breadcrumb a { color: var(--color-muted); }
.page-header h1 { max-width: 46rem; }
.page-header .lead { margin-bottom: 0; }
@media (max-width: 40rem) {
  .about-page-header, .contact-page-header { text-align: center; }
  .about-story-copy { text-align: center; }
  .about-story-copy .eyebrow { justify-content: center; }
  .about-story-copy h2, .about-story-copy p { margin-inline: auto; }
  .about-page-header .breadcrumb ol, .contact-page-header .breadcrumb ol { justify-content: center; }
  .about-page-header .eyebrow, .contact-page-header .eyebrow { justify-content: center; }
  .about-page-header h1, .about-page-header .lead, .contact-page-header h1, .contact-page-header .lead { margin-inline: auto; }
  .about-page-header .button-row { justify-content: center; }
  [data-section="values"] .value-card { align-items: center; text-align: center; }
  [data-section="values"] .value-card .value-card-icon { margin-inline: auto; }
  [data-section="values"] .value-card h3,
  [data-section="values"] .value-card p { text-align: center; }
}

/* Contact page service-area chips */
[data-section="hours-area"] .area-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
[data-section="hours-area"] .area-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
[data-section="hours-area"] .area-list li:hover,
[data-section="hours-area"] .area-list li:focus-within {
  background: transparent;
  color: var(--color-primary);
}

/* Contact page photo header */
.contact-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url("../assets/uploads/vu-anh-tivptycg_3e-unsplash-3.jpg");
  background-size: cover;
  background-position: center 52%;
  color: var(--color-on-dark);
}
.contact-page-header .container { position: relative; }
.contact-page-header h1, .contact-page-header .lead { color: var(--color-on-dark); }
.contact-page-header .eyebrow { color: var(--hero-gold); }
.contact-page-header .eyebrow::before { background: var(--hero-gold); }
.contact-page-header .breadcrumb, .contact-page-header .breadcrumb a { color: var(--color-on-dark); }
.contact-page-header .breadcrumb a:hover, .contact-page-header .breadcrumb a:focus-visible { color: var(--hero-gold); }

/* About page photo header */
.about-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url("../assets/uploads/francesca-tosolini-xcvm8mn7num-unsplash.jpg");
  background-size: cover;
  background-position: center 54%;
  color: var(--color-on-dark);
}
.about-page-header .container { position: relative; }
.about-page-header h1, .about-page-header .lead { color: var(--color-on-dark); }
.about-page-header .eyebrow { color: var(--hero-gold); }
.about-page-header .eyebrow::before { background: var(--hero-gold); }
.about-page-header .breadcrumb, .about-page-header .breadcrumb a { color: var(--color-on-dark); }
.about-page-header .breadcrumb a:hover, .about-page-header .breadcrumb a:focus-visible { color: var(--hero-gold); }

/* Services page photo header */
.services-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-dark);
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url("../assets/uploads/rowan-heuvel-bjej8by1jyq-unsplash.jpg");
  background-size: cover;
  background-position: center 52%;
  color: var(--color-on-dark);
}
.services-page-header .container { position: relative; }
.services-page-header h1, .services-page-header .lead { color: var(--color-on-dark); }
.services-page-header .eyebrow { color: var(--hero-gold); }
.services-page-header .eyebrow::before { background: var(--hero-gold); }
.services-page-header .breadcrumb, .services-page-header .breadcrumb a { color: var(--color-on-dark); }
.services-page-header .breadcrumb a:hover, .services-page-header .breadcrumb a:focus-visible { color: var(--hero-gold); }
.services-contact-button {
  margin-top: 1.5rem;
  background: var(--hero-gold);
  border-color: var(--hero-gold);
  color: var(--color-dark);
  animation: about-button-fade-down 700ms ease-out both;
}
.services-contact-button:hover, .services-contact-button:focus-visible {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-dark);
}
@media (prefers-reduced-motion: reduce) { .services-contact-button { animation: none; } }

/* About hero contact action */
.about-hero-actions { margin-top: 1.5rem; }
.about-contact-button {
  background: var(--hero-gold);
  border-color: var(--hero-gold);
  color: var(--color-dark);
  animation: about-button-fade-down 700ms ease-out both;
}
.about-contact-button:hover, .about-contact-button:focus-visible {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-dark);
}
@keyframes about-button-fade-down {
  from { opacity: 0; transform: translateY(-0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .about-contact-button { animation: none; }
}

/* Services */
.service-arrow-icon { color: var(--color-primary) !important; background: transparent; transition: color 0.2s ease-out, transform 0.25s ease-out; }
.service-arrow-list li:hover .service-arrow-icon, .service-arrow-list li:focus-within .service-arrow-icon { color: var(--hero-gold) !important; background: transparent; animation: service-arrow-hover 650ms ease-out both; }
.service-arrow-list li:hover, .service-arrow-list li:focus-within { color: var(--color-primary); }

@keyframes service-arrow-hover {
  0% { transform: translateX(0); }
  45% { transform: translateX(5px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .service-arrow-icon { transition: none; } .service-arrow-list li:hover .service-arrow-icon, .service-arrow-list li:focus-within .service-arrow-icon { animation: none; transform: none; } }
.service-row + .service-row { margin-top: clamp(3.5rem, 8vw, 6rem); }
.service-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform 500ms ease-out, box-shadow 500ms ease-out; }
.service-row img:hover, .service-row img:focus-visible { transform: scale(1.035); box-shadow: 0 24px 48px -18px rgb(15 29 51 / 0.42); }
@media (prefers-reduced-motion: reduce) { .service-row img { transition: none; } .service-row img:hover, .service-row img:focus-visible { transform: none; } }
.service-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.75rem 0 0; padding: 1rem 1.25rem;
  background: var(--color-surface); border-radius: var(--radius-sm); font-size: 0.95rem;
}
.service-meta dt { color: var(--color-muted); }
.service-meta dd { margin: 0; font-weight: 650; }
.service-meta div { display: flex; gap: 0.4rem; }

/* About values */
.value-card { transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; }
.value-card:hover, .value-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card-icon { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--hero-gold); transition: color 0.2s ease-out, transform 0.25s ease-out; }
@media (prefers-reduced-motion: reduce) { .value-card { transition: none; } .value-card:hover, .value-card:focus-within { transform: none; } }
.value-card:hover .value-card-icon, .value-card:focus-within .value-card-icon { color: var(--color-primary); animation: service-icon-hover 700ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .value-card:hover .value-card-icon, .value-card:focus-within .value-card-icon { animation: none; transform: none; } }

/* Team */
.team-card { padding: 0; overflow: hidden; }
.team-card img { border-radius: 0; }
.team-card .team-body { padding: 1.4rem 1.6rem 1.6rem; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0.85rem; }
.faq details { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq summary:hover, .faq summary:focus-visible { color: var(--hero-gold); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
  cursor: pointer; list-style: none; font-family: var(--font-heading); font-weight: 650; font-size: 1.08rem;
}

.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--color-primary); transition: transform 0.2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--color-muted); }

/* Contact */
.contact-card h2 { font-size: 1.35rem; }
.contact-card .contact-value { font-size: 1.2rem; font-weight: 650; overflow-wrap: anywhere; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours-table th { font-weight: 550; }
.hours-table td { text-align: right; color: var(--color-muted); }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; }
.area-list li { padding: 0.45rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: 0.97rem; text-align: center; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--hero-gold); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--color-on-dark); }
.footer-grid { display: grid; justify-items: center; gap: 2.5rem; padding-bottom: 3rem; }
.footer-list { justify-items: center; }
.footer-hours { justify-content: center; }
.footer-brand .brand { color: var(--color-on-dark); margin-bottom: 1rem; }
.footer-brand .brand-mark { color: var(--color-on-dark); }
.footer-brand .brand-mark-fg { stroke: var(--color-dark); }
.footer-heading { margin-bottom: 1rem; color: var(--color-on-dark); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0.4rem 1.5rem; margin: 0; }
.footer-hours dd { margin: 0; color: var(--color-on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-on-dark) 15%, transparent); font-size: 0.9rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* Not found */
.not-found { text-align: center; }
.not-found .lead { margin-inline: auto; }
.not-found .button-row { justify-content: center; }
.not-found-code { margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--color-primary); }

/* Responsive */
@media (min-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60em) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split-reverse > :first-child { order: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 1.6rem; left: 4.25rem; right: -1.5rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
  }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; }
}
@media (max-width: 59.99em) {
  .media-frame::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}
@media (max-width: 55.99em) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.75rem 1.25rem 1.5rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
  .header-call { padding-inline: 0.8rem; }
}
@media (max-width: 30em) {
  .header-call .header-call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-call { width: 2.9rem; padding: 0; }
  .brand { font-size: 1.05rem; }
  .card { padding: 1.6rem; }
  .button-row .button { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .button:hover, .card-hover:hover { transform: none; }
  .step:hover::before, .step:focus-within::before { transition-duration: 0.01ms; }
}
