/* ==========================================================================
   Defensible Property Systems — Marketing Site
   Brand: Forest Green #193A27 / Slate Navy #2F4251 / White
   ========================================================================== */

:root{
  --forest: #193A27;
  --forest-light: #23503670;
  --navy: #2F4251;
  --navy-dark: #202f3a;
  --white: #ffffff;
  --stone: #f4f1ea;
  --stone-dark: #e7e2d6;
  --accent: #3f8f5f;
  --accent-light: #5cae7a;
  --ink: #1c1f1e;
  --muted: #5b6660;

  --font-head: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(20,25,22,0.08);
  --shadow-md: 0 10px 30px rgba(20,25,22,0.16);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
section{ position: relative; }

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1em;
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

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

.section-pad{ padding: 96px 0; }
@media (max-width: 720px){ .section-pad{ padding: 64px 0; } }

.bg-stone{ background: var(--stone); }
.bg-forest{ background: var(--forest); color: var(--white); }
.bg-forest h2, .bg-forest h3, .bg-forest .eyebrow{ color: var(--white); }
.bg-navy{ background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3{ color: var(--white); }

.center{ text-align: center; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-head{ max-width: 680px; margin: 0 auto 3.2rem; }
.section-head.left{ margin: 0 0 3rem; }
.section-head p{ font-size: 1.08rem; color: var(--muted); }
.bg-forest .section-head p, .bg-navy .section-head p{ color: #cfd8d3; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-accent{ background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent:hover{ background: var(--accent-light); box-shadow: var(--shadow-md); }

.btn-outline{ background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover{ background: rgba(255,255,255,0.1); }

.btn-forest{ background: var(--forest); color: var(--white); }
.btn-forest:hover{ background: #21492f; box-shadow: var(--shadow-md); }

.btn-white{ background: var(--white); color: var(--navy); }
.btn-white:hover{ box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 12px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header.scrolled{
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.brand{ display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo-img{ height: 38px; width: auto; display: block; flex: none; transition: height .3s ease; }
.site-header.scrolled .brand-logo-img{ height: 32px; }
.brand-name{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.15;
  color: var(--white);
  white-space: nowrap;
  transition: color .3s ease;
}
.brand-name span{ display: block; font-weight: 600; font-size: .58rem; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; margin-top: 2px; }
.site-header.scrolled .brand-name{ color: var(--navy); }

.main-nav{ display: flex; align-items: center; gap: 1rem; }
.main-nav .nav-link{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .01em;
  color: var(--white);
  white-space: nowrap;
  transition: color .3s ease;
}
.site-header.scrolled .main-nav .nav-link{ color: var(--navy-dark); }
.main-nav .nav-link:hover{ color: var(--accent); }

.nav-drawer-extra{ display: none; }

/* The phone number lives in the CTA/footer/mobile drawer — keeping it out of the
   compact header bar too leaves enough room for the full nav to fit without wrapping. */
.header-actions{ display: flex; align-items: center; gap: 1rem; flex: none; }
.header-phone{ display: none; }
.header-cta{ padding: 9px 17px; font-size: .72rem; }

.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; flex: none;
}
.nav-toggle span{
  position: absolute; left: 6px; right: 6px; height: 2px; background: var(--white);
  transition: transform .3s ease, top .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .nav-toggle span{ background: var(--navy); }
.nav-toggle span:nth-child(1){ top: 10px; }
.nav-toggle span:nth-child(2){ top: 15px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-open .nav-toggle span:nth-child(1){ top: 15px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
.nav-open .nav-toggle span:nth-child(3){ top: 15px; transform: rotate(-45deg); }

@media (max-width: 1180px){
  .main-nav{
    position: fixed; top: 0; right: -100%; height: 100vh; height: 100dvh; width: min(320px, 86%);
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 84px 26px 26px; gap: 1.3rem; transition: right .35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,.15); z-index: 400; overflow-y: auto;
  }
  .main-nav .nav-link{ color: var(--navy-dark); font-size: .96rem; }
  .nav-open .main-nav{ right: 0; }

  .nav-drawer-extra{
    display: flex; flex-direction: column; gap: .9rem; width: 100%;
    padding-top: 1.1rem; margin-top: .2rem; border-top: 1px solid var(--stone-dark);
  }
  .nav-drawer-extra .nav-phone{
    display: flex; align-items: center; gap: .55em;
    font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--navy-dark);
  }
  .nav-drawer-extra .nav-phone svg{ width: 15px; height: 15px; flex: none; }
  .nav-drawer-extra .nav-cta{ width: 100%; justify-content: center; }

  .header-actions .header-phone, .header-actions .header-cta{ display: none; }
  .nav-toggle{ display: block; z-index: 600; }
}

@media (max-width: 420px){
  .brand{ gap: 8px; }
  .brand-logo-img{ height: 32px; }
  .site-header.scrolled .brand-logo-img{ height: 28px; }
  .brand-name{ font-size: .82rem; }
  .brand-name span{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
@media (max-width: 700px){
  .hero{ min-height: 92dvh; }
}
.hero-media{ position: absolute; inset: 0; z-index: 0; }
.hero-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%) brightness(0.55);
  transform: scale(1.04);
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,26,.55) 0%, rgba(20,32,26,.35) 40%, rgba(15,20,17,.85) 100%),
              linear-gradient(90deg, rgba(25,58,39,.55) 0%, rgba(25,58,39,.05) 55%);
}

.hero-content{ position: relative; z-index: 2; padding-top: 110px; max-width: 760px; }
@media (max-width: 700px){ .hero-content{ padding-top: 115px; } }
.hero .eyebrow{ color: var(--accent-light); }
.hero h1{
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: .45em;
}
.hero h1 em{ font-style: normal; color: var(--accent-light); }
.hero .lede{
  font-size: 1.18rem;
  color: #e7ece9;
  max-width: 600px;
  margin-bottom: 2.2rem;
}
.hero-ctas{ display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats{
  display: flex; gap: 2.6rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 1.8rem;
}
.hero-stat b{
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.7rem; color: var(--white);
}
.hero-stat span{ font-size: .82rem; color: #cfd8d3; letter-spacing: .02em; }

/* ---------- Marquee strip ---------- */
.trust-strip{
  background: var(--navy);
  color: #cfd8d3;
  padding: 16px 0;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.trust-strip strong{ color: var(--white); }
.trust-strip .container{ display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; }

/* ---------- Intro / About ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; gap: 2.5rem; } }

.about-media{ position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-media img{ width: 100%; height: 520px; object-fit: cover; }
.about-media-tag{
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(20,32,26,.85);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .04em;
  display: flex; align-items: center; gap: .5em;
}
.about-media-tag i{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

.about-copy p{ color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-copy p.lede{ font-size: 1.2rem; color: var(--ink); font-weight: 500; }

.uniques{ margin-top: 2rem; display: grid; gap: 1.1rem; }
.unique-item{ display: flex; gap: 1rem; align-items: flex-start; }
.unique-num{
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--stone-dark); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
}
.unique-item h3{ margin: 0 0 .2em; font-size: 1.02rem; color: var(--navy); }
.unique-item p{ margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Zones (NFPA) ---------- */
.zones-wrap{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px){ .zones-wrap{ grid-template-columns: 1fr; gap: 3rem; } }

.zone-photo{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1589 / 898;
  box-shadow: var(--shadow-md);
}
.zone-photo > img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(20%) brightness(0.92) contrast(1.05);
}
.zone-photo-svg{ position: absolute; inset: 0; width: 100%; height: 100%; }

.pfill{ stroke: none; }
.pfill.f3{ fill: rgba(255,255,255,0.05); }
.pfill.f2{ fill: rgba(255,255,255,0.08); }
.pfill.f1{ fill: rgba(255,255,255,0.12); }
.pfill.f0{ fill: rgba(63,143,95,0.28); }

.pline{ fill: none; stroke: rgba(255,255,255,0.75); stroke-width: 3; stroke-dasharray: 10 8; }
.pline.p0{ stroke: var(--accent-light); stroke-dasharray: none; }

.pcenter{ fill: var(--white); stroke: var(--accent); stroke-width: 3; }

.zone-legend{
  position: absolute; top: 16px; left: 16px;
  background: rgba(15,20,17,.72);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  display: grid; gap: .45rem;
}
.zl-item{
  display: flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .03em; text-transform: uppercase; color: #eef2ef;
}
.zl-dot{ width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1.5px solid rgba(255,255,255,.6); }
.zl-dot.d0{ background: var(--accent); border-color: var(--accent); }
.zl-dot.d1{ background: rgba(255,255,255,0.3); }
.zl-dot.d2{ background: rgba(255,255,255,0.2); }
.zl-dot.d3{ background: rgba(255,255,255,0.1); }

.zone-photo-note{
  position: absolute; bottom: 0; left: 0; right: 0;
  margin: 0; padding: .7rem 1rem;
  background: linear-gradient(0deg, rgba(10,14,12,.8), transparent);
  color: #dfe6e2; font-size: .74rem; font-style: italic;
}

.zone-list{ display: grid; gap: 1.4rem; }
.zone-card{
  display: grid; grid-template-columns: 72px 1fr; gap: 1.1rem;
  padding: 1.3rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  align-items: start;
}
.zone-chip{
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
}
.zone-chip small{ font-size: .58rem; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; opacity: .8; margin-top: 2px; }
.zone-chip.c0{ background: var(--accent); border-color: var(--accent); }
.zone-card h3{ color: var(--white); margin-bottom: .35em; font-size: 1.05rem; }
.zone-card p{ color: #d3dbd7; margin: 0; font-size: .93rem; }
.zone-card .zone-range{ color: var(--accent-light); font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; display:block; margin-bottom: .3em; }

/* ---------- Process ---------- */
.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 980px){ .process-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .process-grid{ grid-template-columns: 1fr; } }

.process-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--forest);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.process-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-card .pstep{
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  color: var(--accent); letter-spacing: .1em; margin-bottom: .8em; display:block;
}
.process-card h3{ font-size: 1.25rem; margin-bottom: .5em; }
.process-card ul{ margin-top: 1rem; display: grid; gap: .5rem; }
.process-card ul li{
  font-size: .9rem; color: var(--muted); padding-left: 1.2em; position: relative;
}
.process-card ul li::before{
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Who we serve ---------- */
.serve-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px){ .serve-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .serve-grid{ grid-template-columns: 1fr; } }

.serve-card{
  background: var(--stone);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: left;
  border: 1px solid var(--stone-dark);
}
.serve-card .icon{
  width: 46px; height: 46px; color: var(--forest); margin-bottom: 1rem;
}
.serve-card h3{ font-size: 1.02rem; margin-bottom: .4em; }
.serve-card p{ font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Values ---------- */
.values-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
@media (max-width: 980px){ .values-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .values-grid{ grid-template-columns: 1fr; } }
.value-card{
  padding: 1.6rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.value-card b{ display:block; font-family: var(--font-head); color: var(--white); font-size: .98rem; margin-bottom: .35em; }
.value-card p{ margin:0; font-size: .86rem; color: #c9d2cd; }
.value-card .vnum{ font-family: var(--font-head); font-weight: 800; color: var(--accent-light); font-size: 1.4rem; display:block; margin-bottom:.4em; }

/* ---------- Gallery / proof ---------- */
.proof-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  height: 560px;
}
@media (max-width: 860px){ .proof-grid{ grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } }
.proof-item{ position: relative; border-radius: var(--radius); overflow: hidden; }
.proof-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proof-item:hover img{ transform: scale(1.06); }
.proof-item.span-2{ grid-row: span 2; }
.proof-item .cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem;
  background: linear-gradient(0deg, rgba(15,20,17,.85), transparent);
  color: var(--white);
}
.proof-item .cap span{ font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .03em; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--forest), #0e2419);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2{ color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p{ color: #d3dbd7; max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-actions{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info-list{ display: grid; gap: 1.6rem; margin-top: 2rem; }
.contact-info-item{ display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .icon{
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--stone); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg{ width: 20px; height: 20px; }
.contact-info-item h3{ margin: 0 0 .2em; font-size: .98rem; color: var(--navy); }
.contact-info-item p{ margin: 0; color: var(--muted); font-size: .92rem; }

.contact-form{
  background: var(--stone);
  border-radius: var(--radius);
  padding: 2.4rem;
  border: 1px solid var(--stone-dark);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px){ .form-row{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 1.1rem; }
.field label{
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: .5em;
}
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border-radius: 4px;
  border: 1px solid #d5cfbf; font-family: var(--font-body); font-size: .95rem;
  background: var(--white); color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid var(--forest); outline-offset: 1px; }
.form-note{ font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.form-success{
  display: none; background: var(--forest); color: var(--white);
  padding: 1rem 1.2rem; border-radius: 4px; font-size: .92rem; margin-top: 1rem;
}
.form-success.show{ display: block; }
.form-error{
  display: none; background: #3a2323; color: #f0dcdc; border: 1px solid #6b3a3a;
  padding: 1rem 1.2rem; border-radius: 4px; font-size: .92rem; margin-top: 1rem;
}
.form-error.show{ display: block; }
.btn[disabled]{ opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-dark); color: #c3cdc8; padding: 4rem 0 1.6rem; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height: 42px; margin-bottom: 1rem; }
.footer-brand p{ font-size: .88rem; color: #9fada6; max-width: 280px; }
.footer-col h5{
  font-family: var(--font-head); color: var(--white); font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-col ul{ display: grid; gap: .7rem; }
.footer-col a{ font-size: .9rem; color: #b7c2bc; transition: color .2s; }
.footer-col a:hover{ color: var(--accent-light); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: .8rem; color: #8b988f; flex-wrap: wrap; gap: 1rem;
}

/* ---------- Reveal animation ---------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

@media (max-width: 560px){
  .hero-stats{ gap: 1.6rem; }
  .about-media img{ height: 340px; }
}

/* ==========================================================================
   AI Inspection App page
   ========================================================================== */

.app-hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px){ .app-hero{ grid-template-columns: 1fr; gap: 3rem; text-align: center; } }
.app-hero .hero-ctas{ justify-content: flex-start; }
@media (max-width: 900px){ .app-hero .hero-ctas{ justify-content: center; } }

.app-hero-phones{ display: flex; align-items: flex-end; justify-content: center; }
.app-hero-phones .phone-frame{ width: 240px; flex: none; }
.app-hero-phones .phone-frame.p2{ margin-left: -78px; margin-bottom: -30px; z-index: 0; filter: brightness(.82); }
.app-hero-phones .phone-frame.p1{ z-index: 1; }
@media (max-width: 520px){
  .app-hero-phones .phone-frame{ width: 190px; }
  .app-hero-phones .phone-frame.p2{ margin-left: -60px; }
}

.phone-frame{
  position: relative;
  background: #0b0e0c;
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.1);
}
.phone-frame img{ border-radius: 25px; width: 100%; display: block; }
.phone-frame::before{
  content: "";
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 7px; border-radius: 6px; background: rgba(255,255,255,.18); z-index: 2;
}

.feature-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.feature-row + .feature-row{ margin-top: 5rem; }
.feature-row.reverse .feature-media{ order: -1; }
@media (max-width: 860px){
  .feature-row{ grid-template-columns: 1fr; gap: 2.2rem; }
  .feature-row.reverse .feature-media{ order: 0; }
  .feature-row + .feature-row{ margin-top: 3.5rem; }
}

.feature-media{ display: flex; justify-content: center; }
.feature-media .phone-frame{ width: 250px; }

.feature-copy h3{ font-size: 1.55rem; margin-bottom: .6rem; }
.feature-copy p{ color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }
.feature-list{ display: grid; gap: .65rem; margin-top: 1.1rem; }
.feature-list li{ padding-left: 1.3em; position: relative; color: var(--muted); font-size: .94rem; }
.feature-list li::before{
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.app-gallery{
  display: flex; gap: 1.6rem; overflow-x: auto; padding: .5rem .2rem 1.6rem;
  scroll-snap-type: x mandatory;
}
.app-gallery::-webkit-scrollbar{ height: 6px; }
.app-gallery::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.2); border-radius: 6px; }
.app-gallery-item{ flex: none; scroll-snap-align: start; text-align: center; }
.app-gallery .phone-frame{ width: 200px; }
.app-gallery-cap{
  margin-top: .8rem; font-size: .76rem; color: #cfd8d3;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.risk-legend{ display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.risk-legend .rl-item{ display: flex; align-items: center; gap: .55em; font-family: var(--font-head); font-weight: 700; font-size: .82rem; }
.risk-legend .rl-dot{ width: 12px; height: 12px; border-radius: 50%; flex: none; }
.risk-legend .rl-dot.low{ background: #4caf6f; }
.risk-legend .rl-dot.mod{ background: #d69a3c; }
.risk-legend .rl-dot.sev{ background: #c1493f; }

/* ==========================================================================
   Wildfire Resource Center
   ========================================================================== */

.lookup-form{ background: var(--stone); border: 1px solid var(--stone-dark); border-radius: var(--radius); padding: 2.2rem; }
.lookup-label{ display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; margin-bottom: .7rem; color: var(--navy); }
.lookup-form .field label{
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--navy); margin-bottom: .5em;
}
.lookup-form input, .lookup-form select{
  width: 100%; padding: 13px 15px; border-radius: 4px; border: 1px solid #d5cfbf;
  font-size: .98rem; font-family: var(--font-body); background: var(--white); color: var(--ink);
}
.lookup-form input:focus, .lookup-form select:focus{ outline: 2px solid var(--forest); outline-offset: 1px; }

.autocomplete-field{ margin-bottom: 1.6rem; }
.autocomplete-wrap{ position: relative; }
.field-hint{ font-size: .8rem; color: var(--muted); margin-top: .5rem; margin-bottom: 0; }

.autocomplete-list{
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--white); border: 1px solid var(--stone-dark); border-radius: 4px;
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto;
}
.autocomplete-list.show{ display: block; }
.autocomplete-item{
  padding: 11px 15px; font-size: .92rem; color: var(--ink); cursor: pointer;
  border-bottom: 1px solid var(--stone);
}
.autocomplete-item:last-child{ border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active{ background: var(--stone); }

.lookup-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.8rem;
}
.lookup-grid .lookup-field-street{ grid-column: 1 / -1; }
@media (max-width: 560px){ .lookup-grid{ grid-template-columns: 1fr; } }

.lookup-submit{ width: 100%; }

.lookup-error{
  display: none; background: #3a2323; color: #f0dcdc; border: 1px solid #6b3a3a;
  padding: 1rem 1.2rem; border-radius: 4px; margin-top: 1.4rem; font-size: .92rem;
}
.lookup-error.show{ display: block; }

.lookup-loading{
  display: none; align-items: center; gap: .7rem; margin-top: 1.4rem;
  color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .92rem;
}
.lookup-loading.show{ display: flex; }
.spinner{
  width: 18px; height: 18px; border: 3px solid var(--stone-dark); border-top-color: var(--forest);
  border-radius: 50%; animation: spin .8s linear infinite; flex: none;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.results-panel{ display: none; margin-top: 3.5rem; }
.results-panel.show{ display: block; }

.wui-badge{
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
  border-radius: var(--radius); margin-bottom: 1.8rem;
}
.wui-badge.wui-in{ background: rgba(63,143,95,.12); border: 1px solid rgba(63,143,95,.35); }
.wui-badge.wui-out{ background: var(--stone); border: 1px solid var(--stone-dark); }
.wui-badge-icon{
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head); flex: none; font-size: 1.15rem;
}
.wui-in .wui-badge-icon{ background: var(--forest); color: var(--white); }
.wui-out .wui-badge-icon{ background: var(--navy); color: var(--white); }
.wui-badge-text{ font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--navy); }

.result-address{ font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.result-jurisdiction{ color: var(--muted); font-size: .96rem; margin-top: .3rem; margin-bottom: 1.2rem; }
.result-class{ color: var(--muted); font-size: .95rem; background: var(--stone); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 2.2rem; }

.result-map-wrap{ margin-bottom: 2.4rem; }
.result-map{
  height: 340px; width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stone-dark); box-shadow: var(--shadow-sm); z-index: 0;
}
.map-caption{ font-size: .8rem; color: var(--muted); margin-top: .7rem; margin-bottom: 0; }
.map-home-marker span{
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.resource-panel{
  background: var(--white); border: 1px solid var(--stone-dark); border-radius: var(--radius);
  padding: 1.8rem 1.9rem; margin-bottom: 1.8rem; box-shadow: var(--shadow-sm);
}
.resource-panel h3{
  display: flex; align-items: center; gap: .6em; font-size: 1.08rem; margin-bottom: 1.3rem; color: var(--forest);
}
.resource-panel h3 svg{ width: 20px; height: 20px; flex: none; }
.resource-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px){ .resource-list{ grid-template-columns: 1fr; } }
.resource-card{
  display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem;
  border: 1px solid var(--stone-dark); border-radius: 6px; text-decoration: none;
  background: var(--stone); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.resource-card:hover{ border-color: var(--forest); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-name{ font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .96rem; }
.resource-desc{ color: var(--muted); font-size: .86rem; flex: 1; }
.resource-card::after{
  content: "Visit Site →"; font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--forest); margin-top: .3rem;
}

.local-note{ background: var(--stone); border-left: 4px solid var(--accent); padding: 1.3rem 1.5rem; border-radius: 4px; margin-bottom: 2.2rem; }
.local-note strong{ display: block; margin-bottom: .5rem; color: var(--navy); font-family: var(--font-head); font-size: 1rem; }
.local-note p{ margin: 0; color: var(--muted); font-size: .93rem; }

.result-ctas{ display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.btn-outline-dark{ border-color: var(--forest); color: var(--forest); }
.btn-outline-dark:hover{ background: var(--forest); color: var(--white); }

.disclaimer{ font-size: .8rem; color: var(--muted); font-style: italic; line-height: 1.5; }
