/*
Theme Name: West Port Homeowners
Theme URI: https://westporthomeowners.com
Author: Flagship Studio
Author URI: https://flagshipstudio.com
Description: A clean, modern community theme for West Port Homeowners. Built by Flagship Studio.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westport
*/

/* ═══════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════ */
:root {
  --wp-blue: #0F98D8;
  --wp-navy: #003564;
  --wp-light-blue: #E7F5FC;
  --wp-white: #ffffff;
  --wp-gray-50: #f8f9fa;
  --wp-gray-100: #f1f3f5;
  --wp-gray-200: #e9ecef;
  --wp-gray-300: #dee2e6;
  --wp-gray-500: #adb5bd;
  --wp-gray-600: #868e96;
  --wp-gray-700: #495057;
  --wp-gray-800: #343a40;
  --wp-gray-900: #212529;
  --wp-orange: #f59e0b;
  --wp-red: #ef4444;
  --wp-green: #22c55e;
  --font-main: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wp-gray-800);
  background: var(--wp-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wp-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wp-navy); }

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

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--wp-navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1em; color: var(--wp-gray-700); }
p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--wp-blue);
  color: white;
  border-color: var(--wp-blue);
}
.btn-primary:hover {
  background: var(--wp-navy);
  border-color: var(--wp-navy);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 152, 216, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--wp-blue);
  border-color: var(--wp-blue);
}
.btn-outline:hover {
  background: var(--wp-blue);
  color: white;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: var(--wp-navy);
  border-color: white;
}
.btn-white:hover {
  background: var(--wp-light-blue);
  border-color: var(--wp-light-blue);
  color: var(--wp-navy);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wp-white);
  border-bottom: 1px solid var(--wp-gray-200);
  height: var(--nav-height);
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--wp-gray-700);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--wp-blue);
  background: var(--wp-light-blue);
}

.nav-extras {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-election {
  color: var(--wp-blue) !important;
  font-weight: 700 !important;
}

.nav-cta {
  display: inline-block;
  padding: 8px 20px !important;
  background: var(--wp-blue);
  color: white !important;
  border-radius: 6px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--wp-navy);
  color: white !important;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp-navy);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

@media (max-width: 968px) {
  .mobile-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--wp-gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-menu ul,
  .nav-extras {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wp-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,53,100,0.85) 0%, rgba(15,152,216,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero h1 {
  color: white;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--wp-gray-50);
}

.section-blue {
  background: var(--wp-light-blue);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--wp-gray-600);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════
   NEWS CARDS
   ═══════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--wp-gray-200);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--wp-blue);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-card-image.placeholder {
  background: linear-gradient(135deg, var(--wp-light-blue), var(--wp-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  font-size: 0.8rem;
  color: var(--wp-gray-500);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card-title a {
  color: inherit;
}
.news-card-title a:hover {
  color: var(--wp-blue);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--wp-gray-600);
  line-height: 1.5;
  flex: 1;
}

.news-card-link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card-link::after {
  content: '→';
  transition: transform 0.2s;
}
.news-card:hover .news-card-link::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   QUICK LINKS GRID
   ═══════════════════════════════════════════════ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.link-card {
  background: white;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--wp-gray-200);
  text-align: center;
  transition: all 0.3s;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--wp-blue);
}

.link-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--wp-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.link-card h4 {
  margin-bottom: 8px;
}

.link-card p {
  font-size: 0.9rem;
  color: var(--wp-gray-600);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION (Home)
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.about-text li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--wp-gray-700);
}

.about-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wp-blue);
  font-weight: 700;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image { order: -1; }
}

/* ═══════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--wp-navy) 0%, var(--wp-blue) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-banner p {
  color: white;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: var(--wp-navy);
  color: rgba(255,255,255,0.9);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-about .footer-logo {
  height: 40px;
  margin-bottom: 16px;
}

.footer-about p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--wp-blue);
}

.footer-bottom {
  padding: 28px 0;
  text-align: center;
}

.footer-bottom .footer-disclaimer-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin: 0 0 8px;
}

.footer-bottom .footer-official-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px;
}

.footer-bottom .footer-official-link a {
  color: var(--wp-blue);
  font-weight: 700;
  text-decoration: underline;
}

.footer-bottom .footer-legal-links {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 4px;
}

.footer-bottom .footer-legal-links a {
  color: rgba(255,255,255,0.85);
}

.footer-bottom .footer-legal-links a:hover {
  color: var(--wp-blue);
}

.footer-bottom .footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-bottom .footer-copyright a {
  color: rgba(255,255,255,0.75);
}

.footer-bottom .footer-copyright a:hover {
  color: var(--wp-blue);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

/* ═══════════════════════════════════════════════
   PAGE TEMPLATES
   ═══════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--wp-navy) 0%, rgba(15,152,216,0.9) 100%);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════
   VALUE PROPOSITION STRIP (Homepage)
   ═══════════════════════════════════════════════ */
.value-strip {
  background: white;
  padding: 48px 0;
  border-bottom: 1px solid var(--wp-gray-200);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.value-item .value-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.value-item h4 {
  color: var(--wp-navy);
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-item p {
  color: var(--wp-gray-600);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

/* ═══════════════════════════════════════════════
   REGISTRATION CTA SECTION (Homepage)
   ═══════════════════════════════════════════════ */
.register-cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.register-cta-text h2 {
  color: var(--wp-navy);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.register-cta-text > p {
  color: var(--wp-gray-600);
  margin-bottom: 20px;
}

.register-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.register-benefits li {
  padding: 6px 0;
  color: var(--wp-gray-700);
  font-size: 0.95rem;
}

.register-cta-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-stat-card {
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.register-stat-card .stat-number {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.register-stat-card p {
  color: var(--wp-gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .register-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ═══════════════════════════════════════════════
   CONNECT PAGE
   ═══════════════════════════════════════════════ */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.connect-card {
  position: relative;
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.connect-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.connect-card-featured {
  border-color: var(--wp-blue);
  box-shadow: 0 4px 20px rgba(15,152,216,0.12);
}

.connect-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.connect-card h3 {
  color: var(--wp-navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.connect-card p {
  color: var(--wp-gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.connect-card .btn {
  font-size: 0.9rem;
}

.connect-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp-blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.connect-card-badge-soon {
  background: #F57C00;
}

.connect-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.connect-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.connect-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--wp-gray-700);
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.connect-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Why Register Grid */
.why-register-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-register-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--wp-gray-200);
  transition: box-shadow 0.2s;
}

.why-register-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.why-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-register-item h4 {
  color: var(--wp-navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

.why-register-item p {
  color: var(--wp-gray-600);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .connect-grid,
  .connect-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .connect-info-grid,
  .why-register-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.page-content {
  padding: 60px 0;
}

.page-content .entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content .entry-content h2,
.page-content .entry-content h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.page-content .entry-content p {
  margin-bottom: 1.25em;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.page-content .entry-content li {
  margin-bottom: 0.5em;
}

/* ═══════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════ */
.single-post-header {
  background: linear-gradient(135deg, var(--wp-navy) 0%, rgba(15,152,216,0.9) 100%);
  padding: 60px 0;
  text-align: center;
}

.single-post-header h1 {
  color: white;
  max-width: 800px;
  margin: 0 auto 12px;
}

.single-post-meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.single-post-content .featured-image {
  margin: -24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-navigation {
  border-top: 1px solid var(--wp-gray-200);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* ═══════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wp-gray-700);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--wp-gray-300);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wp-blue);
  box-shadow: 0 0 0 3px rgba(15,152,216,0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-card {
  background: var(--wp-light-blue);
  border-radius: 12px;
  padding: 32px;
}

.contact-info-card h3 {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--wp-gray-300);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--wp-blue);
  color: white;
  border-color: var(--wp-blue);
}

.pagination .current {
  background: var(--wp-blue);
  color: white;
  border-color: var(--wp-blue);
}

/* ═══════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* WP Block Editor compat */
.wp-block-image { margin-bottom: 1.5em; }
.wp-block-image img { border-radius: 8px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }

/* Admin bar offset */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Popup/disclaimer bar */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--wp-gray-200);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  transform: translateY(0);
  transition: transform 0.3s;
}

.disclaimer-bar.hidden {
  transform: translateY(100%);
}

.disclaimer-bar p {
  font-size: 0.85rem;
  color: var(--wp-gray-700);
  margin: 0;
}

.disclaimer-bar button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--wp-gray-500);
  padding: 4px 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SINGLE POST ENTRY CONTENT - ENHANCED
   ═══════════════════════════════════════════════ */
.single-post-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--wp-gray-700);
}

.single-post-content .entry-content h2,
.single-post-content .entry-content h3 {
    color: var(--wp-navy);
    margin-top: 32px;
    margin-bottom: 12px;
}

.single-post-content .entry-content p {
    margin-bottom: 16px;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.single-post-content .entry-content li {
    margin-bottom: 6px;
}

.single-post-content .entry-content a {
    color: var(--wp-blue);
    font-weight: 600;
}

.single-post-content .entry-content a:hover {
    text-decoration: underline;
}

.single-post-content .entry-content iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.single-post-content .entry-content hr {
    border: none;
    border-top: 1px solid var(--wp-gray-200);
    margin: 32px 0;
}

.single-post-content .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════
   LEADERSHIP / DIRECTORY PAGE
   ═══════════════════════════════════════════════ */

/* Board Composition — Visual Seat Cards */
.board-composition {
  background: linear-gradient(135deg, var(--wp-gray-50) 0%, white 100%);
  border: 1px solid var(--wp-gray-200);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.board-title {
  text-align: center;
  color: var(--wp-navy);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.board-subtitle {
  text-align: center;
  color: var(--wp-gray-500);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.board-seats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.seat-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid;
  padding: 20px 16px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.seat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.seat-elected {
  background: rgba(15,152,216,0.06);
  border-color: rgba(15,152,216,0.2);
}

.seat-appointed {
  background: rgba(251,146,60,0.06);
  border-color: rgba(251,146,60,0.25);
}

.seat-disputed {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.1);
}

.seat-badge-disputed {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.seat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.seat-avatar-blue {
  background: var(--wp-blue);
  box-shadow: 0 4px 12px rgba(15,152,216,0.3);
}

.seat-avatar-orange {
  background: #fb923c;
  box-shadow: 0 4px 12px rgba(251,146,60,0.3);
}

.seat-avatar-red {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.seat-name {
  color: var(--wp-navy);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.seat-role {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.seat-role-blue  { color: var(--wp-blue); }
.seat-role-orange { color: #f97316; }
.seat-role-red { color: #ef4444; }

.seat-details p {
  font-size: 0.7rem;
  color: var(--wp-gray-600);
  margin: 2px 0;
}

.seat-disputed-text {
  color: #ef4444 !important;
  font-weight: 600;
}

.seat-note {
  font-size: 0.65rem;
  font-style: italic;
  color: var(--wp-gray-500);
  margin: 6px 0 0;
  line-height: 1.4;
}

.seat-note-blue { color: var(--wp-blue); }
.seat-note-red { color: #f87171; }

.seat-email {
  display: block;
  color: var(--wp-blue);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 8px;
  background: var(--wp-light-blue);
  border-radius: 6px;
  transition: background 0.2s;
  margin-top: 8px;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.seat-email:hover {
  background: #d0edfa;
}

.copy-hint {
  font-size: 0.6rem;
  color: var(--wp-gray-400);
  font-weight: 400;
  display: block;
  width: 100%;
  text-align: center;
}

/* Board Legend */
.board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.legend-blue { background: rgba(15,152,216,0.08); border: 1px solid rgba(15,152,216,0.15); }
.legend-orange { background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.15); }
.legend-red { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot-blue { background: var(--wp-blue); }
.legend-dot-orange { background: #fb923c; }
.legend-dot-red { background: #ef4444; }

.legend-item strong {
  color: var(--wp-navy);
  font-size: 0.9rem;
}

.legend-item span:last-child {
  color: var(--wp-gray-600);
  font-size: 0.78rem;
}

.board-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--wp-gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .board-seats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .board-seats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .board-composition {
    padding: 24px 12px;
  }
  .seat-card {
    padding: 16px 10px 12px;
    min-width: 0;
  }
  .seat-avatar {
    width: 44px;
    height: 44px;
  }
  .seat-avatar svg {
    width: 22px;
    height: 22px;
  }
  .seat-name {
    font-size: 0.82rem;
  }
  .seat-role {
    font-size: 0.7rem;
  }
  .seat-details p {
    font-size: 0.65rem;
  }
  .seat-note {
    font-size: 0.6rem;
  }
  .seat-email {
    font-size: 0.6rem;
    padding: 5px 6px;
  }
  .copy-hint {
    font-size: 0.55rem;
  }
  .seat-badge-disputed {
    font-size: 0.52rem;
    padding: 2px 8px;
  }
  .board-legend {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .board-seats-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .seat-card {
    padding: 20px 16px 16px;
  }
  .seat-email {
    font-size: 0.68rem;
  }
}

/* Contact Cards */
.contact-cards-grid {
  display: grid;
  gap: 24px;
}

.contact-card {
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 16px;
  padding: 32px;
}

.contact-card-featured {
  border-color: var(--wp-blue);
  border-width: 2px;
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  color: var(--wp-navy);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.contact-card-role {
  color: var(--wp-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-card-desc {
  color: var(--wp-gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp-gray-500);
}

.contact-sub {
  font-size: 0.8rem;
  color: var(--wp-gray-500);
  margin: 2px 0 0;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 20px;
  display: inline-block;
  width: fit-content;
}

@media (max-width: 640px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .leader-card-president {
    grid-column: auto;
  }
}

/* Disclaimer banner removed — consolidated into footer */

/* ═══════════════════════════════════════════════
   COMMUNITY ISSUES TRACKER
   ═══════════════════════════════════════════════ */

/* Stats Bar */
.issues-stats-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 14px;
  padding: 20px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.issues-stat {
  text-align: center;
  padding: 0 16px;
}

.issues-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wp-navy);
  line-height: 1.1;
}

.issues-stat-active { color: #ef4444; }
.issues-stat-monitoring { color: #f59e0b; }
.issues-stat-resolved { color: #22c55e; }

.issues-stat-label {
  font-size: 0.75rem;
  color: var(--wp-gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Issue Cards List */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.issue-card {
  display: block;
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-left: 4px solid;
  border-radius: 14px;
  padding: 24px 28px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.issue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.issue-card.issue-status-active {
  border-left-color: #ef4444;
}

.issue-card.issue-status-monitoring {
  border-left-color: #f59e0b;
}

.issue-card.issue-status-resolved {
  border-left-color: #22c55e;
}

.issue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.issue-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.issue-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
}

.issue-badge.issue-status-active {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.issue-badge.issue-status-monitoring {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.issue-badge.issue-status-resolved {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.issue-badge-category {
  background: var(--wp-light-blue);
  color: var(--wp-blue);
  border: 1px solid rgba(15,152,216,0.15);
}

.issue-badge-responsible {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.issue-badge-priority {
  background: var(--wp-gray-50);
  color: var(--wp-gray-600);
  border: 1px solid var(--wp-gray-200);
}

.issue-priority {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wp-gray-500);
  white-space: nowrap;
}

.issue-card-title {
  color: var(--wp-navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.issue-card-excerpt {
  color: var(--wp-gray-600);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.issue-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.issue-card-meta {
  font-size: 0.75rem;
  color: var(--wp-gray-500);
}

.issue-card-arrow {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wp-blue);
}

/* Single Issue Page */
.back-to-issues {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.back-to-issues:hover {
  color: white;
}

.issue-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.issue-header-badges .issue-badge {
  font-size: 0.75rem;
  padding: 4px 14px;
}

.issue-overview {
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.issue-overview h2 {
  color: var(--wp-navy);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.issue-content {
  color: var(--wp-gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.issue-content p { margin-bottom: 12px; }

.issue-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--wp-gray-50);
  border-radius: 12px;
  padding: 20px;
}

.issue-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.issue-meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp-gray-500);
}

.issue-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp-navy);
}

.issue-meta-value.issue-status-active { color: #dc2626; }
.issue-meta-value.issue-status-monitoring { color: #d97706; }
.issue-meta-value.issue-status-resolved { color: #16a34a; }

/* Timeline */
.issue-timeline {
  margin-bottom: 32px;
}

.issue-timeline h2 {
  color: var(--wp-navy);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.issue-timeline-subtitle {
  color: var(--wp-gray-500);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--wp-gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--wp-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 1;
}

.timeline-item-latest .timeline-dot {
  border-color: var(--wp-blue);
  box-shadow: 0 0 0 4px rgba(15,152,216,0.15);
}

.timeline-content {
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 12px;
  padding: 18px 22px;
}

.timeline-item-latest .timeline-content {
  border-color: var(--wp-blue);
  background: linear-gradient(135deg, rgba(15,152,216,0.03) 0%, white 100%);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wp-gray-500);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-time {
  color: var(--wp-gray-400);
  font-weight: 500;
}

.timeline-latest-badge {
  background: var(--wp-blue);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 8px;
  border-radius: 10px;
}

.timeline-title {
  color: var(--wp-navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--wp-gray-600);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.timeline-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--wp-gray-400);
  font-style: italic;
}

/* Issue Action Box */
.issue-action-box {
  background: linear-gradient(135deg, var(--wp-light-blue) 0%, #f0f9ff 100%);
  border: 1px solid rgba(15,152,216,0.15);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.issue-action-box h3 {
  color: var(--wp-navy);
  margin-bottom: 8px;
}

.issue-action-box p {
  color: var(--wp-gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Issue Navigation */
.issue-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.issue-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.issue-nav-link:hover {
  border-color: var(--wp-blue);
}

.issue-nav-link span {
  font-size: 0.75rem;
  color: var(--wp-gray-500);
}

.issue-nav-link strong {
  font-size: 0.88rem;
  color: var(--wp-navy);
}

.issue-nav-all {
  flex: 0;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.issue-nav-next {
  text-align: right;
}

/* Request a Topic Form */
.request-topic-box {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--wp-gray-200);
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.request-topic-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.request-topic-box h2 {
  text-align: center;
  color: var(--wp-navy);
  margin-bottom: 8px;
}

.request-topic-box > p {
  text-align: center;
  color: var(--wp-gray-500);
  font-size: 0.9rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.request-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--wp-gray-300);
  border-radius: 10px;
  font-family: 'Overpass', sans-serif;
  font-size: 0.88rem;
  color: var(--wp-gray-700);
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wp-blue);
  box-shadow: 0 0 0 3px rgba(15,152,216,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--wp-gray-400);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .issues-stats-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .issues-stat { padding: 0 10px; }
  .issue-card { padding: 18px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .issue-nav { flex-direction: column; }
  .timeline { padding-left: 32px; }
  .timeline-dot { left: -25px; width: 22px; height: 22px; font-size: 0.6rem; }
  .request-topic-box { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════
   DISCLAIMER POPUP
   ═══════════════════════════════════════════════ */
.disclaimer-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.disclaimer-popup.disclaimer-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.disclaimer-popup.disclaimer-hiding {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.disclaimer-popup-inner {
  background: white;
  border: 1px solid var(--wp-gray-200);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  width: 100%;
}

.disclaimer-popup-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--wp-gray-600);
  line-height: 1.5;
  flex: 1;
}

.disclaimer-dismiss {
  background: var(--wp-navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'Overpass', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.disclaimer-dismiss:hover {
  background: var(--wp-blue);
}

@media (max-width: 640px) {
  .disclaimer-popup { padding: 10px; }
  .disclaimer-popup-inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    text-align: center;
  }
}

/* ========================================================================
   RESIDENT VERIFICATION GATE
   ======================================================================== */

.resident-gate {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
}

.gate-container {
    width: 100%;
    max-width: 520px;
}

.gate-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0,53,100,0.10), 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
}

.gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wp-navy), var(--wp-blue));
    color: white;
    margin-bottom: 24px;
}

.gate-card h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--wp-navy);
    margin-bottom: 12px;
}

.gate-subtitle {
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.gate-form {
    text-align: left;
    margin-bottom: 16px;
}

.gate-input-group {
    margin-bottom: 16px;
}

.gate-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp-navy);
    margin-bottom: 8px;
}

.gate-input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #dce3eb;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--wp-navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.gate-input-group input:focus {
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 3px rgba(15,152,216,0.12);
    background: white;
}

.gate-input-group input::placeholder {
    color: #aab5c2;
}

.gate-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--wp-blue), #0a7bb5);
    color: white;
    transition: transform 0.15s, box-shadow 0.15s;
}

.gate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15,152,216,0.35);
}

.gate-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Messages */
.gate-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}

.gate-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gate-not-found {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.gate-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Register Prompt */
.gate-register {
    margin-top: 24px;
}

.gate-register-inner {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.gate-register-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wp-navy);
    margin-bottom: 8px;
}

.gate-register-inner p {
    font-size: 0.88rem;
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

.gate-register-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--wp-blue);
    border-radius: 8px;
    color: var(--wp-blue);
    background: white;
    text-decoration: none;
    transition: all 0.2s;
}

.gate-register-btn:hover {
    background: var(--wp-blue);
    color: white;
}

.gate-footer-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 24px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .gate-card {
        padding: 32px 24px;
    }
    .gate-card h1 {
        font-size: 1.3rem;
    }
    .gate-icon {
        width: 72px;
        height: 72px;
    }
    .gate-icon svg {
        width: 48px;
        height: 48px;
    }
}
