/* ============================================================
   Kingbird Roofing — design system
   Palette: Patina & Copper
   bone #EFEADF · ink #23302C · patina #4E7A6B · copper #B87333
   Type: Fraunces (display) · Archivo (text/UI)
   ============================================================ */

:root {
  --bone: #EFEADF;
  --bone-2: #E7E0CF;
  --bone-3: #DDD4BF;
  --ink: #23302C;
  --ink-2: #1A2521;
  --ink-3: #2E3E38;
  --patina: #4E7A6B;
  --patina-deep: #3F6558;
  --copper: #B87333;
  --copper-deep: #9A5F27;
  --copper-soft: #C98A4E;
  --copper-text: #8A5620;
  --line: rgba(35, 48, 44, 0.16);
  --line-light: rgba(239, 234, 223, 0.18);
  --shadow: 0 20px 50px -24px rgba(26, 37, 33, 0.35);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}
.storm-bar :is(a, button):focus-visible { outline-color: #000000; }
.on-patina :is(a, button):focus-visible, .section-photo :is(a, button):focus-visible, .hero-photo :is(a, button):focus-visible { outline-color: var(--bone); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone); padding: 0.75rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 580; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--copper-text);
  display: block; margin-bottom: 0.9rem;
}
.on-dark .eyebrow { color: var(--copper-soft); }

.serif-i { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #000000; }
.btn-primary:hover { background: var(--copper-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.on-dark .btn-outline { border-color: var(--bone); color: var(--bone); }
.on-dark .btn-outline:hover { background: var(--bone); color: var(--ink); }
.btn-ghost {
  font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--copper); padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--copper-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 24px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .n { font-family: var(--serif); font-weight: 620; font-size: 1.45rem; color: var(--ink); }
.brand-name .t { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--copper-text); margin-top: 0.3rem; }
/* the hidden crown: glints when you hover the brand */
.brand .crown { transition: transform 300ms ease; transform-origin: 63px 27px; }
.brand:hover .crown { transform: translateY(-1.5px) scale(1.12); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a.nav-link {
  text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink);
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a.nav-link:hover { border-bottom-color: var(--copper); }
.site-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--copper); }
.header-phone { text-decoration: none; font-weight: 700; font-size: 0.98rem; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--copper-deep); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-phone { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--line); padding: 0.5rem 24px 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.on-dark { background: var(--ink); color: var(--bone); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--bone); }
.on-patina { background: var(--patina-deep); color: var(--bone); }
.on-patina h1, .on-patina h2 { color: var(--bone); }
.on-patina .eyebrow { color: var(--bone); }
.on-patina .btn-outline { border-color: var(--bone); color: var(--bone); }
.on-patina .btn-outline:hover { background: var(--bone); color: var(--ink); }
.on-bone2 { background: var(--bone-2); }
.section-head { max-width: 620px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-copy .lede { margin: 1.2rem 0 1.8rem; color: var(--ink-3); }
.hero-ctas { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; max-width: 440px; margin: 0 auto; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
}

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bone); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.trust-item svg { flex: none; width: 26px; height: 26px; }
@media (max-width: 900px) { .trust-items { grid-template-columns: repeat(2, 1fr); } }

/* ---------- storm bar ---------- */
.storm-bar { background: var(--copper); color: #000000; }
.storm-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 0.8rem 24px; font-weight: 600; text-align: center; }
.storm-inner strong { font-weight: 800; }
.storm-inner a { font-weight: 800; color: #000000; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-h { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
.card .spot { width: 100%; height: 150px; border-radius: 10px; overflow: hidden; background: var(--bone-2); }
.card .spot svg { width: 100%; height: 100%; }
.card p { color: var(--ink-3); font-size: 1rem; }
.card .btn-ghost { margin-top: auto; align-self: flex-start; }
.on-dark .card { background: var(--ink-3); border-color: rgba(239,234,223,0.12); }
.on-dark .card p { color: color-mix(in srgb, var(--bone) 78%, var(--ink)); }

/* ---------- standard (promise) list ---------- */
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: std; }
@media (max-width: 900px) { .standard-grid { grid-template-columns: 1fr; } }
.standard-item { border-top: 2px solid var(--copper); padding-top: 1.2rem; }
.standard-item::before {
  counter-increment: std; content: counter(std, decimal-leading-zero);
  font-family: var(--serif); font-size: 1rem; color: var(--copper-soft); letter-spacing: 0.08em;
  display: block; margin-bottom: 0.5rem;
}
.standard-item h3 { margin-bottom: 0.45rem; }
.standard-item p { font-size: 0.98rem; color: color-mix(in srgb, var(--bone) 75%, var(--ink)); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; color: var(--ink); }
.process-step :is(h2, h3) { color: var(--ink); font-size: 1.35rem; line-height: 1.25; }
.process-step .num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 560; color: var(--patina);
  line-height: 1; margin-bottom: 1rem; display: block;
}
.process-step :is(h2, h3) { margin-bottom: 0.5rem; }
.process-step p { color: var(--ink-3); font-size: 1rem; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-art svg { width: 100%; height: auto; border-radius: var(--radius); }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 500; }
.checklist li svg { flex: none; width: 22px; height: 22px; margin-top: 0.2rem; }

/* ---------- cost table ---------- */
.cost-note { font-size: 0.9rem; color: var(--ink-3); margin-top: 0.9rem; max-width: 52em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bone); }
table.cost { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
table.cost th, table.cost td { text-align: left; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
table.cost th { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); background: var(--bone-2); }
table.cost tr:last-child td { border-bottom: 0; }
table.cost td strong { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 580; padding: 1.3rem 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--copper); transition: transform 200ms ease; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 0 1.4rem; color: var(--ink-3); max-width: 60em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-wrap { max-width: 760px; margin: 0 auto; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2.2rem; }
.cta-band .sub { margin-top: 1.2rem; font-size: 1rem; color: color-mix(in srgb, var(--bone) 72%, var(--ink)); }
.cta-band .sub a { color: var(--copper-soft); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: var(--bone); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(2.25rem, 4vw, 3.25rem) 0 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 1rem; color: color-mix(in srgb, var(--bone) 70%, var(--ink)); max-width: 30em; }
.site-footer .footer-h { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: color-mix(in srgb, var(--bone) 85%, var(--ink)); text-decoration: none; }
.site-footer a:hover { color: var(--copper-soft); }
.footer-legal { border-top: 1px solid rgba(239,234,223,0.14); padding: 1.4rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: color-mix(in srgb, var(--bone) 60%, var(--ink)); font-size: 0.88rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 0.85rem 0 0; font-size: 0.9rem; }
.crumbs ol { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--copper); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--copper-deep); }
.crumbs [aria-current] { font-weight: 700; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(2rem, 4.5vw, 3.5rem); }
.page-hero .lede { margin: 1.1rem 0 1.6rem; color: var(--ink-3); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bone); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.field :is(input,select,textarea):focus:not(:focus-visible) { outline: none; }
.form-note { font-size: 0.85rem; color: var(--ink-3); }
.form-success { display: none; background: var(--patina-deep); color: var(--bone); border-radius: var(--radius); padding: 1.5rem 1.8rem; font-weight: 600; }

/* ---------- misc ---------- */
.stat-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 560; line-height: 1.4; }
.divider-roof { display: block; width: 100%; height: auto; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ============================================================
   Photo revamp (2026-08-01): full-bleed photo heroes + cards
   ============================================================ */

/* ---------- photo hero ---------- */
.hero-photo {
  position: relative; display: flex; align-items: center;
  min-height: min(86vh, 820px); overflow: hidden; background: var(--ink-2);
}
.hero-photo.short { min-height: min(56vh, 540px); }
.hero-photo .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,29,25,0.9) 0%, rgba(20,29,25,0.74) 58%, rgba(20,29,25,0.2) 84%, rgba(20,29,25,0.05) 100%),
    linear-gradient(to top, rgba(20,29,25,0.55) 0%, rgba(20,29,25,0) 30%);
}
.hero-photo .hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.hero-photo .hero-copy { max-width: 640px; }
.hero-photo h1 { color: var(--bone); }
.hero-photo .eyebrow { color: var(--bone); }
.hero-photo .lede { color: var(--bone); margin: 1.2rem 0 1.9rem; }
.hero-photo .btn-ghost { color: var(--bone); }
.hero-photo .btn-ghost:hover { color: var(--copper-soft); }
.hero-photo .crumbs { position: absolute; top: 0.4rem; left: 0; right: 0; z-index: 2; }
.hero-photo .crumbs a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.hero-photo .crumbs a:hover { color: var(--copper-soft); }
.hero-photo .crumbs [aria-current] { color: var(--bone); }
.hero-photo .crumbs li + li::before { color: var(--copper-soft); }
@media (max-width: 900px) {
  .hero-photo { min-height: min(72vh, 640px); }
  .hero-photo .hero-copy { text-align: center; margin: 0 auto; }
  .hero-photo::after {
    background:
      linear-gradient(to bottom, rgba(20,29,25,0.85) 0%, rgba(20,29,25,0) 24%),
      linear-gradient(to top, rgba(20,29,25,0.9) 0%, rgba(20,29,25,0.62) 55%, rgba(20,29,25,0.3) 100%);
  }
}

/* ---------- photo cards ---------- */
.card .photo {
  width: calc(100% + 3.6rem); margin: -2rem -1.8rem 0.4rem;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .photo img { transform: scale(1.04); }

/* ---------- photo section background (storm) ---------- */
.section-photo { position: relative; overflow: hidden; color: var(--bone); }
.section-photo .bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.section-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(30,42,37,0.92), rgba(30,42,37,0.78));
}
.section-photo > .container { position: relative; z-index: 2; }
.section-photo h2 { color: var(--bone); }
.section-photo .eyebrow { color: var(--bone); }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}
