/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1B4332;
  --green-medium: #2D6A4F;
  --green-light: #40916C;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gold: #C5A55A;
  --gold-hover: #B8963E;
  --text-dark: #1A1A1A;
  --text-muted: #555555;
  --text-light: #E0E0E0;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--off-white);
}

.section--dark {
  background: var(--green-dark);
  color: var(--white);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
}

.btn--primary:hover {
  background: var(--gold-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn--outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn--dark {
  background: var(--green-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--green-medium);
}

.btn + .btn {
  margin-left: 0.75rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.header__logo span {
  color: var(--gold);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__nav a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--gold);
}

.header__cta {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hero__media-slot {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  aspect-ratio: 16 / 10;
}

.hero__media-slot img,
.hero__media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.card ul {
  margin-top: 0.5rem;
}

.card ul li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== CALLOUT BOX ===== */
.callout {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.social-proof p {
  font-size: 1.25rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.cta-section p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.step__body h3 {
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.step__body p {
  color: var(--text-muted);
}

.step__media {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}

.step__media img,
.step__media video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Rotated video: rotate the video inside a container sized to fit the result */
.step__media--video-rotated {
  overflow: visible;
  width: 300px;          /* visible width after rotation (original video height) */
  /* pad the height to match the rotated video's tall dimension */
  aspect-ratio: 20 / 16;
  position: relative;
}

.step__media--video-rotated video {
  position: absolute;
  /* swap dimensions: video's native width becomes the height after rotation */
  width: calc(200px * (16 / 9));
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  object-fit: contain;
}

/* ===== METRIC CARDS ===== */
.metric {
  padding: 3rem 0;
  border-bottom: 1px solid #E0E0E0;
}

.metric:last-child {
  border-bottom: none;
}

.metric h3 {
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.metric h4 {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.metric p {
  color: var(--text-muted);
  max-width: 760px;
}

.metric--illustrated {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.metric__text {
  flex: 1;
  min-width: 0;
}

.metric__image {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  align-self: center;
}

.metric__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== CHECKLIST ===== */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.checklist__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.checklist__item h3 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.checklist__item p,
.checklist__item li {
  color: var(--text-muted);
}

.checklist__item ul {
  margin-top: 0.75rem;
}

.checklist__item ul li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.checklist__item ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== TIPS ===== */
.tips-list {
  margin-top: 0.75rem;
}

.tips-list li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  color: var(--text-muted);
}

.tips-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== ORDERED STEPS ===== */
.ordered-steps {
  counter-reset: step-counter;
  margin-top: 1rem;
}

.ordered-steps li {
  counter-increment: step-counter;
  padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
  color: var(--text-muted);
}

.ordered-steps li::before {
  content: counter(step-counter) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== SHOP PRODUCTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.product {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product:hover {
  box-shadow: var(--shadow-md);
}

.product__image {
  height: 220px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.product__body {
  padding: 1.75rem;
}

.product__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.product__body h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.product__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product__body ul {
  margin-bottom: 1.5rem;
}

.product__body ul li {
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product__body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
  margin-top: 2rem;
}

.faq__item {
  border-bottom: 1px solid #E0E0E0;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq__item.open .faq__question::after {
  content: "−";
}

.faq__question:hover {
  color: var(--gold);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer p,
.faq__answer ul {
  color: var(--text-muted);
  padding-bottom: 1.25rem;
}

.faq__answer ul {
  padding-left: 1.25rem;
}

.faq__answer ul li {
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
}

.faq__answer ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.faq__item.open .faq__answer {
  max-height: 600px;
}

/* ===== LEGAL CONTENT ===== */
.legal-content h2 {
  color: var(--green-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--green-dark);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--text-muted);
  max-width: 760px;
}

.legal-list {
  margin: 0.75rem 0 1rem;
  max-width: 760px;
}

.legal-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--gold);
  font-weight: 700;
}

/* ===== LICENSE BLOCKS ===== */
.license-block {
  margin-bottom: 3rem;
}

.license-block h2 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.license-source {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.license-text {
  background: var(--off-white);
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D0D0D0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* ===== VIDEO PLACEHOLDER ===== */
.video-placeholder {
  background: var(--off-white);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  border: 2px dashed #D0D0D0;
  margin-top: 1.5rem;
}

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__brand span {
  color: var(--gold);
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.7;
}

.footer__links h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.footer__links a {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.footer__socials a:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--gold);
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
  }

  .header__nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

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

  .btn + .btn {
    margin-left: 0;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .metric--illustrated {
    flex-direction: column;
  }

  .metric__image {
    width: 100%;
    max-width: 320px;
  }

  .footer__inner {
    flex-direction: column;
  }

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

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

  .section {
    padding: 3.5rem 0;
  }
}
