:root {
  --brand-dark: #0f3d32;
  --brand: #1a5f4a;
  --brand-light: #2d8a6e;
  --gold: #c9a227;
  --gold-light: #e6d088;
  --text: #1f2937;
  --text-muted: #6b7280;
  --surface: #f8faf9;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(15, 61, 50, 0.08);
  --radius: 12px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 61, 50, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-dark {
  background: var(--brand-dark);
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--brand-dark);
  padding: 1rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  box-shadow: var(--shadow);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 0.85rem 0.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.mobile-drawer .mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #2d7a62 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(280px, 70vw);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--brand-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 60ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid rgba(15, 61, 50, 0.06);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--brand-dark);
  margin: 0 0 1rem;
}

.split p {
  color: var(--text-muted);
  margin: 0;
}

.split-media {
  text-align: center;
}

.split-media img {
  border-radius: var(--radius);
  margin-inline: auto;
  max-height: 360px;
  object-fit: contain;
}

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.9);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.products-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.site-footer h4 {
  color: var(--gold-light);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* CMS page */
.page-main {
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  min-height: 60vh;
}

.page-main h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
}

.page-content {
  color: var(--text);
  line-height: 1.75;
  overflow-x: auto;
}

.page-content table {
  width: 100% !important;
  max-width: 100%;
}

.page-content .terms-container {
  padding: 0 !important;
  font-size: 0.95rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.page-content p {
  margin-bottom: 1rem;
}

/* Breakpoints */
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-media {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-actions {
    display: flex;
  }

  .mobile-drawer {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
    padding-inline: 0.85rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 3rem 0;
  }
}
