:root {
  --bg: #e9e9ee;
  --text: #0f1720;
  --muted: #f0f1f4;
  --green: #2d784b;
  --btn: #9dbbe1;
  --dark: #111;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --heading-size: 72px; /* Increased from 64px to 72px */
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand-logo {
  width: 60px; /* Increased size */
  height: 60px; /* Increased size */
  object-fit: cover;
  border-radius: 6px;
}

.primary-nav a {
  margin: 0 14px;
  color: #f2f7f3;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* Ensure consistent color across states */
.primary-nav a:visited { color: #f2f7f3; }
.primary-nav a[aria-current="page"],
.primary-nav a.active { color: #f2f7f3; opacity: 1; }

.primary-nav a:hover {
  opacity: 0.8;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: transparent;
  border: 0;
  color: #f2f7f3;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 80;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(320px, 82vw);
  background: var(--green);
  color: #f2f7f3;
  padding: 18px;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .3s ease;
}

.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav nav { display: grid; gap: 14px; margin-top: 14px; }
.mobile-nav a { color: #f2f7f3; font-weight: 600; }
.menu-close { background: transparent; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--btn);
  color: #0c2230;
  font-weight: 600;
  font-size: 14px;
}

.btn.large {
  padding: 16px 26px;
  font-size: 16px;
}

.btn-pill {
  border-radius: 999px;
}

.btn-light {
  background: #9dbbe1;
  color: #0c2230;
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero {
  background: var(--green);
  padding: 56px 0 64px;
  color: #f4fff8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: var(--heading-size);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-copy p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 0 28px;
  color: #e7f0e9;
  line-height: 1.7;
}

.hero-media img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 72px 0;
}

/* Light separator between sections */
.section + .section {
  border-top: 1px solid #dfe3e8;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Hide by default for desktop */
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--dark); /* Changed from var(--green) to var(--dark) */
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  z-index: 70;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-down-arrow:hover {
  transform: translateX(-50%) translateY(-5px);
  opacity: 0.9;
}

.scroll-down-arrow svg {
  width: 24px;
  height: 24px;
}

.scroll-down-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.section-muted {
  background: #e6e7eb;
}

.section-title {
  font-size: var(--heading-size);
  margin: 0 0 28px;
  text-align: center;
  font-weight: 800;
}

.section-title.xl {
  font-size: var(--heading-size);
  text-align: left;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.card {
  background: transparent;
  padding: 0;
}

.card h3 {
  font-size: 40px;
  margin: 0 0 12px;
}

.card p {
  color: #3a3f45;
  line-height: 1.7;
}

.link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.social .section-title {
  text-align: center;
  margin-bottom: 28px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Appearances */
.appearances .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.appearances-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

.appearance-card {
  position: relative;
}

.appearance-label {
  position: absolute;
  top: -34px;
  left: 0;
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.appearance-title {
  margin: 8px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.video-wrap {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.social-card {
  display: block;
  transition: transform 0.3s ease;
  border-radius: 6px;
  overflow: hidden;
}

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

.social-card img {
  border-radius: 6px;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.social-card:hover img {
  transform: scale(1.05);
}

.testimonials .section-title {
  font-size: var(--heading-size);
  margin-bottom: 12px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.testimonial {
  position: relative;
  display: block;
  padding-left: 68px; /* 52px fern + 16px gap */
  padding-right: 68px;
}

.testimonials blockquote {
  background: transparent;
  padding: 0;
  margin: 0;
}

.fern {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
}

.fern-left { left: 0; }
.fern-right { right: 0; }

.testimonials p {
  font-size: 22px;
  line-height: 1.7;
  margin: 0 0 10px;
  font-style: italic;
  padding-left: 0;
  text-align: justify; /* Justified text for testimonials */
}

.testimonials cite {
  opacity: 0.8;
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: 15px;
  padding-left: 0;
}

.about {
  background: #e6e7eb; /* match cream/muted sections */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
}

.about-media {
  display: flex;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.about-copy .section-title {
  text-align: left;
}

.about-copy p {
  text-align: justify; /* Justified text for Meet the Founder */
}

.about-copy h3 {
  font-size: 28px;
  margin: 30px 0 15px;
  color: var(--green);
}

.about-copy ul {
  margin: 10px 0 0 18px;
}

.about-copy li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: stretch;
}

.form {
  background: transparent;
}

.form .section-title {
  text-align: left;
}

.form label {
  display: block;
  margin-bottom: 20px;
}

.form label span {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form label small {
  font-weight: 400;
  opacity: 0.7;
}

.form input,
.form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #b9bcc2;
  background: #f9f9fb;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 120, 75, 0.1);
  transform: translateY(-2px);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-status {
  margin-top: 8px;
}

.contact-media {
  display: flex;
}

.contact-media img {
  border-radius: 6px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Success Message Styling */
#success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid #c3e6cb;
  font-weight: 600;
  text-align: center;
}

/* Form Validation Styling */
.form input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form input:valid:not(:focus):not(:placeholder-shown) {
  border-color: #27ae60;
}

/* Loading State */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.cta {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  background: url('images/WhatsApp Image 2025-09-27 at 00.01.09_14f0aec3.jpg') center/cover no-repeat; /* Updated image */
  color: #fff;
  text-align: center;
}

.cta .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 40px;
}

.cta-inner h2 {
  font-size: var(--heading-size);
  margin: 0 0 12px;
  font-weight: 800;
}

.cta-inner p {
  font-size: 20px;
  color: #e9eef3;
  margin: 0 0 24px;
  line-height: 1.6;
}

.site-footer {
  padding: 48px 0;
  background: #2d2d2d;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 24px;
  align-items: start;
}

.footer-grid h4 {
  margin: 0 0 10px;
  color: #fff;
}

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

.footer-grid li {
  margin: 10px 0;
}

.footer-grid a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid #555;
  background: #3a3a3a;
  color: #fff;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--green);
}

@media (max-width: 1100px) {
  .hero-copy h1,
  .section-title,
  .section-title.xl,
  .testimonials .section-title,
  .cta-inner h2 {
      font-size: 48px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
      grid-template-columns: 1fr;
  }
  
  .contact-media img {
      height: 400px;
      margin-top: 40px;
  }
  
  .about-media img {
      height: 400px;
  }
  
  .cards.three {
      grid-template-columns: 1fr;
  }
  
  .social-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .appearances-grid {
      grid-template-columns: 1fr;
  }
  
  .social-card img {
      height: 220px;
  }
  
  .testimonials-grid {
      grid-template-columns: 1fr;
  }
  .testimonial { padding-left: 24px; padding-right: 24px; } /* Adjusted padding for mobile */
  .fern { width: 40px; }
  
  .footer-grid {
      grid-template-columns: 1fr 1fr;
  }
  
  .grid-3 {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .primary-nav {
      display: none;
  }
  .menu-toggle { display: inline-block; }

  /* Mobile Home Button styles */
  .mobile-home-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* Show only on mobile */
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--dark);
    color: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow);
    z-index: 90;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-home-button:hover {
    transform: translateX(-50%) translateY(-3px);
    opacity: 0.9;
  }

  .mobile-home-button svg {
    width: 18px;
    height: 18px;
    transform: rotate(90deg); /* Rotate arrow to point left */
  }

  .mobile-home-button.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .hero-copy h1, /* Added for mobile specific font size */
  .section-title,
  .section-title.xl,
  .testimonials .section-title,
  .cta-inner h2 {
      font-size: 36px; /* Adjusted for smaller mobile screens */
  }

  /* Justify text for mobile in specific sections */
  .testimonials p,
  .about-copy p {
      text-align: left; /* Changed from justify to left */
      word-spacing: normal; /* Changed from -0.05em to normal */
  }
}

/* Animation for form elements */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Carousel Section */
.carousel-section .section-title { text-align: center; margin-bottom: 24px; }

.fc-viewport {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.76);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}

.fc-track {
  display: flex;
  width: max-content;
}

.fc-row {
  display: flex;
  animation: fc-slide 24s linear infinite;
}

.carousel-section .fc-viewport:hover .fc-row {
  animation-play-state: paused;
}

.fc-row img {
  width: 400px;
  height: 250px;
  object-fit: cover;
  display: block;
}

@keyframes fc-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 700px){
  .fc-row img { width: 300px; height: 180px; }
}

.form label {
  animation: fadeIn 0.6s ease forwards;
}

.form label:nth-child(1) { animation-delay: 0.1s; }
.form label:nth-child(2) { animation-delay: 0.2s; }
.form label:nth-child(3) { animation-delay: 0.3s; }
.form label:nth-child(4) { animation-delay: 0.4s; }
.form label:nth-child(5) { animation-delay: 0.5s; }
.form label:nth-child(6) { animation-delay: 0.6s; }
.form label:nth-child(7) { animation-delay: 0.7s; }
.form label:nth-child(8) { animation-delay: 0.8s; }