/* GRRC Roofing – site styles
   Colours: black, white and greys. To change the look, edit the variables in :root.
   Fonts are self-hosted from /fonts (Lato body, Archivo Black headings, Outfit sub-headings). */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/outfit-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #1d1d1d;
  --body: #333;
  --muted: #5d5d5d;
  --bar: #272b2d;          /* dark stats bar */
  --hero-bg: #1f2124;      /* hero */
  --band: #f4f4f4;         /* light grey bands (About heading, Services) and footer */
  --field-bg: #efefef;     /* light grey form fields */
  --line: #d9d9d9;
  --error: #b3261e;

  --font-body: Lato, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-head: Outfit, "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --track-tight: -0.02em;

  /* Spacing set from the marked-up pages */
  --about-gap-below: 24px;
  --stats-pad-y: 26px;
  --svc-head-pad-top: 34px;
  --svc-head-pad-bottom: 22px;
  --svc-title-size: clamp(1.45rem, 2.3vw, 2.1rem);
  --svc-wrap-max: 1360px;
  --svc-img-ratio: 4 / 3;
  --svc-gap: 28px;
}

* { box-sizing: border-box; }
html { background: var(--band); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--body); line-height: 1.5; letter-spacing: var(--track-tight); }
img { display: block; max-width: 100%; height: auto; }
main, .site-header { background: #fff; }
section[id], .site-header[id] { scroll-margin-top: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 5vw, 64px); }
.site-header .logo img { height: 62px; width: auto; }
.header-right { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.site-nav { display: flex; gap: 28px; font-size: 15px; text-transform: uppercase; }
.site-nav a { color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.btn { display: inline-block; font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; padding: 13px 22px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; text-align: center; }
.btn-dark { background: #1a1a1a; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 12px 20px; font-size: .82rem; }

/* ---------- Hero ---------- */
.hero { color: #fff; background: linear-gradient(90deg, #1b1b1b 0%, #26292b 55%, #1b1b1b 100%); }
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 48px) 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.12; letter-spacing: 0; text-wrap: balance; }
.lede { margin: 0; max-width: 40ch; font-size: 1.1rem; line-height: 1.55; color: #eee; text-wrap: pretty; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 702 / 481; object-fit: cover; }
.hero-video-wrap { position: relative; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- Associations ---------- */
.assoc { background: #fff; padding: 56px clamp(20px, 5vw, 48px); }
.assoc-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(32px, 5vw, 64px); }
.assoc-row img { height: 78px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- About ---------- */
.about-bar { background: var(--band); text-align: center; padding: 42px 24px; }
.about-bar h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.about-wrap { max-width: 1240px; margin: 0 auto; padding: 36px clamp(20px, 5vw, 48px) var(--about-gap-below); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-text { text-align: center; max-width: 52ch; margin: 0 auto; }
.about-text p { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.62; color: #444; text-wrap: pretty; }
.about-text ul { margin: 4px 0 0; padding: 0 0 0 1.4em; text-align: left; display: inline-block; color: #444; }
.about-text li { padding: 3px 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.stats { background: var(--bar); color: #fff; padding: var(--stats-pad-y) 24px; }
.stats-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat .num { font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.1; font-weight: 400; }
.stat .label { margin-top: 4px; font-size: .95rem; text-transform: uppercase; color: #d9d9d9; }

/* ---------- Services ---------- */
.services { background: #fff; }
.eyebrow { margin: 0 0 6px; font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.svc-head { text-align: center; padding: var(--svc-head-pad-top) 24px var(--svc-head-pad-bottom); }
.svc-head .eyebrow { padding-left: .3em; }
.svc-head h2 { font-family: var(--font-head); font-weight: 800; font-size: var(--svc-title-size); line-height: 1.15; letter-spacing: -.005em; color: var(--ink); margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.svc-head .amp { color: #454545; font-family: Poppins, var(--font-head); font-weight: 800; letter-spacing: 0; }
.cards { background: var(--band); margin: 0; padding: 40px clamp(20px, 3vw, 40px) 64px; display: grid; grid-template-columns: repeat(4, minmax(0, calc((var(--svc-wrap-max) - 3 * var(--svc-gap)) / 4))); gap: var(--svc-gap); justify-content: center; }
.card { text-align: center; }
.card img { width: 100%; aspect-ratio: var(--svc-img-ratio); object-fit: cover; }
.card h3 { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.2; color: var(--ink); margin: 18px 0 10px; letter-spacing: -.005em; }
.card p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact { background: #fff; padding: 56px 0 72px; }
.contact-title { margin: 0 0 40px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); padding: 0 20px; }
.contact-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-wrap h3 { margin: 0 0 22px; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.2; color: var(--ink); letter-spacing: -.005em; }
.field { margin-bottom: 14px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; letter-spacing: 0; color: var(--ink); background: var(--field-bg); border: 2px solid transparent; border-radius: 0; padding: 14px 14px; }
.field input::placeholder, .field textarea::placeholder { color: #444; opacity: 1; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff; }
.field-error { margin: 6px 0 0; font-size: .88rem; color: var(--error); letter-spacing: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { display: block; width: 100%; margin-top: 22px; font-family: inherit; font-size: .9rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: #fff; background: #1a1a1a; border: 0; padding: 18px 24px; cursor: pointer; transition: background .15s; }
.submit:hover { background: #000; }
.submit[disabled] { background: #6b6b6b; cursor: wait; }
.form-status { margin: 16px 0 0; font-size: .98rem; letter-spacing: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); padding: 12px 14px; border-left: 4px solid var(--error); background: #fdf1f0; }
.form-success { background: var(--field-bg); padding: 32px 28px; }
.form-success h4 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.form-success p { margin: 0; font-size: 1.02rem; line-height: 1.6; }

.contact-info p { margin: 0 0 30px; font-size: .98rem; line-height: 1.62; max-width: 52ch; color: #444; text-wrap: pretty; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 22px; }
.contact-list .k { display: block; font-size: 1.05rem; color: var(--muted); margin-bottom: 2px; }
.contact-list .ico { display: inline-block; width: 1.4em; font-size: .9em; }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-size: 1.05rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; text-align: center; padding: 34px 20px 30px; color: #333; font-size: 1rem; border-top: 1px solid var(--line); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; }
.footer-nav a { color: #6a5057; text-decoration: none; }
.site-footer p { margin: 0 0 8px; }
.site-footer p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer small { display: block; margin-top: 14px; color: #555; font-size: .85rem; }

.notfound { max-width: 640px; margin: 0 auto; padding: 72px 24px 96px; text-align: center; }
.notfound h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); margin: 0 0 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-right { flex-wrap: wrap; gap: 12px 20px; }
  .site-nav { flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .assoc-row img { height: 64px; }
  .contact { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
