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

/* Cherry Pines HOA — v2 styling matched to the Cherry Pines brand design:
   deep navy #0D2233, pine green #1A5C3A, warm cream #F5EDD6, gold accents,
   Playfair Display serif headings with green italic accent words. */
:root {
  --hoa-navy: #0d2233;
  --hoa-green: #1a5c3a;
  --hoa-cream: #f5edd6;
  --hoa-cream-bg: #fbf6e9;
  --hoa-gold: #c9a227;
  --hoa-gold-dark: #8a6d1f;
  --hoa-ink: #1b2a36;
  --hoa-card-border: #e8e0c8;
}
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--hoa-ink);
  background: #ffffff;
}
h1, h2, h3, .site-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--hoa-navy);
  font-weight: 700;
}
h1 em, h2 em, h3 em {
  color: var(--hoa-green);
  font-style: italic;
}
a { color: var(--hoa-green); }

/* Header — deep navy bar, gold wordmark, white nav */
.site-header, .ast-primary-header-bar, .main-header-bar {
  background: var(--hoa-navy) !important;
  border-bottom: 3px solid var(--hoa-gold);
}
.site-title a {
  color: var(--hoa-gold) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 1px;
}
.site-description { color: #b9c8d2 !important; }
.main-header-menu a, .ast-builder-menu a, .site-header a.ast-builder-menu-element {
  color: #ffffff !important;
  font-weight: 600;
}
.main-header-menu a:hover, .ast-builder-menu a:hover { color: var(--hoa-gold) !important; }
.ast-mobile-menu-trigger, .menu-toggle { color: #ffffff !important; }

/* Hero — warm cream, centered, serif headline */
.hoa-hero {
  background: linear-gradient(180deg, #fffdf6 0%, var(--hoa-cream) 100%);
  color: var(--hoa-navy);
  text-align: center;
  padding: 72px 24px 60px;
  border-radius: 0 0 18px 18px;
  margin-bottom: 8px;
}
.hoa-pill {
  display: inline-block;
  border: 2px solid var(--hoa-gold);
  color: var(--hoa-gold-dark);
  border-radius: 999px;
  padding: 5px 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.6);
}
.hoa-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 18px 0 10px;
}
.hoa-hero h1 em {
  text-decoration: underline;
  text-decoration-color: #e3d29b;
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}
.hoa-hero p { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.08rem; }
.wp-block-button__link {
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-weight: 600;
  font-size: 1rem;
}
.hoa-btn-gold .wp-block-button__link { background: var(--hoa-gold); color: var(--hoa-navy); }
.hoa-btn-white .wp-block-button__link { background: #ffffff; color: var(--hoa-navy); border: 1px solid #ddd6bd; }
.hoa-btn-green .wp-block-button__link { background: var(--hoa-green); color: #ffffff; }
.hoa-btn-outline .wp-block-button__link { background: transparent; color: #ffffff; border: 2px solid #ffffff; }

/* Sections */
.hoa-section { padding: 44px 0 8px; }
.hoa-section-cream { background: var(--hoa-cream-bg); border-radius: 18px; padding: 44px 28px 20px; margin-top: 36px; }
.hoa-section h2 { text-align: center; font-size: 2.3rem; margin-bottom: 6px; }
.hoa-section .hoa-intro { text-align: center; max-width: 620px; margin: 0 auto 26px; color: #44545f; }

/* Alert / announcement card */
.hoa-alert-card {
  background: #ffffff;
  border: 3px solid #b3402e;
  border-radius: 16px;
  padding: 24px 26px;
  height: 100%;
}
.hoa-alert-card h3 { color: #b3402e; margin-top: 0; }
.hoa-alert-label { color: #b3402e; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; }
.hoa-numbered { counter-reset: hoa-item; list-style: none; padding-left: 0; }
.hoa-numbered li {
  counter-increment: hoa-item;
  margin-bottom: 14px;
  padding-left: 6px;
}
.hoa-numbered li::before {
  content: counter(hoa-item);
  display: inline-block;
  background: #b3402e;
  color: #ffffff;
  border-radius: 50%;
  width: 24px; height: 24px;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.85rem;
}

/* Event cards */
.hoa-event-card {
  background: #ffffff;
  border: 1px solid var(--hoa-card-border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 2px 10px rgba(13, 34, 51, 0.07);
  text-align: center;
}
.hoa-badge {
  display: inline-block;
  background: var(--hoa-navy);
  color: var(--hoa-cream);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 16px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hoa-event-card h3 { margin: 4px 0 6px; }
.hoa-event-meta { color: var(--hoa-green); font-weight: 600; font-size: 0.92rem; }
.hoa-event-card a { font-weight: 700; text-decoration: underline; }

/* Newsletter band — navy to gold gradient */
.hoa-band {
  background: linear-gradient(100deg, var(--hoa-navy) 55%, var(--hoa-gold-dark) 135%);
  color: #ffffff;
  border-radius: 18px;
  padding: 44px 40px;
  margin-top: 44px;
}
.hoa-band h2 { color: #ffffff; text-align: left; }
.hoa-band h2 em { color: var(--hoa-gold); }
.hoa-band p { color: #dbe5ec; }
.hoa-tag {
  display: inline-block;
  border: 1.5px solid var(--hoa-gold);
  color: var(--hoa-gold);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 8px;
}
.hoa-form-card {
  background: #ffffff;
  color: var(--hoa-ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.hoa-form-card h3 { margin-top: 0; }
.hoa-small { font-size: 0.82rem; color: #6b7a85; }

/* Resource cards */
.hoa-res-card {
  background: #ffffff;
  border: 1px solid var(--hoa-card-border);
  border-radius: 16px;
  padding: 24px 20px;
  height: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(13, 34, 51, 0.05);
}
.hoa-res-card h3 { margin-top: 0; font-size: 1.25rem; }
.hoa-res-card a { font-weight: 600; text-decoration: none; }
.hoa-res-card a:hover { text-decoration: underline; }

/* Board section */
.hoa-board {
  background: #ffffff;
  border: 1px solid var(--hoa-card-border);
  border-radius: 16px;
  padding: 30px 34px;
  margin-top: 44px;
  box-shadow: 0 2px 8px rgba(13, 34, 51, 0.05);
}
.hoa-board h2 { text-align: center; }

/* Quick-link cards (kept from v1, recolored) */
.hoa-cards { gap: 20px; margin-bottom: 40px; }
.hoa-card {
  background: var(--hoa-cream-bg);
  border-top: 4px solid var(--hoa-green);
  border-radius: 6px;
  padding: 22px 22px 10px;
  height: 100%;
  box-shadow: 0 1px 4px rgba(13, 34, 51, 0.10);
}
.hoa-card h3 { margin-top: 0; }
.hoa-card a { font-weight: 600; text-decoration: none; }
.hoa-card a:hover { text-decoration: underline; }

/* News list */
.wp-block-latest-posts li { border-bottom: 1px solid #e3e8ec; padding: 10px 0; }
.wp-block-latest-posts a { color: var(--hoa-navy); font-weight: 600; }

/* Footer — deep navy, gold rule */
.site-footer, footer.site-footer {
  background: var(--hoa-navy) !important;
  color: #c3d2db;
  border-top: 3px solid var(--hoa-gold);
}
.site-footer a { color: #ffffff; }
.ast-footer-copyright, .site-footer .ast-builder-grid-row { color: #c3d2db; }
