/* StellarPlus - Apple-Inspired Design System */

:root {
  /* Brand Colors */
  --brand-primary: #0077a2;
  --brand-secondary: #4b9cd2;
  --brand-light-blue: #6ad7f5;
  --brand-white: #ffffff;
  --brand-green: #4a8f3d;
  --brand-red: #a73e2b;
  --brand-brown: #3a2c23;

  /* Apple Design System Colors */
  --system-bg: #fbfbfd;
  --system-bg-secondary: #f5f5f7;
  --system-text: #1d1d1f;
  --system-text-secondary: #86868b;
  --system-text-tertiary: #6e6e73;
  --system-border: rgba(0, 0, 0, 0.04);
  --system-border-secondary: rgba(0, 0, 0, 0.08);
  --system-shadow: rgba(0, 0, 0, 0.04);
  --system-shadow-elevated: rgba(0, 0, 0, 0.08);

  /* Spacing Scale (Apple's 8pt grid) */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* Border Radius Scale */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Animation Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.47058823529;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--system-text);
  background-color: var(--system-bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.0833333333;
  color: var(--system-text);
}

p {
  color: var(--system-text-secondary);
  line-height: 1.47058823529;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-secondary);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection */
::selection {
  background-color: var(--brand-light-blue);
  color: var(--brand-white);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--system-border);
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(251, 251, 253, 0.95);
  box-shadow: 0 1px 0 0 var(--system-border), 0 1px 3px 0 var(--system-shadow);
}

.nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px; /* increased to fit larger logo */
  position: relative;
}

.nav-logo .logo-img {
  height: 84px; /* 3.0x of original 28px (previously 70px) */
  width: auto;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-logo .logo-img:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--system-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--system-bg-secondary);
}

.nav-link.active {
  color: var(--brand-primary);
  background-color: var(--system-bg-secondary);
}

.desktop-nav {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(var(--space-lg) * -1);
  /* Ensure hamburger stays above the sliding menu */
  position: relative;
  z-index: 1002;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 5px; /* slightly larger gap for a cleaner X */
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-out);
  position: relative;
  z-index: 1003; /* above .mobile-menu (999) and within navbar (1000) */
}

.hamburger:hover {
  background-color: var(--system-bg-secondary);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--system-text);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center; /* center pivot for clean X */
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--system-bg);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-xl);
  padding: var(--space-2xl);
}

.mobile-nav-link {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--system-text);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--system-bg-secondary);
}

.mobile-cta {
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 280px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--brand-white);
  padding: 11px var(--space-lg);
  min-height: 32px;
}

.btn-primary:hover {
  background: var(--brand-secondary);
  transform: translateY(-0.5px);
  box-shadow: 0 4px 8px var(--system-shadow-elevated);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px var(--system-shadow);
}

.btn-secondary {
  background: var(--system-bg-secondary);
  color: var(--system-text);
  padding: 11px var(--space-lg);
  min-height: 32px;
  border: 1px solid var(--system-border-secondary);
}

.btn-secondary:hover {
  background: var(--brand-white);
  border-color: var(--system-border-secondary);
  transform: translateY(-0.5px);
  box-shadow: 0 4px 8px var(--system-shadow-elevated);
}

.btn-hero {
  background: var(--brand-primary);
  color: var(--brand-white);
  padding: 15px var(--space-2xl);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 500;
  min-height: 48px;
  gap: var(--space-sm);
}

.btn-hero:hover {
  background: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px var(--system-shadow-elevated);
}

.btn-hero .btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-large {
  padding: 15px var(--space-2xl);
  font-size: var(--text-lg);
  min-height: 48px;
}

.btn-small {
  padding: 7px var(--space-md);
  font-size: var(--text-xs);
  min-height: 28px;
}

/* Layout Components */
.section {
  padding: var(--space-4xl) 0;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  overflow: hidden;
  background: none; /* remove gradient that can lighten the hero image */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/6955017/pexels-photo-6955017.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 1; /* make background image fully visible */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Subtle dark tint for better contrast without washing out the image */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.28) 60%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  padding-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-white);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-title-main {
  display: block;
  text-transform: capitalize;
}

.hero-title-sub {
  display: block;
  background: linear-gradient(
    to right,
    var(--brand-light-blue),
    var(--brand-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  padding-top: 2rem;
}

/* Section spacing adjustments */
#about.section {
  /* Reduce excessive space at the bottom of the About section */
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  #about.section {
    padding-bottom: 3rem;
  }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  z-index: 15;
}

.floating-1 {
  top: 5rem;
  left: 2.5rem;
  width: 1rem;
  height: 1rem;
  background: rgba(106, 215, 245, 0.3);
  animation: float1 4s ease-in-out infinite;
}

.floating-2 {
  top: 10rem;
  right: 5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(74, 143, 61, 0.3);
  animation: float2 5s ease-in-out infinite 1s;
}

.floating-3 {
  bottom: 10rem;
  left: 5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(106, 215, 245, 0.4);
  animation: float3 3s ease-in-out infinite 2s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0.8;
}

.scroll-mouse {
  width: 1.25rem;
  height: 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-wheel {
  width: 2px;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  margin-top: 0.375rem;
  animation: scrollWheel 2s ease-in-out infinite;
}

/* Animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: scale(1.1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-10px, -5px);
  }
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px);
    opacity: 0.7;
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.7;
  }
}

@keyframes float3 {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-15px);
    opacity: 0.8;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scrollWheel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-content {
    height: 6rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }

  .hero-description {
    font-size: 1.5rem;
  }

  .nav-container {
    padding: 0 2rem;
  }
}

/* About Section */
.about-section {
  position: relative;
}
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center; /* horizontally center children within their columns */
  /* Give the grid enough height so children can center vertically */
  min-height: clamp(520px, 70vh, 820px);
  margin-bottom: 1rem; /* reduce space below the grid */
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    /* Make both columns equal height */
    align-items: stretch;
  }
  /* Stretch direct children to match the row height on desktop */
  .about-grid > * {
    align-self: stretch;
  }
}
/* Ensure children inside the grid are vertically centered on small screens */
@media (max-width: 767px) {
  .about-grid > * {
    align-self: center;
  }
}
.about-content {
  text-align: left;
  /* Center the about content block within its grid cell */
  justify-self: center;
  align-self: center;
}

/* About image sizing */
.about-image {
  width: 100%;
  display: flex;
  justify-content: center; /* center the image horizontally */
  align-items: center; /* center the image vertically within the container */
  height: 100%; /* fill grid track height so centering is true middle */
}
/* Ensure the image container itself is horizontally centered within the grid cell */
.about-grid > .about-image {
  justify-self: center;
}
.about-image,
.about-image img {
  /* Neutralize any transform from AOS or other libs so centering is accurate */
  transform: none !important;
}
.about-image img {
  display: block;
  width: 100%;
  max-width: 720px; /* cap width so it can visually center */
  margin: 0 auto; /* ensure centering if not full width */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Apple-like About card and collapsible */
.about-collapsible {
  background: var(--brand-white);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--ios-border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.about-extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height;
  position: relative;
}

/* Expand content when details is open */
.about-details[open] .about-extra {
  max-height: 2000px; /* enough to reveal content smoothly */
}

/* Subtle gradient mask when collapsed */
.about-details:not([open]) .about-extra::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--brand-white)
  );
  pointer-events: none;
}

/* Divider and spacing for details */
.about-details {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ios-border, rgba(0, 0, 0, 0.08));
}

/* Style the summary as a pill button */
.about-toggle {
  margin: 0 0 0.75rem 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-primary);
  border: 0;
  border-radius: 999px;
  padding: 6px 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease, opacity 180ms ease;
  cursor: pointer;
}

.about-toggle:hover {
  opacity: 0.8;
}

.about-toggle:active {
  transform: none;
}

/* Remove default disclosure marker and add custom chevron */
.about-toggle::-webkit-details-marker {
  display: none;
}
.about-toggle::marker {
  content: "";
}
.about-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
  margin-left: 2px;
}
.about-details[open] > .about-toggle::after {
  transform: rotate(45deg);
}

/* Remove the arrow for "Read more" within About cards as requested */
.about-cards .about-toggle::after {
  content: none;
}

/* Read more/less label swap */
.about-details .less {
  display: none;
}
.about-details[open] .more {
  display: none;
}
.about-details[open] .less {
  display: inline;
}

/* Spacing for new lists/subtitles */
.about-list,
.about-values {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}
.about-values li + li {
  margin-top: 0.5rem;
}
.section-subtitle {
  margin-top: 1.25rem;
}

/* Full-width About details and icon cards */
.about-details-full {
  display: block;
  margin-top: 2rem;
  /* Elevate as a clean card now that content is static */
  background: var(--brand-white);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
}
.about-details-full .about-extra {
  padding-top: 0.75rem;
}
/* Static content wrapper (no collapse) */
.about-extended h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.about-extended p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.about-extended ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.about-extended li + li {
  margin-top: 0.35rem;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.about-card {
  display: flex;
  flex-direction: column; /* image on top, text below */
  gap: 1rem;
  background: var(--brand-white);
  border: 1px solid var(--ios-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 250ms ease;
}
.about-card,
.service-card {
  /* Force remove any translate/transform applied by AOS/JS */
  transform: none !important;
}
.about-card:hover {
  /* Card hover adjustments already applied above */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.about-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--brand-light-blue),
    var(--brand-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  flex-shrink: 0;
}
.about-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-white);
}
.about-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}
.about-card-body p {
  color: var(--gray-700);
}
.about-card-body ul {
  margin-top: 0.5rem;
}

/* New: image at the top of each about card */
.about-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .about-card-img {
    height: 240px;
  }
}

/* Per-card Read more toggles */
.card-details {
  margin-top: 0.5rem;
}
.card-details .card-extra {
  overflow: hidden;
  max-height: 0;
  transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.card-details[open] .card-extra {
  max-height: 1200px;
}
.card-details:not([open]) .card-extra::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--brand-white)
  );
  pointer-events: none;
}
/* Hide default marker and use existing chevron from .about-toggle */
.card-details > .about-toggle::-webkit-details-marker {
  display: none;
}
.card-details > .about-toggle::marker {
  content: "";
}
.card-details[open] > .about-toggle::after {
  transform: rotate(45deg);
}
/* Label swap inside card */
.card-details .less {
  display: none;
}
.card-details[open] .more {
  display: none;
}
.card-details[open] .less {
  display: inline;
}

/* Typography refinements inside About card */
.about-collapsible .section-title {
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.about-collapsible .about-description,
.about-collapsible .about-mission,
.about-collapsible .about-governance,
.about-collapsible .about-commitment,
.about-collapsible .about-closing {
  max-width: 68ch;
}

@media (min-width: 768px) {
  .about-collapsible {
    padding: 36px;
    border-radius: 28px;
  }
  .section-subtitle {
    margin-top: 1.5rem;
  }
  /* Make About text span 2/3 and image 1/3 */
  .about-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  .about-content {
    grid-column: 1;
    justify-self: center;
    align-self: center;
  }
  .about-image {
    grid-column: 2;
    align-self: start;
    min-width: 260px;
  }
  /* Two-column layout for about cards on tablets/desktops */
  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Larger padding for the static about card on tablets/desktops */
  .about-details-full {
    padding: 2rem;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-extra {
    transition: none;
  }
  .about-toggle {
    transition: none;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-description,
.about-mission {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* Make the extended About content span full viewport width */
.about-details-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: max(env(safe-area-inset-left), 1rem);
  padding-right: max(env(safe-area-inset-right), 1rem);
  /* Remove container chrome; keep inner cards styled */
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Also remove chrome from the collapsible about-content container (not inner cards) */
.about-content.about-collapsible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-card {
  background: var(--brand-white);
  border: 1px solid var(--ios-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.stat-card:hover {
  /* Hover disabled per request */
  transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--brand-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    var(--brand-light-blue),
    var(--brand-secondary)
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand-white);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray-700);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-secondary);
  font-weight: bold;
}

/* Testimonials Section */
.testimonials-section {
  position: relative;
  color: var(--brand-white);
  background: none;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://images.pexels.com/photos/1236678/pexels-photo-1236678.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-section .section-title,
.testimonials-section .section-description {
  color: var(--brand-white);
}

/* Ensure testimonial quote text is white for contrast on darker bg */
.testimonials-section .testimonial-text {
  color: #ffffff;
}

.testimonials-carousel {
  position: relative;
  max-width: 1100px; /* wider carousel */
  width: 100%;
  margin: 0 auto;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem;
  width: 100%; /* ensure card spans full carousel width */
}

.testimonial-card.active {
  display: block;
  padding: 0; /* remove padding when active */
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Fix height to avoid bounce between slides */
  height: 380px;
  overflow: hidden;
  width: 100%; /* make inner content fill the card width */
}

.testimonial-stars {
  font-size: 1.5rem;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

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

.testimonial-author img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 1.125rem;
}

.author-role {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--brand-white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-section {
  position: relative;
  background: #ffffff; /* white background as requested */
  color: var(--ios-text); /* default dark text for the section */
  overflow: hidden;
}

/* remove dark overlay for contact section */
.contact-section::before {
  content: none;
}

/* Ensure contact content sits above the dark overlay */
.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.95); /* dark card */
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: #ffffff; /* ensure text inside card is readable */
}

.contact-section .section-title {
  color: inherit; /* dark text over white background by default */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-section .section-subtitle {
  color: var(--ios-secondary);
  font-weight: 500;
}

.contact-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9); /* inside dark card it's white-ish */
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 260px;
  justify-content: flex-start;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-text {
  text-align: left;
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-light-blue);
}

.contact-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.contact-value {
  font-size: 1.125rem;
  color: #ffffff; /* links styled below */
  font-weight: 600;
}

/* High-contrast, accessible link styles for contact values */
.contact-value a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  color: var(--brand-light-blue);
  text-decoration-color: var(--brand-light-blue);
  outline: none;
}

.contact-hours {
  background: rgba(17, 24, 39, 0.95); /* dark card */
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.contact-hours h4 {
  color: var(--brand-light-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-hours p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

/* Footer - solid dark gray */
.footer {
  background: #4d4d4d;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

.footer a {
  color: #ffffff;
}
.footer a:visited {
  color: #ffffff;
}
.footer a:hover {
  color: #ffffff;
}
.footer h4 {
  color: #ffffff;
}

/* Ensure social icons are white (SVGs use currentColor) */
.footer-social a,
.footer-social svg {
  color: #ffffff;
}

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

/* Footer links: inherit footer text color, dim on hover/focus */
.footer-links a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.75;
  outline: none;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  height: 8rem; /* 2x size */
  width: auto;
  margin-bottom: 1rem;
  /* Force pure white while preserving transparency */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: var(--ios-secondary);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.15rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.footer-section a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--ios-text);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--ios-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.footer-social a {
  width: 2rem;
  height: 2rem;
  background: transparent;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #424245;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 1.1rem;
  height: 1.1rem;
}

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

.footer-legal p {
  color: var(--ios-secondary);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-links a {
  color: #424245;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--ios-text);
  text-decoration: underline;
}

/* Quick Contact Button */
.quick-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.quick-contact-btn {
  width: 4rem;
  height: 4rem;
  background: var(--brand-light-blue);
  border: none;
  border-radius: 50%;
  color: var(--brand-white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(106, 215, 245, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(106, 215, 245, 0.6);
}

.quick-contact-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Utility Classes */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 2fr;
    text-align: left;
  }

  /* Taller fixed height on larger screens */
  .testimonial-content {
    height: 420px;
  }

  .footer-brand {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

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

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Keep contact items on one row when space allows */
  .contact-details {
    flex-wrap: nowrap;
  }
  /* Keep about cards to 2 columns even on large screens (mobile = 1, desktop = 2) */
  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Net Zero Section Styles */
.net-zero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.net-zero-intro {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: start;
}

.net-zero-commitment {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--system-text);
  margin-bottom: 1.5rem;
}

.net-zero-belief {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--system-text-secondary);
}

.net-zero-card {
  background: linear-gradient(135deg, var(--brand-white) 0%, #f7fafc 100%);
  border-left: 4px solid var(--brand-primary);
}

.net-zero-card .service-icon {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
}

.net-zero-conclusion {
  max-width: 900px;
  margin: 4rem auto 0;
  text-align: start;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-secondary) 100%
  );
  border-radius: var(--radius-xl);
  color: var(--brand-white);
  box-shadow: 0 10px 30px rgba(0, 119, 162, 0.3);
}

.net-zero-conclusion-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--brand-white);
}

.net-zero-conclusion p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.net-zero-tagline {
  font-size: 1.3rem;
  margin-bottom: 0 !important;
}

/* Responsive adjustments for Net Zero section */
@media (max-width: 768px) {
  .net-zero-commitment {
    font-size: 1.1rem;
  }

  .net-zero-belief {
    font-size: 1rem;
  }

  .net-zero-conclusion {
    padding: 2rem 1.5rem;
  }

  .net-zero-conclusion-title {
    font-size: 1.5rem;
  }

  .net-zero-conclusion p {
    font-size: 1rem;
  }

  .net-zero-tagline {
    font-size: 1.1rem;
  }
}
