:root {
  --bg-main: #ffffff;
  --bg-soft: #F8FAE4;
  --bg-tint: #f3f7ea;
  --bg-warm: #fbf5ef;

  --text-main: #2D2D2D;
  --text-muted: #658361;
  --text-light: #A1A1A1;

  --accent-green: #95C11F;
  --accent-brown: #956B4A;
  --accent-deep: #2D584F;

  --border-soft: rgba(45, 45, 45, 0.08);
  --shadow-soft: 0 10px 30px rgba(45, 45, 45, 0.08);

  --radius-sm: 6px;
  --radius-md: 9px;
}

/* Base */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Arima Madurai', cursive;
  color: var(--text-main);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

img {
  border-radius: var(--radius-sm);
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent-brown);
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

/* Layout */

.section-spacing {
  padding: 5.5rem 0;
}

.section-spacing-sm {
  padding: 0 0 5.5rem;
}

.section-soft {
  background-color: var(--bg-soft);
}

.eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-section,
.signup-section,
.downloads-section {
  position: relative;
}

.hero-section::before,
.signup-section::before,
.downloads-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.narrow {
  max-width: 700px;
}

/* Header */

.site-header {
  background-color: var(--bg-main);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-main {
  padding: 0.8rem 0;
}

.brand-logo {
  max-height: 82px;
}

.header-top {
  margin-bottom: 0.6rem;
}

.header-contact {
  color: var(--accent-deep);
  font-size: 1rem;
  font-weight: 600;
}

.header-contact:hover {
  color: var(--accent-brown);
}

/* Nav */

.navbar-toggler {
  border: 1px solid var(--border-soft);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav .nav-link {
  color: var(--text-main);
  font-weight: 500;
  padding: 0.7rem 0.95rem;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-deep);
}

.nav-link-highlight {
  background-color: var(--accent-green);
  border-radius: 4px;
}

.nav-link-order {
  background-color: #d9c2ad;
}

/* Hero */

.hero-section {
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  background-color: #e6eee9;
}

.hero-section::before {
  background: none;
}

.hero-section .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 0;
  align-items: stretch !important;
}

.hero-content {
  max-width: 430px;
  padding: 0.5rem 0;
}

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

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-bottom: 0.75rem;
}

.hero-image,
.section-image,
.gallery-image {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.hero-image-wrap {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-image {
  display: block;
  height: 100%;
  min-height: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* About */

.about-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--bg-main);
}

.section-image {
  min-height: 360px;
}

/* Signup */

.signup-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--bg-soft);
}

.signup-section::before {
  background: none;
}

.signup-panel {
  background-color: var(--accent-deep);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.signup-panel h2,
.signup-panel .eyebrow,
.signup-panel p,
.signup-panel .form-note {
  color: #ffffff;
}

.brevo-embed-area {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.signup-placeholder-form .form-control {
  min-height: 58px;
  border: none;
}

.signup-placeholder-form .form-control:focus {
  box-shadow: none;
}

.btn-brand {
  background-color: var(--accent-green);
  color: var(--text-main);
  border: none;
  font-weight: 600;
}

.btn-brand:hover {
  background-color: #a8d72a;
}

.form-note {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Cards */

.value-card,
.download-card,
.delivery-box,
.terms-wrap {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.value-card {
  background-color: #ffffff;
  border-top: 4px solid var(--accent-green);
  padding: 1.75rem;
  text-align: center;
}

.value-points {
  background-color: var(--bg-soft);
  padding-top: 4rem;
}

.value-card-image {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
}

/* Gallery */

.image-row-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--bg-main);
}

.gallery-image {
  display: block;
  height: 280px;
  max-height: 280px;
  object-fit: cover;
}

/* Downloads */

.downloads-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--bg-main);
}

.downloads-section::before {
  background: none;
}

.download-card {
  display: block;
  background-color: #ffffff;
  border-top: 4px solid var(--accent-brown);
  padding: 2rem;
  transition: transform 0.2s ease;
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.download-card-copy {
  min-width: 0;
}

.download-card-copy h3 {
  margin-bottom: 0;
}

.download-card-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

.download-card:hover {
  transform: translateY(-3px);
}

.download-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* Contact */

.contact-section {
  background-color: #e6eee9;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.delivery-box {
  background-color: #ffffff;
  border-left: 4px solid var(--accent-deep);
  padding: 1.5rem;
}

.delivery-box ul {
  padding-left: 1.2rem;
}

.delivery-note {
  margin-top: 1.5rem;
}

/* Footer */

.site-footer {
  background-color: var(--accent-deep);
  color: #ffffff;
  padding: 2.5rem 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--accent-green);
}

.footer-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.small-text {
  font-size: 0.95rem;
}

.hidden-socials {
  display: none !important;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--accent-brown);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Terms */

.terms-page-body {
  background-color: var(--bg-soft);
}

.terms-main {
  padding: 1.75rem 0;
}

.terms-wrap {
  max-width: 900px;
  padding: 2.5rem;
}

.terms-section {
  margin-bottom: 2rem;
}

/* Mobile */

@media (max-width: 991px) {
  .site-header .container {
    position: relative;
  }

  .header-main .row {
    justify-content: center;
  }

  .header-main .col-md-12 {
    text-align: center;
  }

  .brand {
    display: inline-flex;
    justify-content: center;
  }

  .header-top {
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.4rem;
  }

  .navbar {
    position: static;
    min-height: 0;
  }

  .navbar-toggler {
    position: absolute;
    top: 1.8rem;
    right: 0.75rem;
    transform: none;
    margin-left: 0;
  }

  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid var(--border-soft);
    text-align: center;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .nav-link {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 4rem 0;
  }

  .terms-main {
    padding: 1.25rem 0;
  }

  .hero-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-image {
    height: 100%;
    min-height: 100%;
    max-height: 140px;
  }

  .about-section,
  .signup-section,
  .downloads-section,
  .image-row-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .value-points {
    padding-top: 3rem;
  }

  .gallery-image {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}
