/* CSS Variables */
:root {
  --primary-green: #8A9C3B;
  --burnt-orange: #D2691E;
  --dark-brown: #3B2416;
  --light-brown: #8B6F47;
  --cream: #F5F3F0;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --gray-medium: #E5E5E5;
  --gray-dark: #666666;
  --black: #1C1C1C;
  
  --font-family: 'Poppins';
  /* Make the entire site fluid width */
  --container-width: 90%;
  --section-padding: 60px 0;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Self-hosted Poppins font (TTF). Consider WOFF2 for smaller size when available. */
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-brown);
  background-color: var(--white);
  overflow-x: hidden; /* prevent accidental horizontal scroll */
}

/* Ensure all form controls and interactive elements inherit Poppins */
button,
input,
textarea,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark-brown);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-dark {
  background-color: var(--dark-brown);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--black);
}

.btn.small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 0;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: #2c5530;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 14px 20px;
  color: #4a5568;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: #f8f9fa;
  color: #2c5530;
  padding-left: 24px;
}

.nav-dropdown-menu a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.nav-dropdown-menu a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Mobile responsive styles for dropdown */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(248, 249, 250, 0.95);
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    border-left: 3px solid #2c5530;
  }

  /* On mobile, ignore hover – expand only when [aria-expanded="true"] */
  .nav-dropdown:hover .nav-dropdown-menu {
    max-height: 0; /* prevent hover from forcing it open on touch */
  }
  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    max-height: none; /* expanded state */
  }

  .nav-dropdown-menu a {
    padding: 12px 20px 12px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
    color: #4a5568;
    font-weight: 500;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(44, 85, 48, 0.08);
    color: #2c5530;
    padding-left: 28px;
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown-toggle {
    position: relative;
  }

  .dropdown-arrow {
    display: block;
  }

  /* Enhanced mobile navigation */
  .main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  z-index: 1001;
}

/* Image logo in header */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 30px; width: auto; display: block; }

@media (max-width: 640px) {
  .logo-img { height: 25px; }
}

/* Ensure the anchor wrapping the logo has no underline in any state */
.site-header .nav > a,
.site-header .nav > a:visited,
.site-header .nav > a:hover,
.site-header .nav > a:focus {
  text-decoration: none;
  color: inherit;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  transition: var(--transition);
  align-items: center;
}

/* Hide the close button by default (desktop) */
.main-nav .nav-close {
  display: none;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-green);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Carousel */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  margin-top: 80px;
}

.carousel {
  position: relative;
  height: 100%;
}

.slides {
  position: relative;
  height: 100%;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .hero { 
    height: 90vh;
    min-height: 500px;
    max-height: 800px;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .hero { 
    height: 85vh;
    min-height: 450px;
    max-height: 700px;
  }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .hero { 
    height: 80vh;
    min-height: 400px;
    max-height: 600px;
  }
}

/* Very small phones: optimize for full image visibility */
@media (max-width: 480px) {
  .hero {
    height: 75vh;
    min-height: 350px;
    max-height: 500px;
  }
  .slide {
    background-size: cover; /* maintain cover for better visual impact */
    background-position: center center;
    background-attachment: scroll; /* improve mobile performance */
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  /* Ensure images are fully contained on smaller screens */
}

.slide.active {
  opacity: 1;
}

/* Responsive background positioning for better image visibility */
@media (max-width: 768px) {
  .slide {
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 640px) {
  .slide {
    background-size: contain;
    background-position: center center;
    background-color: var(--dark-brown);
  }
}

@media (max-width: 480px) {
  .slide {
    background-size: contain;
    background-position: center center;
    background-color: var(--dark-brown);
    /* Show full image with letterboxing if needed */
  }
}

.slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  /* Align content to the site container width (var(--container-width)) and keep 20px gutter */
  padding-left: calc((100% - var(--container-width)) / 2 + 20px);
  padding-right: calc((100% - var(--container-width)) / 2 + 20px);
  z-index: 1; /* ensure arrows sit above overlay */
}

/* Responsive overlay adjustments */
@media (max-width: 1024px) {
  .slide .overlay {
    padding-left: calc((100% - 90%) / 2 + 20px);
    padding-right: calc((100% - 90%) / 2 + 20px);
  }
}

@media (max-width: 768px) {
  .slide .overlay {
    padding: 20px 30px;
    justify-content: center;
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .slide .overlay {
    padding: 20px 25px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .slide .overlay {
    padding: 15px 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

/* The overlay now aligns with container; no extra large paddings needed on big screens */

.slide h1 {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.slide p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .slide h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .slide p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .slide h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 0.8rem;
  }
  
  .slide p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .slide h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    margin-bottom: 0.6rem;
  }
  
  .slide p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 320px;
  }
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  border: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  font-size: 18px;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: clamp(10px, 3vw, 30px); }
.carousel-control.next { right: clamp(10px, 3vw, 30px); }

/* Mobile carousel controls */
@media (max-width: 768px) {
  .carousel-control {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .carousel-control.prev { left: 15px; }
  .carousel-control.next { right: 15px; }
}

@media (max-width: 480px) {
  .carousel-control {
    width: 45px;
    height: 45px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .carousel-control.prev { left: 10px; }
  .carousel-control.next { right: 10px; }
}

/* Sections */
.section {
  position: relative;
}

.section.pad {
  padding: var(--section-padding);
}

.section.alt {
  background-color: var(--gray-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text h2 {
  color: var(--dark-brown);
  margin-bottom: 2rem;
}

.bullets {
  list-style: none;
  padding-left: 0;
}

.bullets li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--burnt-orange);
  font-size: 1.5rem;
  font-weight: bold;
}

.media.framed {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.media.framed img {
  width: 100%;
  height: auto;
}

/* Mission & Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mission-vision-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.mission-vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  border: 3px solid var(--dark-brown);
}

.mission-vision-card h2 {
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.mission-vision-card p {
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .mission-vision-card {
    padding: 2rem;
  }
  
  .mv-icon {
    width: 70px;
    height: 70px;
  }
  
  .mission-vision-card h2 {
    font-size: 1.5rem;
  }
  
  .mission-vision-card p {
    font-size: 1rem;
  }
}

/* Small screens: stack icon above text so the body copy has full width */
@media (max-width: 640px) {
  .about-section .vm-block {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }
  .about-section .vm-block h2,
  .about-section .vm-block p { grid-column: 1 / -1; }
  .about-section .vm-icon { width: 72px; height: 72px; }
  .about-section p { font-size: 1rem; }
}

/* About Page Specific Styles - Reduce section gaps */
.about-page .section.pad {
  padding: 40px 0;
}

.about-page .hero-about {
  padding: 30px 0;
}

/* Ensure anchored sections on About page are not hidden behind fixed header */
.about-page section[id] {
  scroll-margin-top: 100px; /* matches ~80px header + spacing */
}

.about-page .story-section,
.about-page .about-us-section,
.about-page .mission-vision-section,
.about-page .values-section,
.about-page .principles-section,
.about-page .partners-section,
.about-page .careers-section,
.about-page .store-cta-section {
  padding: 35px 0;
}

/* Section headers with reduced spacing */
.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--dark-brown);
  margin: 0 0 1rem 0;
}

.section-subtitle {
  color: var(--gray-dark);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0;
  line-height: 1.6;
}

/* Values grid styling */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  color: var(--dark-brown);
}

.value-card h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.value-card p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* Principles grid styling */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--dark-brown);
  transition: var(--transition);
}

.principle-card:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.principle-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.principle-card h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.principle-card p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* Store CTA styling */
.store-cta-content {
  text-align: left;
  max-width: 600px;
  margin: 0;
}

.store-cta-content h2 {
  margin-bottom: 1rem;
  color: var(--dark-brown);
}

.store-cta-content p {
  margin-bottom: 2rem;
  color: var(--gray-dark);
  font-size: 1.1rem;
}

.store-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-brown);
  border: 2px solid var(--dark-brown);
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--dark-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Careers CTA styling */
.careers-cta {
  text-align: left;
  max-width: 600px;
  margin: 0;
}

.careers-cta h3 {
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.careers-cta p {
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.careers-cta .btn-primary {
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(59, 36, 22, 0.2);
}

.careers-cta .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 36, 22, 0.3);
}

/* Partners placeholder styling */
.partners-placeholder {
  text-align: left;
  padding: 3rem 2rem;
  background: var(--gray-light);
  border-radius: 12px;
  border: 2px dashed var(--gray-medium);
}

.partners-placeholder p {
  color: var(--gray-dark);
  margin: 0;
  font-size: 1.1rem;
}

.link {
  color: var(--dark-brown);
  text-decoration: underline;
  font-weight: 600;
}

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

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--burnt-orange) 100%);
  color: var(--white);
  padding: 6rem 0 4rem;
  margin-top: 80px;
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-section h2 {
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--gray-dark);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin: 3rem 0;
  border: 1px solid rgba(138, 156, 59, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact page base layout */
.contact-intro {
  max-width: none; /* make fluid within container */
  width: 100%;
  margin: 0 0 2rem 0; /* left aligned block */
  text-align: left;
}

.contact-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: none; /* fluid within container */
  width: 100%;
  margin: 0 0 2rem 0; /* left aligned block */
}

/* Normalize address typography and link styles on contact page */
address.contact-quick { font-style: normal; }
.contact-quick a,
.contact-link,
.lnk {
  text-decoration: none;
  color: var(--dark-brown);
}
.contact-quick a:visited,
.contact-link:visited,
.lnk:visited { color: var(--dark-brown); }
.contact-quick a:hover,
.contact-link:hover,
.lnk:hover {
  text-decoration: none;
  color: var(--black);
}

/* Team & Advisory: make LinkedIn links visible and consistent */
.team-section .team-meta .lnk,
.advisory-section .advisory-meta .lnk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-brown);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
  border: 2px solid var(--dark-brown);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-top: 8px;
  vertical-align: middle; /* align with icon buttons */
}

.team-section .team-meta .lnk:hover,
.advisory-section .advisory-meta .lnk:hover {
  background: var(--white);
  color: var(--dark-brown);
  transform: translateY(-2px);
}

/* Team & Advisory: inline icon buttons for More and Open (match LinkedIn pill) */
.team-section .team-meta .icon-btn,
.advisory-section .advisory-meta .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-brown);
  color: var(--white);
  border: 2px solid var(--dark-brown);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-left: 6px;
  margin-top: 8px; /* align with .lnk vertical spacing */
  vertical-align: middle; /* align with LinkedIn pill */
}

.team-section .team-meta .icon-btn:hover,
.advisory-section .advisory-meta .icon-btn:hover {
  background: var(--white);
  color: var(--dark-brown);
  transform: translateY(-2px);
}

.team-section .team-meta .icon-btn svg,
.advisory-section .advisory-meta .icon-btn svg {
  pointer-events: none; /* allow button click through the SVG */
  width: 18px;
  height: 18px; /* ensure consistent inner icon size */
}

.form-row--three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-row--three {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  padding: 16px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  background-color: #fafafa;
  font-family: var(--font-family);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(138, 156, 59, 0.15);
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-family);
  line-height: 1.6;
}

.btn-primary {
  background-color: var(--dark-brown);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-medium);
}

.contact-details h3 {
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

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

.contact-item strong {
  color: var(--primary-green);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--white);
  color: var(--dark-brown);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: left; /* left align section */
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  justify-items: start; /* left align children */
}

.newsletter-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.5rem 0; /* left align title */
  text-align: left;
}

/* Layout wrapper for newsletter text and form */
.newsletter-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: start; /* left align items horizontally */
}

/* Coming Soon mobile countdown tweak */
@media (max-width: 640px) {
  .cs-countdown { grid-template-columns: repeat(2, 1fr); }
  .cs-inputs { max-width: 92%; }
  .cs-form .newsletter-input-group input { height: 52px; font-size: 16px; }
  .cs-form .newsletter-input-group .btn-primary { height: 52px; padding: 0 18px; font-size: 16px; }

  /* Newsletter block on small screens: stack neatly and look professional */
  .newsletter-section .newsletter-input-group {
    flex-direction: column;
    gap: 16px; /* increased gap between input and button */
    max-width: 92%;
  }
  .newsletter-section .newsletter-form .newsletter-input-group { max-width: 92%; }
  .newsletter-section .newsletter-form label { max-width: 92%; text-align: left; }
  .newsletter-section .newsletter-input-group input {
    height: 52px;
    border-right: 2px solid var(--gray-medium); /* restore full border when stacked */
    border-radius: 12px; /* fully rounded corners on mobile */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .newsletter-section .newsletter-input-group .btn-primary {
    width: 100%;
    height: 52px;
    border-radius: 12px; /* fully rounded corners on mobile */
    padding: 0 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}

/* Our Story Page Styles */
.story-page .section.pad {
  padding: 50px 0;
}

/* Story Hero Section */
.story-hero {
  background: var(--primary-green);
  color: var(--white);
  padding: 0.6rem 0 2.5rem;
  margin-top: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./Resources/Pattern\ 1.png') repeat;
  opacity: 0.1;
  z-index: 1;
}

.story-hero-content {
  position: relative;
  z-index: 2;
}

.story-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.story-hero-subtitle {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.story-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 768px) {
  .story-hero {
    padding: 4.5rem 0 3rem;
  }
  
  .story-hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Story Content Sections */
.story-section {
  position: relative;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.story-content.reverse .story-visual {
  order: -1;
}

.story-text {
  max-width: none;
}

.story-visual {
  position: relative;
}

.story-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.highlight-item h3 {
  color: var(--dark-brown);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--gray-dark);
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Story CTA Section */
.story-cta-section {
  background: var(--gray-light);
}

.story-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.story-cta h2 {
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.story-cta p {
  color: var(--gray-dark);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.story-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Story Layout */
@media (max-width: 1024px) {
  .story-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .story-content,
  .story-content.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .story-content.reverse .story-visual {
    order: 0;
  }
  
  .story-highlights {
    gap: 1rem;
  }
  
  .highlight-item {
    padding: 1.2rem;
  }
  
  .story-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .story-cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .story-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .story-section {
    padding: 40px 0;
  }
  
  .story-content {
    gap: 2rem;
  }
}

/* Modal Responsive Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--burnt-orange) 100%);
  color: var(--white);
  padding: 2rem 2.5rem 1.5rem;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-brown);
  margin: 0;
  text-align: justify;
  max-width: none;
  width: 100%;
}

/* Two-column layout for desktop modal content */
@media (min-width: 769px) {
  .modal-content {
    max-width: 800px;
  }
  
  .modal-body {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  
  .modal-body p:first-child {
    grid-column: 1;
  }
  
  .modal-body p:nth-child(2) {
    grid-column: 2;
  }
  
  .modal-body > div {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
  }
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    max-height: 80vh;
  }
  
  .modal-header {
    padding: 1.5rem 2rem 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-close {
    top: 0.8rem;
    right: 1rem;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-body p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 15% auto;
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 1.2rem 1.5rem 0.8rem;
    border-radius: 12px 12px 0 0;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-close {
    top: 0.6rem;
    right: 0.8rem;
    font-size: 1.6rem;
    width: 32px;
    height: 32px;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Arrange copy and form side-by-side on desktop */
.newsletter-section p,
.newsletter-section .newsletter-form { max-width: 900px; margin: 0; }

@media (min-width: 900px) {
  .newsletter-section { 
    grid-template-columns: 1fr; /* title row */
    grid-auto-rows: auto;
  }
  .newsletter-section h2 { grid-column: 1 / -1; }
  /* Create a two-column row using a wrapper-less approach */
  .newsletter-section p { max-width: none; width: 100%; }
  .newsletter-section .newsletter-form { max-width: none; width: 100%; justify-items: start; }
  .newsletter-section { row-gap: 0.5rem; }
  /* Use a grid container to align p and form in two columns */
  .newsletter-section { --nl-columns: minmax(280px, 1fr) minmax(420px, 1fr); }
  .newsletter-section > p,
  .newsletter-section > form { justify-self: stretch; }
  .newsletter-section > h2 + p { grid-column: 1 / 1; }
  .newsletter-section > form.newsletter-form { grid-column: 1 / -1; }
  /* Turn the last two elements into a two-column grid row */
  .newsletter-section { grid-template-areas: "title" "row"; }
  .newsletter-section h2 { grid-area: title; }
}

/* Repeating pattern banner above newsletter (uses Resources/image.png) */
.pattern-banner {
  width: 100%;
  height: 35px;
  background-image: url('Resources/Pattern\ 1.png');
  background-repeat: repeat-x;
  /* Scale pattern to match banner height so motif is not thin */
  background-size: auto 35px;
  background-position: center;
}

/* Taller variant for pages that need a bigger pattern strip */
.pattern-banner--tall {
  /* Band height */
  height: 120px;
  /* Zoom the artwork so shapes look thicker inside the band */
  background-size: auto 400px; /* increase to zoom in */
  background-position: center;
}

@media (max-width: 640px) {
  .pattern-banner--tall { 
    height: 100px; 
    background-size: auto 220px; /* keep zoom on mobile */
  }
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.newsletter-section p { color: var(--dark-brown); margin-bottom: 0; }

/* Newsletter Form */
.newsletter-form { text-align: left; }
.newsletter-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--dark-brown); }
/* If label had sr-only, make it visible here for this section */
/* Only make sr-only labels visible inside the main site newsletter section, not global */
.newsletter-section .newsletter-form label.sr-only { position: static; width: auto; height: auto; clip: auto; clip-path: none; margin: 0 0 0.5rem 0; white-space: normal; }

.newsletter-input-group { display: flex; gap: 0; align-items: stretch; justify-content: stretch; }
.newsletter-input-group input { 
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--gray-medium);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
}
.newsletter-input-group input::placeholder { color: #8c8c8c; }
.newsletter-input-group .btn-primary { 
  background-color: var(--dark-brown);
  color: var(--white);
  border: 2px solid var(--dark-brown);
  border-radius: 0 10px 10px 0;
  margin-top: 0;
  padding: 0 22px;
}
.newsletter-input-group .btn-primary:hover { background-color: var(--black); border-color: var(--black); }

/* Ensure the newsletter form matches the mock (override generic styles below) */
.newsletter-section .newsletter-input-group { display: flex; align-items: stretch; gap: 0; margin-bottom: 0; }
.newsletter-section .newsletter-form { display: grid; justify-items: start; justify-self: stretch; width: 100%; }
.newsletter-section .newsletter-form label { max-width: 560px; width: 100%; margin: 0 0 8px 0; text-align: left; font-weight: 600; color: var(--dark-brown); }
.newsletter-section .newsletter-input-group .btn-primary {
  background-color: var(--dark-brown);
  color: #fff;
  border: 2px solid var(--dark-brown);
  border-radius: 0 12px 12px 0;
  padding: 0 22px;
  height: 56px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.newsletter-section .newsletter-input-group .btn-primary:hover { background-color: #2a1a0f; border-color: #2a1a0f; }

/* Mobile override AFTER desktop block to ensure full rounding on both sides */
@media (max-width: 640px) {
  .newsletter-section .newsletter-input-group .btn-primary {
    border-radius: 12px;
    width: 100%;
  }
  .newsletter-section .newsletter-input-group input {
    border-radius: 12px;
    border: 2px solid var(--gray-medium); /* restore full border when stacked */
    border-right: 2px solid var(--gray-medium);
  }
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1rem;
}

.newsletter-input-group input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-input-group .btn-primary {
  background-color: var(--white);
  color: var(--primary-green);
  margin-top: 0;
  white-space: nowrap;
}

.newsletter-input-group .btn-primary:hover {
  background-color: var(--cream);
  transform: translateY(-1px);
}

.newsletter-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Final overrides: ensure newsletter layout and borders in .newsletter-section are correct
   regardless of earlier generic .newsletter-input-group rules */
.newsletter-section .newsletter-form .newsletter-input-group input {
  box-sizing: border-box;
  border: 2px solid var(--gray-medium);
  border-right: none;
  border-radius: 12px 0 0 12px;
}
.newsletter-section .newsletter-form .newsletter-input-group .btn-primary {
  border-radius: 0 12px 12px 0;
}

@media (max-width: 640px) {
  .newsletter-section .newsletter-form .newsletter-input-group {
    flex-direction: column;
    gap: 16px;
    max-width: 92%;
  }
  .newsletter-section .newsletter-form .newsletter-input-group input {
    border: 2px solid var(--gray-medium);
    border-radius: 12px;
  }
  .newsletter-section .newsletter-form .newsletter-input-group .btn-primary {
    width: 100%;
    border-radius: 12px;
  }
}

/* Coming Soon Page */
.coming-soon-body { background: #0b0b0b; }
.coming-soon {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1d1d1f;
  position: relative;
  overflow: hidden;
}
.cs-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at -10% 0%, #d2e6d9 0%, transparent 60%),
              radial-gradient(1200px 600px at 110% 20%, #ffe7c7 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  pointer-events: none;
}
.cs-header { display: flex; justify-content: center; padding: 24px; position: relative; z-index: 1; }
.cs-logo { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.5px; color: var(--dark-brown); }
.cs-hero { display: grid; place-items: center; padding: 40px 16px; position: relative; z-index: 1; }
.cs-card {
  width: min(980px, 92%);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  text-align: center;
  margin: 0 auto;
}
.cs-card h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.15; margin: 0 0 10px; color: #1f2a24; }
.cs-sub { color: #42524a; margin: 0 auto 18px; max-width: 56ch; }
.cs-countdown { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 14px; align-items: stretch; justify-items: center; margin: 18px 0 16px; }
.cs-count { width: 100%; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 14px; padding: 14px 10px; box-shadow: 0 8px 22px rgba(0,0,0,0.06); }
.cs-count .num { font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.4rem); color: #212b26; }
.cs-count .lab { font-size: 0.8rem; color: #6a7a72; letter-spacing: 0.04em; }
.cs-form { margin-top: 8px; }
.cs-inputs { gap: 10px; max-width: 560px; margin: 0 auto; width: 100%; }
.cs-form label.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); clip-path: inset(50%); border: 0; }
.cs-form .newsletter-input-group { display: flex; align-items: stretch; gap: 0; width: 100%; }
.newsletter-section .newsletter-input-group input {
  border: 2px solid var(--gray-medium);
  border-right: none; /* mate cleanly with button */
  border-radius: 12px 0 0 12px; /* no right rounding on desktop */
  background: #fff;
  height: 56px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.cs-form .newsletter-input-group input::placeholder { color: #9aa3a0; }
.cs-form .newsletter-input-group .btn-primary {
  border: 2px solid var(--dark-brown);
  background: var(--dark-brown);
  color: #fff;
  border-radius: 0 14px 14px 0;
  margin-top: 0;
  padding: 0 22px;
  height: 56px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.cs-form .newsletter-input-group .btn-primary:hover { background: #2a1a0f; border-color: #2a1a0f; }
.cs-socials { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }
.cs-social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; color: #2b2b2b; text-decoration: none; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,0.08); transition: transform 0.15s ease, box-shadow 0.2s ease; }
.cs-social:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.cs-footer { text-align: center; padding: 20px; color: #5c6a63; position: relative; z-index: 1; }

@media (max-width: 640px) {
  .cs-countdown { grid-template-columns: repeat(2, 1fr); }
  /* Match Coming Soon pill size on mobile */
  .newsletter-section .newsletter-input-group input { height: 52px; font-size: 16px; }
  .newsletter-section .newsletter-input-group .btn-primary { height: 52px; padding: 0 18px; font-size: 16px; }
  .newsletter-section .newsletter-form .newsletter-input-group { max-width: 92%; }
  .newsletter-section .newsletter-form label { max-width: 92%; }
}

/* Contact CTA Section */
.contact-cta {
  text-align: left;
  max-width: 900px; /* match newsletter section content width */
  margin: 0; /* left align block within container */
}

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

.contact-cta p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.contact-cta .btn {
  font-size: 1.1rem;
  padding: 14px 36px;
}

/* Make the CTA button brown in the Ready to Get Started? section */
.contact-cta .btn-primary {
  background-color: var(--dark-brown);
  border: 2px solid var(--dark-brown);
  color: #fff;
}

.contact-cta .btn-primary:hover {
  background-color: var(--black);
  border-color: var(--black);
}

/* Social Impact Section */
.impact-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 4rem 0;
}

.impact-header h2 {
  margin-bottom: 1rem;
  color: var(--dark-brown);
  text-align: left;
}

.impact-subtitle {
  font-size: 1.1rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.impact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.impact-icon {
  width: 80px;
  height: 80px;
  /* Remove gradient background to show original icon colors */
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
}

/* Ensure raster icons scale and center nicely inside the circle */
.impact-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

.impact-card h3 {
  color: var(--dark-brown);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.impact-card p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* Testimonial Section */
.testimonial-section {
  max-width: 800px;
  margin: 0;
}

.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
}

.testimonial-content {
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  color: var(--primary-green);
  font-family: Georgia, serif;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark-brown);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--dark-brown);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.author-info p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin: 0;
}

/* SDG Section */
.sdg-section {
  margin-bottom: 4rem;
}

.sdg-section h2 {
  text-align: left;
  margin-bottom: 3rem;
  color: var(--dark-brown);
}

/* SDG intro paragraph under the section title */
.sdg-intro {
  max-width: 900px;
  color: var(--gray-dark);
  margin: -1.25rem 0 2rem 0; /* pull a bit closer to title, then add space before goals */
  line-height: 1.7;
  text-align: left;
}

.sdg-goals {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.sdg-goal {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none; /* remove shadow that looks like a dark border */
  border: none;     /* ensure no border */
  outline: none;    /* remove default button outline */
}

.sdg-goal:hover {
  transform: translateY(-4px);
  box-shadow: none; /* keep shadow disabled on hover as well */
}

/* Keep keyboard accessibility without showing a heavy black border */
.sdg-goal:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 156, 59, 0.35); /* subtle primary-green focus ring */
}

.sdg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sdg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}

.sdg-goal:hover .sdg-overlay {
  opacity: 1;
}

.sdg-goal:hover .sdg-image {
  transform: scale(1.05);
}

/* Problem Section */
.problem-section .text {
  max-width: 900px;
}

.problem-section .sources {
  color: var(--gray-dark);
  opacity: 0.9;
  margin-top: -0.75rem;
}

.problem-slider {
  margin-top: 1.5rem;
  perspective: 1000px; /* 3D depth */
  overflow: hidden; /* prevent horizontal scroll */
}

.problem-track {
  position: relative;
  height: 360px; /* uniform slide height */
}

.problem-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(680px, 78%);
  height: 100%;
  transform: translateX(-50%);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 500ms ease, opacity 400ms ease, box-shadow 400ms ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.problem-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 3D positions */
.problem-card.center { z-index: 3; transform: translateX(-50%) rotateY(0deg) scale(1); }
.problem-card.prev   { z-index: 2; transform: translateX(calc(-50% - 50%)) rotateY(10deg) scale(0.92); opacity: 0.88; }
.problem-card.next   { z-index: 2; transform: translateX(calc(-50% + 50%)) rotateY(-10deg) scale(0.92); opacity: 0.88; }
.problem-card.hidden { z-index: 1; opacity: 0; pointer-events: none; }

.problem-dots { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.problem-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d0d0d0; cursor: pointer; transition: background 200ms ease, transform 150ms ease; }
.problem-dots button.active { background: var(--primary-green); transform: scale(1.1); }

@media (max-width: 768px) {
  .solution-slider { height: 360px; }
}

@media (max-width: 480px) {
  .solution-slider { height: 300px; }
}

/* Solution Section (Our Solution) */
.solution-section .solution-intro h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: var(--dark-brown);
  font-size: 3rem;
  font-weight: 800;
}

.solution-section .solution-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 1000px;
  color: var(--dark-text, #333);
}

.solution-section .solution-visual {
  margin-top: 1.5rem;
}

.solution-section .solution-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Override the generic rule above for images that are inside the slider */
.solution-section .solution-slides .solution-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* default: peeks look tight */
  object-position: center center;
}

/* Active slide: always show the entire image */
.solution-section .solution-slides .solution-slide.active img {
  object-fit: contain;
}

/* Solution slider */
.solution-slider {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 520px); /* a bit taller to avoid perceived cropping */
}

.solution-slides {
  position: relative;
  overflow: hidden;
  height: 100%; /* take the slider's height */
  padding: 0 16px; /* give breathing room so active slide isn't clipped */
}

.solution-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1000px, 90%);
  height: 100%;
  transform: translateX(-50%) scale(0.96);
  opacity: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  background: var(--white);
  transition: opacity 400ms ease, transform 450ms ease, box-shadow 300ms ease;
  will-change: transform, opacity;
}

/* Pseudo-element provides inner spacing without using padding (avoids lint) */
.solution-slide::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--white);
  z-index: 0;
}

.solution-slide img { 
  width: 100%; 
  height: 100%; 
  display: block; 
  object-fit: contain; /* show entire image without cropping */
  object-position: center center;
  position: relative;
  z-index: 1; /* above inner spacing pseudo-element */
}

.solution-slide.active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  position: relative;
  box-shadow: 0 14px 36px rgba(0,0,0,0.2);
}

.solution-slide.prev {
  opacity: 0.9;
  transform: translateX(calc(-50% - 44%)) scale(0.92) rotateY(6deg);
  z-index: 2;
}

.solution-slide.next {
  opacity: 0.9;
  transform: translateX(calc(-50% + 44%)) scale(0.92) rotateY(-6deg);
  z-index: 2;
}

.solution-slide.hidden { opacity: 0; pointer-events: none; z-index: 1; }

@media (max-width: 900px) {
  .solution-slide { width: 90%; border-radius: 12px; }
  .solution-slide::before { inset: 6px; }
  .solution-slide.prev { transform: translateX(calc(-50% - 44%)) scale(0.9) rotateY(5deg); }
  .solution-slide.next { transform: translateX(calc(-50% + 44%)) scale(0.9) rotateY(-5deg); }
}

@media (max-width: 540px) {
  .solution-slide { width: 94%; border-radius: 10px; }
  .solution-slide::before { inset: 6px; }
  .solution-slide.prev { transform: translateX(calc(-50% - 42%)) scale(0.9) rotateY(4deg); }
  .solution-slide.next { transform: translateX(calc(-50% + 42%)) scale(0.9) rotateY(-4deg); }
}

.carousel-control,
.solution-section .solution-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(59, 36, 22, 0.7); /* dark brown */
  color: #fff;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  outline: none;
  z-index: 3; /* above image */
}

.carousel-control {
  font-size: 22px;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}

.carousel-control:hover { background: transparent; }
.carousel-control:active { transform: translateY(-50%) scale(0.96); }
.carousel-control.prev { left: 8px; }
.carousel-control.next { right: 8px; }
.solution-control:hover,
.solution-section .solution-control:hover { background: rgba(138, 156, 59, 0.9); }
.solution-control:active,
.solution-section .solution-control:active { transform: translateY(-50%) scale(0.96); }
.solution-control.prev,
.solution-section .solution-control.prev { left: 12px; }
.solution-control.next,
.solution-section .solution-control.next { right: 12px; }

.solution-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.solution-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}

.solution-dot.active { background: var(--primary-green); transform: scale(1.1); }

.team-section h2 {
  text-align: left;
  margin-bottom: 1.75rem;
  color: var(--dark-brown);
  font-size: 3rem;
  font-weight: 800;
}

/* New Team layout to match design (two columns, large circular photos, text on right) */
.team-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6rem;
  row-gap: 3.5rem;
  align-items: start;
}

.team-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
}

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

.team-meta h3 {
  margin: 0 0 0.25rem 0;
  color: var(--dark-brown);
  font-size: 1.6rem;
  font-weight: 800;
}

.team-meta .role {
  margin: 0.1rem 0 0.9rem 0;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 1.05rem;
}

.lnk {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--dark-brown);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 800;
  font-size: 0.95rem;
}

.lnk:hover { background: var(--primary-green); transform: translateY(-2px); }

.team-member {
  text-align: center;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-medium);
  transition: var(--transition);
}

/* Advisory Section */
.advisory-section {
  padding-top: 2rem;
  padding-bottom: 0;
  background: var(--white);
}

.advisory-section h2 {
  text-align: left;
  margin-bottom: 1.75rem;
  color: var(--dark-brown);
  font-size: 3rem;
  font-weight: 800;
}

.advisory-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.advisory-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
}

.advisory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisory-meta h3 {
  margin: 0 0 0.25rem 0;
  color: var(--dark-brown);
  font-size: 1.6rem;
  font-weight: 800;
}

.advisory-role {
  margin: 0.1rem 0 0.9rem 0;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 1.05rem;
}

.advisory-pattern {
  width: 100%;
  height: 70px;
  margin-top: 2rem;
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Crect width='120' height='70' fill='transparent'/%3E%3G%3C/ g%3E%3Ccircle cx='20' cy='35' r='18' fill='%238A9C3B' opacity='0.9'/%3E%3Ccircle cx='60' cy='35' r='18' fill='%238A9C3B' opacity='0.9'/%3E%3Ccircle cx='100' cy='35' r='18' fill='%238A9C3B' opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 70px;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.member-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-green);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h3 {
  color: var(--dark-brown);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.member-info p {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.member-social a {
  width: 32px;
  height: 32px;
  background: var(--dark-brown);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.member-social a:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

.member-social svg {
  width: 16px;
  height: 16px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  /* Use dynamic viewport height for mobile browser chrome changes */
  max-height: min(88dvh, 900px);
  height: auto;
  overflow-y: auto;
  /* Prepare for sticky header + scrollable body */
  display: grid;
  grid-template-rows: auto 1fr;
  overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-medium);
  background: var(--primary-green);
  color: var(--white);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  /* Keep actions visible while body scrolls */
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  padding: 0.25rem;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  display: grid;
  /* Flexible left media column that scales with viewport */
  grid-template-columns: minmax(160px, 22%) 1fr;
  gap: 2rem;
  padding: 2rem;
}

.modal-image {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.modal-image img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Larger screens: allow a slightly wider modal and media column */
@media (min-width: 1024px) {
  .modal-content { max-width: 960px; }
  .modal-body { grid-template-columns: minmax(200px, 280px) 1fr; }
}

/* Small screens: edge padding, stack content, comfortable targets */
@media (max-width: 640px) {
  .modal { padding: 12px; }
  .modal-content {
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    max-height: 92dvh; /* take advantage of available height */
  }
  .modal-header { padding: 1rem 1.25rem; }
  .modal-header h2 { font-size: 1.25rem; }
  .modal-close { font-size: 1.75rem; }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
  }
  .modal-image { align-items: center; }
  .modal-image img {
    max-width: 220px;
    margin: 0;
  }
}

.modal-info h3 {
  color: var(--dark-brown);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.modal-info p {
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-targets,
.modal-impact {
  margin-bottom: 1.5rem;
}

.modal-targets h4,
.modal-impact h4 {
  color: var(--primary-green);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.modal-targets ul {
  margin: 0;
  padding-left: 1.25rem;
}

.modal-targets li {
  color: var(--gray-dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--dark-brown);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.footer-logo-img { height: 36px; width: auto; display: block; }
@media (max-width: 640px) { .footer-logo-img { height: 28px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  text-align: left; /* left align content by default */
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand .brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-medium);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.footer-nav h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--gray-medium);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.footer-contact h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-contact p {
  color: var(--gray-medium);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

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

/* Footer Socials */
.footer-socials {
  padding: 0.75rem 0 0.25rem;
}

.footer-socials .container {
  display: flex;
  justify-content: center;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* When social links appear under the brand, align them with brand content */
.footer-brand .social-links {
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.06);
}

.social-icon {
  height: 28px;
  width: auto;
  display: block;
}

.footer-bottom p {
  color: var(--gray-medium);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer legal links: use brand green and no underline */
.footer-bottom a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #a4b861; /* slightly lighter green for hover */
  text-decoration: none;
}

/* Contact form actions: left aligned across viewports */
.contact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-actions { justify-content: flex-start; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }
  
  /* Smaller logo on mobile */
  .logo img {
    height: 36px;
  }
  
  .nav {
    position: relative;
  }
  /* Mobile Navigation (match .main-nav that JS toggles) */
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 5rem 1rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    gap: 1.25rem;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    font-size: 1.2rem;
    color: var(--dark-brown);
  }

  /* Show and position the close (X) inside the mobile drawer */
  .main-nav .nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--dark-brown);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  /* SDG Section Mobile */
  .sdg-goals {
    gap: 0.75rem;
  }

  .sdg-goal {
    width: 120px;
    height: 120px;
  }

  /* Team Section Mobile */
  .team-section h2 { text-align: left; }
  .team-list { grid-template-columns: 1fr; column-gap: 0; row-gap: 2rem; }
  .team-item { grid-template-columns: 100px 1fr; gap: 1rem; }
  .team-photo { width: 100px; height: 100px; }
  
  /* Mobile responsive adjustments for left-aligned section titles */
  .impact-header,
  .sdg-section h2,
  .advisory-section h2,
  .newsletter-section h2,
  .contact-cta {
    text-align: left;
  }
  
  .newsletter-section {
    text-align: left;
  }
  
  .newsletter-section .newsletter-grid {
    justify-items: flex-start;
  }
  .team-section h2 { font-size: 2.2rem; }
  
  /* Solution Mobile */
  .solution-section .solution-intro h2 { font-size: 2.2rem; text-align: left; }
  .solution-section .solution-intro p { font-size: 1rem; line-height: 1.6; }
  .solution-control { width: 40px; height: 40px; font-size: 20px; }
  .solution-slider { min-height: 220px; }
  /* Pattern banner size on mobile */
  .pattern-banner { height: 56px; background-size: 150px auto; }
  .solution-slide img { height: 100%; object-fit: contain; }
  
  /* Advisory Mobile */
  .advisory-section h2 { font-size: 2.2rem; }
  .advisory-item { grid-template-columns: 100px 1fr; gap: 1rem; }
  .advisory-photo { width: 100px; height: 100px; }
  .advisory-pattern { height: 50px; background-size: 100px 50px; }

  .hero {
    margin-top: 120px;
  }
  
  .carousel-control { width: 44px; height: 44px; font-size: 1.25rem; background: transparent; }
  
  .carousel-control:hover { background: transparent; }
  
  .carousel-control.prev { left: clamp(8px, 3vw, 16px); }
  .carousel-control.next { right: clamp(8px, 3vw, 16px); }
  
  /* Responsive Navigation (matches HTML: .mobile-menu-toggle, .main-nav) */
  .mobile-menu-toggle { display: flex; }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 6rem 2rem 2rem;
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    transition: right 300ms ease;
    z-index: 1100;
  }
  .main-nav.active { right: 0; }
  .main-nav a { font-size: 1.1rem; color: var(--dark-brown); }
  .main-nav a.active::after { display: none; }
  
  /* Drawer close button */
  .main-nav .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--dark-brown);
    cursor: pointer;
    line-height: 1;
  }
  
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Collapse three-column variant and quick-row to single column on mobile */
  .form-row--three { grid-template-columns: 1fr; gap: 1rem; }
  .contact-quick { grid-template-columns: 1fr; gap: 1rem; }
  
  .newsletter-input-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .impact-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .impact-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    margin: 0 0 1.5rem 1rem;
    font-size: 1rem;
  }
  
  .testimonial-author {
    margin-left: 1rem;
  }
  
  .quote-mark {
    font-size: 3rem;
    top: -0.5rem;
    left: -0.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left; /* keep left alignment on mobile */
  }
  
  .footer-brand { text-align: left; }
  
  .footer-nav,
  .footer-contact {
    text-align: left;
  }
  
  .section.pad {
    padding: 60px 0;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-nav {
    bottom: 1rem;
  }

  .carousel-nav button {
    width: 35px;
    height: 35px;
  }

  .carousel-nav button svg {
    width: 16px;
    height: 16px;
  }

  /* SDG Section Small Mobile */
  .sdg-goals {
    gap: 0.5rem;
  }

  .sdg-goal {
    width: 100px;
    height: 100px;
  }

  /* Team Section Small Mobile */
  .team-item { grid-template-columns: 80px 1fr; }
  .team-photo { width: 80px; height: 80px; }
  .team-meta h3 { font-size: 1.05rem; }
  .team-meta .role { font-size: 0.9rem; }
  .lnk { width: 28px; height: 28px; font-size: 0.85rem; }
  
  .slide .overlay { padding-left: calc((100% - var(--container-width)) / 2 + 16px); padding-right: calc((100% - var(--container-width)) / 2 + 16px); }
  
  .slide p {
    font-size: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Team Member Modal Styles */
.team-modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.team-modal-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.team-modal-image {
  position: static;
  justify-self: flex-start !important;
  height: fit-content;
}

.team-modal-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Team modal links: remove underline inside modal content */
.team-modal-info a,
.team-modal-bio a,
.team-modal-expertise a,
.team-modal-quote a {
  text-decoration: none;
  color: var(--burnt-orange);

}

.team-modal-info a:hover,
.team-modal-bio a:hover,
.team-modal-expertise a:hover,
.team-modal-quote a:hover {
  text-decoration: none;
  color: var(--dark-brown);

}

.team-modal-header {
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 1rem;
}

.team-modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.team-modal-role {
  font-size: 1.1rem;
  color: var(--burnt-orange);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.team-modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-green);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.team-modal-linkedin:hover {
  background: var(--dark-brown);
  transform: translateY(-2px);
}

/* Ensure text inside the LinkedIn button stays white */
.team-modal-linkedin,
.team-modal-linkedin span {
  color: var(--white);
}

.team-modal-linkedin::before {
  content: "in";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.8rem;
}

.team-modal-bio,
.team-modal-expertise {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-green);
}

.team-modal-bio h3,
.team-modal-expertise h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.team-modal-bio p,
.team-modal-expertise p {
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.team-modal-bio p:last-child,
.team-modal-expertise p:last-child {
  margin-bottom: 0;
}

.team-modal-quote {
  background: linear-gradient(135deg, var(--primary-green), var(--light-brown));
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.team-modal-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--white);
  font-weight: 700;
  opacity: 0.3;
}

.team-modal-quote blockquote {
  margin: 0;
}

.team-modal-quote p {
  color: var(--white);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsive Design for Team Modal */
@media (max-width: 768px) {
  .team-modal-content {
    width: 98%;
    max-height: 95vh;
  }
  
  .team-modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .team-modal-image {
    position: static;
  }
  
  .team-modal-image img {
    height: 250px;
  }
  
  .team-modal-header h2 {
    font-size: 1.75rem;
  }
  
  .team-modal-bio,
  .team-modal-expertise {
    padding: 1.25rem;
  }
  
  .team-modal-quote {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .team-modal-body {
    padding: 1rem;
  }
  
  .team-modal-image img {
    height: 200px;
  }
  
  .team-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .team-modal-bio,
  .team-modal-expertise {
    padding: 1rem;
  }
  
  .team-modal-quote {
    padding: 1.25rem;
  }
  
  .team-modal-quote::before {
    font-size: 3rem;
    top: -5px;
  }
}

/* Print styles: optimize pages like privacy.html for PDF export */
@media print {
  /* Page setup */
  @page { margin: 16mm; }

  /* Hide non-essential elements */
  .site-header,
  .main-nav,
  .mobile-menu-toggle,
  .nav-actions,
  .carousel-control,
  #backToTopBtn,
  .no-print { display: none !important; }

  /* Remove backgrounds that may waste ink; ensure text is legible */
  body { background: #fff !important; color: #000 !important; }
  .section.pad { padding: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }

  /* Typography adjustments for print */
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  p, li { color: #000 !important; }

  /* Links: remove underlines; optionally append URLs if desired
     (kept simple here for clean appearance) */
  a { color: #000 !important; text-decoration: none !important; }

  /* Avoid page breaks inside important blocks */
  article, section { page-break-inside: avoid; }

  /* Footer placeholders */
  #footer-placeholder, .site-footer { display: none !important; }
}
