html, body {
  margin: 0;
  padding: 0;
}
body {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
main {
  position: relative;
  width: 100%;
  flex: 1 0 auto;
  overflow-x: hidden;
  z-index: 1;
}

/* ===== Theme Variables ===== */
:root {
  /* Typography */
  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Colors */
  --nav-bg: #ffffff;
  --nav-text: #333333;
  --nav-icon-hover: #555555;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #333333;
  --text-secondary: #666666;
  --card-bg: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
}

[data-theme="dark"] {
  --nav-bg: #1a1a1a;
  --nav-text: #ffffff;
  --nav-icon-hover: #cccccc;
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --card-bg: #2a2a2a;
  --footer-bg: #0a0a0a;
  --footer-text: #ffffff;
}

/* ===== Base Typography ===== */
body {
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.nav-links,
.mobile-nav-links,
.btn,
button {
  font-family: var(--font-heading);
}

/* ===== Header / Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

header.nav-visible {
  opacity: 1;
  pointer-events: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: var(--nav-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav ul li,
header .mobile-nav-menu ul li {
  list-style-type: none;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.25rem;
}

.nav-logo .logo-icon {
  height: 40px;
  width: auto;
}

.nav-logo .logo-text {
  height: 32px;
  width: auto;
}

/* Theme-based logo visibility */
.logo-text-light {
  display: block;
}
.logo-text-dark {
  display: none;
}

[data-theme="dark"] .logo-text-light {
  display: none;
}
[data-theme="dark"] .logo-text-dark {
  display: block;
}

/* Nav Actions (social icons + theme toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text);
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: var(--nav-icon-hover);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--nav-text);
  transition: color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--nav-icon-hover);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

/* Theme icon visibility (JS controls display) */
.theme-toggle .sun-icon {
  display: none;
}
.theme-toggle .moon-icon {
  display: block;
}

/* ===== Responsive Navigation ===== */
@media (max-width: 768px) {
  .main-nav {
    padding: 0.5rem 1rem;
  }

  .nav-logo .logo-icon {
    height: 32px;
  }

  .nav-logo .logo-text {
    height: 24px;
  }

  .nav-actions {
    gap: 1rem;
  }

  .social-icon svg,
  .theme-toggle svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 0.75rem;
  }
}

/* ===== Certifications Banner ===== */
.certifications-banner {
  background-color: var(--bg-secondary, #f5f5f5);
  border-top: 1px solid var(--border-color, #e0e0e0);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  padding: 3rem 0;
}

.cert-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.cert-banner-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #666);
}

.cert-banner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  width: 100%;
}

.cert-banner-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary, #666);
  transition: color 0.2s ease, transform 0.2s ease;
}

.cert-banner-item:hover {
  color: var(--primary-color, #4CAF50);
  transform: translateY(-2px);
}

.cert-banner-item .cert-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.cert-banner-item .cert-logo-light {
  display: block;
}

.cert-banner-item .cert-logo-dark {
  display: none;
}

[data-theme="dark"] .cert-banner-item .cert-logo-light {
  display: none;
}

[data-theme="dark"] .cert-banner-item .cert-logo-dark {
  display: block;
}

.cert-banner-item:hover .cert-logo {
  opacity: 1;
}

@media (max-width: 992px) {
  .cert-banner-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
  }

  .cert-banner-item .cert-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .certifications-banner {
    padding: 2rem 0;
  }

  .cert-banner-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
  }

  .cert-banner-item .cert-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .cert-banner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cert-banner-item .cert-logo {
    width: 55px;
    height: 55px;
  }

  .cert-banner-item span {
    font-size: 0.65rem;
  }
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  flex-shrink: 0;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo .logo-icon {
  height: 80px;
  width: auto;
}

.footer-logo .logo-text {
  height: 64px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-icon {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social .social-icon:hover {
  color: #4CAF50;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4CAF50;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #4CAF50;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #4CAF50;
}

/* ===== Footer Responsive ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo .logo-icon {
    height: 50px;
  }

  .footer-logo .logo-text {
    height: 40px;
  }

  .footer-social {
    justify-content: center;
  }
  
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }
  
  .footer-links li {
    margin-bottom: 0;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== Legal/Policy Pages ===== */
.page-hero {
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: #ffffff;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-hero .last-updated {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.legal-content {
  background-color: var(--bg-primary);
  padding: 3rem 1.5rem;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4CAF50;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal-section ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-section ul li {
  margin-bottom: 0.5rem;
}

.legal-section address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-section address a {
  color: #4CAF50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section address a:hover {
  color: #2E7D32;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 5rem 1rem 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 2rem 1rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }
}
.contact-form .checkbox-label {
  display: flex;
}
.contact-form .checkbox-label input[type="checkbox"] {
  padding: 0;
}