/* Nuline Fencing website — shared styles */
@import url('assets/colors_and_type.css');

* { box-sizing: border-box; }
:root {
  --text-scale: 1.12;          /* global font-size multiplier */
  --cta-scale: 1.15;           /* CTA button size multiplier */
}
html { font-size: calc(16px * var(--text-scale)); }
html, body { margin: 0; padding: 0; background: var(--parchment); scroll-behavior: smooth; }
/* Re-base hero/section type to scale with --text-scale */
.h1 { font-size: calc(64px * var(--text-scale)) !important; }
.h2 { font-size: calc(44px * var(--text-scale)) !important; }
.h3 { font-size: calc(26px * var(--text-scale)) !important; }
.lead { font-size: calc(18px * var(--text-scale)) !important; }
.body { font-size: calc(15.5px * var(--text-scale)) !important; }
.hero-title { font-size: calc(62px * var(--text-scale)) !important; }
.hero-sub { font-size: calc(19px * var(--text-scale)) !important; }
.page-header h1 { font-size: calc(52px * var(--text-scale)) !important; }
.page-header .ph-sub { font-size: calc(16px * var(--text-scale)) !important; }
.benefits-title { font-size: calc(36px * var(--text-scale)) !important; }
.benefit { font-size: calc(16px * var(--text-scale)) !important; }
.service h3 { font-size: calc(18px * var(--text-scale)) !important; }
.service p { font-size: calc(14.5px * var(--text-scale)) !important; }
.howbuild p { font-size: calc(15px * var(--text-scale)) !important; }
.faq-q { font-size: calc(20px * var(--text-scale)) !important; }
.faq-a p { font-size: calc(15.5px * var(--text-scale)) !important; }
.cta-strip h2 { font-size: calc(34px * var(--text-scale)) !important; }
.stat-num { font-size: calc(56px * var(--text-scale)) !important; }
.stat-label { font-size: calc(13px * var(--text-scale)) !important; }
.areas-list li { font-size: calc(15px * var(--text-scale)) !important; }
.review p { font-size: calc(13.5px * var(--text-scale)) !important; }

/* Beefier CTA buttons (home-services style) */
.btn { font-size: calc(15px * var(--cta-scale)); padding: calc(13px * var(--cta-scale)) calc(20px * var(--cta-scale)); border-radius: 10px; font-weight: 600; }
.btn-lg { font-size: calc(17px * var(--cta-scale)) !important; padding: calc(16px * var(--cta-scale)) calc(26px * var(--cta-scale)) !important; border-radius: 12px !important; letter-spacing: 0.2px; }
.btn-terra { box-shadow: 0 0 0 1px var(--terracotta), 0 6px 16px rgba(201,100,66,0.28); }
.btn-terra:hover { box-shadow: 0 0 0 1px #b85737, 0 8px 22px rgba(201,100,66,0.36); transform: translateY(-1px); }
.btn-white { box-shadow: 0 0 0 1px var(--ring-warm), 0 4px 14px rgba(20,20,19,0.08); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 237, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-warm);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 24px 48px;
  display: flex; align-items: center; gap: 36px;
}
.nav-inner-tall {
  padding: 44px 24px 44px 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px;
}
.nav-left { display: flex; align-items: center; gap: 28px; justify-self: start; }
.nav-right { display: flex; align-items: center; gap: 28px; justify-self: end; }
.brand-right { justify-self: end; }
.brand-left { justify-self: start; }
.nav .brand { display: flex; align-items: center; cursor: pointer; border: none; }
.nav .brand img { height: 60px; display: block; }
.brand-right img { height: 110px; }
.brand-left img { height: 110px; }
.nav .links { display: flex; gap: 30px; margin-left: 48px; }
.links-center { margin-left: 0; justify-self: center; gap: 44px; }
.links-center a,
.links-center .dropdown > button { font-size: 18px !important; font-weight: 600 !important; letter-spacing: 0.2px; }
.nav .links a,
.nav .dropdown > button {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-emphasis);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px 0;
  letter-spacing: 0.1px;
  display: inline-flex; align-items: center; gap: 4px;
  position: relative;
}
.nav .links a:hover,
.nav .dropdown > button:hover { color: var(--terracotta); border-bottom-color: transparent; }
.nav .links a.active { color: var(--terracotta); }
.nav .links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -20px;
  height: 2px; background: var(--terracotta);
}
.nav .spacer { flex: 1; }
.phone-lg { font-size: 26px !important; font-weight: 700; gap: 12px !important; }
.phone-lg .icon { width: 28px !important; height: 28px !important; }
.phone-lg a { font-size: 28px; font-weight: 800; color: var(--forest) !important; letter-spacing: 0.2px; }
.btn-xl { font-size: 19px !important; padding: 20px 32px !important; border-radius: 12px !important; font-weight: 700 !important; letter-spacing: 0.3px; box-shadow: 0 6px 18px rgba(201,100,66,0.28); }
.nav .phone {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--fg-secondary);
  display: flex; align-items: center; gap: 8px;
}
.nav .phone a { color: var(--fg-emphasis); font-weight: 500; }
.nav .phone a:hover { color: var(--terracotta); border: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -20px;
  margin-top: 14px;
  background: var(--ivory);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 10px;
  min-width: 240px;
  box-shadow: var(--shadow-lift);
  display: none;
  z-index: 20;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; padding: 10px 14px; border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; color: var(--fg-emphasis);
  font-weight: 500; cursor: pointer; border: none;
}
.dropdown-menu a:hover { background: var(--warm-sand); color: var(--terracotta); }
.dropdown-menu a .d-sub {
  display: block; font-size: 12px; color: var(--fg-tertiary);
  font-weight: 400; margin-top: 2px;
}
.dropdown-menu a span { display: block; }

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 8px;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 160ms ease, color 160ms ease, transform 80ms ease, box-shadow 160ms ease;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-terra { background: var(--terracotta); color: var(--ivory); box-shadow: 0 0 0 1px var(--terracotta); }
.btn-terra:hover { background: #b85737; color: var(--ivory); }
.btn-outline {
  background: transparent; color: var(--fg-emphasis);
  box-shadow: 0 0 0 1px var(--ring-deep);
}
.btn-outline:hover { background: var(--ivory); color: var(--forest); }
.btn-white { background: var(--ivory); color: var(--fg-primary); box-shadow: 0 0 0 1px var(--ring-warm); }
.btn-white:hover { background: var(--white); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--ivory); box-shadow: 0 0 0 1px rgba(250,249,245,0.4); }
.btn-ghost:hover { background: rgba(250,249,245,0.1); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 32px; position: relative; }
.section.dark { background: var(--deep-dark); color: var(--fg-on-dark); }
.section.sand { background: var(--warm-sand); }
.section.ivory { background: var(--ivory); }
.section-inner { max-width: 1240px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.dark .eyebrow { color: var(--coral); }

.h1 { font-family: var(--font-serif); font-weight: 500; font-size: 64px; line-height: 1.08; color: var(--forest); margin: 0; letter-spacing: -0.5px; text-wrap: balance; }
.h2 { font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1.15; color: var(--forest); margin: 0; letter-spacing: -0.3px; text-wrap: balance; }
.h3 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--forest); margin: 0; text-wrap: balance; }
.dark .h1, .dark .h2, .dark .h3 { color: var(--ivory); }
.lead { font-family: var(--font-sans); font-size: 18px; line-height: 1.65; color: var(--fg-secondary); margin: 0; text-wrap: pretty; }
.dark .lead { color: var(--fg-on-dark); }
.body { font-family: var(--font-sans); font-size: 15.5px; line-height: 1.65; color: var(--fg-secondary); margin: 0; }
.dark .body { color: var(--fg-on-dark); }

/* ============ HERO (dark wood panel) ============ */
.hero-wood {
  position: relative;
  background: var(--deep-dark);
  overflow: hidden;
  color: var(--ivory);
  padding: 88px 32px 96px;
}
.hero-wood::before {
  /* hero photo background */
  content: "";
  position: absolute; inset: 0;
  background: url("assets/hero.webp") center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
}
.hero-wood::after {
  /* very subtle bottom scrim only — keep photo bright */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-wood .hero-title,
.hero-wood .hero-eyebrow,
.hero-wood .hero-sub {
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.5);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 42px;
  min-height: 600px; justify-content: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 20px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 62px;
  line-height: 1.06;
  color: var(--ivory);
  letter-spacing: -0.5px;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 19px; line-height: 1.6;
  color: rgba(250,249,245,0.92);
  max-width: 56ch;
  margin: 0 auto;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* Hero brand mark (right side) */
.hero-mark {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
}
.hero-house {
  width: 320px; height: 280px;
  color: rgba(250,249,245,0.5);
}
.hero-wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  color: rgba(250,249,245,0.88);
  text-align: center;
  letter-spacing: -1px;
}
.hero-wordmark .script {
  font-style: italic;
  font-size: 34px;
  font-weight: 400;
  color: rgba(201,100,66,0.9);
  display: block;
  margin-bottom: -6px;
  letter-spacing: -0.5px;
}
.hero-wordmark .main {
  display: block;
  font-size: 58px;
  line-height: 1;
  color: rgba(250,249,245,0.95);
}

/* Award badge */
.award-badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
}

/* ============ CARDS & GRIDS ============ */
.card {
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-whisper);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(20,20,19,0.08);
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

/* Service card (like "What We Do") */
.service {
  text-align: center;
  padding: 16px 12px 0;
}
.service-ill {
  width: 100%; height: 120px;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  margin-bottom: 20px;
}
.service h3 {
  font-family: var(--font-sans); /* sans for service names — matches reference */
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 12px;
  letter-spacing: 0.1px;
}
.service p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0 0 18px;
}
.service .learn {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--fg-emphasis); border-bottom: 1px solid var(--ring-deep);
  padding-bottom: 2px; cursor: pointer;
  text-decoration: none;
}
.service .learn:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* Benefits band */
.benefits {
  background: var(--forest);
  color: var(--ivory);
  padding: 64px 32px;
}
.benefits-inner { max-width: 1040px; margin: 0 auto; }
.benefits-title {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 36px;
  color: var(--ivory); text-align: center;
  margin: 0 0 40px;
}
.benefits-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 56px;
  max-width: 880px; margin: 0 auto;
}
.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--font-sans); font-size: 16px;
  color: rgba(250,249,245,0.95); line-height: 1.55;
}
.benefit .ck {
  flex-shrink: 0; width: 22px; height: 22px;
  color: var(--coral);
  margin-top: 1px;
}

/* How we build — cross-section features */
.howbuild { text-align: center; }
.howbuild-ill {
  width: 200px; height: 180px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.howbuild p {
  font-family: var(--font-sans); font-size: 15px;
  line-height: 1.55; color: var(--fg-primary);
  max-width: 220px; margin: 0 auto;
}

/* Reviews */
.reviews-band {
  background: #6a8a7a; /* sage for review band, from reference */
  color: var(--ivory);
  padding: 80px 32px;
  position: relative;
}
.reviews-band.forest { background: var(--forest); }
.reviews-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px; gap: 32px; flex-wrap: wrap;
}
.reviews-title {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 40px;
  color: var(--ivory); margin: 0; line-height: 1.2;
  max-width: 480px;
}
.award-seal {
  display: flex; align-items: center; gap: 16px;
  color: var(--ivory);
}
.award-seal-ring {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--deep-dark);
  border: 3px solid #d4a84a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-sans); color: var(--ivory);
  text-align: center; padding: 6px;
  box-shadow: 0 0 0 2px var(--deep-dark), 0 0 0 4px #d4a84a;
}
.award-seal-ring .a-t { font-size: 9px; letter-spacing: 0.5px; opacity: 0.9; font-weight: 500; }
.award-seal-ring .a-m {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 14px; line-height: 1.1;
  color: var(--ivory); margin: 2px 0;
}
.award-seal-ring .a-year {
  background: var(--terracotta); color: var(--ivory);
  font-size: 8.5px; font-weight: 600; padding: 2px 6px; border-radius: 2px;
  margin: 2px 0;
}
.award-seal-ring .a-b { font-size: 8px; letter-spacing: 1px; opacity: 0.8; }
.award-text { max-width: 220px; }
.award-text .t1 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ivory); margin-bottom: 4px; }
.award-text .t2 { font-family: var(--font-sans); font-size: 12px; color: rgba(250,249,245,0.85); line-height: 1.45; }
.award-text a { color: var(--ivory); border-bottom: 1px solid rgba(250,249,245,0.4); font-size: 12px; }

.google-bar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-sans);
}
.google-bar .g-logo { font-weight: 500; font-size: 20px; letter-spacing: -0.3px; }
.google-bar .g-logo span:nth-child(1) { color: #4285F4; }
.google-bar .g-logo span:nth-child(2) { color: #EA4335; }
.google-bar .g-logo span:nth-child(3) { color: #FBBC05; }
.google-bar .g-logo span:nth-child(4) { color: #4285F4; }
.google-bar .g-logo span:nth-child(5) { color: #34A853; }
.google-bar .g-logo span:nth-child(6) { color: #EA4335; }
.google-bar .g-excellent { font-weight: 600; font-size: 14px; color: var(--ivory); }
.google-bar .g-stars { color: #f6b429; font-size: 16px; letter-spacing: 2px; }
.google-bar .g-meta { font-size: 13px; color: rgba(250,249,245,0.85); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--ivory);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-whisper);
  color: var(--fg-primary);
  position: relative;
}
.review-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.review-name {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 14px; color: var(--fg-primary);
}
.review-date { font-family: var(--font-sans); font-size: 11px; color: var(--fg-tertiary); margin-top: 2px; }
.review .stars { color: #f6b429; font-size: 13px; letter-spacing: 1.5px; margin: 8px 0 10px; display: flex; align-items: center; gap: 6px; }
.review .stars .verified {
  width: 14px; height: 14px; border-radius: 50%; background: #4285F4;
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; margin-left: 4px;
}
.review p {
  font-family: var(--font-sans); font-size: 13.5px; line-height: 1.55;
  color: var(--fg-secondary); margin: 0;
}
.review .g-mark {
  position: absolute; top: 18px; right: 18px;
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(from 0deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
}

.review-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 24px;
}
.review-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(250,249,245,0.35);
}
.review-dots span.active { background: var(--ivory); }
.review-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(250,249,245,0.15);
  border: 1px solid rgba(250,249,245,0.3);
  color: var(--ivory); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.review-arrows.prev { left: -6px; }
.review-arrows.next { right: -6px; }

/* Credentials row */
.credentials {
  padding: 64px 32px 40px;
  text-align: center;
  background: var(--parchment);
}
.credentials-logos {
  display: flex; align-items: center; justify-content: center; gap: 100px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.cred-registered {
  display: flex; align-items: center; gap: 14px;
  color: var(--forest);
  font-family: var(--font-sans);
}
.cred-registered .seal {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 10px; color: var(--forest);
  text-align: center; padding: 8px; font-weight: 500;
  line-height: 1.1;
  flex-shrink: 0;
}
.cred-registered .t {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 22px; color: var(--forest); letter-spacing: 0.3px;
}
.cred-registered .t span { display: block; font-weight: 400; font-size: 14px; color: var(--fg-secondary); margin-top: 2px; }

.cred-greenfleet {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--font-sans);
}
.cred-greenfleet .sm { font-size: 12px; color: var(--fg-secondary); margin-bottom: 2px; }
.cred-greenfleet .g {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif);
  font-weight: 500; font-size: 30px; color: #4a8a3a;
  letter-spacing: -0.5px;
}
.cred-greenfleet .leaf { font-size: 32px; }
.credentials-note {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; color: var(--fg-secondary);
}

/* ============ FOOTER (dark wood) ============ */
.footer {
  position: relative;
  background: var(--deep-dark);
  color: var(--fg-on-dark);
  padding: 56px 32px 32px;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.0) 118px,
      rgba(0,0,0,0.35) 118px, rgba(0,0,0,0.35) 120px,
      rgba(255,255,255,0.025) 120px, rgba(255,255,255,0.025) 122px),
    linear-gradient(180deg, #162019 0%, #0d1610 100%);
  pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h3 {
  font-family: var(--font-sans); font-size: 13px;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--ivory); margin: 0 0 16px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul li { font-family: var(--font-sans); font-size: 14px; color: #c8c6bb; }
.footer ul li a, .footer ul li strong { color: #c8c6bb; border: none; cursor: pointer; font-weight: 400; }
.footer ul li a:hover { color: var(--ivory); border: none; }
.footer ul li strong { font-weight: 600; color: var(--ivory); margin-right: 8px; }
.footer .brand-block img { height: 56px; margin-bottom: 16px; display: block; }
.footer .brand-block p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: #c8c6bb;
  line-height: 1.5; max-width: 260px;
}
.footer .socials { display: flex; gap: 10px; margin-top: 10px; }
.footer .socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ivory); font-size: 14px; border: none;
}
.footer .socials a:hover { background: var(--terracotta); }
.footer-legal {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-family: var(--font-sans); font-size: 12px;
  color: rgba(200,198,187,0.7);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============ PAGE HEADER (for non-home pages) ============ */
.page-header {
  background: var(--deep-dark);
  color: var(--ivory);
  position: relative; overflow: hidden;
  padding: 72px 32px 72px;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 118px,
      rgba(0,0,0,0.35) 118px, rgba(0,0,0,0.35) 120px,
      rgba(255,255,255,0.025) 120px, rgba(255,255,255,0.025) 122px),
    linear-gradient(180deg, #1b2a22 0%, #0f1a14 100%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.page-header .crumbs {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--coral); letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 52px; line-height: 1.1; color: var(--ivory);
  margin: 0; max-width: 720px; letter-spacing: -0.5px;
}
.page-header .ph-sub {
  font-family: var(--font-sans); font-size: 16px;
  color: #c8c6bb; margin: 18px 0 0; max-width: 560px;
  line-height: 1.6;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gphoto {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-whisper);
  background:
    repeating-linear-gradient(90deg,
      rgba(46,75,51,0.95) 0px, rgba(46,75,51,0.95) 38px,
      rgba(31,53,36,0.95) 38px, rgba(31,53,36,0.95) 40px),
    linear-gradient(180deg, #4a6b50 0%, #2e4b33 70%, #1f3524 100%);
  transition: transform 240ms ease;
}
.gphoto.wide { grid-column: span 2; }
.gphoto.tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.gphoto::before, .gphoto::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: #1f3524;
}
.gphoto::before { top: 28%; }
.gphoto::after { top: 72%; }
.gphoto:hover { transform: translateY(-2px); }
.gphoto .cap {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-sans); font-size: 12px; color: var(--ivory);
  background: rgba(20,20,19,0.55); padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
  display: inline-flex; gap: 8px;
  width: fit-content;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border-bottom: 1px solid var(--border-warm);
  padding: 24px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-warm); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  cursor: pointer;
  font-family: var(--font-serif); font-weight: 500; font-size: 20px;
  color: var(--forest); line-height: 1.4;
}
.faq-q .plus {
  font-family: var(--font-sans); font-size: 22px; color: var(--terracotta);
  flex-shrink: 0; transition: transform 200ms ease;
  line-height: 1;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 280ms ease, padding-top 200ms ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }
.faq-a p {
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.65;
  color: var(--fg-secondary); margin: 0; max-width: 780px;
}

/* ============ AREAS ============ */
.areas-map {
  background: var(--forest);
  border-radius: 24px;
  padding: 40px;
  color: var(--ivory);
  min-height: 440px;
  position: relative;
  overflow: hidden;
}
.areas-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 24px;
}
.areas-list li {
  list-style: none;
  font-family: var(--font-sans); font-size: 15px;
  padding: 10px 0;
  color: var(--fg-primary);
  border-bottom: 1px solid var(--border-warm);
  display: flex; justify-content: space-between; align-items: center;
}
.areas-list li .pin {
  color: var(--terracotta); font-size: 11px;
}
.areas-zone {
  display: inline-block;
  background: var(--warm-sand);
  color: var(--fg-button-light);
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.4px; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ============ ABOUT ============ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.stat-num {
  font-family: var(--font-serif); font-size: 56px; font-weight: 500;
  color: var(--terracotta); line-height: 1; margin-bottom: 8px;
  letter-spacing: -1px;
}
.stat-label {
  font-family: var(--font-sans); font-size: 13px; color: var(--fg-secondary);
  line-height: 1.45; max-width: 200px;
}

/* ============ SERVICES ============ */
.svc-big {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-warm);
}
.svc-big:last-child { border-bottom: none; }
.svc-big.reverse .svc-big-ill { order: 2; }
.svc-big-ill {
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: 20px;
  padding: 48px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.svc-big h2 { margin-bottom: 16px; }
.svc-big ul { list-style: none; padding: 0; margin: 20px 0; }
.svc-big ul li {
  font-family: var(--font-sans); font-size: 15px; color: var(--fg-primary);
  padding: 8px 0 8px 26px; position: relative; line-height: 1.5;
}
.svc-big ul li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 14px; height: 2px; background: var(--terracotta);
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--terracotta);
  color: var(--ivory);
  padding: 56px 32px;
}
.cta-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 34px; color: var(--ivory); margin: 0;
  max-width: 560px; line-height: 1.2;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-inner-tall { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 16px; }
  .nav-left { gap: 12px; flex-wrap: wrap; }
  .nav-right { gap: 12px; flex-wrap: wrap; }
  .links-center { display: none; }
  .brand-right img { height: 64px; }
  .brand-left img { height: 64px; }
  .phone-lg a { font-size: 18px; }
  .phone-lg .icon { width: 18px !important; height: 18px !important; }
  .btn-xl { font-size: 14px !important; padding: 12px 18px !important; box-shadow: none; }
  .nav .links { display: none; }
  .nav .phone { display: none; }
  .section { padding: 64px 20px; }
  .hero-wood { padding: 56px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 18px !important; line-height: 1.5 !important; }
  .hero-mark { order: -1; }
  .hero-house { width: 220px; height: 180px; }
  .hero-wordmark .main { font-size: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .page-header h1 { font-size: 36px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .svc-big { grid-template-columns: 1fr; padding: 40px 0; }
  .svc-big.reverse .svc-big-ill { order: 0; }
  .credentials-logos { gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .benefits { padding: 56px 20px; }
  .benefits-grid { gap: 14px 0; }
  .benefit { font-size: 15px; }
}

/* ============ QUICKQUOTE GRID ============ */
.qq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 768px) {
  .qq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .benefits { padding: 48px 18px; }
  .benefits-grid { max-width: 100%; }
  .footer { padding: 40px 18px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { flex-direction: column; gap: 8px; margin-top: 28px; }
}

/* ============================================================
   MOBILE NAV — hamburger + dropdown menu (mobile only)
   Desktop nav untouched.
   ============================================================ */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: #1E3D2F;
  border-radius: 6px;
}
.hamburger:hover { background: rgba(30,61,47,0.06); }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  /* hide the desktop CTA — replaced by hamburger + in-menu CTA */
  .nav-cta-desktop { display: none !important; }

  .hamburger { display: inline-flex; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F5F0E8;
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(30,61,47,0.10);
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
    z-index: 100;
  }
  .mobile-menu-link {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: #1E3D2F;
    padding: 16px 4px;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid rgba(30,61,47,0.10);
    display: block;
  }
  .mobile-menu-link:last-of-type { /* before the CTA */ }
  .mobile-menu-link:hover,
  .mobile-menu-link:focus {
    color: #1E3D2F;
    border-bottom-color: rgba(30,61,47,0.10);
    background: rgba(30,61,47,0.04);
  }
  .mobile-menu-cta {
    margin-top: 18px;
    background: #C4622D;
    color: #ffffff !important;
    text-align: center;
    padding: 16px 20px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    border: none;
    display: block;
    letter-spacing: 0.2px;
  }
  .mobile-menu-cta:hover,
  .mobile-menu-cta:focus {
    background: #A8521E;
    color: #ffffff !important;
    border: none;
  }
}

/* ============================================================
   MOBILE QUICKQUOTE — every field fully stacked, single column.
   Uses display:block on the <form> so any inline grid styles
   (`gridTemplateColumns: 1fr 1fr`, `gridColumn: span 2`) become
   inert. Desktop layout untouched (only inside @media).
   ============================================================ */
@media (max-width: 768px) {
  /* Kill the form's internal grid entirely — children become block-level */
  #quote form.card,
  .qq-grid form.card,
  .contact-form-card,
  form.contact-form-card {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 20px 18px !important;
  }

  /* Each field is its own full-width block, label sits above input */
  #quote form.card label.qq-field,
  .qq-grid form.card label.qq-field,
  .contact-form-card label.qq-field,
  form.contact-form-card label.qq-field {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-column: auto !important;
    margin: 0 0 16px 0 !important;
  }

  /* Inputs / selects / textareas fill their field, 16px font stops iOS focus zoom */
  #quote form.card .qq-field input,
  #quote form.card .qq-field select,
  #quote form.card .qq-field textarea,
  .qq-grid form.card .qq-field input,
  .qq-grid form.card .qq-field select,
  .qq-grid form.card .qq-field textarea,
  .contact-form-card .qq-field input,
  .contact-form-card .qq-field select,
  .contact-form-card .qq-field textarea {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
  #quote form.card .qq-field textarea,
  .qq-grid form.card .qq-field textarea,
  .contact-form-card .qq-field textarea { min-height: 96px !important; }

  /* Submit row: caption above, button full-width */
  .qq-submit-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    grid-column: auto !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
  }
  .qq-submit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 18px !important;
    font-size: 16px !important;
  }

  /* Section side padding so the white card never touches the screen edge */
  #quote.section { padding-left: 18px !important; padding-right: 18px !important; }

  /* Headline + eyebrow can't overflow */
  #quote h2 {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    line-height: 1.18 !important;
    text-wrap: pretty !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }
  #quote .eyebrow { font-size: 16px !important; }
  #quote .section-inner > div[style*="textAlign"] { margin-bottom: 36px !important; }
}

@media (max-width: 480px) {
  /* tightest phone layout: small headline, slimmer card padding */
  #quote h2 {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.2 !important;
  }
  #quote .eyebrow { font-size: 15px !important; }
  #quote form.card,
  .qq-grid form.card,
  .contact-form-card { padding: 16px 14px !important; }
  #quote .section-inner > div[style*="textAlign"] { margin-bottom: 28px !important; }
}
