/* =========================================================
   The Careside Group — Careside Housing Network landing page
   ========================================================= */

:root {
  /* Brand colors */
  --green-900: #143428;
  --green-800: #1c4536;
  --green-700: #245a46;
  --green-100: #e3ebe2;
  --sage-50:  #eef2ec;
  --cream:    #faf6ee;
  --cream-2:  #f4ede1;
  --beige:    #e9dcc6;
  --gold:     #b8975a;
  --gold-600: #9c7d43;
  --gold-100: #f1e6d2;
  --ink:      #1f2b26;
  --muted:    #5b6862;
  --line:     #e4ddd0;
  --white:    #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 52, 40, .06), 0 2px 8px rgba(20, 52, 40, .05);
  --shadow-md: 0 10px 30px rgba(20, 52, 40, .12), 0 2px 6px rgba(20, 52, 40, .06);

  /* ---------------------------------------------------------
     REPLACE HERO IMAGE
     Put your photo in the images folder (e.g. images/hero.jpg)
     and change the url below to: url("images/hero.jpg")
     Best size: at least 2400 x 1350px, doorway center-right,
     calm/soft space on the left for the headline.
     --------------------------------------------------------- */
  --hero-img: url("images/hero.jpg");

  /* ---------------------------------------------------------
     REPLACE WHY IMAGES (optional)
     Side photos for the "Why Partner With Careside" section.
     Example: --why-img-left: url("images/building.jpg");
     Leave as "none" for a clean look with no side photos.
     --------------------------------------------------------- */
  --why-img-left: none;
  --why-img-right: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--serif); color: var(--green-900); line-height: 1.12; margin: 0; font-weight: 600; }
p { margin: 0; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--green-800); color: var(--white); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .8em 1.4em; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-800); color: var(--white); box-shadow: 0 6px 16px rgba(20,52,40,.18); }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { background: rgba(255,255,255,.55); color: var(--green-900); border-color: var(--green-900); }
.btn-outline:hover { background: var(--white); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: #c9a86a; }
.btn-sm { padding: .62em 1.2em; font-size: .92rem; }
.btn-lg { padding: .95em 1.7em; font-size: 1.06rem; }
.btn-block { width: 100%; padding: 1em; font-size: 1.06rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--green-800); margin-bottom: 18px;
}
.eyebrow-light { color: var(--gold-100); }

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--green-900); line-height: 1.1; }
.brand-tag { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-800); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle .bar { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  background:
    /* Cream wash on the left so the headline stays readable over the photo */
    linear-gradient(90deg,
      rgba(250,246,238,.97) 0%,
      rgba(250,246,238,.92) 28%,
      rgba(250,246,238,.7) 44%,
      rgba(250,246,238,0) 58%),
    var(--hero-img) 55% center / cover no-repeat,
    var(--beige);
  padding: 56px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: center;
  gap: 48px;
}
.hero-copy { max-width: 570px; padding: 24px 0; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); letter-spacing: -.01em; margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #2c3a34; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 40px; }

.hero-values { display: flex; flex-wrap: wrap; gap: 28px 36px; list-style: none; margin: 0; padding: 0; }
.hero-values li { display: flex; align-items: center; gap: 12px; }
.hero-values svg { width: 34px; height: 34px; fill: none; stroke: var(--green-800); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-values span { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green-900); line-height: 1.5; }

/* Signup form card */
.form-card {
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 28px 24px;
  border-top: 4px solid var(--gold);
}
.form-card h2 { font-size: 1.6rem; }
.form-intro { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.signup-form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.req { color: #b0523a; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid #d4ccbd; border-radius: 6px;
  padding: .62em .8em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c4536' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7em center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa29d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(36, 90, 70, .15);
}
.signup-form .btn-block { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .92rem; color: var(--green-800); font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.error { color: #b0523a; }

/* ---------- 3. Partner cards ---------- */
.partners { background: var(--white); padding: 28px 0; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.partner-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-body { display: grid; gap: 8px; }
.partner-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; color: var(--green-900); }
.partner-text { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.arrow { color: var(--green-900); font-size: 1.1rem; transition: transform .2s; }
.partner-card:hover .arrow { transform: translateX(3px); }

.icon-circle {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-100);
}
.icon-circle svg { width: 28px; height: 28px; fill: none; stroke: var(--green-800); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-gold { background: var(--gold-100); }
.icon-gold svg { stroke: var(--gold-600); }
.icon-lg { width: 64px; height: 64px; }
.icon-lg svg { width: 30px; height: 30px; }

/* ---------- Shared section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 8px; }
.section-head p { color: var(--muted); }

/* ---------- What makes Careside different ---------- */
.subhead {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--gold-600);
  line-height: 1.35; margin: -6px 0 16px;
}
.different { background: var(--cream); padding: 80px 0 72px; }
.different .section-head { max-width: 800px; }
.different .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.diff-card .icon-circle { margin-bottom: 18px; }
.diff-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.diff-card p { color: var(--muted); font-size: .95rem; }
.callout {
  display: flex; align-items: center; gap: 24px;
  margin: 32px auto 0; max-width: 900px;
  background: var(--gold-100); border: 1px solid #e3d2b0; border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 24px 30px;
}
.callout-mark { width: 34px; height: 48px; flex: none; color: var(--gold-600); }
.callout h3 { font-size: 1.45rem; margin-bottom: 6px; }
.callout p { color: #3d4a44; }

/* ---------- 4. How it works ---------- */
.how { background: var(--sage-50); padding: 72px 0; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  counter-reset: none;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-100); color: var(--green-900);
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
/* connector arrows between steps (desktop) */
.step:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -26px; top: 6px;
  color: var(--green-900); font-size: 1.3rem;
}
.step-icon { width: 44px; height: 44px; margin: 0 auto 12px; fill: none; stroke: var(--green-800); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 24em; margin-inline: auto; }

/* ---------- 5. Why partner ---------- */
.why {
  position: relative; padding: 72px 0;
  background:
    var(--why-img-left) left bottom / 22% auto no-repeat,
    var(--why-img-right) right bottom / 22% auto no-repeat,
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.why-item { display: flex; gap: 18px; align-items: flex-start; padding: 32px 28px; }
.why-item + .why-item { border-left: 1px solid var(--line); }
.why-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: .93rem; }

/* ---------- 6. Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(184,151,90,.22), transparent 55%),
    var(--green-900);
  color: #e8efe9; padding: 64px 0;
}
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.cta-door { width: 80px; height: 110px; color: var(--gold); opacity: .9; }
.cta-copy h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-copy p:last-child { max-width: 40em; color: #cfdcd3; }
.cta-copy .eyebrow { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f281f; color: #b9c8be; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-brand { font-family: var(--serif); color: var(--white); font-weight: 600; font-size: 1.1rem; }
.site-footer a { color: var(--gold-100); }
.footer-small { color: #8ea396; font-size: .82rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .site-nav { gap: 22px; }
  .site-nav ul { gap: 20px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 16px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }

  /* Hero stacks: copy first, form below */
  .hero {
    background:
      linear-gradient(180deg, rgba(250,246,238,.9) 0%, rgba(250,246,238,.82) 45%, rgba(250,246,238,.97) 70%, var(--cream) 100%),
      var(--hero-img) 55% top / cover no-repeat,
      var(--beige);
    padding: 36px 0 48px;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 0; max-width: 640px; }
  .form-card { max-width: 640px; width: 100%; }

  /* Steps: 2x2, no arrows */
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .step:not(:last-child)::after { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .why-item + .why-item { border-left: 0; border-top: 1px solid var(--line); }

  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
  .cta-copy p:last-child { margin-inline: auto; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 70px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.3rem; }
  .brand-tag { display: none; }
  html { scroll-padding-top: 76px; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-values { gap: 18px 22px; }
  .hero-values svg { width: 28px; height: 28px; }

  .form-card { padding: 22px 18px 20px; }
  .field-row { grid-template-columns: 1fr; }

  .partner-grid { grid-template-columns: 1fr; }
  .how, .why { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 0; }
  .step-num { position: static; margin: 0 auto 10px; }

  .why-item { padding: 24px 20px; }
  .different { padding: 56px 0; }
  .callout { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .partner-card, .arrow { transition: none; }
}
