/* =========================================================
   Wilhelms Family Properties — shared styles
   Palette: navy + green (matched to logo) on clean white
   ========================================================= */

:root {
  --navy: #1b2a8c;          /* logo blue — primary brand */
  --navy-deep: #122064;     /* darker navy — headings */
  --navy-darkest: #0c1538;  /* dark section background */
  --green: #57bf36;         /* logo green — accent fills */
  --green-deep: #2f7d18;    /* darker green — text/links/icons (AA contrast) */
  --green-soft: #a9e08e;    /* light green — accents on dark */
  --sky: #9cc3e8;           /* logo sky blue */

  --ink: #222838;
  --slate: #4a5160;
  --muted: #79808f;
  --line: #e4e8f1;
  --cream: #f3f6fb;         /* cool light panel */
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(12, 21, 56, 0.45);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy-deep);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--slate); }

a { color: var(--green-deep); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

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

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--navy-darkest); }
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--dark p { color: #c8d0e6; }

/* ---------- Eyebrow + headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--green-soft); }

.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.section--dark .lead { color: #d3daee; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section--dark .btn--ghost { color: #fff; border-color: var(--green-soft); }
.section--dark .btn--ghost:hover { background: var(--green); border-color: var(--green); color: #0c1538; }

/* Green accent button (optional emphasis) */
.btn--accent { background: var(--green); border-color: var(--green); color: #0c1538; }
.btn--accent:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 46px; width: auto; }
.nav__brand-text {
  font-family: "Playfair Display", serif; font-weight: 600; font-size: 1.05rem;
  color: var(--navy-deep); line-height: 1.1;
}
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-size: 0.93rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--navy); border-color: var(--green); }
.nav__cta { margin-left: 8px; }
/* Keep the nav CTA button's text white — overrides the generic .nav__links a color */
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(8,16,46,0.90) 0%, rgba(18,32,100,0.70) 55%, rgba(27,42,140,0.45) 100%),
    radial-gradient(1100px 480px at 82% -10%, rgba(87,191,54,0.30), transparent 60%),
    var(--navy-darkest);
  color: #fff;
  padding: 120px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.5; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { color: var(--green-soft); font-style: italic; }
.hero p { color: #d3daee; font-size: 1.18rem; max-width: 52ch; }
.hero__meta { margin-top: 26px; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-soft); }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.stats .stat { padding: 30px 22px; text-align: center; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: 0; }
.stat__num { font-family: "Playfair Display", serif; font-size: 2.1rem; color: var(--navy); line-height: 1; }
.stat__label { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 8px; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.card__icon { width: 46px; height: 46px; color: var(--green-deep); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Split (text + panel) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.panel { background: var(--navy-darkest); color: #fff; border-radius: var(--radius); padding: 44px 40px; position: relative; }
.panel::before {
  content: ""; position: absolute; top: 18px; left: 18px; right: -10px; bottom: -10px;
  border: 1px solid var(--green); border-radius: var(--radius); z-index: -1;
}
.panel .quote { font-family: "Playfair Display", serif; font-size: 1.5rem; line-height: 1.4; color: #fff; font-style: italic; }
.panel .quote span { color: var(--green-soft); }
.panel .attrib { margin-top: 18px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-soft); }

/* ---------- Mission band ---------- */
.mission { text-align: center; }
.mission .quote {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.4; color: #fff; max-width: 24ch; margin: 0 auto;
}
.mission .quote::before, .mission .quote::after { content: "\201C"; color: var(--green-soft); }
.mission .quote::after { content: "\201D"; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--slate); }
.checklist svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--green-deep); margin-top: 3px; }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 0.97rem; color: var(--ink); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,140,0.16);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .req { color: var(--green-deep); }
.form__note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.hidden { position: absolute; left: -9999px; }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list svg { width: 22px; height: 22px; color: var(--green-deep); flex: 0 0 auto; margin-top: 3px; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--navy); }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--navy-darkest); color: #fff; padding: 72px 0 64px; position: relative; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 85% 0%, rgba(87,191,54,0.26), transparent 60%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: #d3daee; max-width: 58ch; margin: 0; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 16px; }

/* ---------- Placeholder badge ---------- */
.badge {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(87,191,54,0.16); color: var(--green-deep); border: 1px solid var(--green);
  padding: 4px 10px; border-radius: 20px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 14px; background: #fff; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy-deep); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-deep); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-darkest); color: #c8d0e6; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer img { height: 70px; margin-bottom: 16px; background: #fff; padding: 8px 12px; border-radius: var(--radius); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c8d0e6; font-size: 0.95rem; }
.site-footer a:hover { color: var(--green-soft); }
.footer-tag { font-family: "Playfair Display", serif; font-style: italic; color: var(--green-soft); font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #8b93ab;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
}
