/*
Theme Name: Bay Ridge HOA
Theme URI: https://www.bayridgehomes.com
Description: Modern theme for Bay Ridge Homeowners Association - Monterey, CA
Version: 2.0
Author: Bay Ridge HOA
License: Private
Text Domain: bayridge
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --navy:       #1a2a4a;
  --navy-dark:  #0f1d35;
  --navy-mid:   #243558;
  --slate:      #3d5275;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --light-gray: #e8ecf2;
  --mid-gray:   #8898aa;
  --text:       #2c3e50;
  --text-light: #5a6a7a;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(26,42,74,0.10);
  --shadow-lg:  0 8px 40px rgba(26,42,74,0.18);
  --transition: 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; color: var(--text-light); }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--light { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.75); }

/* =============================================
   HEADER & NAV
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
#site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
#site-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
#site-nav a:hover,
#site-nav .current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.nav-portal-btn a {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
}
.nav-portal-btn a:hover {
  background: var(--gold-light) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   HERO / SLIDESHOW
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

/* Placeholder gradient slides — replace with real photos */
.hero-slide:nth-child(1) {
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 40%, #3d6b8a 70%, #5a8a9a 100%);
}
.hero-slide:nth-child(2) {
  background: linear-gradient(135deg, #0f3a2a 0%, #1a5a3a 40%, #2a7a4a 70%, #3a8a5a 100%);
}
.hero-slide:nth-child(3) {
  background: linear-gradient(135deg, #2a1a0a 0%, #4a3020 40%, #6a5030 70%, #8a7040 100%);
}
.hero-slide:nth-child(4) {
  background: linear-gradient(135deg, #1a0a2a 0%, #2a1a4a 40%, #3a2a6a 70%, #4a3a8a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,20,40,0.35) 0%,
    rgba(10,20,40,0.15) 40%,
    rgba(10,20,40,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 4px 16px;
  border-radius: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.hero-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.45);
}

/* Slide dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* Slide arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(201,168,76,0.4); border-color: var(--gold); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

/* =============================================
   WELCOME SECTION
   ============================================= */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.welcome-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.welcome-text p { font-size: 1.05rem; line-height: 1.8; }
.welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.stat-card {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  padding: 20px;
  border-radius: var(--radius);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.welcome-image-block {
  position: relative;
}
.welcome-image-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 60%, #5a8a9a 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.welcome-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.welcome-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

/* =============================================
   QUICK LINKS / FEATURE CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.feature-card h3 { color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; margin-bottom: 20px; }
.card-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { color: var(--gold); gap: 10px; }

/* =============================================
   ANNOUNCEMENTS
   ============================================= */
.announcements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.announcements-list { display: flex; flex-direction: column; gap: 16px; }
.announcement-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow var(--transition);
}
.announcement-item:hover { box-shadow: var(--shadow); }
.announcement-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 64px;
}
.date-month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); }
.date-day { font-size: 1.6rem; font-weight: 700; font-family: 'Playfair Display', serif; line-height: 1; }
.announcement-body h4 { color: var(--navy); margin-bottom: 4px; }
.announcement-body p { font-size: 0.9rem; margin: 0; }

/* =============================================
   DOCUMENTS PAGE
   ============================================= */
.page-hero {
  background: var(--navy-dark);
  padding: 120px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 90px;
}
.docs-sidebar ul { list-style: none; }
.docs-sidebar li + li { border-top: 1px solid var(--light-gray); }
.docs-sidebar a {
  display: block;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--navy);
  background: var(--off-white);
  padding-left: 20px;
}
.docs-sidebar a.active { border-left: 3px solid var(--gold); }

.doc-category { margin-bottom: 48px; scroll-margin-top: 100px; }
.doc-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}
.doc-category-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.doc-category h2 { font-size: 1.2rem; margin: 0; }

.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  transition: all var(--transition);
  gap: 16px;
}
.doc-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(26,42,74,0.08);
}
.doc-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.doc-icon { font-size: 1.3rem; flex-shrink: 0; }
.doc-info { min-width: 0; }
.doc-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-meta { font-size: 0.78rem; color: var(--mid-gray); margin-top: 2px; }
.doc-download {
  flex-shrink: 0;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
  white-space: nowrap;
}
.doc-download:hover { background: var(--slate); color: var(--white); }
.doc-pending {
  flex-shrink: 0;
  color: var(--mid-gray);
  font-size: 0.78rem;
  font-style: italic;
}

/* =============================================
   PORTAL PAGE
   ============================================= */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.portal-sidebar {
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.portal-sidebar-header {
  background: var(--navy-dark);
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.portal-avatar {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}
.portal-username { color: var(--white); font-weight: 700; }
.portal-role { color: var(--gold-light); font-size: 0.78rem; }

.portal-nav ul { list-style: none; padding: 12px 0; }
.portal-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.portal-nav a:hover,
.portal-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.portal-nav a.active { border-left: 3px solid var(--gold); padding-left: 21px; }
.portal-nav .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.portal-main { }
.portal-section { display: none; }
.portal-section.active { display: block; }

.portal-greeting {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: 10px;
  padding: 28px 32px;
  color: var(--white);
  margin-bottom: 24px;
}
.portal-greeting h2 { color: var(--white); margin-bottom: 4px; }
.portal-greeting p { color: rgba(255,255,255,0.7); margin: 0; }

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.portal-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.portal-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.portal-card-label { font-size: 0.78rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.portal-recent-docs { background: var(--white); border: 1px solid var(--light-gray); border-radius: 8px; overflow: hidden; }
.portal-recent-docs-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-recent-docs-header h3 { margin: 0; font-size: 1rem; }
.portal-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--light-gray);
  gap: 12px;
}
.portal-doc-row:last-child { border-bottom: none; }
.portal-doc-name { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.portal-doc-date { font-size: 0.78rem; color: var(--mid-gray); }
.btn-sm {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-sm:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Contact form inside portal */
.portal-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text); letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--slate); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-primary:hover { background: var(--slate); transform: translateY(-1px); }

/* =============================================
   LOGIN WALL (for non-logged-in users)
   ============================================= */
.login-wall {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}
.login-wall-icon { font-size: 3rem; margin-bottom: 20px; }
.login-wall h2 { margin-bottom: 8px; }
.login-wall p { margin-bottom: 28px; }
.wp-login-form { text-align: left; }
.wp-login-form .form-group + .form-group { margin-top: 16px; }
.login-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.forgot-link { font-size: 0.85rem; color: var(--mid-gray); }
.forgot-link:hover { color: var(--slate); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-name { font-size: 1.1rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--gold-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; }
}

@media (max-width: 768px) {
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 16px; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 4px; }
  .nav-toggle { display: flex; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-accent { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .portal-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-arrow { display: none; }
}

@media (max-width: 480px) {
  .portal-cards { grid-template-columns: 1fr; }
}
/* =============================================
   BROWN ACT NOTICE
   ============================================= */
.brown-act-notice {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.brown-act-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.brown-act-notice h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.brown-act-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.brown-act-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 36px;
}

.brown-act-rule {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
}

.brown-act-rule .rule-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.brown-act-rule strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.brown-act-rule p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.6;
}

.brown-act-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.brown-act-link {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 20px;
}

.brown-act-link:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
}

.brown-act-reminder {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--gold-light);
  line-height: 1.6;
  margin: 0;
}

.brown-act-reminder strong {
  color: var(--gold);
}

/* =============================================
   BROWN ACT DETAIL PAGE
   ============================================= */
.brown-act-detail {
  max-width: 860px;
  margin: 0 auto;
}

.brown-act-detail h2 {
  text-align: center;
  margin-bottom: 12px;
}

.brown-act-intro {
  text-align: center;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 48px;
}

.brown-act-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-gray);
}

.brown-act-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.brown-act-section h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.brown-act-section h4 {
  font-size: 1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.brown-act-answer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.answer-badge {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.answer-no {
  background: #fdeaea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.answer-yes {
  background: #eafde8;
  color: #27ae60;
  border: 1px solid #c3e6cb;
}

/* Table */
.brown-act-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.brown-act-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.brown-act-table th,
.brown-act-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.brown-act-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brown-act-table tr:hover {
  background: var(--off-white);
}

.status-no {
  color: #c0392b;
  font-weight: 700;
}

.status-yes {
  color: #27ae60;
  font-weight: 700;
}

.status-maybe {
  color: #d4880f;
  font-weight: 700;
}

/* Secret Meeting Example */
.secret-meeting-example {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.secret-meeting-example h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.quorum-math {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.math-item {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

.math-plus,
.math-equals {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mid-gray);
}

.math-result {
  background: #c0392b;
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Notice Grid */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.notice-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.notice-card h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.notice-days {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.notice-card p {
  font-size: 0.82rem;
  margin: 0;
}

/* List */
.brown-act-list {
  list-style: none;
  padding: 0;
}

.brown-act-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--light-gray);
}

.brown-act-list li:last-child {
  border-bottom: none;
}

.brown-act-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Consequences Grid */
.consequences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.consequence-card {
  background: #fdf6f6;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  padding: 20px;
}

.consequence-card strong {
  display: block;
  color: #922b21;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.consequence-card p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--text-light);
}

/* Quote */
.brown-act-simple-rule {
  text-align: center;
}

.brown-act-quote {
  background: var(--navy);
  color: var(--white);
  padding: 32px 40px;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  margin: 20px 0 0;
}

.brown-act-quote::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  opacity: 0.5;
}

/* Resources */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-link {
  display: block;
  padding: 16px 20px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.resource-link:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(26, 42, 74, 0.08);
  transform: translateX(4px);
}

.resource-link strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.resource-link span {
  font-size: 0.82rem;
  color: var(--mid-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .brown-act-rules {
    grid-template-columns: 1fr;
  }

  .notice-grid {
    grid-template-columns: 1fr;
  }

  .consequences-grid {
    grid-template-columns: 1fr;
  }

  .brown-act-quote {
    padding: 24px;
    font-size: 1.1rem;
  }

  .quorum-math {
    flex-direction: column;
    gap: 8px;
  }
}
