/* ── South West Flat Roofing - design tokens ─────────────────────
   Palette from the client's existing brand: deep steel blue + logo red.
   Flat colours only, no gradients on content (TradeWebs client build standards);
   the single exception is the hero photo scrim for text legibility. */
:root {
  --clr-navy:        #1d4a63;
  --clr-navy-dark:   #143546;
  --clr-navy-deep:   #0f2836;
  --clr-red:         #c8102e;
  --clr-red-dark:    #a30d26;
  --clr-bg:          #f7f6f3;
  --clr-surface:     #e4edf1;
  --clr-white:       #ffffff;
  --clr-text:        #182430;
  --clr-text-muted:  #52626f;
  --clr-text-light:  #cddbe4;
  --clr-border:      rgba(16, 42, 58, 0.12);
  --clr-border-light: rgba(255, 255, 255, 0.16);
  --clr-whatsapp:    #1fa855;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(16, 42, 58, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
}
img { max-width: 100%; height: auto; display: block; }
.hidden { display: none !important; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.01em; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--clr-red); color: var(--clr-white); }
.btn--primary:hover { background: var(--clr-red-dark); }
.btn--ghost { background: transparent; color: var(--clr-navy); border-color: var(--clr-navy); }
.btn--ghost:hover { background: var(--clr-navy); color: var(--clr-white); }
.btn--light { background: var(--clr-white); color: var(--clr-navy); }
.btn--light:hover { transform: translateY(-2px); }
.btn--whatsapp { background: var(--clr-whatsapp); color: var(--clr-white); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-red);
  border-bottom: 1px solid var(--clr-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.nav__logo-img { width: 150px; height: auto; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  color: var(--clr-text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav__links a:hover { color: var(--clr-red); }
.nav__phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--clr-navy); color: var(--clr-white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  padding: 0.6rem 1.1rem; border-radius: var(--radius); text-decoration: none;
}
.nav__phone:hover { background: var(--clr-navy-dark); }

/* ── Hero: full-bleed photo with navy scrim ── */
.hero { position: relative; overflow: hidden; background: var(--clr-navy-deep); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15,40,54,0.94) 0%, rgba(15,40,54,0.82) 45%, rgba(15,40,54,0.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 5.5rem 1.25rem 5rem; max-width: 44rem; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; color: var(--clr-white);
  background: var(--clr-red); font-size: 0.85rem;
  padding: 0.35rem 0.85rem; border-radius: 4px; margin-bottom: 1.5rem;
}
.hero__heading { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; color: var(--clr-white); margin-bottom: 1.25rem; }
.hero__heading-accent { color: #7ec6e6; }
.hero__sub { font-size: 1.18rem; color: var(--clr-text-light); margin-bottom: 0.9rem; }
.hero__benefit {
  font-size: 1.12rem; font-weight: 700; color: var(--clr-white);
  border-left: 4px solid var(--clr-red); padding-left: 0.9rem; margin-bottom: 1.9rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1rem; }
.hero__hours { color: var(--clr-text-light); font-size: 0.95rem; }

/* Hero trust strip (navy band under the photo) */
.hero__strip { position: relative; z-index: 2; background: var(--clr-navy-dark); border-top: 1px solid var(--clr-border-light); }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; list-style: none;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.trust-bar li { color: var(--clr-text-light); font-size: 1rem; }
.trust-bar strong { color: var(--clr-white); }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section--alt { background: var(--clr-surface); }
.section--dark { background: var(--clr-navy); }
.section--navy { background: var(--clr-navy-deep); }
.section__header { max-width: 44rem; margin-bottom: 3rem; }
.section__label {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; color: var(--clr-red); font-size: 1rem; margin-bottom: 0.85rem;
}
.section__label::before { content: ''; width: 28px; height: 3px; background: var(--clr-red); display: inline-block; }
.section__label--light { color: #ff8fa3; }
.section__label--light::before { background: #ff8fa3; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.section__title--light { color: var(--clr-white); }
.section__sub { color: var(--clr-text-muted); font-size: 1.1rem; }
.section__sub--light { color: var(--clr-text-light); }
/* Headings/text inside dark sections */
.section--navy .section__title { color: var(--clr-white); }
.section--navy .section__sub { color: var(--clr-text-light); }

/* ── Services (list with red accent, not TradeWebs cards) ── */
.services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem;
}
.service {
  background: var(--clr-white); border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.6rem;
}
.service h3 { font-size: 1.25rem; font-weight: 700; color: var(--clr-navy); margin-bottom: 0.5rem; }
.service p { color: var(--clr-text-muted); font-size: 1rem; }

/* ── Urgency band ── */
.band { background: var(--clr-red); padding: 3rem 0; }
.band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.band__title { color: var(--clr-white); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 0.4rem; }
.band__sub { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; max-width: 34rem; }

/* ── Gallery (on navy) ── */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.gallery__item { grid-column: span 2; margin: 0; }
.gallery__item--wide { grid-column: span 3; }
.gallery__item img { border-radius: var(--radius); width: 100%; height: 260px; object-fit: cover; border: 1px solid var(--clr-border-light); }
.gallery__item figcaption { font-size: 0.92rem; color: var(--clr-text-light); margin-top: 0.6rem; }

/* ── About ── */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
.about__content p { margin-bottom: 1rem; color: var(--clr-text-muted); }
.about__content .section__title { margin-bottom: 1.25rem; }
.about__phone-line { font-size: 1.15rem; font-weight: 600; color: var(--clr-text) !important; }
.about__phone-line a { color: var(--clr-red); font-family: var(--font-head); font-weight: 800; text-decoration: none; font-size: 1.3rem; }
.about__points { list-style: none; background: var(--clr-navy); border-radius: var(--radius); padding: 0.5rem 1.75rem; box-shadow: var(--shadow); }
.about__points li { padding: 0.9rem 0; border-bottom: 1px solid var(--clr-border-light); font-weight: 600; color: var(--clr-white); display: flex; align-items: center; gap: 0.65rem; }
.about__points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--clr-red); flex-shrink: 0; }
.about__points li:last-child { border-bottom: none; }

/* ── Areas ── */
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.areas li {
  background: var(--clr-white); border: 1px solid var(--clr-border);
  border-bottom: 3px solid var(--clr-navy);
  padding: 0.55rem 1.2rem; border-radius: 6px; font-weight: 600; font-size: 0.98rem;
}
.areas__note { margin-top: 1.5rem; color: var(--clr-text-muted); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--clr-border); }
.faq-item summary {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  color: var(--clr-red); font-size: 1.5rem; font-weight: 500;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--clr-text-muted); padding-bottom: 1.25rem; }

/* ── Quote form ── */
.quote-form { background: var(--clr-white); border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow); border-top: 4px solid var(--clr-red); }
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.quote-form__field { margin-bottom: 1.25rem; }
.quote-form__field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.quote-form__field input,
.quote-form__field select,
.quote-form__field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--clr-border); border-radius: 8px; background: var(--clr-bg); color: var(--clr-text);
}
.quote-form__field input:focus,
.quote-form__field select:focus,
.quote-form__field textarea:focus { outline: 2px solid var(--clr-navy); outline-offset: 1px; }
.quote-form__status { margin-top: 1rem; font-weight: 600; text-align: center; min-height: 1.5rem; }
.quote-form__status--ok { color: #157a3c; }
.quote-form__status--error { color: var(--clr-red); }
.quote-form__alt { text-align: center; margin-top: 1rem; color: var(--clr-text-muted); font-size: 0.98rem; }
.quote-form__alt a { color: var(--clr-navy); font-weight: 700; }

/* ── Footer ── */
.footer { background: var(--clr-navy-deep); color: var(--clr-text-light); padding: 4rem 0 7rem; }
.footer a { color: var(--clr-white); }
.footer h3 { font-size: 1.05rem; color: var(--clr-white); margin-bottom: 0.75rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer__grid p { font-size: 0.98rem; margin-bottom: 0.6rem; }
.footer__logo { background: var(--clr-white); border-radius: 8px; padding: 0.5rem; width: 160px; height: auto; margin-bottom: 1rem; }
.footer__areas { border-top: 1px solid var(--clr-border-light); padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer__areas p { font-size: 0.9rem; color: #91a7b3; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--clr-border-light); padding-top: 1.75rem; }
.footer__legal p { font-size: 0.88rem; color: #91a7b3; }
.footer__legal a { color: #cfdde5; }

/* ── Sticky mobile CTA ── */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--clr-white); border-top: 1px solid var(--clr-border);
  padding: 0.65rem 0.9rem; gap: 0.65rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
}
.mobile-cta .btn { flex: 1; padding: 0.8rem 0.5rem; font-size: 0.98rem; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.reveal--visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; }
  .gallery__item img { height: 220px; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav__links { display: none; }
  .mobile-cta { display: flex; }
  .hero__inner { padding: 3.5rem 1.25rem 3.25rem; }
  .services { grid-template-columns: 1fr; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .quote-form { padding: 1.5rem; }
  .quote-form__row { grid-template-columns: 1fr; gap: 0; }
  .footer { padding-bottom: 8.5rem; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .nav__logo-img { width: 110px; }
  .nav__phone { font-size: 0; gap: 0; padding: 0.7rem; }
  .nav__phone svg { width: 20px; height: 20px; }
  .hero__actions .btn { width: 100%; }
}
