/* ===================================================
   AGAPE PROPERTY MANAGEMENT — Veteran Independent Living
   Palette: black #0A0A0A, white #FFFFFF, Kelly green #2E7D32,
            warm paper #FAF9F6, sage tint #E8EDE7, deep pine #1B4D22
   Type: Cormorant Garamond (display) + Jost (body/UI)
   =================================================== */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --green: #2e7d32;
  --green-deep: #1b4d22;
  --green-bright: #3f9b45;
  --paper: #faf9f6;
  --sage: #e8ede7;
  --gray-600: #5a5a54;
  --gray-400: #8a8a82;
  --line: rgba(10,10,10,0.12);
  --line-light: rgba(255,255,255,0.16);

  --display: 'Cormorant Garamond', serif;
  --body: 'Jost', sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.section-lede a, .figure-note a, .not-box a, .funding-strip a, p a { color: inherit; text-decoration: none; border-bottom: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--green-bright); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}

.light-heading { color: var(--white); }

h2 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.12;
  max-width: 20ch;
}

.section-lede {
  font-size: 1.08rem;
  color: var(--gray-600);
  max-width: 58ch;
  margin-top: 1.1rem;
  line-height: 1.65;
}
.light-lede { color: rgba(255,255,255,0.72); }

.section { padding: 6.5rem 0; }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-tint { background: var(--sage); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--green-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ============ HERO ============ */
.hero {
  background: var(--paper);
  padding: 5.5rem 0 0;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem 4.5rem;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 1.6rem;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 56ch;
  margin-bottom: 2.4rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--white); }

.hero-stats {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 2.4rem 2rem;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ============ SCOPE CARDS ============ */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.scope-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.2rem 1.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.scope-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.scope-icon {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--green);
  margin-bottom: 1.2rem;
}
.scope-icon svg { width: 100%; height: 100%; }
.scope-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.scope-card p {
  color: var(--gray-600);
  font-size: 0.96rem;
  line-height: 1.6;
}

.not-box {
  margin-top: 2.6rem;
  background: var(--sage);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 1.5rem 1.8rem;
}
.not-box p { font-size: 0.94rem; color: var(--black); line-height: 1.65; }
.not-box strong { color: var(--green-deep); }

/* ============ TIMELINE (signature element) ============ */
.timeline {
  margin-top: 3.2rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(255,255,255,0.18);
}
.tl-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2.2rem;
  padding: 1.7rem 0;
  position: relative;
}
.tl-time {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  padding-top: 0.15rem;
  text-align: right;
}
.tl-content { position: relative; padding-left: 2.2rem; }
.tl-content::before {
  content: '';
  position: absolute;
  left: -0.42rem;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
}
.tl-content h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.tl-content p {
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* ============ MEALS ============ */
.meal-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}
.meal-rhythm h4 {
  font-size: 1.2rem;
  margin-bottom: 1.3rem;
  font-family: var(--body);
  font-weight: 600;
}
.rhythm-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.4rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.rhythm-row:last-child { border-bottom: 1px solid var(--line); }
.rhythm-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
}
.rhythm-detail { font-size: 0.92rem; color: var(--gray-600); line-height: 1.55; }

.figure-card {
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  padding: 2.4rem 2.2rem;
}
.figure-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1rem;
}
.figure-num {
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.figure-unit {
  font-size: 1.1rem;
  font-family: var(--body);
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.figure-sub {
  display: block;
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
}
.figure-bar {
  display: flex;
  height: 2.2rem;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1.8rem;
}
.figure-bar-seg {
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-bar-seg.alt { background: var(--green-bright); }
.figure-bar-seg.alt2 { background: #6fb873; }
.figure-bar-seg span {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  white-space: nowrap;
}
.figure-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ============ TRANSPORTATION ============ */
.transport-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
}
.transport-grid-single {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.transport-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.4rem;
}
.transport-card.active { border: 2px solid var(--green); }
.transport-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}
.transport-tag.alt { background: var(--gray-400); }
.transport-card h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.transport-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; }
.transport-metric {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.tm-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green-deep);
}
.tm-label { font-size: 0.78rem; color: var(--gray-600); line-height: 1.3; }
.tm-divider { font-size: 1.2rem; color: var(--gray-400); }
.transport-cost {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}
.transport-cost.muted { color: var(--gray-400); }

/* ============ COST BREAKDOWN (per-occupant) ============ */
.cost-breakdown { margin-top: 3.5rem; }
.cb-heading {
  font-size: 1.6rem;
  margin: 0.6rem 0 2rem;
  max-width: none;
}
.cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.cb-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.2rem;
  background: var(--white);
}
.cb-card-dark {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.cb-range {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--green-deep);
}
.cb-card-dark .cb-range { color: var(--white); }
.cb-unit {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}
.cb-card-dark .cb-unit { color: rgba(255,255,255,0.65); }
.cb-desc {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-600);
}
.cb-card-dark .cb-desc { color: rgba(255,255,255,0.82); }

/* ============ MODEL ============ */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.model-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  font-family: var(--body);
  font-weight: 600;
}
.model-list li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 0.94rem;
  color: var(--gray-600);
  line-height: 1.55;
}
.model-list li:last-child { border-bottom: 1px solid var(--line); }
.model-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.funding-strip {
  margin-top: 3rem;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 8px;
  padding: 1.8rem 2.2rem;
  max-width: 100%;
}
.funding-strip p { font-size: 0.98rem; line-height: 1.6; }
.funding-strip strong { color: var(--green-bright); }

/* ============ DOCUMENTS ============ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.1rem;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10,10,10,0.08);
}
.doc-icon {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.doc-icon svg { width: 100%; height: 100%; }
.doc-card h4 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.doc-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.55; margin-bottom: 1.1rem; }
.doc-link { font-size: 0.84rem; font-weight: 600; color: var(--green-deep); }

/* ============ CONTACT / FORM ============ */
.contact-wrap { margin-top: 3rem; }
.referral-form {
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  padding: 2.8rem;
  max-width: 760px;
}
.form-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 2rem 0 1.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.form-section-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-hint { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 1.2rem; line-height: 1.55; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-bottom: 1.3rem;
}
.form-field, .form-field-full { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.3rem; }
.form-field-full label { font-size: 0.9rem; font-weight: 500; }
.optional { font-weight: 400; color: var(--gray-400); font-size: 0.82rem; }

label { font-size: 0.85rem; font-weight: 600; color: var(--black); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--black);
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}
textarea { resize: vertical; font-family: var(--body); }

.radio-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.radio-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.radio-opt input { width: 16px; height: 16px; accent-color: var(--green); }

.calendar-embed {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  min-height: 600px;
}
.calendar-embed iframe { display: block; }

.btn-submit {
  width: 100%;
  margin-top: 2.2rem;
  padding: 1.05rem;
  font-size: 1rem;
}
.form-footnote {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3.5rem 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-tagline { font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-copy { font-size: 0.78rem; }

/* ============ DOC MODAL ============ */
.doc-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.doc-modal.open { display: flex; }
.doc-modal-inner {
  background: var(--white);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 3rem;
  position: relative;
}
.doc-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
}
.doc-modal-close:hover { color: var(--black); }
.doc-modal-inner h3 {
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  color: var(--green-deep);
}
.doc-modal-inner h4 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.6rem;
  font-family: var(--body);
  font-weight: 600;
}
.doc-modal-inner p, .doc-modal-inner li {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.doc-modal-inner ul { padding-left: 1.2rem; list-style: disc; }
.doc-modal-inner .modal-check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.check-yes { color: var(--green); font-weight: 700; }
.check-open { color: var(--gray-400); font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10,10,10,0.08);
    padding: 0.5rem 2rem 1.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.nav-cta {
    margin-top: 0.8rem;
    text-align: center;
    border-bottom: none;
  }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .scope-grid, .doc-grid { grid-template-columns: 1fr; }
  .meal-layout, .transport-grid, .model-grid, .cb-grid { grid-template-columns: 1fr; }
  .figure-bar-seg span { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 4.2rem 1fr; gap: 1.2rem; }
  .timeline::before { left: 4.6rem; }
  h2 { max-width: none; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 3.5rem; }
  .referral-form { padding: 1.8rem; }
}
