/* =========================================================
   House of Unity — Design Tokens
   Deep purple + gold on warm cream, grounded in the
   Upstate SC foothills. Serif display (Fraunces) for warmth
   and character, humanist sans (Public Sans) for readability
   at larger sizes — this audience skews 55+ and their families.
   ========================================================= */

:root {
  --purple-deep:   #362148;
  --purple:        #4E3468;
  --purple-soft:   #7A5C99;
  --gold:          #C79A3D;
  --gold-light:    #E3C578;
  --cream:         #FAF5E9;
  --cream-deep:    #F1E8D4;
  --ink:           #2A2032;
  --ink-soft:      #574A63;
  --white:         #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(54, 33, 72, 0.10);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(199,154,61,0.10) 0%, transparent 40%),
    radial-gradient(circle at 92% 15%, rgba(122,92,153,0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(199,154,61,0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--purple); text-decoration: none; }

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-deep);
  font-weight: 700;
  margin-bottom: 0.9em;
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 7px 16px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(199,154,61,0.35);
}
.section-purple .eyebrow, .hero .eyebrow {
  color: var(--purple-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--purple-deep);
  box-shadow: 0 6px 16px rgba(199,154,61,0.4);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(199,154,61,0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-purple {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline-purple:hover { background: var(--purple); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 130%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}
.logo .accent { color: var(--gold-light); }
.logo-mark { height: 76px; width: auto; display: block; border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }
.site-footer .logo-mark { height: 96px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35)); }
@media (max-width: 640px) {
  .logo-mark { height: 58px; }
  .site-footer .logo-mark { height: 76px; }
}
.logo-text-fallback { display: none; }

/* ---------- Photo gallery (drop real photos into assets/photos/) ---------- */
.photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
  box-shadow: 0 10px 30px rgba(54,33,72,0.15);
  border: 4px solid var(--white);
  outline: 1px solid rgba(199,154,61,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(54,33,72,0.22);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame.photo-missing img { display: none; }
.photo-frame.photo-missing::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.photo-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: var(--purple-deep) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Foothill motif (signature element) ---------- */
.foothill-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: var(--cream);
  padding: 90px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 70px;
}
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(250,245,233,0.85);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(227,197,120,0.35) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-art > div { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-cream {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 15% 20%, rgba(199,154,61,0.07) 0%, transparent 45%);
}
.section-deep {
  background-color: var(--cream-deep);
  background-image: radial-gradient(circle at 85% 30%, rgba(122,92,153,0.08) 0%, transparent 50%);
}
.section-purple {
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: var(--cream);
}
.section-purple h2 { color: var(--white); }
.section-purple p { color: rgba(250,245,233,0.8); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, h2.reveal {
  position: relative;
  padding-bottom: 22px;
}
.section-head h2::after, .section > .container > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
}
.section-head.center h2::after {
  left: 50%; transform: translateX(-50%);
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 34px rgba(54,33,72,0.12);
  border-top: 3px solid var(--gold);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(54,33,72,0.18);
}
.card .icon {
  width: 46px; height: 46px;
  margin-bottom: 18px;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- County list ---------- */
.county-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0; padding: 0;
}
.county-list li {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--purple-deep);
}
@media (max-width: 860px) {
  .county-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Quote / testimonial ---------- */
.quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple-deep);
  font-weight: 500;
  line-height: 1.4;
  max-width: 760px;
  position: relative;
  padding-left: 50px;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: -8px;
  top: -20px;
  font-family: var(--font-display);
  font-size: 5.5rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
}
.quote-source {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding-left: 50px;
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-deep);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-deep);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--gold-light);
  outline-offset: 1px;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--purple-deep);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 14px 36px rgba(199,154,61,0.35);
}
.cta-band h2 { color: var(--purple-deep); margin-bottom: 6px; }
.cta-band p { color: var(--purple-deep); opacity: 0.85; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-deep);
  color: rgba(250,245,233,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--gold-light); font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(250,245,233,0.75); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(250,245,233,0.15);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a::after { transition: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 64px 0 60px;
  text-align: center;
}
.page-hero p { color: rgba(250,245,233,0.8); max-width: 60ch; margin: 0 auto; }

/* ---------- Availability table ---------- */
.avail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.avail-table th, .avail-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--cream-deep);
}
.avail-table th {
  background: var(--cream-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-deep);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.status.open::before { background: #4C8C5B; }
.status.limited::before { background: var(--gold); }
.status.waitlist::before { background: #B85C4C; }
