/* ============================================================
   Agape Respite Center — Design System
   ============================================================ */

:root {
  /* Color */
  --bg: #f5f0e6;            /* warm cream */
  --bg-card: #fbf8f1;       /* lighter cream */
  --bg-deep: #1e2a25;       /* deep evergreen near-black */
  --ink: #1c1b18;           /* near-black warm */
  --ink-2: #3a3a35;
  --ink-mute: #6b6960;
  --line: #e3dcca;
  --line-2: #d6cdb5;
  --primary: #2c4a3e;       /* evergreen */
  --primary-deep: #1e342b;
  --primary-soft: #cfd9d2;
  --accent: #c25a3a;        /* terracotta */
  --accent-deep: #9a4528;
  --sand: #e6d9bf;
  --gold: #c79b3f;

  /* Type */
  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Display + headings */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; font-weight: 300; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }
p.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-deep);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-card);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.005em;
  font-weight: 500;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(28, 27, 24, 0.04); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--bg-card) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: background .15s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--primary-deep) !important; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink);
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--bg-card); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-accent { background: var(--accent); color: var(--bg-card); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 14px 0; }
.btn-ghost .arr { transition: transform .2s ease; }
.btn-ghost:hover .arr { transform: translateX(4px); }

/* ============================================================
   Page chrome
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 96px) 0; }
.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ============================================================
   Page header (for inner pages)
   ============================================================ */
.page-head {
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head .container { display: grid; gap: 24px; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 56ch; }
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

/* ============================================================
   Image placeholder (drop real photos here later)
   ============================================================ */
.photo {
  position: relative;
  background: var(--sand);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(28,27,24,0.05) 0 1px,
      transparent 1px 14px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.photo::after {
  content: attr(data-label);
  background: rgba(251, 248, 241, .9);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1; }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.photo:has(img)::after { content: none; }

.photo--ocean {
  background:
    linear-gradient(180deg, #b6c9c4 0%, #8aa39e 60%, #6e8a86 100%);
  background-image:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.06) 0 1px,
      transparent 1px 6px),
    linear-gradient(180deg, #b6c9c4 0%, #8aa39e 60%, #6e8a86 100%);
  color: rgba(255,255,255,.9);
}
.photo--ocean::after {
  background: rgba(30,42,37,.6);
  border-color: rgba(255,255,255,.2);
  color: #fbf8f1;
}
.photo--sand {
  background: linear-gradient(180deg, #e6d9bf 0%, #d4c39b 100%);
}
.photo--forest {
  background:
    linear-gradient(180deg, #34503f 0%, #1e2a25 100%);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 12px),
    linear-gradient(180deg, #34503f 0%, #1e2a25 100%);
  color: rgba(255,255,255,.85);
}
.photo--forest::after {
  background: rgba(30,42,37,.6);
  border-color: rgba(255,255,255,.2);
  color: #fbf8f1;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  color: #d9cfb8;
  padding: clamp(56px, 7vw, 96px) 0 32px;
  margin-top: clamp(64px, 8vw, 120px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand {
  display: grid;
  gap: 16px;
  max-width: 36ch;
}
.footer-brand h3 {
  color: #fbf8f1;
  font-family: var(--serif);
  font-size: 24px;
}
.footer-brand p { color: #a8a08c; font-size: 14px; line-height: 1.55; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8a08c;
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: #d9cfb8;
  text-decoration: none;
  font-size: 14.5px;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fbf8f1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 64px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #87806e;
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   Utility
   ============================================================ */
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.mute { color: var(--ink-mute); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.uppercase-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card h3 { margin-bottom: 8px; }

/* Big quote */
.pullquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
.pullquote::before {
  content: "“";
  display: block;
  font-size: 1.6em;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 8px;
}
