/* ============================================================
   America 250 — Town of North Hempstead
   Shared stylesheet for all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --parchment-bg:  url('parchmentBG.jpg'); /* file must be in same directory as CSS */
  --parchment:     #f7eecc;
  --parchment-mid: #f0e4b0;
  --parchment-drk: #dfd09a;
  --ink:           #1a1008;
  --ink-mid:       #2e1e0a;
  --ink-light:     #5a4020;
  --red:           #7a1515;
  --blue:          #162f50;
  --gold:          #a8780a;
  --gold-lt:       #c49020;
  --serif:  'Playfair Display', Georgia, serif;
  --body:   'EB Garamond', Georgia, serif;
  --display:'Cormorant Garamond', Georgia, serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }

/* ── BASE ── */
body {
  background-color: #e8d9a8;
  background-image: var(--parchment-bg);
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.85;
  min-height: 100vh;
}

/* Darkening overlay so text stays legible on the pale parchment centre */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(80, 50, 10, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* Everything above the overlay */
nav, header, main, section, footer, .video-section, .back-bar {
  position: relative;
  z-index: 1;
}

/* ── NAVIGATION ── */
nav {
  background: rgba(22, 47, 80, 0.97);
  backdrop-filter: blur(4px);
  padding: 11px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
nav .town-name {
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumb { display: flex; align-items: center; gap: 10px; }
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb .sep { color: rgba(255,255,255,0.28); font-size: 16px; }
.breadcrumb .current { color: rgba(255,255,255,0.95); font-size: 16px; font-family: var(--body); }

/* ── HEADER / HERO ── */
header {
  background: #fff;
  border-top: 4px solid var(--gold);
  border-bottom: 3px double var(--gold);
  padding: 24px 48px 20px;
  text-align: center;
  position: relative;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}
.logo-placeholder {
  width: 56px; height: 56px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(168,120,10,0.06);
  color: var(--gold);
  font-size: 16px; font-family: var(--body);
  text-align: center; padding: 6px; line-height: 1.4;
}
.logo-placeholder img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.logo-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.eyebrow {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
h1.page-title {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(255,240,200,0.6), 0 2px 8px rgba(60,35,5,0.18);
}
h1.page-title em { font-style: italic; color: var(--ink-mid); }
.page-tagline {
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-mid);
  margin-top: 2px;
}

.header-rule {
  display: flex; align-items: center; gap: 14px;
  max-width: 320px; margin: 12px auto 0;
}
.header-rule::before, .header-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.header-rule::after { background: linear-gradient(to left, transparent, var(--gold)); }
.header-rule span { color: var(--gold); font-size: 16px; }

/* ── PAGE NAV ── */
.page-nav {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}
.page-nav a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.page-nav a:first-child { border-left: 1px solid rgba(255,255,255,0.08); }
.page-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.page-nav a.active {
  color: var(--gold-lt);
  background: rgba(168,120,10,0.12);
}
.page-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold-lt);
}

/* ── ORNAMENTAL DIVIDER ── */
.ornament {
  display: flex; align-items: center; gap: 18px;
  margin: 52px 0; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  opacity: .7;
}
.ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  text-align: center;
}

/* ── MAIN WRAPPER ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 48px 88px;
}

/* Cards, pull quotes, doc links all have their own backgrounds,
   so main itself just needs breathing room — no extra overlay needed. */

/* ── VIDEO SECTION ── */
.video-section {
  background: rgba(22, 18, 10, 0.92);
  border-top: 2px solid rgba(168,120,10,.4);
  border-bottom: 2px solid rgba(168,120,10,.4);
}
.video-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 48px 44px;
}
.video-label {
  color: var(--gold-lt);
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}
.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #080604;
  border: 1px solid rgba(168,120,10,.35);
  position: relative;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  border: 2px dashed rgba(168,120,10,.4);
  color: rgba(255,255,255,.45);
  font-family: var(--body); font-size: 16px;
  text-align: center; padding: 24px;
  line-height: 1.6;
}
.play-icon {
  width: 64px; height: 64px;
  border: 2px solid rgba(168,120,10,.65);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.play-icon::after {
  content: '';
  border-left: 22px solid rgba(168,120,10,.85);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}
.video-caption {
  color: rgba(255,255,255,.38);
  font-family: var(--body);
  font-style: italic;
  font-size: 16px;
  text-align: center;
  margin-top: 14px;
}

/* ── DOCUMENT / CTA LINKS ── */
.document-link {
  display: flex; align-items: center; gap: 24px;
  background: rgba(22,47,80,0.88);
  backdrop-filter: blur(2px);
  color: #fff;
  padding: 28px 32px;
  text-decoration: none;
  border-left: 4px solid var(--gold);
  margin-bottom: 4px;
  transition: background .2s;
}
.document-link:hover { background: rgba(30,64,110,0.95); }
.doc-icon { font-size: 30px; flex-shrink: 0; }
.doc-content { flex: 1; }
.doc-label { font-size: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); font-family: var(--body); margin-bottom: 3px; }
.doc-title { font-family: var(--serif); font-size: 24px; color: #fff; line-height: 1.25; }
.doc-desc { font-family: var(--body); font-size: 16px; color: rgba(255,255,255,.65); margin-top: 4px; line-height: 1.55; }
.doc-arrow { color: var(--gold-lt); font-size: 22px; flex-shrink: 0; }

/* ── PULL QUOTE ── */
.pull-quote {
  background: rgba(240,228,176,0.55);
  backdrop-filter: blur(2px);
  border-left: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  padding: 36px 44px;
  margin: 40px 0;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 72px;
  color: var(--gold);
  line-height: 1;
  padding: 0 10px;
}
.pull-quote p {
  font-family: var(--display);
  font-size: 25px; font-style: italic;
  color: var(--ink-mid);
  line-height: 1.6; margin: 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--body);
  font-size: 16px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 16px;
  font-style: normal;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3px;
  margin-bottom: 56px;
}
.card {
  background: rgba(247,238,204,0.72);
  backdrop-filter: blur(4px);
  padding: 40px 34px;
  border: 1px solid rgba(168,120,10,.22);
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s, transform .2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s;
}
.card:hover { background: rgba(240,228,176,0.88); transform: translateY(-3px); }
.card:hover::before { transform: scaleY(1); }
.card-icon { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.card-label { font-size: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); font-family: var(--body); }
.card h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.card p { font-size: 19px; color: var(--ink-mid); line-height: 1.65; flex: 1; }
.card-link { font-family: var(--body); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.card-link::after { content: ' →'; }

/* ── PHOTO BLOCK ── */
.photo-block {
  margin: 40px 0;
  border: 1px solid rgba(168,120,10,.28);
  box-shadow: 0 4px 20px rgba(42,30,14,.12);
}
.photo-block img { width: 100%; display: block; }
.photo-block-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(240,228,176,.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  border: 2px dashed rgba(168,120,10,.35);
  color: var(--ink-light);
  font-size: 16px; font-family: var(--body);
  text-align: center; padding: 20px; line-height: 1.5;
}
.photo-caption {
  padding: 12px 18px;
  background: rgba(168,120,10,.12);
  font-family: var(--body);
  font-size: 16px; font-style: italic;
  color: var(--ink-light);
  border-top: 1px solid rgba(168,120,10,.2);
  line-height: 1.55;
}

/* ── SOTT CALLOUT ── */
.sott-callout {
  display: flex; align-items: flex-start; gap: 36px;
  background: rgba(22,47,80,0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 44px 48px;
  border-left: 4px solid var(--gold);
  text-decoration: none;
  transition: background .2s;
  position: relative; overflow: hidden;
  margin-bottom: 8px;
}
.sott-callout:hover { background: rgba(30,64,110,0.97); }
.sott-callout::after {
  content: '"';
  position: absolute; right: 32px; top: -24px;
  font-family: var(--display); font-size: 200px;
  color: rgba(255,255,255,.04); line-height: 1;
  pointer-events: none;
}
.sott-icon { font-size: 38px; flex-shrink: 0; margin-top: 4px; }
.sott-content { flex: 1; }
.sott-label { font-size: 16px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); font-family: var(--body); margin-bottom: 8px; }
.sott-callout h3 { font-family: var(--serif); font-size: 28px; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.sott-callout p { font-size: 19px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.65; }
.sott-arrow { align-self: center; color: var(--gold-lt); font-size: 26px; flex-shrink: 0; }

/* ── BACK BAR + FOOTER ── */
.back-bar {
  background: rgba(42,30,14,0.88);
  padding: 18px 48px; text-align: center;
}
.back-bar a {
  color: rgba(255,255,255,.6);
  text-decoration: none; font-family: var(--body);
  font-size: 16px; letter-spacing: .07em;
  transition: color .15s;
}
.back-bar a:hover { color: var(--gold-lt); }

footer {
  background: rgba(22, 14, 4, 0.95);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 28px 48px;
  font-family: var(--body); font-size: 16px;
  border-top: 1px solid rgba(168,120,10,.3);
}
footer a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--gold-lt); }
.footer-star { color: var(--gold); font-size: 16px; margin-bottom: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--body);
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  transition: background .2s;
  border: none; cursor: pointer;
}
.btn:hover { background: #5c0f0f; }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--red); color: var(--red);
  font-family: var(--body);
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 24px;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { background: var(--red); color: #fff; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp .7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {

  /* Top utility nav: stack vertically, center-align */
  nav:not(.page-nav) {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    text-align: center;
  }
  nav .town-name { font-size: 14px; letter-spacing: 0.07em; }
  .breadcrumb { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .breadcrumb a,
  .breadcrumb .current,
  .breadcrumb .sep { font-size: 13px; }

  /* Page-nav: allow wrapping so no links get cut off */
  .page-nav { flex-wrap: wrap; }
  .page-nav a { padding: 11px 16px; font-size: 13px; letter-spacing: 0.12em; }

  header { padding: 36px 20px 28px; }
  main { padding: 40px 20px 60px; }
  .video-container { padding: 36px 20px; }
  .sott-callout { flex-direction: column; padding: 32px 24px; gap: 16px; }
  .sott-arrow { display: none; }
  .document-link { flex-direction: column; gap: 12px; }
  .doc-arrow { display: none; }
}

/* ── SMALL PHONE (≤420px) ── */
@media (max-width: 420px) {
  nav .town-name { font-size: 13px; letter-spacing: 0.05em; }

  /* On very small screens hide intermediate breadcrumb steps,
     keep just the site root link and the current page label */
  .breadcrumb a:not(:first-child),
  .breadcrumb .sep { display: none; }
  .breadcrumb .current { font-size: 13px; }

  .page-nav a { padding: 10px 12px; font-size: 12px; letter-spacing: 0.09em; }
}
