/* Northwest Roof Restoration preview.
   Colours from their logo and site: green #529475, slate #2D3F4E, gold #8D6715, logo red #870B0C. */
:root {
  --green: #529475;
  --green-dark: #2f6b50;
  --green-deep: #24543f;
  --slate: #2d3f4e;
  --slate-900: #1b2833;
  --gold: #8d6715;
  --gold-light: #e2b44c;
  --gold-hover: #d4a43a;
  --ink: #1b2833;
  --muted: #4b5a66;
  --light: #f4f6f3;
  --tint: #e3ece6;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 18px;
  --page-pad: 2.5rem;
  --section-pad: 6rem;
  --ribbon-h: 26px;
  --nav-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 991px) { :root { --page-pad: 2rem; --section-pad: 4.5rem; } }
@media (max-width: 479px) { :root { --page-pad: 1.25rem; --section-pad: 3.75rem; --nav-h: 64px; --ribbon-h: 34px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + var(--nav-h)); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--heading, var(--slate-900)); letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.container { width: 100%; max-width: calc(76rem + var(--page-pad) * 2); margin-inline: auto; padding-inline: var(--page-pad); }
.section { padding-block: var(--section-pad); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.stack-sm { display: flex; flex-direction: column; gap: .35rem; }
.section-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.measure { max-width: 40rem; }
.muted { color: var(--muted-c, var(--muted)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 991px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }

.tagline { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--green-dark)); }
.tagline-light { color: var(--gold-light); }

.s-light { background: var(--light); }
.s-white { background: var(--white); }
.s-tint { background: var(--tint); }
.s-dark { background: var(--slate); color: var(--white); --heading: var(--white); --muted-c: rgb(255 255 255 / .82); --accent: var(--gold-light); }

/* Buttons */
.btn, .btn-ghost, .btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn { background: var(--green-dark); color: var(--white); }
.btn:hover { background: var(--green-deep); }
.btn-gold { background: var(--gold-light); color: var(--slate-900); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .7); background: rgb(0 0 0 / .15); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: var(--white); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Preview ribbon */
.ribbon {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center; padding: 0 .75rem;
  background: var(--slate-900); color: rgb(255 255 255 / .88);
  font-size: .75rem; line-height: 1.25; text-align: center;
}

/* Header */
.nav { position: fixed; top: var(--ribbon-h); left: 0; right: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 6px 20px rgb(0 0 0 / .06); }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: block; flex: none; }
.logo img { width: 210px; height: auto; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--slate); }
.nav-links a:hover { color: var(--green-dark); }
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-call { margin-left: auto; }
}
@media (max-width: 479px) {
  .logo img { width: 150px; }
  .nav-bar { gap: .75rem; }
  .nav-call { padding: .5rem .9rem; font-size: .875rem; min-height: 2.5rem; }
}

/* Hero */
.hero { position: relative; margin-top: calc(var(--ribbon-h) + var(--nav-h)); min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 32 42 / .86) 0%, rgb(20 32 42 / .62) 45%, rgb(20 32 42 / .15) 100%), linear-gradient(0deg, rgb(20 32 42 / .55), transparent 55%); }
.hero-inner { position: relative; padding-block: 5rem 4.5rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.04; font-weight: 800; max-width: 14ch; }
.hero .lead { font-size: 1.25rem; max-width: 34rem; color: rgb(255 255 255 / .92); }
.hero .btn-row { margin-top: .6rem; }
@media (max-width: 479px) {
  .hero { min-height: 0; }
  .hero-inner { padding-block: 2.25rem 2.25rem; gap: .85rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero .lead { font-size: 1.0625rem; }
  .hero .btn-row { width: 100%; }
  .hero .btn-row a { width: 100%; }
  .hero-shade { background: linear-gradient(0deg, rgb(20 32 42 / .9) 0%, rgb(20 32 42 / .7) 60%, rgb(20 32 42 / .45) 100%); }
}

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid #dde3df; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .15rem; padding: 1.6rem 1.25rem; border-left: 1px solid #e3e8e5; text-decoration: none; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-value { font-size: 1.375rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.01em; }
.trust-label { font-size: .9375rem; color: var(--muted); }
.trust-rating .trust-label { text-decoration: underline; text-underline-offset: 3px; color: var(--green-dark); font-weight: 600; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: .05em; vertical-align: 2px; }
@media (max-width: 991px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1.1rem 1rem; border-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid #e3e8e5; }
  .trust-item:nth-child(n+3) { border-top: 1px solid #e3e8e5; }
  .trust-item:first-child { padding-left: 1rem; }
  .trust-value { font-size: 1.125rem; }
  .trust-label { font-size: .8125rem; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 30px rgb(27 40 51 / .07); display: flex; flex-direction: column; }
.svc-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.svc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--green); }
.svc-body p { color: var(--muted); font-size: .9875rem; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 1rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery .g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: .75rem; bottom: .75rem; background: rgb(27 40 51 / .82); color: var(--white); font-size: .8125rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: .6rem; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 1; }
  .gallery figure:first-child { grid-row: span 2; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.step-num { font-size: 2.25rem; font-weight: 800; color: var(--green); line-height: 1; }
.step p { color: var(--muted); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 1rem; } .step { padding: 1.5rem; } }

/* Service area */
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.towns li { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-weight: 600; }
.towns li::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); flex: none; }

/* Form */
.grid-form { align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list strong { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); }
.contact-list a { font-weight: 700; font-size: 1.125rem; color: var(--slate-900); }
.quote-form { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 10px 30px rgb(27 40 51 / .08); }
.quote-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .9375rem; color: var(--slate-900); }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #c9d2cd; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgb(82 148 117 / .25); }
.form-note { background: var(--tint); border-left: 4px solid var(--green-dark); padding: .85rem 1rem; border-radius: 6px; font-size: .9375rem; }
@media (max-width: 479px) { .quote-form { padding: 1.4rem; } }

/* Footer */
.footer { background: var(--slate-900); color: rgb(255 255 255 / .82); padding: 3.5rem 0; font-size: .9375rem; }
.footer a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-name { color: var(--white); font-size: 1.0625rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } .footer { padding-bottom: 6rem; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -4px 18px rgb(0 0 0 / .14); }
  .call-bar a { display: flex; align-items: center; justify-content: center; min-height: 3rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .call-bar-call { background: var(--green-dark); color: var(--white); }
  .call-bar-quote { background: var(--gold-light); color: var(--slate-900); }
}
