@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');


/* Root Variables */
:root {
  --main-orange: #e68b29;
  --soft-orange: #EDB458;
  --soft-orange-bright: #ffd08a; /* brighter accent for gradients */
  --soft-orange-deep: #d07a18;   /* deeper start for contrast */
  --orange-gradient: linear-gradient(
    135deg,
    var(--soft-orange-deep) 0%,
    var(--soft-orange) 45%,
    var(--soft-orange-bright) 100%
  );

  --dark-charcoal: #1a1a1a;
  --light-bg: #ffffff;
  --light-text: #222;
  --dark-bg: #34312D;
  --dark-text: #eee;
  --soft-brown: #e6c29f;
}

/* ===================== */
/* Theme Variables */
html[data-theme='light'] {
  --bg-color: var(--light-bg);
  --text-color: var(--light-text);
  --header-footer-bg: var(--dark-charcoal);
  --card-bg: #d2d2d2;
  --curve-bg: var(--light-bg);
}

html[data-theme='dark'] {
  --bg-color: var(--dark-bg);
  --text-color: var(--dark-text);
  --header-footer-bg: #1f1f1f;
  --card-bg: #1f1f1f;
  --curve-bg: var(--dark-bg);
}

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

/* ===================== */
/* Base Styles */
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===================== */
/* Header & Footer */
header,
footer {
  background: var(--header-footer-bg);
  color: white;
  padding: 1rem 0;
}

header {
  position: relative;
  z-index: 1000; /* keep it above page content */
}

.em {
  display: none;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--soft-orange);
  text-decoration: none;
}

/* ===================== */
/* Navigation */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

nav a {
  color: #fefefe;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: var(--soft-orange);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #34312D;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  top: 100%;
  left: 0;
  z-index: 10;
}

.dropdown-content a {
  color: white;
  display: block;
  padding: 0.3rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===================== */
/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===================== */
/* Theme Switcher */
.theme-switcher {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switcher svg {
  stroke: white;
  width: 24px;
  height: 24px;
  transition: stroke 0.3s;
}

html[data-theme='light'] .theme-switcher svg {
  fill: white;
}

/* ===================== */
/* HERO */
.hero-carousel {
  /* remove the element-level gradient so it doesn't conflict */
  background: transparent;
  position: relative; /* create stacking context for pseudo */
  overflow: visible;  /* allow pseudo to extend beyond */
}

/* The single gradient layer that spans the hero and the curve */
.hero-carousel::before {
  height: calc(100% + 110px);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* extend down past the svg curve height so the gradient covers the divider too */
  /* adjust 120px to match the SVG height if you change it later */
  z-index: 0;
  pointer-events: none;

  /* single source-of-truth gradient */
  background: var(--orange-gradient);
  background-repeat: no-repeat;
  background-size: cover;        /* scale to fill the region */
  background-position: center top;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* make the actual hero content sit above the gradient */
.hero-carousel > .carousel-container,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-track,
.hero-carousel .carousel-slide,
.hero-content {
  position: relative;
  z-index: 1;
}


.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  padding: 0;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform; /* prevent slide bleed-through */
}

.carousel-slide {
  flex: 0 0 100%;
  display: block;
  padding-left: 0;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
  padding-top: 10px;
  padding-bottom: -50px;
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.download-button {
  background: var(--soft-brown);
  color: #1a1a1a;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
}

.hero-image {
  flex: 1;
  min-width: 260px;
  text-align: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: none;
  margin: 0 auto;
}

/* ===================== */
/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  color: #fff;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 6px;
  line-height: 1;
}

.carousel-arrow.left {
  left: 0.5rem;
}

.carousel-arrow.right {
  right: 0.5rem;
}

/* ===================== */
/* Divider */
.curve-divider {
  background: transparent;
  color: var(--curve-bg); /* keeps the SVG path fill the same as before */
  overflow: visible;
  position: relative;
  z-index: 1;

}

/* ensure svg renders crisply and fills width */
.curve-divider svg {
  display: block;
  width: 100%;
  height: 110px; 
  margin-top: 1px;

}

/* Optional tweak: if you still see any very thin seam due to anti-aliasing,
   slightly overlap the curve by negative margin (tiny value). */
/* ===================== */
/* Sections */
.section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

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

.feature-box {
  background: var(--card-bg);
  border-left: 5px solid var(--soft-brown);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about,
.community {
  text-align: center;
}


/* Footer */
footer {
  text-align: center;
  margin-top: auto;
}

/* ===================== */
/* Responsive */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .sub-hero h1 {
    font-size: 1.9rem;
  }

  .split-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-footer-bg);
    z-index: 1000;
    padding: 1rem 0;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .carousel-inner {
    padding: 0;
  }

  .carousel-slide {
    padding-left: 0;
  }

  .features {
    grid-template-columns: 1fr; /* stack boxes vertically */
  }

  .hero-carousel {
    padding: 1.5rem 0; /* shorter on phones */
  }

  .hero-image img {
    max-height: 240px;
  }

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

  .partner-card {
    flex-direction: column;
    text-align: center;
  }

  .partner-media {
    width: 100%;
  }
}

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

/* ===================== */
/* Enhancements */
html[data-enhanced='1'] body {
  line-height: 1.65;
}

html[data-enhanced='1'] .section p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

html[data-enhanced='1'] .hero-text h1 {
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

html[data-enhanced='1'] .download-button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

html[data-enhanced='1'] .download-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

html[data-enhanced='1'] .download-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

html[data-enhanced='1'] .carousel-indicators {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 6;
}

html[data-enhanced='1'] .carousel-indicators .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
}

html[data-enhanced='1'] .carousel-indicators .indicator.active {
  background: #fff;
}

/* ===================== */
/* Subpage Shared Styles */
.sub-hero {
  background: var(--soft-orange);
  color: #1a1a1a;
  padding: 3rem 1.5rem;
  text-align: center;
}

.sub-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.sub-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.85;
}

.sub-hero .lede {
  font-size: 1.1rem;
  opacity: 0.95;
}

.content-section {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.partner-highlight {
  width: 100%;
  max-width: none;
  margin: 3rem 0 0;
  padding: 3rem 0;
  background: var(--card-bg);
}

.partner-card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.partner-text {
  flex: 1;
}

.partner-text .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.partner-media {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.partner-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.15));
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--main-orange);
}

.content-section p {
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ===================== */
/* Panels & Pills */
.panel {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.inline-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #ffffff18;
  color: inherit;
  text-decoration: none;
  border: 1px solid #00000014;
}

.link-pill:hover {
  background: #ffffff25;
}

/* ===================== */
/* Contact Form */
.split-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

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

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-control label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control input,
.form-control textarea {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: #1a1a1a;
}

html[data-theme='dark'] .form-control input,
html[data-theme='dark'] .form-control textarea {
  background: #2a2a2a;
  color: #eee;
  border-color: rgba(255,255,255,0.18);
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.primary-btn {
  background: var(--soft-brown);
  color: #1a1a1a;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* Plain contact form variant */
.contact-form.plain {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.contact-form.plain h2 {
  margin-bottom: 0.5rem;
}

.contact-form.plain .form-control input,
.contact-form.plain .form-control textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

html[data-theme='dark'] .contact-form.plain .form-control input,
html[data-theme='dark'] .contact-form.plain .form-control textarea {
  border-bottom-color: rgba(255,255,255,0.3);
}

.contact-note {
  opacity: 0.8;
  font-size: 0.95rem;
}
