/* Custom stylesheet for StateOfSA */
:root {
  --primary: #e06d43;
  --primary-hover: #c4572f;
  --dark: #001220;
  --light-gray: #f8f9fa;
  --text-dark: #121212;
  --text-muted: #5a5a5a;
  --bg-gradient: linear-gradient(135deg, #001220 0%, #0d2c54 100%);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header and Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  height: 28px;
  fill: #ffffff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.cta-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cta-btn:hover {
  background: var(--primary-hover);
}

/* Mobile Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.burger rect {
  fill: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #ffffff;
  padding: 0 2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 18, 32, 0.7) 0%, rgba(0, 18, 32, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: #e5e5e5;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Sections */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Grid Systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  background: #ffffff;
  border: 1px solid #eef1f4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-tag {
  display: inline-block;
  background: rgba(224, 109, 67, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--primary-hover);
}

/* Newsletter Block */
.newsletter-block {
  background: #e1f2f7;
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid #c9d6dc;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter-form button {
  background: var(--dark);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #03213a;
}

/* Team Profiles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: #ffffff;
  border: 1px solid #f1f1f1;
  padding-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem 0;
}

.team-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: var(--dark);
  color: #aeb9cc;
  padding: 5rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about .logo svg {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #aeb9cc;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 2rem;
  z-index: 9999;
  display: none;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-banner-text h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-preferences {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #ffffff;
}

.btn-cookie-reject {
  background: #eef1f4;
  color: var(--text-dark);
}

.btn-cookie-save {
  background: var(--dark);
  color: #ffffff;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input { 
  margin-top: 0.3rem;
}

/* Style utilities and interactive visual elements */
.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* About grid layout */
.about-lead {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Legal page styling */
.legal-container {
  max-width: 850px;
  margin: 8rem auto 4rem auto;
  padding: 0 2rem;
}

.legal-container h1 {
  margin-bottom: 1rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-content h2, .legal-content h3 {
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 0.5rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  margin-bottom: 1rem;
  color: #444;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-table th, .legal-table td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.legal-table th {
  background: #f8fafc;
}

/* Responsive designs */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .grid-3, .grid-2, .team-grid, .footer-container {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
}