/* Haven Residential LLC — havenresidentialhome.com */

:root {
  --green: #3e5548;
  --green-dark: #33463c;
  --green-light: #5a7365;
  --cream: #f4f1e8;
  --cream-card: #fbf8f0;
  --paper: #fdfbf6;
  --rule: #ded8c8;
  --ink: #2b2b28;
  --ink-soft: #55554e;
  --ink-mute: #7c7c73;
  --accent: #9c6b4f;

  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--green); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  color: #fff;
}

.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.375rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 0.25rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.86);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }

/* buttons inside the nav must not inherit the plain-link padding above */
.nav a.btn { padding: 0.625rem 1.375rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  padding: 0.7rem 1.25rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-light, .nav a.btn-light { background: var(--cream); color: var(--green-dark); border-bottom-color: transparent; }
.btn-light:hover, .nav a.btn-light:hover { background: #fff; color: var(--green-dark); border-bottom-color: transparent; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: 6px;
  color: #fff; padding: 0.45rem 0.6rem; cursor: pointer; line-height: 0;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-dark);
    padding: 0.5rem var(--pad) 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .site-header .wrap { position: relative; }
}

/* ---------- hero ---------- */

.hero { background: var(--cream); border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.2fr 0.8fr; align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
.hero p.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-address {
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-mute);
}
.hero-address a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.hero-address a:hover { color: var(--green); border-bottom-color: var(--green); }

/* hero photo — stock imagery, framed like the print pieces */
.hero-photo {
  background: #fff;
  padding: 0.6rem;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -24px rgba(43,43,40,0.45);
}
.hero-photo img { width: 100%; height: auto; }

/* ---------- sections ---------- */

section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--cream); border-block: 1px solid var(--rule); }

h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); letter-spacing: -0.01em; margin-bottom: 1.1rem; }
.section-intro { max-width: 46rem; color: var(--ink-soft); font-size: 1.0625rem; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* care grid */

.care-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin-top: 2.25rem;
}
.care-item { background: var(--paper); padding: 1.5rem 1.5rem 1.65rem; }
.section-alt .care-item { background: var(--cream-card); }
.care-item h3 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.4rem; }
.care-item p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.care-item svg { color: var(--green); margin-bottom: 0.9rem; }

/* referrals */

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.9rem; margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent);
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- contact card ---------- */

.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.contact-card .eyebrow { color: var(--accent); }
.email-big {
  display: inline-block;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.35rem; overflow-wrap: break-word;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.15rem;
}
.email-big:hover { color: var(--green); border-bottom-color: var(--green); }

.visit-address {
  font-style: normal; font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.35;
  margin: 0 0 1.5rem;
}
.visit-address a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.visit-address a:hover { color: var(--green); border-bottom-color: var(--green); }
.contact-note { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1.75rem; }

.detail-list { border-top: 1px solid var(--rule); margin: 0; padding-top: 1.5rem; }
.detail { margin-bottom: 1.35rem; }
.detail:last-child { margin-bottom: 0; }
.detail dt {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.3rem; font-weight: 500;
}
.detail dd { margin: 0; font-size: 1rem; }
.detail dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.detail dd a:hover { border-bottom-color: var(--green); color: var(--green); }
.detail address { font-style: normal; line-height: 1.55; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--green); color: rgba(255,255,255,0.8);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.site-footer a:hover { border-bottom-color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.5rem; }
.footer-legal {
  width: 100%; border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.5rem; margin-top: 0.5rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.6);
}
