/* ==========================================================================
   INTEGRITY HOME EXTERIORS — Integrity Home Exteriors rebuild
   Colours from WEBSITE-INVENTORY-ORIGINAL.md (pixel-sampled in video):
     --deep-blue  #085e97  services band / form / footer / CTAs
     --beige      #e1e1d9  hero / why-choose / team backgrounds
     --pale-blue  #ebf2f8  testimonial cards
     --input-blue #cddfeb  form inputs
   Fonts: Squarespace stock (Avenir Next family) is INFERRED, so this uses a
   safe system stack that prefers Avenir Next when present. See BUILD-NOTES.md.
   ========================================================================== */

:root {
  --deep-blue:  #085e97;
  --deep-blue-dark: #074b79;
  --beige:      #e1e1d9;
  --pale-blue:  #ebf2f8;
  --input-blue: #cddfeb;
  --white:      #ffffff;
  --ink:        #22303c;
  --ink-soft:   #4a5a68;
  --yellow:     #f4b400; /* logo accent — judgment call, see BUILD-NOTES.md */
  --radius:     16px;
  --shadow:     0 6px 24px rgba(8, 36, 60, 0.12);
  --font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h3 { font-size: 1.25rem; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin-bottom: 0.6rem;
}
.on-dark .kicker { color: #ffffff; opacity: 0.85; }
.on-dark { color: #fff; }

section { padding: 4.25rem 0; }

/* --------------------------------------------------------------------------
   HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid #e5e5dd;
  box-shadow: 0 1px 6px rgba(8, 36, 60, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  background: var(--deep-blue);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.3rem;
}
.brand-name { line-height: 1.05; }
.brand-name strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-name span {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
}
.brand-logo--footer { height: 40px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--deep-blue);
  color: var(--deep-blue);
  font: inherit;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

.site-nav {
  display: none;
  width: 100%;
  background: var(--white);
}
.site-nav.open { display: block; }
.site-nav .nav-list {
  list-style: none;
  border-top: 1px solid #e5e5dd;
  padding: 8px 0;
}
.site-nav a {
  display: block;
  padding: 13px 24px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid #f0f0ea;
}
.site-nav a:hover { color: var(--deep-blue); background: var(--pale-blue); text-decoration: none; }
.site-nav a.nav-cta { color: var(--white); background: var(--deep-blue); border-radius: 8px; margin: 8px 16px; text-align: center; }
.site-nav a.nav-cta:hover { background: var(--deep-blue-dark); }

/* --------------------------------------------------------------------------
   HERO (home)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--beige);
  padding: 4rem 0;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-breaker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin-bottom: 0.9rem;
}
.hero h1 { margin-bottom: 1rem; color: var(--ink); }
.hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-media { position: relative; }
.hero-media .arch {
  height: 360px;
  border-radius: 300px 300px 18px 18px / 340px 340px 18px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #cddfeb 0%, #085e9722 65%);
  display: grid; place-items: center;
}
.hero-media .arch span {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--deep-blue); opacity: 0.75; padding: 0 20px; text-align: center;
}
/* Photo tiles are elegant placeholders until real shots come from Drive. */
.photo-tile { background: #fff; border-radius: 14px; box-shadow: var(--shadow); }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  padding: 15px 26px;
  border-radius: 40px;
  border: 2px solid var(--deep-blue);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 1rem correct;
}
.btn-outline {
  background: transparent;
  color: var(--deep-blue);
}
.btn-outline:hover { background: var(--deep-blue); color: #fff; text-decoration: none; }
.btn-solid {
  background: var(--deep-blue);
  color: #fff;
  border-color: var(--deep-blue);
}
.btn-solid:hover { background: var(--deep-blue-dark); color: #fff; text-decoration: none; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   WHY CHOOSE — 3 value cards (3rd heading judged — see BUILD-NOTES.md)
   -------------------------------------------------------------------------- */
.why-choose { background: var(--white); text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.6rem; }
.value-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.value-card {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
}
.value-card .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(8,36,60,0.08);
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   FAMILY VALUES
   -------------------------------------------------------------------------- */
.family-values { background: var(--beige); }
.family-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.family-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(150deg, #085e9722, #085e9744);
  display: grid; place-items: center;
  color: var(--deep-blue);
  font-size: 3rem;
}
.family-values p.lede { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1rem; max-width: 34rem; }

/* --------------------------------------------------------------------------
   SERVICES — deep blue band
   -------------------------------------------------------------------------- */
.services {
  background: var(--deep-blue);
  color: #fff;
  text-align: center;
}
.services .service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
.service-card {
  background: #fff;
  color: var(--ink);
  border-radius: 26px 26px var(--radius) var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 26px rgba(3, 25, 45, 0.35);
}
.service-arch {
  height: 210px;
  border-radius: 0 0 0 0;
  background: linear-gradient(180deg, #cddfeb 0%, #085e9722 78%);
  display: grid; place-items: center;
  font-size: 3.4rem; color: var(--deep-blue); opacity: 0.8;
}
.service-card .body { padding: 1.5rem 1.5rem 1.75rem; }
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--ink-soft); }
.service-card .arch-flag { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--deep-blue); font-weight: 700; margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   MEET THE TEAM
   -------------------------------------------------------------------------- */
.team { background: var(--beige); }
.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.team-photo {
  height: 220px;
  background: linear-gradient(160deg, #cddfeb 0%, #085e9722 100%);
  display: grid; place-items: center;
  color: var(--deep-blue);
  font-size: 3.4rem;
}
.team-card .body { padding: 1.4rem 1.4rem 1.6rem; }
.team-card .role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep-blue);
  background: var(--pale-blue);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 0.7rem;
}
.team-card p { color: var(--ink-soft); font-size: 0.97rem; }
.team-close { margin-top: 1.75rem; text-align: center; }
.team-close p { color: var(--ink-soft); font-weight: 600; }

/* --------------------------------------------------------------------------
   ESTIMATE FORM — deep blue
   -------------------------------------------------------------------------- */
.estimate { background: var(--deep-blue); }
.estimate h2, .estimate .section-sub { text-align: center; }
.estimate .section-sub { color: rgba(255,255,255,0.88); margin-top: 0.6rem; }
.estimate-form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 14px 40px rgba(3, 25, 45, 0.4);
  margin-top: 2.25rem;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.form-row { display: grid; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  background: var(--input-blue);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 13px 14px;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--deep-blue);
  box-shadow: 0 0 0 3px rgba(8, 94, 151, 0.18);
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

/* reCAPTCHA placeholder — see BUILD-NOTES.md; real keys + wiring at deploy */
.g-recaptcha-wrap {
  margin: 4px 0 18px;
  border: 1px dashed #9db7c9;
  border-radius: 8px;
  padding: 14px;
  background: #f6f9fb;
  color: #5a7283;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.g-recaptcha-wrap .badge { font-weight: 700; color: var(--deep-blue); }

.form-mini-note { text-align: center; color: rgba(255,255,255,0.85); font-size: 0.8rem; margin-top: 1rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: var(--pale-blue);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.form-success.show { display: block; }
.form-success .tick { font-size: 2rem; color: var(--deep-blue); }

/* --------------------------------------------------------------------------
   REVIEWS — 3 cards + lightbox
   -------------------------------------------------------------------------- */
.reviews { background: var(--white); text-align: center; }
.review-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.review-card {
  background: var(--pale-blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 0.7rem; }
.review-card blockquote {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  font-style: italic;
}
.review-card .author { font-weight: 700; color: var(--deep-blue); font-style: normal; }
.review-card .author small { display: block; font-weight: 600; color: var(--ink-soft); font-style: normal; margin-top: 2px; }
.review-card .expand { font-size: 0.78rem; font-weight: 700; color: var(--deep-blue); }
.review-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.review-links a.btn { min-width: 240px; }
.lightbox-hint { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 31, 50, 0.82);
  padding: 4vh 18px;
  overflow-y: auto;
}
.lightbox.open { display: block; }
.lightbox-inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  position: relative;
  animation: pop 0.22s ease;
}
.lightbox-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 38px; height: 38px;
  border: none;
  background: var(--pale-blue);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--deep-blue);
}
.lightbox h3 { margin-bottom: 1rem; padding-right: 40px; }
.lightbox .review-grid { margin-bottom: 0; }

@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --------------------------------------------------------------------------
   FAQ (page 2)
   -------------------------------------------------------------------------- */
.page-hero { background: var(--beige); text-align: center; padding: 4.25rem 0 3rem; }
.page-hero .lede { color: var(--ink-soft); max-width: 40rem; margin: 0.8rem auto 0; }
.faq-page { background: var(--white); }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid #e5e5dd;
}
.faq-item { border-bottom: 1px solid #e5e5dd; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  padding: 1.1rem 44px 1.1rem 4px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--deep-blue);
  font-weight: 800;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a .inner { padding: 0 4px 1.4rem; color: var(--ink-soft); }
.faq-a .inner a { font-weight: 600; word-break: break-word; }

/* --------------------------------------------------------------------------
   GALLERY (page 3)
   -------------------------------------------------------------------------- */
.gallery-page { background: var(--white); text-align: center; }
.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.gallery-tile {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--pale-blue);
}
.gallery-tile .imglayer {
  height: 190px;
  display: grid; place-items: center;
  font-size: 2.9rem;
  color: #fff;
}
.gallery-tile figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--deep-blue);
  background: #fff;
}
.gallery-grid .tile-1 { background: linear-gradient(160deg,#085e97,#0b7dc0); }
.gallery-grid .tile-2 { background: linear-gradient(160deg,#0b7dc0,#085e97); }
.gallery-grid .tile-3 { background: linear-gradient(160deg,#0693a8,#0b7dc0); }
.gallery-grid .tile-4 { background: linear-gradient(160deg,#074b79,#085e97); }
.gallery-grid .tile-5 { background: linear-gradient(160deg,#085e97,#3aa0d9); }
.gallery-grid .tile-6 { background: linear-gradient(160deg,#3aa0d9,#085e97); }
.gallery-grid .tile-7 { background: linear-gradient(160deg,#0b7dc0,#0693a8); }
.gallery-grid .tile-8 { background: linear-gradient(160deg,#085e97,#074b79); }
.gallery-grid .tile-9 { background: linear-gradient(160deg,#3aa0d9,#0b7dc0); }
.gallery-grid .tile-10 { background: linear-gradient(160deg,#074b79,#0b7dc0); }
.gallery-grid .tile-11 { background: linear-gradient(160deg,#0693a8,#3aa0d9); }
.gallery-grid .tile-12 { background: linear-gradient(160deg,#0b7dc0,#074b79); }
.gallery-grid .tile-13 { background: linear-gradient(160deg,#085e97,#0693a8); }
.gallery-grid .tile-14 { background: linear-gradient(160deg,#3aa0d9,#085e97); }
.gallery-grid .tile-15 { background: linear-gradient(160deg,#0693a8,#0b7dc0); }
.gallery-grid .tile-16 { background: linear-gradient(160deg,#085e97,#074b79); }
.gallery-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   SCHEDULE (page 4 — lead-capture landing)
   -------------------------------------------------------------------------- */
.schedule-hero { background: var(--deep-blue); color: #fff; text-align: center; }
.schedule-hero .lede { color: rgba(255,255,255,0.9); max-width: 40rem; margin: 0.8rem auto 0; }
.schedule-perks { list-style: none; max-width: 640px; margin: 1.8rem auto 0; }
.schedule-perks li { margin: 0.6rem 0; font-weight: 600; }
.schedule-perks li::before { content: "✓"; margin-right: 0.6rem; color: var(--yellow); font-weight: 800; }
.schedule-form { background: var(--beige); }
.contact-strip {
  background: var(--white);
  border-top: 1px solid #e5e5dd;
  padding: 1.6rem 0;
  text-align: center;
}
.contact-strip .contact-inline { color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.contact-strip a { font-weight: 700; white-space: nowrap; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--deep-blue);
  color: #fff;
  padding: 3.25rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.footer-col p, .footer-col li { color: rgba(255,255,255,0.92); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-social { display: flex; gap: 12px; margin-top: 0.8rem; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 1.15rem;
}
.footer-social a:hover { background: var(--yellow); color: var(--deep-blue); }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

/* --------------------------------------------------------------------------
   RESPONSIVE — tablet & up
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: none;
    padding: 0;
  }
  .site-nav a {
    padding: 9px 13px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
  }
  .site-nav a.nav-cta { margin: 0; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1.2fr 1.4fr; }
  .hero-media .arch { height: 430px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-strip .contact-inline { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .brand-logo { height: 56px; }
  .brand-logo--footer { height: 40px; }
}

@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .family-grid { grid-template-columns: 0.7fr 1.3fr; }
}
