/* Sure Ground Inspections — site styles
   Palette anchored to Amanda's logo: navy chrome, ground-green primary action,
   sure-blue link/header accent, off-white body, concrete-grey dividers. */
:root {
  --navy:        #1F2C3D;
  --navy-deep:   #15202E;
  --blue:        #1E4D9C;
  --blue-light:  #2E6FD1;
  --green:       #3FA22C;
  --green-deep:  #2F8420;
  --cream:       #F4F2EC;
  --paper:       #FFFFFF;
  --ink:         #1A2330;
  --ink-soft:    #4A5566;
  --ink-faint:   #7A8595;
  --concrete:    #7D8590;
  --line:        #E2DFD7;
  --line-soft:   #EFEDE6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500; color: var(--ink); letter-spacing: -0.015em;
  line-height: 1.2; margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
p  { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 64ch; }

.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* ───── header ───── */
.site-head {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-deep);
  position: sticky; top: 0; z-index: 100;
}
.site-head-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.5rem; max-width: 1180px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; text-decoration: none;
  color: #fff;
}
.brand img { height: 76px; width: auto; display: block; }
@media (max-width: 540px) { .brand img { height: 60px; } }

.nav {
  display: flex; align-items: center; gap: 1.4rem; margin-left: auto;
}
.nav a {
  color: rgba(255,255,255,0.86); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; padding: 0.4rem 0; position: relative;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav .nav-cta {
  margin-left: 0.6rem; background: var(--green); color: #fff;
  padding: 0.55rem 1rem; border-radius: 6px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.nav .nav-cta:hover { background: var(--green-deep); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0; color: #fff;
  padding: 0.5rem; cursor: pointer;
}
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: var(--navy); flex-direction: column; align-items: stretch;
         gap: 0; padding: 0.6rem 1rem 1.2rem; border-top: 1px solid var(--navy-deep); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav a.is-active::after { display: none; }
  .nav .nav-cta { margin: 0.6rem 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

/* ───── hero ───── */
.hero {
  position: relative; color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,44,61,0.55) 0%, rgba(21,32,46,0.92) 100%);
}
.hero-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
}
@media (max-width: 720px) {
  .hero-inner { padding: 2rem 1.25rem 3.5rem; }
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.86); max-width: 56ch;
  margin: 0.75rem 0 1.75rem;
}
.hero .eyebrow {
  display: inline-block; background: rgba(63,162,44,0.15);
  border: 1px solid rgba(63,162,44,0.5);
  color: #b6efa3; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; font-size: 1rem; line-height: 1; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; text-decoration: none; }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; border-color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-light); color: #fff; text-decoration: none; }

/* ───── sections ───── */
.section { padding: 4rem 0; }
.section--light { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,0.92); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { text-align: center; margin: 0 auto 2.5rem; max-width: 60ch; }
.section-head .eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.6rem;
}
.section--navy .section-head .eyebrow { color: #b6efa3; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p  { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.75); }

/* ───── service grid ───── */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,44,61,0.10); }
.svc-card .svc-img {
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
}
.svc-card .svc-body { padding: 1.2rem 1.3rem 1.4rem; }
.svc-card h3 { margin-bottom: 0.4rem; }
.svc-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ───── capabilities band ───── */
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem 1.6rem;
}
.cap-item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cap-item:last-child { border-bottom: none; }
.cap-item .cap-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  margin-top: 0.55rem; flex-shrink: 0;
}
.cap-item span { color: rgba(255,255,255,0.92); font-size: 0.96rem; }

/* ───── about teaser ───── */
.about-teaser {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: center;
}
@media (min-width: 780px) {
  .about-teaser { grid-template-columns: 280px 1fr; gap: 3rem; }
}
.about-teaser img {
  border-radius: 10px;
  background: #000;
  aspect-ratio: 3 / 4; object-fit: cover;
}
.about-teaser h2 { margin-top: 0; }

/* ───── CTA band ───── */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; padding: 3.5rem 1.5rem; text-align: center;
}
.cta-band h2 { color: #fff; max-width: 30ch; margin: 0 auto 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.cta-band .cta-row { justify-content: center; }

/* ───── coverage band ───── */
.cov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.cov-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.4rem 1.5rem; text-align: center;
}
.cov-card .state-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--navy); color: #fff;
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600;
  margin: 0 auto 0.85rem;
}
.cov-card h3 { margin-bottom: 0.3rem; }
.cov-card p  { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ───── about page ───── */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 360px 1fr; gap: 3.5rem; align-items: start; }
}
.about-photo {
  border-radius: 12px; background: #000;
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%;
}

/* ───── contact / form ───── */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-info .info-block {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-info .info-block:last-child { border-bottom: none; }
.contact-info .info-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: rgba(63,162,44,0.12); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.contact-info p  { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.contact-info a  { color: var(--ink); font-weight: 600; }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.75rem 1.75rem 1.5rem;
}
.form-row { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label {
  font-size: 0.84rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em;
}
.form-row label .req { color: var(--green); margin-left: 0.15rem; }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; color: var(--ink); padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,77,156,0.15);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form .form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.form .form-hint { color: var(--ink-faint); font-size: 0.85rem; margin: 0; }

.flash {
  margin: 0 0 1.5rem; padding: 0.95rem 1.15rem; border-radius: 8px;
  border: 1px solid; font-size: 0.96rem;
}
.flash--ok { background: rgba(63,162,44,0.08); border-color: rgba(63,162,44,0.4); color: var(--green-deep); }
.flash--err { background: rgba(200,40,40,0.08); border-color: rgba(200,40,40,0.4); color: #a82626; }

/* ───── footer ───── */
.site-foot {
  background: var(--navy-deep); color: rgba(255,255,255,0.72);
  padding: 3rem 1.5rem 1.5rem; margin-top: 4rem;
}
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 720px) {
  .foot-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.foot-inner .foot-brand img { height: 96px; width: auto; display: block; }
.foot-inner h4 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 700; margin: 0 0 0.85rem;
}
.foot-inner a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.95rem; }
.foot-inner a:hover { color: #fff; text-decoration: underline; }
.foot-inner ul { list-style: none; padding: 0; margin: 0; }
.foot-inner li { padding: 0.25rem 0; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  max-width: 1180px; margin-left: auto; margin-right: auto;
}
.foot-bottom a { color: rgba(255,255,255,0.55); }
.foot-byline {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; opacity: 0.85; transition: opacity 0.15s;
}
.foot-byline:hover { opacity: 1; text-decoration: none; }
.foot-byline span { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.foot-byline img { height: 38px; width: auto; display: block; }

/* misc */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
