/* ============================================================
   HISCOR Insurance — design system v2 (editorial / warm)
   Display: Fraunces · Body: Inter
   ============================================================ */

:root {
  --green:      #2e5545;
  --green-dark: #1d3a2c;
  --green-soft: #e9f0ea;
  --ink:        #23241f;
  --muted:      #6a6f65;
  --cream:      #f6f2ea;
  --cream-deep: #efe9dc;
  --paper:      #ffffff;
  --gold:       #c39a3c;
  --terra:      #cd7f4d;
  --line:       #e7e1d4;
  --shadow-sm:  0 4px 18px rgba(29,58,44,.07);
  --shadow:     0 18px 50px rgba(29,58,44,.12);
  --radius:     22px;
  --maxw:       1180px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--green-dark);
  line-height: 1.06;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--terra); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 104px 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-dark); color: #eaf2ec; }
.section--green h2 { color: #fff; }
.section--green p, .section--green .lead { color: #cde0d4; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 1rem;
}
.section--green .eyebrow, .band--photo .eyebrow, .hero--photo .eyebrow { color: var(--gold); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; line-height: 1.6; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(29,58,44,.2); }
.btn--gold { background: var(--gold); color: #2a2205; }
.btn--gold:hover { background: #b0872b; color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--green-dark); }
.btn--ghost { background: transparent; border-color: var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .98rem; padding: 6px 0; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--terra); transition: right .25s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { right: 0; }
.nav__links a.active { color: var(--green-dark); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.7rem; color: var(--green-dark); }

/* ---------- Photo hero ---------- */
.hero--photo {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; padding: 90px 0;
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,40,31,.9) 0%, rgba(20,40,31,.6) 48%, rgba(20,40,31,.15) 100%);
}
.hero--photo .container { position: relative; z-index: 2; }
.hero__inner { max-width: 720px; }
.hero--photo h1 { color: #fff; margin-bottom: .3em; }
.hero--photo p { color: #e4eee7; font-size: 1.3rem; max-width: 560px; line-height: 1.55; }
.hero__actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__since {
  display: inline-block; margin-bottom: 24px; padding: 8px 18px;
  border: 1px solid rgba(195,154,60,.55); border-radius: 999px; color: var(--gold);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Photo banner (inner pages) ---------- */
.banner--photo {
  position: relative; background-size: cover; background-position: center; color: #fff;
  padding: 130px 0 104px; border-radius: 0 0 40px 40px; overflow: hidden;
}
.banner--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,40,31,.9), rgba(20,40,31,.5));
}
.banner--photo .container { position: relative; z-index: 2; }
.banner--photo h1 { color: #fff; }
.banner--photo p { color: #e4eee7; max-width: 620px; font-size: 1.2rem; }

/* ---------- Media split ---------- */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media--reverse .media__text { order: 2; }
.media--reverse .media__img { order: 1; }
.media__img {
  width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media__text h2 { margin-bottom: .35em; }

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

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; background: var(--green-soft);
  color: var(--green); font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Image cards ---------- */
.imgcard {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column;
}
.imgcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.imgcard__img { width: 100%; height: 230px; object-fit: cover; }
.imgcard__body { padding: 28px 30px 32px; }
.imgcard__body h3 { margin-bottom: .35em; }
.imgcard__body p { color: var(--muted); margin: 0; }
.imgcard__body a { font-weight: 600; display: inline-block; margin-top: 14px; color: var(--terra); }

/* ---------- Provider chips ---------- */
.providers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.provider {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 18px; text-align: center; font-weight: 600; color: var(--green-dark);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  min-height: 104px; transition: transform .18s ease, border-color .18s ease;
}
.provider:hover { transform: translateY(-4px); border-color: var(--gold); }

/* ---------- Split / values ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.valuelist { list-style: none; padding: 0; margin: 20px 0 0; }
.valuelist li { padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid var(--line); }
.valuelist li::before { content: "✦"; position: absolute; left: 4px; top: 14px; color: var(--terra); }
.valuelist strong { color: var(--green-dark); }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.panel h3 { color: var(--green-dark); }

/* ---------- Features / how it works ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.feature { text-align: center; padding: 8px; }
.feature__ic {
  width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.55rem; font-family: "Fraunces", serif; font-weight: 600;
}
.feature:nth-child(1) .feature__ic { background: #f6e3d6; color: var(--terra); }
.feature:nth-child(2) .feature__ic { background: var(--green-soft); color: var(--green); }
.feature:nth-child(3) .feature__ic { background: #f5eccf; color: #a5801f; }
.feature h3 { font-size: 1.2rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; color: var(--green-dark); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--terra); border-color: var(--terra); }
.field textarea { min-height: 140px; resize: vertical; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row__icon { color: var(--terra); font-size: 1.3rem; flex: 0 0 24px; }
.info-row__label { font-weight: 700; color: var(--green-dark); display: block; font-size: .95rem; }
.info-row span { color: var(--muted); }

/* ---------- CTA band with photo ---------- */
.band--photo {
  position: relative; background-size: cover; background-position: center; color: #fff;
  padding: 110px 0; text-align: center;
}
.band--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,40,31,.86), rgba(20,40,31,.86)); }
.band--photo .container { position: relative; z-index: 2; }
.band--photo h2 { color: #fff; }
.band--photo p, .band--photo .lead { color: #e4eee7; }

.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #cddfd4; padding: 68px 0 30px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cddfd4; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.13); margin-top: 44px; padding-top: 22px; text-align: center; color: #9db3a6; font-size: .86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .media { grid-template-columns: 1fr; gap: 32px; }
  .media--reverse .media__text, .media--reverse .media__img { order: 0; }
  .media__img { height: 320px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .providers { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero--photo { min-height: 640px; }
  .section { padding: 76px 0; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 82px; left: 0; right: 0;
    background: #fff; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 28px 18px;
  }
  .nav.open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .providers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
