/* ======================================================================
   STERLING ESTATES SENIOR LIVING — Shared stylesheet
   Color palette matches your original site (black + gold + blue)
   ====================================================================== */

:root {
  --black: #0A0E1A;
  --black-soft: #14192A;
  --black-mid: #1E2438;
  --gold: #D4A83E;
  --gold-light: #E8C45A;
  --gold-dark: #A8832E;
  --blue: #2548E6;
  --blue-dark: #1A33B8;
  --blue-light: #4B6CF5;
  --white: #FFFFFF;
  --cream: #F9F6EF;
  --ivory: #F2ECDE;
  --text: #1F2433;
  --text-muted: #5A5F70;
  --border: rgba(10, 14, 26, 0.08);
  --shadow-sm: 0 2px 8px rgba(10, 14, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 14, 26, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 14, 26, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--black);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 16px;
  letter-spacing: 0.02em;
}
.announce strong { color: var(--gold-light); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(212, 168, 62, 0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}
@media (max-width: 900px) {
  .logo-img { height: 48px; }
}
/* Legacy classes kept for back-compat — hidden since logo image now contains wordmark */
.logo-mark, .logo-text { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--cream); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white) !important;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--blue);
  color: var(--white) !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold {
  background: var(--gold);
  color: var(--black) !important;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold) !important;
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--black) !important; }
.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover { background: var(--white); color: var(--black) !important; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Section base ---------- */
section { padding: 96px 0; }
.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 14px; }

/* ---------- Openings badge ---------- */
.openings-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.openings-badge.available { background: rgba(30, 175, 100, 0.12); color: #0F7A45; border: 1px solid rgba(30, 175, 100, 0.3); }
.openings-badge.limited { background: rgba(212, 168, 62, 0.18); color: var(--gold-dark); border: 1px solid rgba(212, 168, 62, 0.35); }
.openings-badge.full { background: rgba(37, 72, 230, 0.12); color: var(--blue-dark); border: 1px solid rgba(37, 72, 230, 0.25); }
.openings-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.openings-badge.available .dot { background: #1EAF64; animation: pulse 2s infinite; }
.openings-badge.limited .dot { background: var(--gold); animation: pulse 2s infinite; }
.openings-badge.full .dot { background: var(--blue); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 175, 100, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(30, 175, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 175, 100, 0); }
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #F2ECDE, #F2ECDE 10px, #EADFC6 10px, #EADFC6 20px);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 24px;
  font-weight: 600;
  border: 2px dashed var(--gold);
}
.img-placeholder small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 6px;
  font-size: 0.78rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
footer p, footer li { color: rgba(255, 255, 255, 0.7); }
footer h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer ul li { padding: 6px 0; }
footer a { color: rgba(255, 255, 255, 0.7); }
footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212, 168, 62, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
.footer-licenses { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 8px; }

/* ---------- Floating call button (mobile) ---------- */
.floating-call {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  align-items: center;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 8px 0;
    border-top: 1px solid rgba(212, 168, 62, 0.2);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a {
    display: block;
    padding: 16px 24px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--cream);
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: rgba(212, 168, 62, 0.08);
    color: var(--gold);
  }
  .mobile-toggle { display: block; padding: 6px 10px; }
  .nav-cta { padding: 10px 16px; font-size: 0.88rem; }
  .nav-cta .cta-label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .floating-call { display: inline-flex; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
