/* Normandy Isles HOA — community website styles
   Plain, dependency-free CSS. Mobile-first, responsive. */

:root {
  --brand: #0e4d5c;
  --brand-dark: #0a3944;
  --brand-light: #2a9ec4;
  --accent: #b3122b;
  --accent-dark: #8d0e21;
  --ink: #1f2933;
  --muted: #566270;
  --line: #e2e8ec;
  --surface: #ffffff;
  --surface-alt: #f4f7f8;
  --band: #f6c445;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 45, 55, 0.12);
  --shadow-sm: 0 2px 8px rgba(15, 45, 55, 0.08);
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--brand-dark);
  margin: 0 0 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.cta-panel {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-panel .btn {
  margin-top: 8px;
  min-width: 200px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-light);
  margin: 0 0 12px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  font-size: 1rem;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn--outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-dark);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.brand__name {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__tag {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brand-light);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav__links a:hover {
  background: var(--surface-alt);
  color: var(--brand);
}
.nav__links a[aria-current="page"] {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--brand-dark);
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(10, 57, 68, 0.92) 0%,
    rgba(10, 57, 68, 0.72) 45%,
    rgba(10, 57, 68, 0.45) 100%
  );
}
.hero__inner {
  padding: 96px 0;
  max-width: 640px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 14px;
}
.hero p {
  font-size: 1.2rem;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero--compact .hero__inner {
  padding: 66px 0;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  padding: 22px 22px 26px;
}
.card__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Band ---------- */
.band {
  background: var(--band);
  color: #3a2c00;
  text-align: center;
  padding: 40px 0;
}
.band h2 {
  color: #3a2c00;
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
}

/* ---------- Countdown ---------- */
.countdown {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.countdown h2 {
  color: #fff;
  margin: 0 0 20px;
  font-size: 1.9rem;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.countdown__cell {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 16px 8px;
}
.countdown__num {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}
.countdown__unit {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-top: 6px;
}
.countdown__note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* ---------- Notice ---------- */
.notice {
  border-left: 5px solid var(--accent);
  background: #fff4f5;
  border-radius: 10px;
  padding: 18px 22px;
  max-width: 760px;
  margin: 0 auto 34px;
  color: #6a1220;
  font-weight: 600;
}

/* ---------- Meeting facts ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.facts li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 26px;
  text-align: center;
  min-width: 150px;
  box-shadow: var(--shadow-sm);
}
.facts strong {
  display: block;
  font-size: 1.3rem;
  color: var(--brand);
}
.facts span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Letter image ---------- */
.letter {
  max-width: 560px;
  margin: 0 auto;
}
.letter img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---------- Embeds ---------- */
.embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
.embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.embed--form iframe {
  height: 900px;
}
.embed--folder iframe {
  height: 520px;
}
.embed--map iframe {
  height: 420px;
}
.embed__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

/* ---------- Address / venue ---------- */
.address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.6;
}
.address strong {
  color: var(--brand);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 54px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer__brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 12px 20px 20px;
  }
  .nav__menu.is-open {
    display: block;
  }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__links a {
    padding: 14px 12px;
    border-radius: 8px;
  }
  .nav__cta {
    margin: 12px 0 0;
    width: 100%;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 46px 0;
  }
  .hero__inner {
    padding: 64px 0;
  }
  .countdown__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .embed--form iframe {
    height: 1200px;
  }
}

/* ---------- Newspaper page ---------- */
.hero--newspaper::after {
  background: linear-gradient(
    120deg,
    rgba(8, 40, 48, 0.94) 0%,
    rgba(10, 57, 68, 0.78) 48%,
    rgba(10, 57, 68, 0.55) 100%
  );
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin-bottom: 0.6em;
}
.prose p {
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 1.15em;
}
.prose p:last-child {
  margin-bottom: 0;
}

.edition-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.edition-card__body {
  padding: 28px 28px 32px;
}
.edition-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.edition-card__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.edition-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}
.edition-card p {
  margin: 0 0 22px;
  color: var(--muted);
}
.edition-card .btn {
  min-width: 220px;
}

@media (max-width: 520px) {
  .edition-card__body {
    padding: 22px 20px 26px;
  }
  .edition-card .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
