/* Grellner Site Works — shared stylesheet (homepage + future service pages) */

/* Self-hosted fonts (SIL OFL, see /fonts). No third-party requests. */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url(../fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-700-normal.woff2) format('woff2'); }

:root {
  --charcoal: #31312F;
  --deep: #252524;
  --deepest: #1B1B1A;
  --rust: #B63824;
  --rust-dark: #962C1B;
  --rust-light: #E0826F;   /* rust tint for small text on charcoal (contrast) */
  --paper: #F4F1EB;        /* warm off-white */
  --concrete: #E4DFD6;     /* concrete tone */
  --white: #FFFFFF;
  --line: #CFC8BC;
  --line-dark: #454542;
  --muted: #5F5A53;
  --muted-light: #C9C4BC;

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: Archivo, 'Helvetica Neue', Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 96px;
  --grade-h: clamp(28px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--charcoal); font: 400 17px/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-wrap: balance; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Preview builds only: anything not yet verified in site.config.json gets a dashed amber outline. */
[data-unverified] { outline: 2px dashed #E8A317; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rust); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 22px; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-dark); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--charcoal); }
.btn--lg { font-size: 16px; padding: 19px 28px; }
.btn--block { width: 100%; }

.eyebrow { font: 700 13px/1.2 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--rust); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--rust-light); }

/* Subtle ground texture — applied deliberately, not everywhere */
.textured { position: relative; isolation: isolate; }
.textured::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Photo placeholders — intentionally obvious. Remove .ph and swap in a real <img>. */
.ph {
  position: relative; background-color: #8C8579;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px);
}
.ph::after {
  content: attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 32px); text-align: center;
  font: 700 12px/1.5 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  border: 2px dashed rgba(255,255,255,.75); padding: 12px 16px; background: rgba(0,0,0,.35);
}
.ph--dark { background-color: #474642; }

/* Grade divider: rough ground on the left, level ground (with a rust grade stripe) on the right.
   Sits at the bottom of a section; fill = the colour of the section that follows. */
.grade { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--grade-h); pointer-events: none; }
.grade__fill { fill: var(--grade-next, var(--paper)); }
.grade__stripe { fill: var(--rust); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--charcoal); color: #fff; border-bottom: 3px solid var(--rust); }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 78px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) { font: 600 14px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--paper); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--rust); }
.nav .btn { padding: 14px 20px; font-size: 14px; }
.nav__call { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 96px 0 calc(96px + var(--grade-h)); overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero__img.ph::after { top: auto; bottom: calc(var(--grade-h) + 24px); left: auto; right: 24px; transform: none; }
.hero--no-photo { background: var(--charcoal); }
.hero--no-photo .hero__shade { background: transparent; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: rgba(27,27,26,.56); }
.hero__content { position: relative; }
.hero h1 { font-size: clamp(40px, 8.4vw, 124px); margin-bottom: 26px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 600px; color: #ECE8E1; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Trust ---------- */
.trust { background: var(--paper); padding: 40px 0 72px; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust__item { padding: 8px clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item h3 { font-size: clamp(30px, 3vw, 38px); color: var(--rust); margin-bottom: 12px; }
.trust__item p { color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--concrete { background: var(--concrete); }
.section:has(> .grade) { padding-bottom: calc(clamp(72px, 9vw, 112px) + var(--grade-h)); }
.section-head { max-width: 960px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(46px, 6.4vw, 84px); margin-bottom: 20px; }
.section-head p:not(.eyebrow) { font-size: 19px; color: var(--muted); max-width: 620px; }
.section-cta { margin-top: 48px; }

/* ---------- Services ---------- */
.icon { width: 40px; height: 40px; fill: none; stroke: var(--rust); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 52px; height: 52px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature { background: var(--white); border-top: 5px solid var(--rust); display: flex; flex-direction: column; }
.feature__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.feature__body { padding: 30px 32px 34px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
.feature__body .icon { grid-row: span 2; margin-top: 2px; }
.feature h3 { font-size: clamp(34px, 3.4vw, 44px); margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }
.feature h3 a, .service h3 a { text-decoration: none; }
.feature h3 a:hover, .service h3 a:hover { color: var(--rust); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 28px; background: var(--line); border: 2px solid var(--line); }
.service { background: var(--paper); padding: 30px 28px; }
.service .icon { margin-bottom: 18px; }
.service h3 { font-size: 30px; margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { background: var(--charcoal); color: #fff; padding: clamp(72px, 9vw, 112px) 0; }
.about::before { opacity: .09; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__grid--solo { grid-template-columns: minmax(0, 820px); }
.about__img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-bottom: 6px solid var(--rust); }
.about h2 { font-size: clamp(46px, 6vw, 80px); margin-bottom: 30px; }
.about__copy > p:not(.eyebrow) { color: #DAD6CF; font-size: 18px; max-width: 620px; }
.about__mark { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); max-width: 620px; }
.about__mark picture { flex: none; }
.about__mark img { width: 64px; }
.about__mark p { margin: 0; font: 900 28px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.about__mark span { display: block; margin-top: 8px; font: 600 12px/1 var(--body); letter-spacing: .22em; color: var(--muted-light); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 4px solid var(--charcoal); padding-top: 24px; }
.step__num { display: block; font: 900 64px/1 var(--display); color: var(--rust); margin-bottom: 14px; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.area__head { margin-bottom: 0; }
.area__call { display: inline-block; margin-top: 8px; font: 900 32px/1 var(--display); text-decoration: none; color: var(--rust); border-bottom: 3px solid currentColor; padding-bottom: 4px; }
.towns { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; border-top: 4px solid var(--charcoal); padding-top: 20px; }
.towns li { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 11px 0 11px 18px; position: relative; break-inside: avoid; border-bottom: 1px solid var(--line); }
.towns li::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; background: var(--rust); transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq__list { border-top: 4px solid var(--charcoal); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1; }
.faq summary::after { content: '+'; flex: none; font: 900 34px/1 var(--display); color: var(--rust); width: 24px; text-align: center; }
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover h3 { color: var(--rust); }
.faq details p { color: var(--muted); max-width: 640px; margin: -4px 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ---------- Estimate ---------- */
.estimate { background: var(--deep); color: #fff; padding: clamp(72px, 9vw, 112px) 0; }
.estimate__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.estimate h2 { font-size: clamp(46px, 6vw, 80px); margin-bottom: 22px; }
.estimate__intro > p { color: #DAD6CF; font-size: 18px; }
.estimate__points { list-style: none; padding: 0; margin: 28px 0; }
.estimate__points li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line-dark); position: relative; font-weight: 600; }
.estimate__points li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--rust-light); border-bottom: 3px solid var(--rust-light); transform: rotate(-45deg); }
.estimate__direct { color: var(--muted-light); line-height: 1.9; }
.estimate__direct a { color: #fff; font-weight: 700; text-decoration-color: var(--rust); text-underline-offset: 4px; }
.estimate__phone { font: 900 34px/1.3 var(--display); text-decoration: none; }

.form { background: var(--paper); color: var(--charcoal); padding: clamp(24px, 4vw, 44px); border-top: 6px solid var(--rust); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.req { color: var(--rust); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--charcoal); background: #fff;
  border: 1.5px solid #B9B2A6; border-radius: 2px; padding: 13px 14px; min-height: 50px;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2331312F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(182,56,36,.2); }
.field [aria-invalid="true"] { border-color: var(--rust); }
.field__hint { margin: 0; font-size: 14px; color: var(--muted); }
.form__status { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-notice { background: #fff; border-left: 4px solid var(--rust); padding: 14px 16px; }
.form__status.is-error { background: #fff; border-left: 4px solid var(--rust); padding: 14px 16px; color: var(--rust-dark); }
.form__status.is-success { background: #fff; border-left: 4px solid #2F6B3A; padding: 14px 16px; }
.form__status:focus { outline: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--deepest); color: var(--muted-light); padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo { width: 240px; }
.footer__h { font: 700 12px/1 var(--body); letter-spacing: .22em; color: #fff; margin-bottom: 18px; }
.footer a { text-decoration: none; color: #fff; }
.footer a:hover { color: var(--rust-light); }
.footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer__legal { border-top: 1px solid #333331; margin-top: 44px; padding-top: 22px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .brand img { height: 56px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 2px solid rgba(255,255,255,.35); color: #fff;
    font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border-radius: 2px; cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .15s; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal); border-bottom: 3px solid var(--rust); padding: 8px var(--gutter) 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { font-size: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn):hover { border-color: var(--line-dark); color: var(--rust-light); }
  .nav__call { display: block; }
  .nav .btn { margin-top: 20px; padding: 18px; font-size: 15px; }

  .features { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .about__grid, .area, .estimate__grid { grid-template-columns: 1fr; }
  .about__img { aspect-ratio: 4 / 3; max-height: 520px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { min-height: 0; padding: 72px 0 calc(64px + var(--grade-h)); }
  .hero__img.ph::after { left: 16px; right: 16px; top: 12px; bottom: auto; font-size: 10px; }
  .actions .btn { width: 100%; }
  .trust { padding: 28px 0 56px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item:first-child { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .trust__item:last-child { border-bottom: 0; }
  .feature__body { padding: 24px 22px 26px; grid-template-columns: 1fr; }
  .feature__body .icon { grid-row: auto; margin-bottom: 14px; }
  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 20px; }
  .service .icon { grid-row: span 2; margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .towns { columns: 2; }
  .towns li { font-size: 20px; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section-cta .btn { width: 100%; }
}

@media (max-width: 400px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { height: 52px; }
}

/* ---------- 404 ---------- */
.notfound h1 { font-size: clamp(46px, 7vw, 92px); margin-bottom: 20px; }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: #fff; }
