/* Hopkins Home Inspection — modernized styles
   Palette pulled directly from Matt's business card: slate blue-gray,
   vivid orange, and near-black charcoal, rebuilt with modern spacing,
   type, and responsive layout. */

:root {
  --rust: #d9451b;
  --rust-dark: #b53615;
  --slate: #76838c;
  --slate-dark: #4c5860;
  --cream: #ffffff;
  --card: #ffffff;
  --tan: #edf1f2;
  --charcoal: #231f20;
  --charcoal-soft: #4a4542;
  --border: #dee4e6;
  --shadow: 0 4px 18px rgba(35, 31, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(35, 31, 32, 0.16);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--charcoal-soft); }

a { color: var(--rust-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand img.brand-mark {
  flex: none;
  height: 42px;
  width: auto;
}

.brand-text .sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-dark);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 7px;
  border-radius: 8px;
  text-decoration: none;
}

nav.main-nav a:hover { background: var(--tan); }

nav.main-nav a.active {
  color: var(--rust-dark);
  background: var(--tan);
  font-weight: 600;
}

.nav-cta {
  background: var(--rust);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--rust-dark); text-decoration: none !important; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.nav-call {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.nav-call:hover { color: var(--rust-dark); text-decoration: underline; }
@media (max-width: 1400px) {
  .nav-actions {
    margin: 10px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--charcoal);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 12%, rgba(217,69,27,0.09), transparent 55%),
    radial-gradient(circle at 4% 100%, rgba(118,131,140,0.10), transparent 45%),
    var(--cream);
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-dark);
  background: var(--tan);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 620px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  max-width: 420px;
  width: 100%;
}
.hero-caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.hero-art img.portrait {
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--card);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; margin: 0 auto; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--slate-dark);
  border-color: var(--slate);
}
.btn-secondary:hover { background: var(--slate-dark); border-color: var(--slate-dark); color: #fff; text-decoration: none; }

.credentials-line {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.credentials-line strong { color: var(--charcoal); }

/* Sections */
section.block { padding: 56px 0; }
section.block.tan { background: var(--tan); }
section.block.bordered { border-top: 1px solid var(--border); }

.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head p { margin-bottom: 0; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Checklist / component list */
.component-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.component-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}
.component-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--rust);
}
@media (max-width: 700px) {
  .component-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .component-list { grid-template-columns: 1fr; }
}

/* Testimonials */
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.quote-card p { color: var(--charcoal); font-size: 1.02rem; font-style: italic; }
.quote-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--charcoal);
}

/* Callout / notice box */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

/* CTA banner */
.cta-banner {
  background: var(--slate-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #d7dee1; margin: 0; }
.cta-banner .btn-primary { background: var(--rust); color: #fff; }
.cta-banner .btn-primary:hover { background: var(--rust-dark); }

/* Footer */
footer.site-footer {
  background: #33393d;
  color: #eef1f2;
  padding: 40px 0 28px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
footer.site-footer a { color: #eef1f2; }
footer.site-footer p { color: #b7c0c4; margin: 0 0 6px; }
footer.site-footer .foot-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: #909a9e;
}

/* Mobile nav */
@media (max-width: 1400px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 16px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 6px; border-radius: 0; }
  .site-header { position: sticky; }
  .nav-row { position: relative; }
}
