/* ============================================================
   Anndell Park Apartments — shared stylesheet (site.css)
   OWNED BY ORCHESTRATOR. Shared tokens + header/nav/footer +
   shared motion. Page subagents append page-scoped rules ONLY,
   each under a banner comment reading: page: <slug>
   Do NOT edit the shared sections above the page banners.
   ============================================================ */

:root {
  --navy: #0a2a6c;
  --navy-dark: #08215a;
  --navy-deep: #06184a;
  --red: #cc1618;
  --red-dark: #a5100f;
  --ink: #23303f;
  --muted: #5a6472;
  --bg: #ffffff;
  --bg-alt: #f1f2f0;
  --card: #ffffff;
  --line: #e2e5ea;
  --white: #ffffff;

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --radius: 10px;
  --radius-btn: 6px;
  --shadow-sm: 0 2px 10px rgba(10, 42, 108, 0.08);
  --shadow-md: 0 8px 30px rgba(10, 42, 108, 0.12);
  --space: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--red);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .eyebrow { color: rgba(255, 255, 255, 0.8); }
.section-navy h1,
.section-navy h2,
.section-navy h3 { color: #fff; }
.section-red { background: var(--red); color: #fff; }
.section-red .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-red h1,
.section-red h2,
.section-red h3 { color: #fff; }

.rule {
  width: 70px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin: 16px 0 24px;
}
.section-navy .rule,
.section-red .rule { background: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-pill { border-radius: 999px; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: transparent;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
/* Pages with no image hero (e.g. blog articles) keep a solid bar so the
   nav stays readable against white. */
.site-header.site-header--solid {
  position: static;
  background: var(--navy);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
}
.brand {
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  color: #fff;
  max-width: 210px;
}
.brand span { display: block; }
.main-nav { display: flex; align-items: center; gap: 10px; }
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 6px 10px;
}
.nav-pill a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 50px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-pill a:hover { background: rgba(255, 255, 255, 0.25); }
.nav-pill a.active { color: var(--red); }
.nav-g {
  width: 33px;
  height: 33px;
  display: block;
  flex: none;
  transition: transform 0.2s ease;
}
.nav-g img { width: 33px; height: 33px; display: block; }
.nav-g:hover { transform: scale(1.08); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 6px;
}
.footer-grid .rule { margin: 10px 0 18px; width: 46px; height: 2px; }
.footer-col a { color: rgba(255, 255, 255, 0.82); display: block; margin-bottom: 8px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255, 255, 255, 0.72); margin: 0 0 8px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 44px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.85); }
.footer-bottom a:hover { color: #fff; }
.footer-g {
  width: 33px; height: 33px; display: block;
  margin-bottom: 24px;
}
.footer-g img { width: 33px; height: 33px; display: block; }

/* ---------------- Shared motion ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* On-load reveals: animation always runs, element always ends visible.
   Never sets a persistent hidden state in the stylesheet. */
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-in { animation: fadeIn 0.9s ease both; }
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }
.d4 { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-in { animation: none; }
  .btn { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------- Responsive shared ---------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav .nav-pill {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    background: var(--navy-dark);
    padding: 12px 16px;
    gap: 2px;
  }
  .main-nav .nav-pill.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
