
/* Remove underlines from social icons */
.social-icons a, .footer-social a {
  text-decoration: none !important;
  border-bottom: none !important;
}
.social-icons a:hover, .footer-social a:hover {
  text-decoration: none !important;
}
/* SecureTheVoteMD Header & Footer Styles */
/* Clean CSS - no WordPress/Elementor dependencies */
/* Google Fonts: Questrial + Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Questrial&display=swap');

/* ========== ROOT VARIABLES ========== */
:root {
  --color-maroon: #8B1A1A;
  --color-maroon-dark: #5d1111;
  --color-red: #C41E3A;
  --color-gold: #F6BF58;
  --color-gold-dark: #d9a03f;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #666666;
  --color-gray-dark: #333333;
  
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Questrial', sans-serif;
  
  --nav-height: 80px;
  --top-bar-height: 40px;
  --banner-height: 48px;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-white);
}

/* ========== HEADER STYLES ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== TOP UTILITY BAR ========== */
.top-bar {
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 14px;
  font-family: var(--font-secondary);
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--top-bar-height);
}

.contact-info .email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-info .email-link:hover {
  opacity: 0.8;
}

.social-links ul {
  display: flex;
  gap: 12px;
  list-style: none;
}

.social-links a {
  color: var(--color-white);
  font-size: 16px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--color-maroon);
}

/* Text-based social icons for platforms without Font Awesome */
.social-links .icon-text,
.footer-social .icon-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

/* ========== MAIN NAVIGATION BAR ========== */
.main-nav {
  background: var(--color-white);
  border-bottom: 1px solid #e0e0e0;
}

.main-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  position: relative;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 55px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-menu span {
  width: 24px;
  height: 3px;
  background: var(--color-maroon);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.primary-nav a {
  color: var(--color-gray-dark);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--color-maroon);
}

/* Dropdown Menus */
.primary-nav .has-dropdown {
  position: relative;
}

.primary-nav .has-dropdown .fa-chevron-down {
  font-size: 10px;
  margin-left: 2px;
}

.primary-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 8px 0;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
  margin-top: 0;
  display: none;
  flex-direction: column;
  z-index: 100;
}

.primary-nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  display: flex;
}

.primary-nav .dropdown li {
  padding: 0;
}

.primary-nav .dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--color-gray-dark);
}

.primary-nav .dropdown a:hover {
  background: var(--color-gray-light);
  color: var(--color-maroon);
}

/* Donate Button */
.donate-btn a {
  background: var(--color-maroon);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: background 0.3s;
  white-space: nowrap;
}

.donate-btn a:hover {
  background: var(--color-maroon-dark);
}

/* ========== ANNOUNCEMENT BANNER ========== */
.announcement-banner {
  background: var(--color-white);
  color: var(--color-maroon);
  overflow: hidden;
  height: var(--banner-height);
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.banner-content {
  display: flex;
  align-items: center;
  height: 100%;
  animation: scroll-banner 20s linear infinite;
  white-space: nowrap;
}

.banner-link {
  color: var(--color-maroon);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  padding: 0 40px;
  transition: opacity 0.3s;
}

.banner-link:hover {
  opacity: 0.9;
}

@keyframes scroll-banner {
  0% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.announcement-banner:hover .banner-content {
  animation-play-state: paused;
}

/* ========== FOOTER STYLES ========== */
.site-footer {
  color: var(--color-white);
  font-family: var(--font-secondary);
  width: 100%;
}

/* Main Footer Section */
.footer-main {
  background-image: url('/images/usa-flag-background-.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  position: relative;
  padding: 0 0 2em 0;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(at top left, rgba(0,0,0,0.79) 0%, rgba(155,30,55,0.98) 50%);
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 40% 28% 32%;
  position: relative;
  z-index: 1;
}

.footer-column h4 {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 25px;
  text-transform: uppercase;
  line-height: 35px;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.footer-links {
  padding: 60px 10px 0 10px;
}

.footer-contact {
  padding: 60px 20px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact h4 {
  text-align: center;
}

.footer-contact .contact-list {
  align-items: flex-start;
}

.footer-column nav ul,
.footer-column .contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-column a {
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  font-size: 18px;
  line-height: 28px;
}

.footer-column a:hover {
  color: var(--color-gold);
}

.footer-column .fa-caret-down {
  font-size: 14px;
}

.footer-column .contact-list i {
  width: 18px;
  text-align: center;
  color: var(--color-gold);
}

/* Footer dropdown menus */
.footer-column .footer-dropdown {
  list-style: none;
  display: none;
  padding-left: 15px;
  background: var(--color-gold);
  border: 1px solid #000;
}

.footer-column .has-dropdown:hover .footer-dropdown {
  display: flex;
  flex-direction: column;
}

.footer-column .footer-dropdown a {
  color: var(--color-white);
  font-size: 15px;
  padding: 3px;
}

.footer-column .footer-dropdown a:hover {
  background: #9C2039;
}

.footer-column .footer-dropdown li:not(:last-child) {
  border-bottom: 1px solid #000;
}

/* Center Logo/Mission Box */
.footer-mission {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-box {
  background-color: #FFE3AF;
  margin: -50px auto 10px auto;
  padding: 2em;
  text-align: center;
  color: #1a1a1a;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 2;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.footer-logo-box.visible {
  transform: translateY(0);
  opacity: 1;
}

.footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 16px;
}

.footer-logo-box p {
  font-family: var(--font-secondary);
  font-size: 18px;
  line-height: 28px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* Footer Bottom Bar */
.footer-bottom {
  background: var(--color-maroon);
  border-top: 1px solid rgba(245,245,245,0.61);
  padding: 0.5em 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  font-size: 14px;
  color: var(--color-gold);
}

.footer-social ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-gold);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-maroon);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .primary-nav ul {
    gap: 18px;
  }
  
  .primary-nav a {
    font-size: 14px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  
  .main-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-logo { order: 1; }
  .hamburger-menu { order: 3; }
  .primary-nav { order: 2; }
  .donate-btn { order: 4; }
  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
  }
  
  /* Hide primary nav by default */
  .primary-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    transition: left 0.3s;
    overflow-y: auto;
    padding: 80px 0 20px;
    z-index: 1000;
  }
  
  .primary-nav.active {
    left: 0;
  }
  
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  
  .primary-nav > ul > li {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .primary-nav > ul > li > a {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
  }
  
  /* Mobile dropdowns */
  .primary-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--color-gray-light);
    margin: 0;
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .primary-nav .has-dropdown.active .dropdown {
    max-height: 300px;
  }
  
  .primary-nav .dropdown a {
    padding: 12px 20px 12px 40px;
  }
  
  /* Adjust main nav layout */
  .main-nav-content {
    height: 70px;
  }
  
  .site-logo img {
    height: 40px;
  }
  
  .donate-btn a {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  /* Top bar mobile */
  .top-bar-content {
    flex-direction: column;
    height: auto;
    padding: 8px 20px;
    gap: 8px;
  }
  
  .contact-info {
    font-size: 12px;
  }
  
  .social-links ul {
    gap: 10px;
  }
  
  .social-links a {
    font-size: 14px;
  }
  
  /* Banner mobile */
  .announcement-banner {
    height: auto;
  }
  
  .banner-link {
    font-size: 13px;
    padding: 12px 20px;
    white-space: normal;
  }
  
  .banner-content {
    animation: none;
  }
  
  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-main {
    padding: 40px 0 30px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-social ul {
    gap: 14px;
  }
}

/* Small mobile (< 480px) */
@media (max-width: 479px) {
  .donate-btn {
    display: none;
  }
  
  .site-logo img {
    height: 35px;
  }
}

/* ========== ACCESSIBILITY ========== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-maroon);
  color: var(--color-white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-content:focus {
  top: 0;
}

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

/* Print styles */
@media print {
  .top-bar,
  .announcement-banner,
  .donate-btn,
  .hamburger-menu {
    display: none;
  }
}
