/* =========================================================
   Maps Rescue — stylesheet
   Palette pulled from the brand mark: navy, gold, pin-red, map-green.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* Color */
  --navy:        #12283F;
  --navy-deep:   #0B1B2B;
  --navy-panel:  #1C3B5A;
  --gold:        #C89B3C;
  --gold-light:  #E7C878;
  --red:         #B23A2E;
  --green:       #3F7A5C;
  --bg:          #F5F6F3;
  --surface:     #FFFFFF;
  --ink:         #16232E;
  --ink-soft:    #52616C;
  --border:      #DDE2DE;

  /* Type */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
  color: var(--navy);
}

h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2{ font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3{ font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }

p{ margin: 0 0 1em; max-width: 62ch; }
a{ color: inherit; }

.container{
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 1.5em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-gold{
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover{ background: var(--gold-light); }

.btn-navy{
  background: var(--navy);
  color: var(--gold-light);
}
.btn-navy:hover{ background: var(--navy-panel); }

.btn-outline{
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover{ border-color: var(--surface); background: rgba(255,255,255,0.08); }

.btn-outline-dark{
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover{ background: var(--navy); color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
}
.brand img{ width: 44px; height: 44px; }
.brand-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-word span{ display: block; font-size: 0.6em; color: var(--gold-light); font-weight: 600; }

.main-nav{ display: flex; align-items: center; gap: 1.75rem; }
.main-nav a{
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover{ color: var(--gold); }
.nav-links{ display: flex; gap: 1.75rem; }
.nav-phone{
  color: var(--gold-light) !important;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1.75rem;
}
.nav-toggle{
  display: none;
  background: none;
  border: 0;
  color: var(--gold-light);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

/* ---------- Hero ---------- */
.hero{
  background: var(--gold);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero::before{
  /* faint map-grid texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18,40,63,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,40,63,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 10%, transparent 70%);
  pointer-events: none;
}
.hero .container{
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.hero-banner{
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(11,27,43,0.45);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.hero-banner img{
  width: 100%;
  height: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  object-position: center 40%;
}
.hero-copy{ max-width: 62ch; }
.hero-eyebrow{
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.hero h1{ color: var(--navy); margin-bottom: 0.45em; }
.hero h1 em{
  font-style: normal;
  color: var(--navy-panel);
}
.hero-lede{
  color: rgba(18,40,63,0.85);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.hero-scope{
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: rgba(18,40,63,0.65);
  max-width: 46ch;
}

/* ---------- Trust strip ---------- */
.trust-strip{
  background: var(--gold);
  color: var(--navy-deep);
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}
.trust-strip ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  padding-block: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.trust-strip li{ display: flex; align-items: center; gap: 0.5rem; }
.trust-strip li::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy-deep);
  flex: none;
}

/* ---------- Sections ---------- */
section{ padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section-head{ max-width: 60ch; margin-bottom: 2.75rem; }
.section-head p{ color: var(--navy); font-size: 1.08rem; }
.section-tag{
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ---------- What we fix ---------- */
#what-we-fix{
  background: var(--gold);
  border-top: 2px solid var(--navy);
}
.fix-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy);
  border: 1px solid var(--navy);
}
.fix-card{
  background: var(--surface);
  padding: 1.9rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fix-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.fix-card p{ color: var(--navy); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact{ background: var(--gold); color: var(--navy); border-top: 2px solid var(--navy); }
.contact .section-head h2{ color: var(--navy); }
.contact .section-head p{ color: rgba(18,40,63,0.8); }
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-form{
  background: var(--surface);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 6px;
}
.form-row{ margin-bottom: 1.1rem; }
.form-row label{
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.form-row input, .form-row textarea{
  width: 100%;
  font: inherit;
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--navy);
  outline: none;
}
.form-two{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note{ font-size: 0.82rem; color: var(--navy); margin-top: 0.9rem; margin-bottom: 0; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

.form-status{
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.form-status.is-visible{ display: block; }
.form-status.success{ background: #E7F1EB; color: var(--green); border: 1px solid #BFDCC9; }
.form-status.error{ background: #F6E4E1; color: var(--red); border: 1px solid #E3BDB6; }

.contact-info{ display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item .label{
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-panel);
  margin-bottom: 0.3rem;
}
.contact-info-item a{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.contact-info-item a:hover{ color: var(--navy-panel); }
.contact-info-note{ color: rgba(18,40,63,0.75); font-size: 0.9rem; max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-deep);
  color: var(--surface);
  padding-block: 2.75rem;
  font-size: 0.88rem;
}
.footer-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-brand{ display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img{ width: 34px; height: 34px; }
.footer-brand span{ font-family: var(--font-display); font-weight: 700; color: var(--gold-light); font-size: 1.4rem; }
.footer-links{ display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a{ color: var(--surface); text-decoration: none; }
.footer-links a:hover{ color: var(--gold-light); }
.footer-legal p{ margin: 0 0 0.35em; max-width: none; color: var(--surface); }
.footer-legal .entity{ color: var(--surface); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-hero{
  background: var(--navy);
  color: var(--surface);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.legal-hero h1{ color: var(--surface); margin-bottom: 0.3em; }
.legal-hero p{ color: rgba(255,255,255,0.7); margin: 0; }
.legal-body{ padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.legal-body .container{ max-width: 780px; }
.legal-body h2{ font-size: 1.4rem; margin-top: 2.2em; }
.legal-body h2:first-of-type{ margin-top: 0; }
.legal-body p, .legal-body li{ color: var(--ink-soft); max-width: none; }
.legal-body ul{ padding-left: 1.2em; }
.legal-body li{ margin-bottom: 0.5em; }
.legal-body a{ color: var(--navy); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .fix-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-info{ order: -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px){
  .hero-banner img{ aspect-ratio: 2 / 1; object-position: 20% center; }
}

@media (max-width: 420px){
  .hero-banner img{ aspect-ratio: 4 / 3; object-position: 14% center; }
}

@media (max-width: 680px){
  .nav-toggle{ display: block; }
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.is-open{ display: flex; }
  .nav-links{ flex-direction: column; gap: 1.1rem; }
  .nav-phone{ border-left: 0; padding-left: 0; }
  .fix-grid{ grid-template-columns: 1fr; }
  .form-two{ grid-template-columns: 1fr; }
}

/* =========================================================
   Navy and off-white theme (matches the legal pages):
   navy hero and contact, off-white body sections, gold accents.
   ========================================================= */
.hero{ background: var(--navy); color: var(--surface); }
.hero::before{
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.hero-banner{ box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55); }
.hero-eyebrow{ color: var(--gold-light); }
.hero h1{ color: var(--surface); }
.hero h1 em{ color: var(--gold-light); }
.hero-lede{ color: rgba(255,255,255,0.88); }
.hero-scope{ color: rgba(255,255,255,0.65); }
.hero .btn-navy{ background: var(--gold); color: var(--navy-deep); }
.hero .btn-navy:hover{ background: var(--gold-light); }
.hero .btn-outline-dark{ color: var(--surface); border-color: rgba(255,255,255,0.6); }
.hero .btn-outline-dark:hover{ background: rgba(255,255,255,0.1); color: var(--surface); border-color: var(--surface); }

.trust-strip{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#what-we-fix{ background: var(--bg); border-top: 0; }

.contact{ background: var(--navy); color: var(--surface); border-top: 0; }
.contact .section-tag{ color: var(--gold-light); }
.contact .section-head h2{ color: var(--surface); }
.contact .section-head p{ color: rgba(255,255,255,0.85); }
.contact-info-item .label{ color: var(--gold-light); }
.contact-info-item a{ color: var(--surface); }
.contact-info-item a:hover{ color: var(--gold-light); }
.contact-info-note{ color: rgba(255,255,255,0.7); }
