/* Flash Rite Roofing homepage preview.
   Colors from their logo: bright blue #0094ff and charcoal #212121. Blue is darkened for text on white and used with dark text on buttons (WCAG AA). */

:root {
  --navy: #23272c;
  --navy-900: #15181c;
  --sky: #0094ff;
  --sky-text: #0062b0;   /* logo blue darkened for AA text on white */
  --sky-light: #6dc0ff;  /* logo blue lightened for text on charcoal */
  --gold: #0094ff;       /* buttons: logo blue with charcoal text */
  --gold-dark: #38adff;
  --star: #ffc23d;
  --ink: #1c2024;
  --slate: #4d555e;
  --light: #f1f4f7;
  --line: #dce2e8;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --page-pad: 2.5rem;
  --container: 76rem;
  --section-pad: 6rem;
  --radius: 10px;
  --radius-lg: 20px;
  --ribbon-h: 1.75rem;
  --nav-h: 5rem;
}
@media (max-width: 991px) { :root { --page-pad: 2rem; --section-pad: 4.5rem; } }
@media (max-width: 479px) { :root { --page-pad: 1.25rem; --section-pad: 3.5rem; --nav-h: 4.25rem; --ribbon-h: 2.25rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + var(--nav-h) + .5rem); }
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; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.icon {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  font-size: 1.25em; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased; overflow: hidden; width: 1em; flex-shrink: 0;
}

h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--navy-900); letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.05; font-weight: 600; text-transform: uppercase; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.12; font-weight: 600; }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 500; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--page-pad)); margin-inline: auto; padding-inline: var(--page-pad); }
.section { padding-block: var(--section-pad); }
.section-head { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.measure { max-width: 40rem; }
.muted { color: var(--slate); }
.stack { display: flex; flex-direction: column; gap: .875rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.s-white { background: var(--white); }
.s-light { background: var(--light); }
.s-dark { background: var(--navy); color: var(--white); }
.s-dark h2 { color: var(--white); }
.s-dark .muted { color: rgb(255 255 255 / .82); }

.tagline { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-text); }
.tagline-light { color: var(--sky-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .55); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / .08); }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

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

/* Header */
.nav { position: sticky; top: var(--ribbon-h); z-index: 50; margin-top: var(--ribbon-h); background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }
.logo { display: flex; text-decoration: none; }
.logo svg { width: 15rem; height: auto; display: block; }
.nav-links { display: flex; gap: 2rem; }
.nav-call-short { display: none; }
.nav-links a { font-weight: 600; font-size: .9375rem; color: var(--navy-900); text-decoration: none; padding-block: .5rem; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--gold); }

/* Hero */
.hero { padding: 1.25rem 1.25rem 0; background: var(--light); }
.hero-card { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(38rem, calc(100svh - 9rem)); border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding: 4rem clamp(1.5rem, 5vw, 4.5rem); color: var(--white); }
.hero-copy h1 { color: var(--white); }
.hero-copy .lead { font-size: 1.1875rem; color: rgb(255 255 255 / .88); max-width: 32rem; }
.hero-copy .btn-row { margin-top: .5rem; }
.hero-photo { position: relative; min-height: 18rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 88%; }

/* Trust strip */
.trust { background: var(--light); padding-block: 2.5rem 1rem; }
.trust-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .875rem; color: var(--slate); }
.trust-item .icon { font-size: 1.75rem; color: var(--sky-text); margin-bottom: .25rem; }
.trust-item strong { font-size: 1.0625rem; color: var(--navy-900); line-height: 1.3; }
.trust-rating { background: var(--navy); border-color: var(--navy); color: var(--white); text-decoration: none; }
.trust-rating strong { color: var(--white); }
.stars { color: var(--star); font-size: 1.375rem; letter-spacing: .1em; line-height: 1; }
.trust-link { display: inline-flex; align-items: center; gap: .25rem; color: var(--sky-light); font-weight: 600; }
.trust-rating:hover .trust-link { text-decoration: underline; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--light); border: 1px solid var(--line); border-top: 4px solid var(--sky); }
.svc-icon { font-size: 2rem; color: var(--navy); width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 12px; background: #e3f1ff; }
.svc-card p { color: var(--slate); font-size: .9875rem; }
.materials { margin-top: 2rem; text-align: center; color: var(--slate); }
.materials strong { color: var(--navy-900); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; grid-auto-flow: dense; gap: 1rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.steps li { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy-900); font: 600 1.0625rem var(--display); }
.steps p { color: var(--slate); margin-top: .25rem; }
.media { border-radius: var(--radius-lg); overflow: hidden; }

/* Service area */
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; max-width: 56rem; margin-inline: auto; }
.towns li { padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .06); font-weight: 600; font-size: .9375rem; }
.towns li:first-child { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

/* Estimate form */
.estimate { align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: .875rem; }
.contact-list li { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--navy-900); }
.contact-list .icon { color: var(--sky-text); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.quote-form { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 16px 40px rgb(21 24 28 / .08); }
.field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy-900); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .875rem; border: 1px solid #b9c5d0; border-radius: 8px; background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sky); border-color: var(--sky); }
.form-note { padding: .875rem 1rem; border-radius: 8px; background: #e6f3ff; border: 1px solid var(--gold); color: var(--navy-900); font-weight: 600; font-size: .9375rem; }

/* Footer */
.footer { background: var(--navy-900); color: rgb(255 255 255 / .82); padding-block: 4rem 2rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
.footer-brand svg { width: 14rem; height: auto; margin-bottom: 1rem; display: block; }
.footer-heading { font: 700 .8125rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-light); margin: 0 0 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-list li { display: flex; gap: .625rem; align-items: flex-start; }
.footer-list a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .8125rem; color: rgb(255 255 255 / .65); }

/* Mobile call bar */
.call-bar { display: none; }

@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-rating { grid-column: span 3; }
}
@media (max-width: 991px) {
  .nav-links { display: none; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 16rem; order: 2; }
  .hero-copy { padding: 2.75rem 2rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 12rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; position: fixed; inset: auto 0 0; z-index: 55; padding: .625rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgb(21 24 28 / .95); border-top: 1px solid rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .call-bar-call { background: var(--gold); color: var(--navy-900); }
  .call-bar-quote { background: transparent; color: var(--white); border: 2px solid rgb(255 255 255 / .55); }
  .svc-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .trust-rating { grid-column: span 2; }
}
@media (max-width: 479px) {
  .logo svg { width: 10.5rem; }
  .nav-call { padding-inline: 1rem; }
  .nav-call-num { display: none; }
  .nav-call-short { display: inline; }
  .ribbon { font-size: .6875rem; }
  .hero { padding: .75rem .75rem 0; }
  .hero-copy { padding: 2rem 1.25rem; gap: 1rem; }
  .hero-copy .lead { font-size: 1.0625rem; }
  .hero-copy .btn-row { flex-direction: column; }
  .hero-copy .btn { width: 100%; }
  .hero-photo { min-height: 13rem; }
  .trust-item { padding: 1rem; }
  .gallery { grid-auto-rows: 9.5rem; gap: .625rem; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}
