/* ============================================================
   Harbor Senior Connection — Global Styles
   Palette: warm cream, gold, amber/terracotta accent
   Fonts: Zodiak (display) + Work Sans (body) via Fontshare / Google
   ============================================================ */

:root {
  --cream:        #fdf6ed;
  --cream-dark:   #f5e9d6;
  --gold:         #c8922a;
  --gold-light:   #e8b84b;
  --amber:        #d4622a;        /* terracotta accent */
  --amber-light:  #f0845a;
  --bark:         #5c3d1e;        /* deep warm brown */
  --text:         #2e1f0e;        /* near-black warm */
  --text-mid:     #6b4d2a;
  --text-muted:   #9a7d60;
  --white:        #ffffff;
  --shadow:       rgba(92, 61, 30, 0.12);

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  --radius:       12px;
  --radius-lg:    20px;
  --max-width:    1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ================================================================
   NAV
================================================================ */
nav {
  background: var(--cream);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bark);
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-mid);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(46, 31, 14, 0.68) 0%,
    rgba(46, 31, 14, 0.35) 55%,
    rgba(46, 31, 14, 0.10) 100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  max-width: 680px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 40px;
  backdrop-filter: blur(6px);
}
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

/* ================================================================
   FUNDED BY BANNER
================================================================ */
.funded-banner {
  background: var(--bark);
  color: var(--white);
  padding: 14px 24px;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.funded-banner strong {
  color: var(--gold-light);
  font-weight: 700;
}
.funded-banner a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================
   SECTION SHARED
================================================================ */
section { padding: 80px 0; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--bark);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-body {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.75;
}

/* ================================================================
   MISSION
================================================================ */
.mission {
  background: var(--white);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.mission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--gold);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mission-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow);
}
.mission-img-wrap img { height: 480px; object-fit: cover; }
.mission-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(46,31,14,0.7));
  color: var(--white);
  font-size: 0.82rem;
  padding: 32px 20px 16px;
  opacity: 0.9;
}

/* ================================================================
   PARTNERSHIP
================================================================ */
.partnership {
  background: var(--cream-dark);
}
.partnership-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.partnership-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px var(--shadow);
}
.partnership-img-wrap img { height: 400px; object-fit: cover; }
.partnership-quote {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.96rem;
  line-height: 1.7;
}
.partnership-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================
   ACTIVITIES STRIP
================================================================ */
.activities {
  background: var(--white);
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.activity-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow); }
.activity-card img { height: 220px; object-fit: cover; }
.activity-info {
  padding: 20px 22px 24px;
}
.activity-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 8px;
}
.activity-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================================
   VISIT / HOURS / CONTACT
================================================================ */
.visit {
  background: var(--bark);
  color: var(--white);
}
.visit .section-title { color: var(--white); }
.visit .section-eyebrow { color: var(--gold-light); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.visit-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.visit-card-icon {
  width: 44px;
  height: 44px;
  background: var(--amber);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.visit-card-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.visit-card p,
.visit-card address {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  font-style: normal;
  line-height: 1.75;
}
.visit-card a { color: var(--gold-light); }
.hours-table { width: 100%; }
.hours-table tr td { padding: 3px 0; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.hours-table tr td:last-child { text-align: right; color: rgba(255,255,255,0.55); }

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.8;
}
footer strong { color: rgba(255,255,255,0.85); }
footer a { color: var(--gold-light); }

/* ================================================================
   CALENDAR PAGE
================================================================ */
.cal-header {
  background: var(--bark);
  padding: 56px 0 40px;
  text-align: center;
  color: var(--white);
}
.cal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.cal-header p { color: rgba(255,255,255,0.72); font-size: 1rem; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.cal-nav-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.28); }
.cal-month-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  min-width: 200px;
  text-align: center;
}

.cal-section { padding: 56px 0; }
.cal-grid-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* Calendar grid */
.calendar-grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px var(--shadow);
  overflow: hidden;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bark);
}
.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 12px 0;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day {
  min-height: 90px;
  padding: 10px 8px;
  border-right: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
  cursor: default;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.other-month { background: var(--cream); opacity: 0.5; }
.cal-day.today { background: #fff8ee; }
.cal-day.today .day-num { background: var(--amber); color: white; }
.day-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 4px;
}
.cal-event {
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s;
}
.cal-event:hover { opacity: 0.8; }
.event-gold  { background: #fef3d0; color: #7a5200; }
.event-amber { background: #fde8dc; color: #8a2e00; }
.event-green { background: #e2f4e6; color: #1a5c2a; }
.event-blue  { background: #deeaf8; color: #1a3a6b; }

/* Sidebar events */
.cal-sidebar h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 20px;
}
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--gold);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.event-item:hover { transform: translateX(3px); box-shadow: 0 4px 18px var(--shadow); }
.event-item.amber-border { border-left-color: var(--amber); }
.event-item.green-border { border-left-color: #3a9e54; }
.event-item.blue-border  { border-left-color: #2d6fbd; }
.event-date-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.event-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bark);
  margin-bottom: 3px;
}
.event-detail { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
  .mission-grid, .partnership-inner { grid-template-columns: 1fr; gap: 40px; }
  .mission-img-wrap { order: -1; }
  .mission-img-wrap img, .partnership-img-wrap img { height: 300px; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .cal-grid-wrap { grid-template-columns: 1fr; }
  .hero-content { padding: 0 28px; max-width: 100%; }
}
@media (max-width: 600px) {
  .visit-grid, .activities-grid { grid-template-columns: 1fr; }
  .mission-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .hero { height: 70vh; }
}
