/* ── Shared site styles — José Berra for North Castle Town Board ── */

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

:root {
  --navy:    #002868;
  --red:     #B22234;
  --white:   #fdfcf9;
  --offwhite:#f4f1ea;
  --ink:     #181820;
  --muted:   #5a5a6a;
  --border:  #ddd9d0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}


/* ─── NAV ─── */
header {
  position: static;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 68px;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand-elect {
  display: none;
}

.nav-brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.nav-brand-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  line-height: 1;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links li a {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 16px;
  transition: color 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links li a:hover { color: var(--white); }
.nav-links li a.active { color: var(--white); border-bottom: 2px solid var(--red); }
.nav-links li + li { border-left: 1px solid rgba(255,255,255,0.15); }

.nav-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 18px;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: #8e1a28; }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE ABOUT ─── */
@media (max-width: 600px) {
  .about { padding: 52px 24px 64px; }
  .about-eyebrow {
    justify-content: center;
    text-align: center;
  }
  .about-eyebrow::before,
  .about-eyebrow::after { display: none; }
}

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .nav-cta {
    display: inline-block;
    margin-left: auto;
    font-size: 12px;
    padding: 8px 14px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  .nav-hamburger { display: flex; }

  /* ── Full-screen menu ── */
  header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: var(--navy);
    border-bottom: none;
    padding: 0 0 80px;
    z-index: 500;
    gap: 0;
  }
  header.nav-open .nav-links li { width: 100%; }
  header.nav-open .nav-links li + li {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  header.nav-open .nav-links li a {
    display: block;
    padding: 20px 48px;
    font-size: 22px;
    text-align: center;
    width: 100%;
  }
  header.nav-open .nav-cta {
    position: fixed;
    bottom: 36px;
    left: 40px; right: 40px;
    text-align: center;
    font-size: 14px;
    padding: 14px 24px;
    z-index: 501;
    margin-left: 0;
  }
  header.nav-open .nav-hamburger {
    position: fixed;
    top: 19px;
    right: 20px;
    z-index: 502;
  }
}

/* ─── STRIPE ─── */
.stripe {
  height: 5px;
  background: var(--red);
}

/* ─── INNER PAGE LAYOUT ─── */
.page-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 40px 88px;
}

.page-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 36px;
  text-wrap: balance;
}

.page-body p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 22px;
  text-wrap: pretty;
}

.page-body p:last-child { margin-bottom: 0; }

.page-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.page-body h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 32px 0 10px;
}

.page-body ol {
  padding-left: 28px;
  margin-bottom: 22px;
}

.page-body ol li {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body a:hover { color: var(--red); }

.note {
  background: var(--offwhite);
  border-left: 3px solid var(--border);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin: 24px 0;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--red);
  padding: 18px 40px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-text {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.02em;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}
