/* ------------------------------
   Base & Layout
   Mobile-first styles
------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background-color: #f5f5f5;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: 64px; /* space for fixed header */
  padding-bottom: 72px; /* space for mobile sticky CTA */
}

.section {
  padding: 2.5rem 1.25rem;
  background-color: #ffffff;
}

.section + .section {
  border-top: 1px solid #e0e0e0;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.4rem;
  margin: 0;
}

.section-header-center {
  text-align: center;
}

.text-link {
  color: #00695c;
  font-weight: 500;
  text-decoration: underline;
}

/* ------------------------------
   Header
------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-toggle {
  background: none;
  border: none;
  padding: 0.35rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background-color: #333333;
  border-radius: 999px;
}

.nav-toggle {
  margin-left: auto; /* push hamburger to the right on mobile */
}
.main-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.main-nav.nav-open {
  transform: scaleY(1);
  opacity: 1;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 1.25rem 0.75rem;
}

.main-nav li + li {
  margin-top: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.nav-link.active {
  font-weight: 600;
}

.btn.header-cta {
  display: none !important; /* hidden on mobile */
}

/* ------------------------------
   Hero
------------------------------- */

.hero {
  position: relative;
  color: #ffffff;
}

.hero picture,
.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image {
  min-height: 320px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.hero-subtext {
  margin: 0 0 1.25rem;
  max-width: 24rem;
  font-size: 0.95rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 18rem;
}

.hero-about .hero-subtext {
  max-width: 28rem;
}

/* ------------------------------
   Buttons
------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out;
  text-align: center;
}

.btn-primary {
  background-color: #d8a64a;
  color: #1b1b1b;
}

.btn-primary:hover {
  background-color: #c49134;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1b1b1b;
}

.btn-secondary:hover {
  background-color: #f3f3f3;
}

.btn-block {
  width: 100%;
}

/* ------------------------------
   Section variations
------------------------------- */

.section-about {
  background-color: #ffffff;
}

.section-about p {
  margin-top: 0;
}

.section-about p + p {
  margin-top: 0.75rem;
}

.section-philosophy {
  background-color: #f7f7f7;
}

.section-project {
  background-color: #ffffff;
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.section-split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-media img {
  border-radius: 12px;
}

.feature-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.feature-list li + li {
  margin-top: 0.25rem;
}

/* ------------------------------
   Promoter profiles
------------------------------- */

.profile-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.25rem;
  scroll-snap-type: x mandatory;
}

.profile-card {
  min-width: 260px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
}

.profile-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.profile-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.profile-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

/* ------------------------------
   Validation
------------------------------- */

.section-validation {
  background-color: #0b5b43;
  color: #ffffff;
}

.validation-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.25rem;
  scroll-snap-type: x mandatory;
}

.validation-card {
  min-width: 180px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  text-align: center;
  scroll-snap-align: start;
}

.validation-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
}

.validation-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.card-label {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ------------------------------
   Lead Capture
------------------------------- */

.section-lead {
  background-color: #ffffff;
}

.lead-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
}

.required {
  color: #c62828;
  margin-left: 0.1rem;
}

.field-optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: #757575;
}

.form-message {
  max-width: 460px;
  margin: 0 auto 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
}
.form-message-success { background-color: #e8f5e9; color: #2e7d32; }
.form-message-error { background-color: #ffebee; color: #c62828; }

input[type="email"],
input[type="tel"],
input[type="text"] {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c7c7c7;
  font: inherit;
  outline: none;
  background-color: #fafafa;
}

input[type="email"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus {
  border-color: #0b5b43;
  background-color: #ffffff;
}

textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #c7c7c7;
  font: inherit;
  outline: none;
  background-color: #fafafa;
  resize: vertical;
  min-height: 100px;
}

textarea:focus {
  border-color: #0b5b43;
  background-color: #ffffff;
}

/* ------------------------------
   Sticky CTA (mobile only)
------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1.25rem 0.75rem;
  background: linear-gradient(to top, rgba(245, 245, 245, 0.98), rgba(245, 245, 245, 0.9));
  border-top: 1px solid #dddddd;
  z-index: 900;
}

/* ------------------------------
   Footer
------------------------------- */

.site-footer {
  background-color: #333333;
  color: #f1f1f1;
  padding: 2rem 1.25rem 1.75rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-nav a {
  color: #f1f1f1;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ------------------------------
   Desktop & larger screens
------------------------------- */

@media (min-width: 768px) {
  main {
    padding-top: 88px;
    padding-bottom: 0; /* sticky CTA hidden on desktop */
  }

  .site-header {
    border-bottom-color: #e0e0e0;
  }

  .header-inner {
    padding: 1rem 1.75rem;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    border-bottom: none;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .main-nav li + li {
    margin-top: 0;
  }

  .nav-link {
    padding: 0.25rem 0;
    font-size: 0.95rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: row;
    align-items: center;
    max-width: none;
  }

  .hero-ctas .btn {
    min-width: 210px;
  }

  .section {
    padding: 3.25rem 1.5rem;
  }

  .hero {
    height: 68vh;
    min-height: 420px;
  }

  .hero-overlay {
    align-items: center;
  }

  .hero-about {
    height: 40vh;
    min-height: 320px;
  }

  .profile-cards {
    overflow-x: visible;
    justify-content: space-between;
  }

  .profile-card {
    min-width: 0;
    flex: 0 0 calc(33.333% - 0.75rem);
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .section-split {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .section-media,
  .section-content {
    flex: 1 1 0;
  }

  .section-media img {
    border-radius: 14px;
  }

  .section-philosophy .section-media {
    order: 1;
  }

  .section-philosophy .section-content {
    order: 0;
  }

  .validation-cards {
    overflow-x: visible;
    justify-content: center;
  }

  .validation-card {
    min-width: 0;
    flex: 0 0 220px;
  }

  .sticky-cta {
    display: none;
  }

  .site-footer {
    padding-inline: 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-meta {
    align-items: flex-end;
  }
}

/* ------------------------------
   Desktop header CTA (≥1024px)
------------------------------- */

@media (min-width: 1024px) {
  .btn.header-cta {
    display: inline-flex !important;
    margin-left: 1.5rem;
    padding-inline: 1.75rem;
  }
}

