/* North Idaho Floors - site styles (mobile first) */

:root {
  --green-950: #0b2014;
  --green-900: #0f2a1a;
  --green: #163d26;
  --green-700: #1d4d31;
  --green-600: #24603d;
  --green-100: #e6eee8;
  --green-50: #f2f6f3;
  --gold: #c9a227;
  --gold-light: #e2c35b;
  --gold-text: #8a6a0c;     /* gold that passes contrast on light backgrounds */
  --cream: #faf8f3;
  --ink: #17201a;
  --body: #3a453d;
  --muted: #637067;
  --line: #e1e6e1;
  --white: #fff;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 26, .06), 0 2px 8px rgba(15, 42, 26, .06);
  --shadow: 0 2px 6px rgba(15, 42, 26, .06), 0 12px 32px rgba(15, 42, 26, .10);
  --shadow-lg: 0 24px 60px rgba(11, 32, 20, .22);
  --gutter: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 88px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: 64px; /* room for the mobile call/quote bar */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, svg, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.center .btn { margin-inline: auto; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 40px; }
.mb-md { margin-bottom: 24px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 11px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold); color: var(--green-950); box-shadow: 0 6px 18px rgba(201, 162, 39, .35); }
.btn--gold:hover { background: var(--gold-light); color: var(--green-950); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--outline-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--green-600); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .85); font-size: 13.5px; display: none; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item .icon { color: var(--gold); }
.topbar__social { margin-left: auto; display: flex; gap: 14px; }
.topbar__social a { color: rgba(255, 255, 255, .85); }
.topbar__social a:hover { color: var(--gold); }
@media (min-width: 1024px) { .topbar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 26, .08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 170px; height: auto; }
@media (min-width: 1024px) { .brand img { width: 210px; } }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.15; }
.header-phone .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--green-100); color: var(--green); }
.header-phone small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); }
.header-cta { display: none; }
@media (min-width: 1360px) { .header-phone { display: inline-flex; } }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px; border: 0; border-radius: 12px; background: var(--green); cursor: pointer; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--gutter) 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; background: none; border: 0; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; cursor: pointer; }
.nav__item.is-active > .nav__link, .nav__link[aria-current] { color: var(--green-600); }
.nav__toggle .icon { transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 0 0 12px 8px; display: none; }
.nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 8px; color: var(--body); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav__sub a[aria-current], .nav__sub a:hover { color: var(--green); background: var(--green-50); }
.nav__extra { display: grid; gap: 12px; margin-top: 24px; }
.nav__sister { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 8px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .nav { position: static; inset: auto; transform: none; visibility: visible; padding: 0; overflow: visible; background: none; order: 0; }
  .site-header__inner { gap: 28px; }
  .brand { margin-right: 0; }
  .nav { margin-right: auto; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__item { border: 0; position: relative; }
  .nav__link { padding: 10px 12px; font-size: 15px; border-radius: 8px; gap: 4px; width: auto; }
  .nav__link:hover { color: var(--green-600); background: var(--green-50); }
  .nav__item.is-active > .nav__link { color: var(--green-600); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
  .nav__sub { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .nav__toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__extra { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--tint { background: var(--cream); }
.section--green { background: var(--green); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.section--green::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% -10%, rgba(201, 162, 39, .18), transparent 60%), radial-gradient(600px 300px at 0% 110%, rgba(255, 255, 255, .06), transparent 60%); pointer-events: none; }
.section--green .section-title { color: #fff; }
.section--green > .container { position: relative; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head--row .section-title { margin: 0; }
.section--green .section-head { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.section-title { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
.section-lead { font-size: 18px; color: var(--muted); }
.section--green .section-lead { color: rgba(255, 255, 255, .8); }
.h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--green-900); min-height: min(86svh, 760px); display: flex; align-items: center; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 32, 20, .94) 0%, rgba(11, 32, 20, .78) 45%, rgba(11, 32, 20, .35) 100%); }
.hero__inner { padding-top: 72px; padding-bottom: 72px; }
.hero__title { color: #fff; font-size: clamp(36px, 6.4vw, 66px); font-weight: 800; max-width: 15ch; margin-bottom: 20px; }
.hero__text { font-size: clamp(17px, 2vw, 20px); max-width: 560px; color: rgba(255, 255, 255, .88); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 640px; }
.hero__facts li { padding-left: 16px; border-left: 3px solid var(--gold); line-height: 1.3; }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 22px; color: #fff; }
.hero__facts span { font-size: 14px; color: rgba(255, 255, 255, .78); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--green); color: #fff; padding: 56px 0 52px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 32, 20, .92), rgba(11, 32, 20, .6)); }
.page-hero:not(.page-hero--image)::after { background: radial-gradient(700px 300px at 95% 0%, rgba(201, 162, 39, .22), transparent 70%), linear-gradient(120deg, var(--green-900), var(--green-700)); }
@media (min-width: 900px) { .page-hero { padding: 88px 0 80px; } }
.page-hero__title { color: #fff; font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 0; max-width: 22ch; }
.page-hero__subtitle { margin: 14px 0 0; font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--body); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--body); }
.service-card__img { aspect-ratio: 4 / 3; background: var(--green-100); overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.service-card__body p { font-size: 15px; color: var(--muted); }
.service-card__body .link-arrow { margin-top: auto; }
.service-card__title { font-size: 20px; margin-bottom: 6px; }

/* ---------- Split + reasons ---------- */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; } }
.split__text .prose h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 560px) { .reasons { grid-template-columns: 1fr 1fr; } }
.reason { display: flex; gap: 14px; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.reason__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: var(--gold-light); }
.reason__icon .icon { width: 22px; height: 22px; }
.reason__title { font-size: 17px; margin: 2px 0 4px; }
.reason p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--green-900); color: #fff; text-decoration: none; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-sm); }
.project-card[hidden] { display: none; }
.project-card__img, .project-card__img picture { position: absolute; inset: 0; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 32, 20, .9)); }
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; }
.project-card__title { color: #fff; font-size: 21px; margin: 8px 0 4px; }
.project-card__meta { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 6px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--green-950); font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.filters { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
@media (min-width: 1024px) { .testimonials { grid-auto-columns: calc((100% - 40px) / 3); } }
.testimonial { scroll-snap-align: start; margin: 0; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; }
.testimonial blockquote { margin: 14px 0 20px; font-size: 16.5px; color: #fff; line-height: 1.6; }
.testimonial figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 14px; color: rgba(255, 255, 255, .7); }
.testimonial figcaption strong { color: #fff; font-family: var(--font-head); font-size: 15px; }
.testimonial--light { background: var(--cream); border: 0; }
.testimonial--light blockquote, .testimonial--light figcaption strong { color: var(--ink); }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 18px; height: 18px; }

/* ---------- Finance band, brands, CTA band ---------- */
.finance-band { display: grid; gap: 20px; align-items: center; padding: 32px; border-radius: 20px; background: var(--cream); border: 1px solid #efe7d2; }
@media (min-width: 900px) { .finance-band { grid-template-columns: auto 1fr auto; gap: 28px; padding: 36px 44px; } }
.finance-band__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--green-950); }
.finance-band__icon .icon { width: 28px; height: 28px; }
.finance-band__title { font-size: 24px; margin-bottom: 6px; }
.finance-band p { margin: 0; color: var(--muted); }

.section--brands { padding-top: 0; }
.brands__title { text-align: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; align-items: center; }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(7, 1fr); } }
.brands li { display: grid; place-items: center; height: 64px; }
.brands img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.brands li:hover img { filter: none; opacity: 1; }

.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: rgba(255, 255, 255, .85); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(201, 162, 39, .12); }
.cta-band__inner { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } .cta-band { padding: 72px 0; } }
.cta-band__title { color: #fff; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.cta-band__text { margin: 0; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Service page layout ---------- */
.service-chips { background: #fff; border-bottom: 1px solid var(--line); }
.service-chips__inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.service-chips__inner::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .service-chips { display: none; } }

.with-sidebar { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .with-sidebar--right .with-sidebar__main { order: 0; }
}
.sticky { display: grid; gap: 20px; }
@media (min-width: 1024px) { .sticky { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-nav { display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
@media (min-width: 1024px) { .side-nav { display: block; } }
.side-nav__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 12px 8px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side-nav a .icon { opacity: 0; transform: translateX(-4px); transition: all .2s; color: var(--gold-text); }
.side-nav a:hover { background: var(--green-50); }
.side-nav a:hover .icon, .side-nav a[aria-current] .icon { opacity: 1; transform: none; }
.side-nav a[aria-current] { background: var(--green); color: #fff; }
.side-nav a[aria-current] .icon { color: var(--gold-light); }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--cream); }
.side-card__title { font-size: 20px; }
.side-card--green { background: var(--green); color: rgba(255, 255, 255, .85); }
.side-card--green .side-card__title { color: #fff; }
.side-card__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.side-card--finance { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--body); border: 1px solid #efe7d2; padding: 18px 22px; }
.side-card--finance .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--gold); color: var(--green-950); }
.side-card--finance strong { display: block; color: var(--ink); font-family: var(--font-head); }
.side-card--finance span { font-size: 14px; line-height: 1.35; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--green-50); color: var(--ink); font-weight: 500; }
.checklist .icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: var(--gold-light); margin-top: 1px; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--green-100); color: var(--green); transition: transform .25s var(--ease), background .2s; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); background: var(--gold); color: var(--green-950); }
.accordion__body { padding: 0 4px 22px; color: var(--body); }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery__item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-100); cursor: zoom-in; }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery--single .gallery__item { aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 13, .94); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 120px); width: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: var(--gold); color: var(--green-950); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }

.facts { margin: 20px 0 0; display: grid; gap: 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dt .icon { color: var(--gold-text); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }

/* ---------- Prose (rich text from the admin) ---------- */
.prose { color: var(--body); }
.prose--lg { font-size: 17.5px; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--gold); }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font-size: 1.1em; color: var(--ink); }
.prose a { color: var(--green-600); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-50); color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-cards { grid-template-columns: repeat(4, 1fr); } }
.contact-card { display: block; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--body); text-decoration: none; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
a.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--body); }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: var(--gold-light); margin-bottom: 16px; }
.contact-card__title { font-size: 18px; margin-bottom: 6px; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.85); }

/* ---------- Quote form ---------- */
.quote-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .quote-split { grid-template-columns: .8fr 1fr; gap: 56px; } .quote-split--wide { grid-template-columns: .7fr 1.3fr; } }
.quote-form, .quote-card, .quote-frame { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
@media (min-width: 640px) { .quote-form, .quote-card { padding: 32px; } }
.quote-frame { padding: 8px; overflow: hidden; }
.quote-frame iframe { width: 100%; height: 980px; border: 0; display: block; }
@media (min-width: 640px) { .quote-frame iframe { height: 880px; } }
.quote-card__title { font-size: 22px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.form-grid--tight { grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--green-50); border: 1.5px solid transparent; border-radius: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(36, 96, 61, .12); }
.field__error { color: #b42318; font-weight: 500; font-size: 13px; }
.field:has(.field__error) input { border-color: #b42318; background: #fff; }
.form-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.notice--success { background: #e7f4ec; color: #14532d; }
.notice--error { background: #fdecea; color: #8a1c13; }
.quote-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } .post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; } .post-card--featured .post-card__img { aspect-ratio: auto; min-height: 360px; } .post-card--featured .post-card__body { padding: 40px; justify-content: center; } .post-card--featured .post-card__title { font-size: 30px; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--green-100); overflow: hidden; }
.post-card__img picture, .post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__body p { color: var(--muted); font-size: 15px; }
.post-card__body .link-arrow { margin-top: auto; }
.post-card__date { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.post-card__title { font-size: 20px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--green-600); }
.post-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .75); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.site-footer__logo { width: 220px; mix-blend-mode: screen; margin-bottom: 18px; }
.site-footer__title { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--gold); margin-top: 3px; }
.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: #fff; text-align: right; }
.hours--dark div { border-color: var(--line); }
.hours--dark dd { color: var(--ink); font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--gold); color: var(--green-950); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.site-footer__bottom a { color: var(--gold-light); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Mobile call/quote bar ---------- */
.mobile-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 24px rgba(15, 42, 26, .12); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.mobile-bar__call { background: var(--green-100); color: var(--green); }
.mobile-bar__quote { background: var(--gold); color: var(--green-950); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- 404 ---------- */
.not-found__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(80px, 16vw, 140px); line-height: 1; color: var(--green-100); margin: 0 0 8px; -webkit-text-stroke: 2px var(--green); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Reveal-on-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* <picture> wrappers inside fixed-ratio frames must fill them so object-fit works */
.hero__bg picture, .page-hero__bg picture, .service-card__img picture, .gallery__item picture,
.project-card__img picture, .post-card__img picture { display: block; width: 100%; height: 100%; }

/* Reviews band when there are no testimonials yet: a slim call to review */
.section--green.section--slim { padding: 48px 0; }
.section--slim .section-head { margin-bottom: 20px; }
@media (min-width: 900px) { .gallery:has(> :nth-child(3):last-child), .gallery:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, 1fr); } }
/* Note: no backdrop-filter/transform/filter on .site-header - any of those makes it the containing
   block for the fixed mobile menu and squashes the menu into the header's height. */
body.nav-open .mobile-bar { display: none; }
.header-phone span { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__inner { gap: 14px; }
  .brand img { width: 168px; }
  .nav__link { padding: 8px 8px; font-size: 14.5px; }
  .header-cta { padding: 9px 16px; }
}

/* Google rating badge + Google review cards */
.rating-badge { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 6px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; box-shadow: var(--shadow-sm); }
.rating-badge:hover { color: var(--ink); transform: translateY(-1px); }
.rating-badge strong { font-family: var(--font-head); font-size: 20px; }
.rating-badge .stars { color: #f4b400; }
.rating-badge__g { width: 22px; height: 22px; color: #4285f4; }
.testimonial__clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial__author { flex-direction: row !important; align-items: center; gap: 12px; }
.testimonial__author img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.testimonial__author > span { display: flex; flex-direction: column; }
.testimonial__author a { color: #fff; text-decoration: none; }
.testimonial__author a:hover { text-decoration: underline; }
.testimonial__author .icon { width: 13px; height: 13px; vertical-align: -1px; }
.testimonials { justify-content: safe center; }
.post-cover__credit { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: right; } .post-cover__credit a { color: var(--muted); }

[hidden] { display: none !important; }
