/* ============================================================
   WCGR — Women's Club of Greater Reston
   Design: an engraved-invitation feel, drawn from the club's
   own burgundy-and-gold mark — thin double rules, small-caps
   eyebrows, warm ivory paper, generous quiet space.
   ============================================================ */

:root {
  --burgundy: #7A1B30;
  --burgundy-dark: #591322;
  --ivory: #FBF7F1;
  --paper: #FFFDFA;
  --charcoal: #2B2420;
  --gold: #B08A4C;
  --gold-light: #D8C08C;
  --blush: #F1E3DD;
  --rule: rgba(122, 27, 48, 0.18);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--burgundy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
a:hover { color: var(--burgundy-dark); }

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

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

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--burgundy-dark);
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--burgundy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    column-gap: 18px;
    padding-top: 18px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ivory);
}

.brand img {
  width: 85px;
  height: 85px;
  border-radius: 3px;
  border: 1px solid var(--gold-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--ivory);
}

/* ---------- Nav ---------- */
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  color: var(--ivory);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: #fff;
}
.site-nav a.nav-admin {
  opacity: 0.55;
  font-size: 12px;
}
.site-nav a.nav-admin:hover {
  opacity: 1;
}

/* Hamburger button — hidden by default, only shown below the nav
   breakpoint further down. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory);
  border-radius: 1px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 6px;
  }
  .site-nav.nav-open ul { display: flex; }
  .site-nav a {
    display: block;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--burgundy);
  color: var(--ivory);
  padding: 46px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 10px 0 12px;
}
.hero p.tagline {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  color: var(--blush);
}
.hero-rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: var(--burgundy);
  color: var(--ivory);
  text-align: center;
  padding: 22px 0 18px;
  border-bottom: 3px solid var(--gold);
}
.page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  margin: 8px 0 0;
}

/* ---------- Main / cards ---------- */
main { padding: 48px 0 64px; }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 40px clamp(20px, 5vw, 56px);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
  opacity: 0.6;
}

.card h2 {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: 0;
}
.card h3 {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 26px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-divider span {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.content-body p { margin: 0 0 18px; }
.content-body strong { color: var(--burgundy-dark); }
.content-body .note {
  font-style: italic;
  color: var(--burgundy);
  font-size: 15px;
}

.loading-msg {
  color: #9a8f86;
  font-style: italic;
}

/* ---------- Home quick-links ---------- */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 0;
}
.quicklink {
  display: block;
  text-decoration: none;
  background: var(--blush);
  border: 1px solid var(--rule);
  padding: 20px 18px;
  text-align: center;
  color: var(--charcoal);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quicklink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122,27,48,0.12);
}
.quicklink .ql-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.quicklink .ql-sub {
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.75;
}

@media (max-width: 640px) {
  .quicklinks { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 20px; }
  .site-header .wrap { gap: 10px; padding-top: 14px; padding-bottom: 10px; }
  .site-nav a { padding: 7px 10px; font-size: 12.5px; }
}

/* ---------- Events ---------- */
.event-card {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.event-card:last-of-type { border-bottom: none; }
.event-date {
  flex: 0 0 120px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
  font-size: 1.05rem;
  padding-top: 2px;
}
.event-body h3 { margin-bottom: 4px; }
.event-body p { margin: 0; }
.event-card.past-event { opacity: 0.68; }
.event-card.past-event .event-date { color: #8a8078; }

/* ---------- Join / forms ---------- */
.address {
  background: var(--blush);
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  font-style: normal;
}
.form-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.form-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--burgundy);
  color: var(--ivory);
  padding: 18px 20px;
  border: 1px solid var(--burgundy);
  transition: background 0.15s ease;
}
.form-link:hover {
    background: var(--burgundy-dark);
    color: var(--ivory);
}
.form-link:hover .form-link-label {
    color: var(--gold-light);
}
.form-link:hover .form-link-title {
    color: var(--ivory);
}
.form-link-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.form-link-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .form-links { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.email-button {
  display: inline-block;
  background: var(--burgundy);
  color: var(--ivory) !important;
  text-decoration: none;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 12px 0 20px;
  border: 1px solid var(--gold);
}
.email-button:hover { background: var(--burgundy-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy-dark);
  color: var(--blush);
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.site-footer a { color: var(--gold-light); }
.foot-admin-link { margin-top: 6px; }
.foot-admin-link a {
  color: rgba(241, 227, 221, 0.45);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.foot-admin-link a:hover { color: var(--gold-light); }
.site-footer .foot-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 4px 0 10px;
}

/* ---------- Registration form (Join Us) ---------- */
.register-card { margin-top: 24px; }
.form-intro { font-size: 14.5px; color: var(--charcoal); opacity: 0.85; margin-bottom: 22px; }
.error-msg {
  background: #fbeaec; border-left: 3px solid #a8283f; color: #7a1f30;
  padding: 12px 16px; font-size: 14px; margin-bottom: 18px;
}
.success-msg {
  background: var(--blush); border-left: 3px solid var(--gold);
  padding: 14px 18px; font-size: 15px; margin-bottom: 4px;
}
.reg-form fieldset {
  border: none; border-top: 1px solid var(--rule); padding: 20px 0; margin: 0;
}
.reg-form fieldset:first-of-type { border-top: none; padding-top: 0; }
.reg-form legend {
  font-family: var(--font-display); color: var(--burgundy); font-size: 1.1rem;
  font-weight: 600; padding: 0; margin-bottom: 12px;
}
.reg-form label {
  display: block; font-size: 13px; font-weight: 600; color: #6b625b; margin-bottom: 4px;
}
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="password"],
.reg-form select,
.reg-form textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--rule); font-family: var(--font-body);
  font-size: 14.5px; box-sizing: border-box; margin-bottom: 14px; background: var(--paper);
}
.reg-form textarea { min-height: 70px; resize: vertical; }
.contact-form textarea { min-height: 120px; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.login-page-card .reg-form input[type="email"],
.login-page-card .reg-form input[type="password"] {
  width: 33%;
  min-width: 220px;
}
.reg-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.reg-form .form-row .grow { grid-column: span 1; }
.reg-form .radio-label,
.reg-form .checkbox-label {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 400;
  color: var(--charcoal); margin-bottom: 8px;
}
.reg-form .radio-label input,
.reg-form .checkbox-label input { width: auto; margin: 0; }
.reg-form .fieldset-note { font-size: 13.5px; color: #6b625b; margin: 0 0 10px; }
.reg-form .waiver-text {
  font-size: 12.5px; color: #6b625b; background: var(--blush); padding: 12px 14px;
  margin-bottom: 12px; max-height: 140px; overflow-y: auto; line-height: 1.5;
}
.btn-submit {
  background: var(--burgundy); color: var(--ivory); border: 1px solid var(--burgundy);
  padding: 12px 26px; font-family: var(--font-body); font-weight: 600;
  font-size: 14.5px; letter-spacing: 0.03em; cursor: pointer; margin-top: 6px;
}
.btn-submit:hover { background: var(--burgundy-dark); }

@media (max-width: 640px) {
  .reg-form .form-row { grid-template-columns: 1fr; }
  .login-page-card .reg-form input[type="email"],
  .login-page-card .reg-form input[type="password"] {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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