/* ============================================================
   Grenelefe Country HOA — Main Stylesheet
   ============================================================ */

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

:root {
  --forest: #2d4a2d;
  --forest-mid: #3d6b3d;
  --sage: #7a9e7e;
  --cream: #f7f4ee;
  --warm-white: #fdfaf5;
  --gold: #b8903a;
  --gold-light: #d4a94e;
  --text-dark: #1e2e1e;
  --text-mid: #4a5e4a;
  --text-light: #7a8e7a;
  --border: #dde5dd;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.25;
}
.nav-logo span { display: block; font-size: 0.7rem; color: #a0bda0; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Lato', sans-serif; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #c8dcc8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: #c8dcc8; font-size: 1.4rem; cursor: pointer; padding: 0.5rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 55%, #4a7a50 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184,144,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(122,158,126,0.15) 0%, transparent 55%);
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(184,144,58,0.5);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 2px;
  margin-bottom: 1.4rem;
  font-weight: 600;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 1rem;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p { color: #b8d0b8; font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.2rem; font-weight: 300; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-light); font-weight: 700; }
.stat-label { font-size: 0.72rem; color: #8aaa8a; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #c8dcc8;
  border: 1.5px solid rgba(200,220,200,0.45);
  padding: 0.8rem 1.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-logout {
  background: transparent;
  border: 1px solid rgba(200,220,200,0.3);
  color: #8aaa8a;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-logout:hover { border-color: #f09090; color: #f09090; }

/* ── SECTIONS SHARED ── */
section { padding: 4.5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 0.6rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--forest); font-weight: 700; }
.section-header p { color: var(--text-mid); margin-top: 0.6rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.divider { width: 48px; height: 3px; background: var(--gold); margin: 1rem auto 0; border-radius: 2px; }

/* ── ANNOUNCEMENTS ── */
#announcements { background: var(--cream); }
.announce-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.announce-card { background: #fff; border-radius: 6px; border: 1px solid var(--border); padding: 1.6rem; transition: box-shadow 0.2s, transform 0.2s; }
.announce-card:hover { box-shadow: 0 6px 24px rgba(45,74,45,0.1); transform: translateY(-2px); }
.announce-card.urgent { border-left: 4px solid var(--gold); }
.announce-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem; }
.announce-tag.urgent-tag { color: var(--gold); }
.announce-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.announce-card p { font-size: 0.9rem; color: var(--text-mid); }
.announce-date { font-size: 0.75rem; color: var(--text-light); margin-top: 1rem; }

/* ── EVENTS ── */
#events { background: var(--warm-white); }
.events-list { display: flex; flex-direction: column; gap: 1rem; max-width: 780px; margin: 0 auto; }
.event-row { display: flex; align-items: center; gap: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.2rem 1.6rem; transition: box-shadow 0.2s; }
.event-row:hover { box-shadow: 0 4px 16px rgba(45,74,45,0.09); }
.event-date-box { background: var(--forest); color: #fff; border-radius: 4px; text-align: center; min-width: 52px; padding: 0.5rem; flex-shrink: 0; }
.event-month { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); }
.event-day { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-info { flex: 1; }
.event-info h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-dark); }
.event-info p { font-size: 0.85rem; color: var(--text-mid); margin-top: 0.15rem; }
.event-time { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; }

/* ── DOCUMENTS ── */
#documents { background: var(--cream); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.4rem 1.6rem; display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; transition: box-shadow 0.2s, transform 0.15s; text-decoration: none; }
.doc-card:hover { box-shadow: 0 4px 16px rgba(45,74,45,0.1); transform: translateY(-2px); }
.doc-icon { background: var(--cream); border: 1px solid var(--border); border-radius: 4px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.doc-info h4 { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); }
.doc-info p { font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; }

/* ── CONTACT / BOARD ── */
#contact { background: var(--warm-white); }
.board-contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.board-list { display: flex; flex-direction: column; gap: 0.85rem; }
.board-member { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 5px; gap: 1rem; flex-wrap: wrap; }
.board-name { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.board-role { font-size: 0.75rem; color: var(--text-light); margin-top: 0.1rem; }
.board-email { font-size: 0.8rem; color: var(--sage); text-decoration: none; font-weight: 600; }
.board-email:hover { color: var(--forest); }
.contact-form-box { background: var(--forest); border-radius: 8px; padding: 2rem; color: #fff; }
.contact-form-box h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 0.4rem; }
.contact-form-box p { font-size: 0.85rem; color: #9aba9a; margin-bottom: 1.4rem; }

/* Contact Form 7 styles */
.wpcf7 { color: #fff; }
.wpcf7 label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9aba9a; margin-bottom: 0.35rem; margin-top: 0.9rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--gold-light); }
.wpcf7 textarea { resize: vertical; min-height: 90px; }
.wpcf7 input[type="submit"] { margin-top: 1rem; width: 100%; }

/* ── PORTAL ── */
#portal { background: var(--forest); }
#portal .section-tag { color: var(--gold-light); }
#portal .section-header h2 { color: #fff; }
#portal .section-header p { color: #9aba9a; }
#portal .divider { background: var(--gold-light); }
.portal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.login-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 2rem; }
.login-box h3 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.2rem; margin-bottom: 0.35rem; }
.login-sub { font-size: 0.85rem; color: #8aaa8a; margin-bottom: 1.5rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9aba9a; margin-bottom: 0.35rem; }
.form-field input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus { border-color: var(--gold-light); }
.form-field input::placeholder { color: rgba(255,255,255,0.25); }
.login-forgot { margin-top: 0.4rem; }
.login-error { background: rgba(180,60,60,0.2); border: 1px solid rgba(200,80,80,0.35); color: #f0a0a0; border-radius: 4px; padding: 0.6rem 0.9rem; font-size: 0.82rem; margin-bottom: 1rem; display: none; }
.login-error.show { display: block; }
.locked-docs { display: flex; flex-direction: column; gap: 0.9rem; }
.locked-doc-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; transition: background 0.2s; }
.locked-doc-card.unlocked { background: rgba(122,158,126,0.15); border-color: rgba(122,158,126,0.35); cursor: pointer; }
.locked-doc-card.unlocked:hover { background: rgba(122,158,126,0.25); }
.lock-icon { font-size: 1.2rem; flex-shrink: 0; width: 32px; text-align: center; }
.locked-doc-info h4 { font-size: 0.92rem; font-weight: 600; color: #c8dcc8; }
.locked-doc-info p { font-size: 0.78rem; color: #7a9a7a; margin-top: 0.1rem; }
.locked-badge { margin-left: auto; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 2px; flex-shrink: 0; }
.locked-badge.locked { background: rgba(180,144,58,0.2); color: var(--gold-light); border: 1px solid rgba(184,144,58,0.3); }
.locked-badge.open { background: rgba(122,158,126,0.25); color: #8ace8a; border: 1px solid rgba(122,158,126,0.4); }
.portal-welcome { background: rgba(122,158,126,0.18); border: 1px solid rgba(122,158,126,0.35); border-radius: 6px; padding: 1rem 1.4rem; display: none; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.portal-welcome.show { display: flex; }
.portal-welcome-text { font-size: 0.88rem; color: #a0d0a0; }
.portal-welcome-text strong { color: #c8ecc8; }

/* Nav resident link */
.nav-resident-link { background: rgba(184,144,58,0.2) !important; color: var(--gold-light) !important; border: 1px solid rgba(184,144,58,0.35) !important; border-radius: 3px; padding: 0.25rem 0.7rem !important; }
.nav-resident-link:hover { background: rgba(184,144,58,0.35) !important; }

/* ── FOOTER ── */
footer { background: var(--text-dark); color: #6a8a6a; text-align: center; padding: 2rem; font-size: 0.82rem; }
footer strong { color: #9aba9a; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero > * { animation: fadeUp 0.7s ease both; }
.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.22s; }
.hero p { animation-delay: 0.34s; }
.hero-ctas { animation-delay: 0.44s; }
.hero-stats { animation-delay: 0.54s; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .board-contact-wrap, .portal-wrap { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; background: var(--forest); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.6rem 0; }
  .nav-inner { height: auto; padding: 0.75rem 2rem; flex-wrap: wrap; }
}
 .wpcf7 input[type="submit"] {
  background: var(--gold) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.8rem 1.8rem !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 3px !important;
  width: 100% !important;
  margin-top: 0.5rem !important;
  transition: background 0.2s !important;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--gold-light) !important;
}