/* ============================================================
   BLVH Residents Information
   Best Life Victor Harbor Residents Information
   Run by Best Life Victor Harbor Social Club Incorporated
   — independent of the community's developer/operator.

   Design direction: "Sea Glass & Driftwood" — a genuinely
   distinct identity (own palette, own type pairing), tuned for
   senior readability: larger type, high contrast, big tap targets.
   ============================================================ */
:root {
  /* ---- Colour ---- */
  --sea-glass:        #4C8C82;  /* primary — header, headings, links */
  --sea-glass-dark:    #35665E;
  --sea-glass-tint:    #E8F1EF;  /* section backgrounds */
  --driftwood-gold:    #D9A441;  /* accent — CTAs, pins, highlights */
  --driftwood-gold-dark:#B37E2E;
  --sand-cream:        #FBF3E8;  /* page background */
  --card:              #FFFFFF;
  --ink:               #2C241A;  /* body text — high contrast on sand-cream */
  --ink-soft:          #6B5A45;
  --border:            #E8D8C2;
  --focus:             #1D5FA3;

  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-base: 21px;
  --text-lg: 1.3rem;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(44, 36, 26, 0.10);
  --tap-min: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea-glass-dark); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sea-glass-dark);
  line-height: 1.2;
  margin: 0 0 0.4em 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
h3 { font-size: 1.4rem; margin-bottom: 0.25em; }

p { margin: 0 0 1em 0; }

.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 24px;
  min-height: var(--tap-min);
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--driftwood-gold); color: #3A2A0C; }
.btn-primary:hover { background: var(--driftwood-gold-dark); color: #fff; }

.btn-secondary { background: transparent; border-color: var(--sea-glass); color: var(--sea-glass-dark); }
.btn-secondary:hover { background: var(--sea-glass); color: #fff; }

/* Solid teal — for a CTA that needs to stand out against warm
   (gold/sand/peach) backgrounds where .btn-primary's gold would blend in */
.btn-teal { background: var(--sea-glass); color: #fff; }
.btn-teal:hover { background: var(--sea-glass-dark); color: #fff; }

/* ---------- Eyebrow (small caps label above a heading) ---------- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--driftwood-gold-dark);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sand-cream);
  border-bottom: 3px solid var(--sea-glass);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}

.site-title .badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sea-glass);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.site-title .full-name { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

nav.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }

nav.main-nav a {
  color: var(--sea-glass-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: 1.05rem;
}

nav.main-nav a:hover { background: var(--sea-glass-tint); }

/* ---------- Hero ---------- */
.hero { background: var(--sea-glass); padding: 44px 0 0 0; }
.hero .container { padding-bottom: 44px; }
.hero-intro h1 { color: #fff; }
.hero-intro p { color: #E4F1EE; font-size: var(--text-lg); max-width: 58ch; }

.today-strip {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) { .today-strip { grid-template-columns: 1fr; } }

.today-col .eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--driftwood-gold-dark);
  margin-bottom: 8px;
  display: block;
}

/* ---------- Sections ---------- */
section.page-section { padding: 60px 0; border-top: 1px solid var(--border); }
section.alt-bg { background: var(--sea-glass-tint); }

.section-heading { margin-bottom: 30px; }
.section-heading p { color: var(--ink-soft); margin: 0; }

/* ---------- Signature card: driftwood marker ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--driftwood-gold);
  border: 3px solid var(--sand-cream);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.card.pinned { border-color: var(--driftwood-gold); border-width: 2px; }

.card .meta { font-size: 0.95rem; font-weight: 800; color: var(--sea-glass-dark); margin-bottom: 6px; }

.pin-flag {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3A2A0C;
  background: var(--driftwood-gold);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Events ---------- */
.event-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
@media (max-width: 520px) { .event-row { grid-template-columns: 1fr; gap: 8px; } }

.event-date-block { background: var(--sea-glass); color: #fff; border-radius: 10px; padding: 12px 8px; text-align: center; }
.event-date-block .day { font-size: 1.8rem; font-weight: 800; display: block; }
.event-date-block .month { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-time-loc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Contacts ---------- */
/* minmax floor kept narrow enough to avoid horizontal overflow on ~320px phones */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card .role { color: var(--ink-soft); font-size: 1rem; margin-bottom: 12px; }
.contact-card a { display: flex; align-items: center; min-height: var(--tap-min); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Photo placeholder ---------- */
.photo-slot {
  background: var(--sea-glass-tint);
  border: 2px dashed var(--sea-glass);
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--sea-glass-dark);
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

/* ---------- About / entity notice ---------- */
.entity-notice {
  background: var(--sea-glass-tint);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-top: 40px;
}

/* ---------- Footer ---------- */
footer { background: var(--sea-glass-dark); color: #E4F1EE; padding: 36px 0; font-size: 1rem; }
footer a { color: #fff; }

.state-msg { color: var(--ink-soft); font-style: italic; }
.state-msg.error { color: #8A3B2E; font-style: normal; font-weight: 700; }
