/* ============================================
   CFAM Website - Modern CSS Stylesheet
   ============================================ */

/* 1. CSS Reset & Variables
   ============================================ */
:root {
  --cfam-pink: #d24d65;
  --cfam-green: #0D7576;
  --cfam-yellow: #FBC831; /* Background color - use for backgrounds */
  --cfam-yellow-text: #946200; /* WCAG AA compliant yellow for text (7:1 contrast) */
  --cfam-soft-pink: #F7A782;
  --cfam-teal: #23A2A5;
  --cfam-dark: #212529;
  --cfam-light: #f8f9fa;
}

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

/* 2. Base Styles
   ============================================ */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cfam-dark);
  background-color: #fff;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--cfam-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cfam-green);
}

/* 3. Navbar
   ============================================ */
.navbar {
  background-color: var(--cfam-dark) !important;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 400;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--cfam-yellow) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 4. Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/bg-masthead.png') center center / cover no-repeat;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .photo-credit {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.95);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
}

.hero .photo-credit a {
  color: rgba(255,255,255,1);
  text-decoration: underline;
}

/* 5. AMB Bill Section
   ============================================ */
.amb-section {
  background-color: var(--cfam-yellow);
  padding: 3rem 0;
  text-align: center;
}

.amb-section h2 {
  color: var(--cfam-dark);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.amb-section p.lead {
  font-size: 1.2rem;
  color: var(--cfam-dark);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.amb-section .btn-group {
  gap: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* 6. Card Components
   ============================================ */
.promise-cards {
  padding: 4rem 0;
  background-color: #fff;
}

.promise-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--cfam-green);
}

.promise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.promise-card.pink { border-left-color: var(--cfam-pink); }
.promise-card.teal { border-left-color: var(--cfam-teal); }
.promise-card.green { border-left-color: var(--cfam-green); }

.promise-card h3 {
  color: var(--cfam-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.promise-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Article Cards */
.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

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

.article-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.25rem;
  color: var(--cfam-dark);
  margin-bottom: 0.75rem;
}

.article-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Councillor Cards */
.councillor-card {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.councillor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--cfam-light);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.councillor-card h5 {
  font-size: 1.1rem;
  color: var(--cfam-dark);
  margin-bottom: 0.25rem;
}

.councillor-card .ward {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.councillor-card .social-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.councillor-card .social-icons a {
  color: #666;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.councillor-card .social-icons a:hover {
  color: var(--cfam-teal);
}

.councillor-card .social-icons a.disabled {
  color: #ddd;
  pointer-events: none;
}

/* 7. Buttons
   ============================================ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--cfam-green);
  color: white;
}

.btn-primary:hover {
  background-color: #0a5a5b;
  color: white;
}

.btn-secondary {
  background-color: var(--cfam-pink);
  color: white;
}

.btn-secondary:hover {
  background-color: #b93d54;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--cfam-dark);
  color: var(--cfam-dark);
}

.btn-outline:hover {
  background-color: var(--cfam-dark);
  color: white;
}

/* 8. Footer
   ============================================ */
footer {
  background-color: var(--cfam-light);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer .footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer .footer-links li {
  display: inline;
}

footer .footer-links a {
  color: var(--cfam-dark);
  font-size: 0.95rem;
}

footer .footer-links a:hover {
  color: var(--cfam-teal);
}

footer .footer-links .separator {
  color: #999;
  margin: 0 0.5rem;
}

footer .social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer .social-icons a {
  color: var(--cfam-dark);
  font-size: 1.75rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--cfam-teal);
}

footer .copyright {
  text-align: left;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
  padding-left: 0.5rem;
}

footer .copyright i {
  font-size: 1rem;
  margin: 0 0.1rem;
  transition: color 0.3s ease;
}

footer .copyright a:hover i {
  color: var(--cfam-teal);
}

footer .footer-steward {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

footer .footer-steward a {
  color: var(--cfam-dark);
  text-decoration: none;
}

footer .footer-steward a:hover {
  color: var(--cfam-teal);
}

footer .footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cfam-dark);
  margin-bottom: 1rem;
}

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

footer .footer-menu li {
  margin-bottom: 0.5rem;
}

footer .footer-menu a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

footer .footer-menu a:hover {
  color: var(--cfam-teal);
}

footer .social-icons {
  margin-top: 1rem;
}

/* Mobile responsiveness for footer */
@media (max-width: 991px) {
  footer .col-md-12 {
    text-align: center;
  }

  footer .col-md-6 {
    text-align: center;
  }

  footer .footer-menu {
    text-align: center;
  }

  footer .social-icons {
    justify-content: center;
  }

  footer .footer-steward {
    text-align: center;
  }

  footer .copyright {
    text-align: center;
    padding-left: 0;
  }
}

/* 9. Special Sections
   ============================================ */
.page-header {
  background-color: var(--cfam-green);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.cta-section {
  background-color: #fff9e6;
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
  margin: 3rem 0;
  border: 2px solid var(--cfam-yellow);
}

.cta-section h2 {
  color: var(--cfam-dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-section {
  background-color: white;
  padding: 3rem 0;
}

.about-section .commissioner-quote {
  background-color: var(--cfam-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 5px solid var(--cfam-green);
  margin: 2rem 0;
}

.about-section blockquote {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.about-section .blockquote-footer {
  font-style: normal;
  color: #666;
  font-weight: 600;
}

.video-section {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.video-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--cfam-dark);
}

.discord-banner {
  background-color: var(--cfam-yellow);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.discord-banner img {
  height: 30px;
  width: auto;
  vertical-align: middle;
  margin: 0 0.5rem;
}

/* 10. Utility Classes
   ============================================ */
.bg-cfam-pink { background-color: var(--cfam-pink) !important; }
.bg-cfam-green { background-color: var(--cfam-green) !important; }
.bg-cfam-yellow { background-color: var(--cfam-yellow) !important; }
.bg-cfam-soft-pink { background-color: var(--cfam-soft-pink) !important; }
.bg-cfam-teal { background-color: var(--cfam-teal) !important; }

.text-cfam-pink { color: var(--cfam-pink) !important; }
.text-cfam-green { color: var(--cfam-green) !important; }
.text-cfam-yellow { color: var(--cfam-yellow-text) !important; }
.text-cfam-teal { color: var(--cfam-teal) !important; }

.border-cfam-pink { border-color: var(--cfam-pink) !important; }
.border-cfam-green { border-color: var(--cfam-green) !important; }
.border-cfam-yellow { border-color: var(--cfam-yellow) !important; }

/* AMB Preview Section */
.amb-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* International Comparison Section */
.international-comparison {
  background-color: #fff;
}

.city-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.city-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.city-header {
  padding: 1.5rem;
  color: white;
  text-align: center;
  position: relative;
}

.city-header i.fa-flag {
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.city-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.city-header .country {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0;
  color: white;
}

.city-stats {
  padding: 1.5rem;
}

.stat-highlight {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cfam-green);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.stat-detail {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-detail i {
  font-size: 1rem;
}

.city-tagline {
  font-style: italic;
  color: #888;
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

.insights-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid var(--cfam-teal);
}

.insights-box h3 {
  color: var(--cfam-dark);
}

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}

.insight-item i {
  font-size: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.insight-item strong {
  color: var(--cfam-green);
}

.btn-cfam-teal {
  background-color: var(--cfam-teal);
  color: white;
  border: none;
}

.btn-cfam-teal:hover {
  background-color: var(--cfam-green);
  color: white;
}

/* ROI Impact Cards */
.roi-impact {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.roi-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.roi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cfam-green), var(--cfam-teal));
}

.roi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.roi-card.financial {
  border-top-color: var(--cfam-green);
}

.roi-card.financial:hover {
  border-color: var(--cfam-green);
}

.roi-card.environmental {
  border-top-color: var(--cfam-teal);
}

.roi-card.environmental:hover {
  border-color: var(--cfam-teal);
}

.roi-card.health {
  border-top-color: var(--cfam-pink);
}

.roi-card.health:hover {
  border-color: var(--cfam-pink);
}

.roi-card.economic {
  border-top-color: var(--cfam-yellow);
}

.roi-card.economic:hover {
  border-color: var(--cfam-yellow);
}

.roi-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.roi-card.financial .roi-icon {
  color: var(--cfam-green);
}

.roi-card.environmental .roi-icon {
  color: var(--cfam-teal);
}

.roi-card.health .roi-icon {
  color: var(--cfam-pink);
}

.roi-card.economic .roi-icon {
  color: var(--cfam-yellow);
}

.roi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cfam-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.roi-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.roi-description {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 0;
}

.stat-card {
  padding: 2rem 1rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.highlight-card {
  padding: 2rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
}

/* 11. Persona Selector
   ============================================ */

.persona-selector {
  background-color: #fff;
}

.persona-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--cfam-dark);
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.persona-card:hover,
.persona-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  color: var(--cfam-dark);
  text-decoration: none;
}

.persona-card:focus-visible {
  outline: 3px solid var(--cfam-teal);
  outline-offset: 2px;
}

.persona-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.persona-card:hover .persona-icon,
.persona-card:focus .persona-icon {
  transform: scale(1.1);
}

.persona-icon.citizen {
  background: linear-gradient(135deg, var(--cfam-teal), var(--cfam-green));
}

.persona-icon.expert {
  background: linear-gradient(135deg, var(--cfam-green), #0a5a5b);
}

.persona-icon.administrator {
  background: linear-gradient(135deg, var(--cfam-pink), #b93d54);
}

.persona-icon.politician {
  background: linear-gradient(135deg, #946200, #b07700);
}

.persona-icon.corporate {
  background: linear-gradient(135deg, #212529, #495057);
}

.persona-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--cfam-dark);
}

.persona-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.persona-cta {
  display: inline-block;
  color: var(--cfam-teal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.persona-card:hover .persona-cta,
.persona-card:focus .persona-cta {
  transform: translateX(5px);
}

/* Problem Statement Section */
.problem-statement {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-number-large {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: var(--cfam-pink);
  line-height: 1;
}

.stat-label-large {
  display: block;
  font-size: 1.2rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* 12. Community Engagement Zone
   ============================================ */

.community-zone {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.community-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.community-header {
  padding: 1.5rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.community-header i {
  font-size: 3rem;
}

.community-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.community-card.discord .community-header {
  background: linear-gradient(135deg, var(--cfam-teal) 0%, var(--cfam-pink) 100%);
}

.community-card.telegram .community-header {
  background: linear-gradient(135deg, var(--cfam-green) 0%, var(--cfam-teal) 100%);
}

.community-card.share .community-header {
  background: linear-gradient(135deg, var(--cfam-green) 0%, var(--cfam-teal) 100%);
}

.community-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.activity-preview,
.latest-post {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid var(--cfam-teal);
}

.online-indicator {
  color: #22c55e;
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.community-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.community-stats span {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.community-stats i {
  color: var(--cfam-teal);
}

.btn-discord {
  background: linear-gradient(135deg, var(--cfam-teal) 0%, var(--cfam-pink) 100%);
  color: white;
  border: none;
  width: 100%;
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn-discord:hover {
  background: linear-gradient(135deg, var(--cfam-pink) 0%, #b93d54 100%);
  color: white;
}

.btn-telegram {
  background: linear-gradient(135deg, var(--cfam-green) 0%, var(--cfam-teal) 100%);
  color: white;
  border: none;
  width: 100%;
  margin-bottom: 1rem;
  font-weight: 600;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, var(--cfam-teal) 0%, #0a5a5b 100%);
  color: white;
}

.qr-code-container {
  text-align: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.qr-code {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  margin-bottom: 0.5rem;
}

.qr-code-container small {
  display: block;
  color: #666;
  font-size: 0.75rem;
}

.share-message {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.share-text {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.6;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--cfam-green) 0%, #0a5a5b 100%);
  color: white;
  border: none;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #0a5a5b 0%, #084848 100%);
  color: white;
}

.btn-twitter {
  background: linear-gradient(135deg, var(--cfam-teal) 0%, #1a8889 100%);
  color: white;
  border: none;
  font-weight: 600;
}

.btn-twitter:hover {
  background: linear-gradient(135deg, #1a8889 0%, #157273 100%);
  color: white;
}

.community-cta {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
}

.community-cta h3 {
  color: var(--cfam-green);
  margin-bottom: 1rem;
}

.community-cta p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* 13. Accessibility
   ============================================ */

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--cfam-teal);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--cfam-yellow);
  outline-offset: 2px;
}

/* Focus Visible Styles */
*:focus-visible {
  outline: 3px solid var(--cfam-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure buttons, links, and interactive elements have visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--cfam-teal);
  outline-offset: 2px;
}

/* Remove default focus outline for mouse users (keep for keyboard) */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure adequate touch target sizes (minimum 44x44px) */
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Social icons - increase touch target */
footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable AOS animations for reduced motion users */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-masthead.png') center center / cover no-repeat;
  }

  .photo-credit {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
  }
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 12. Responsive Design
   ============================================ */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .hero h2 { font-size: 1.25rem; }

  .amb-section h2 { font-size: 2rem; }

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

  footer .footer-links {
    flex-direction: column;
    align-items: center;
  }

  footer .footer-links .separator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }

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

  .hero h2 {
    font-size: 1.1rem;
  }

  .amb-section h2 {
    font-size: 1.75rem;
  }

  .amb-section .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .promise-card {
    padding: 1.5rem;
  }

  .article-card img {
    height: 180px;
  }

  .councillor-card img {
    width: 120px;
    height: 120px;
  }

  .cta-section {
    padding: 2rem;
  }

  .city-card {
    margin-bottom: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .insights-box {
    padding: 1.5rem;
  }

  .insight-item {
    font-size: 0.9rem;
  }

  .roi-value {
    font-size: 2rem;
  }

  .roi-icon {
    font-size: 2.5rem;
  }

  .roi-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* App Mockup Image Styling */
.app-mockup img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-mockup img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive sizing */
@media (min-width: 768px) {
  .app-mockup img {
    max-width: 400px;
  }
}

@media (min-width: 992px) {
  .app-mockup img {
    max-width: 500px;
  }
}
