/* ============================================
   HAVEN ASSURANCE — STYLE SHEET
   Palette: forest green + warm gold + cream
   ============================================ */

:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F1ECE0;
  --color-primary: #14532D;
  --color-primary-dark: #0A2E17;
  --color-primary-mid: #1F5C3B;
  --color-accent: #C08A2E;
  --color-accent-light: #E7B75E;
  --color-text: #22281F;
  --color-text-soft: #55604F;
  --color-white: #FFFFFF;
  --color-border: #E2DBC8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 46, 23, 0.08);
  --shadow-lg: 0 20px 45px rgba(10, 46, 23, 0.14);
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { fill: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.i {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn .i { transition: transform 0.2s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover { background: #A87423; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--color-primary-dark);
  color: #D8E4DA;
  font-size: 0.78rem;
}
.utility-inner { display: flex; justify-content: flex-end; }
.utility-links { display: flex; gap: 22px; padding: 9px 0; }
.utility-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.utility-links a:hover { opacity: 1; color: var(--color-accent-light); }
.utility-links .i { width: 13px; height: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--color-text-soft);
  letter-spacing: 0.03em;
}
.brand-name.light { color: var(--color-white); }
.brand-sub.light { color: #B9C9BE; }

.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.chev { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; opacity: 0.6; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--color-bg-alt); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-copy p {
  color: var(--color-text-soft);
  font-size: 1.03rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art svg { width: 100%; height: auto; border-radius: 20px; }

.accent-strip {
  height: 8px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-title.center { text-align: center; margin-bottom: 44px; }
.section-title.light { color: var(--color-white); }
.lede {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

/* ---------- Protecting section ---------- */
.protect { padding: 90px 0; }
.protect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.protect-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.protect-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.protect-icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.protect-icon svg { width: 100%; height: 100%; }
.protect-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}
.protect-card p { color: var(--color-text-soft); font-size: 0.95rem; margin-bottom: 18px; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.link-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
}
.link-list a:hover { color: var(--color-accent); }

/* ---------- Split sections ---------- */
.split { padding: 90px 0; }
.split.alt-bg { background: var(--color-bg-alt); }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-inner.reverse .split-art { order: 2; }
.split-inner.reverse .split-copy { order: 1; }
.split-copy p { color: var(--color-text-soft); margin-bottom: 28px; max-width: 460px; }
.split-art svg { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-lg); }

/* ---------- Why choose us ---------- */
.why {
  background: var(--color-primary-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(192,138,46,0.15), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(192,138,46,0.12), transparent 45%);
  padding: 90px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.why-item { text-align: center; color: #DCE7DF; padding: 0 6px; }
.why-icon {
  width: 52px;
  height: 52px;
  color: var(--color-accent-light);
  margin: 0 auto 18px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 10px;
}
.why-item p { font-size: 0.88rem; color: #B9C9BE; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: #B9C9BE; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto;
  gap: 30px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-social { display: flex; gap: 12px; align-items: flex-start; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--color-white); stroke: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--color-accent-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-art { order: -1; }
  .split-inner, .split-inner.reverse { grid-template-columns: 1fr; }
  .split-inner.reverse .split-art { order: -1; }
  .protect-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .utility-inner { justify-content: center; }
  .utility-links { flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
  .utility-links li:nth-child(n+4) { display: none; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--color-white); box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease; padding: 90px 24px 24px; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px; }
  .nav-toggle { display: flex; }
  .hero-copy h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
