/* ==========================================================================
   Sphaigne du Chili — Showcase Site
   Brand: L'Or Vert — Premium Chilean Sphagnum Moss
   Colors derived from product label design
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand greens */
  --green-dark: #1b4332;
  --green: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-pale: #b7e4c7;
  --green-bg: #d8f3dc;

  /* Accent pink (from label "Sphagnum Moss" text) */
  --pink: #d63384;
  --pink-light: #e8679a;

  /* Gold (L'Or Vert = The Green Gold) */
  --gold: #c9a227;
  --gold-light: #e0c767;

  /* Neutrals */
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --white: #ffffff;
  --text: #1a1a2e;
  --text2: #3d3d56;
  --text3: #6b6b80;
  --border: #e0ddd6;

  /* Layout */
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text3);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.accent { color: var(--pink); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-dark);
  text-decoration: none;
}
.nav__brand img { height: 42px; width: auto; }
.nav__brand span { letter-spacing: -.02em; }
.nav__brand .brand-sub {
  font-size: .7rem;
  font-weight: 400;
  color: var(--text3);
  display: block;
  line-height: 1.2;
  margin-top: 2px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--green-bg);
  color: var(--green-dark);
}

.nav__lang {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.nav__lang a {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text3);
}
.nav__lang a.active { background: var(--green-dark); color: white; }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--green-dark);
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0d2818 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .65;
  mix-blend-mode: luminosity;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,67,50,.3) 0%, rgba(13,40,24,.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.hero__text { color: white; max-width: 800px; margin: 0 auto; }
.hero__text h1 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 8px;
}
.hero__text h1 .script {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--green-pale);
}
.hero__tagline {
  font-size: 1.2rem;
  color: var(--green-pale);
  margin-bottom: 24px;
  font-weight: 300;
}
.hero__desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  color: white;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.badge i { color: var(--green-light); font-size: .85rem; }

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__label-img {
  max-width: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform .4s var(--ease);
}
.hero__label-img:hover { transform: rotate(0deg) scale(1.03); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover { background: var(--green-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(45,106,79,.3); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: white; color: white; background: rgba(255,255,255,.1); }
.btn-pink { background: var(--pink); color: white; }
.btn-pink:hover { background: #b52872; color: white; transform: translateY(-2px); }

/* --- Sections --- */
section { padding: 96px 0; }
section:nth-child(even) { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { position: relative; display: inline-block; }
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--pink);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* --- Key Figures Bar --- */
.keyfigures {
  background: var(--green-dark);
  padding: 48px 0;
}
.keyfigures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  color: white;
}
.keyfigure__value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 4px;
}
.keyfigure__label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
}

/* --- Presentation Section --- */
.presentation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.presentation__text p {
  margin-bottom: 16px;
  color: var(--text2);
}
.presentation__text p:first-of-type::first-letter {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  float: left;
  margin-right: 8px;
  line-height: 1;
}

.presentation__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.feature-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-list li i {
  color: var(--green);
  margin-top: 4px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Origin Section --- */
.origin__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.origin__step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.origin__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.origin__step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.origin__step h3 { margin-bottom: 8px; color: var(--green-dark); }
.origin__step p { font-size: .95rem; color: var(--text3); }

/* --- Uses / Applications --- */
.uses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.use-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.use-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.use-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.use-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.use-card p { font-size: .9rem; color: var(--text3); }

/* --- Comparison Table --- */
.comparison-section { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.comparison-table thead th {
  background: var(--green-dark);
  color: white;
  padding: 16px 20px;
  font-weight: 700;
  text-align: left;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.comparison-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.comparison-table thead th.highlight { background: var(--green); }

.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--green-bg); }
.comparison-table td:first-child { font-weight: 600; color: var(--green-dark); }
.comparison-table .highlight-col { background: rgba(45,106,79,.04); }
.comparison-table .winner { color: var(--green); font-weight: 700; }
.comparison-table .icon-check { color: var(--green); }
.comparison-table .icon-x { color: #ccc; }

/* --- Technical Data --- */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tech-card__header {
  background: var(--green-dark);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tech-card__header i { font-size: 1.3rem; color: var(--green-pale); }
.tech-card__header h3 { color: white; font-size: 1rem; }
.tech-card__body { padding: 24px; }
.tech-card__body table {
  width: 100%;
  border-collapse: collapse;
}
.tech-card__body td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.tech-card__body tr:last-child td { border-bottom: none; }
.tech-card__body td:first-child { color: var(--text3); width: 55%; }
.tech-card__body td:last-child { font-weight: 600; text-align: right; color: var(--green-dark); }

.tech-note {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 32px;
  font-size: .9rem;
  color: var(--text2);
}
.tech-note strong { color: var(--green-dark); }

/* --- Heavy Metals Table --- */
.metals-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .85rem;
  margin-top: 24px;
}
.metals-table thead th {
  background: var(--green-dark);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  text-align: center;
  font-size: .8rem;
}
.metals-table thead th:first-child { text-align: left; }
.metals-table tbody td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.metals-table tbody td:first-child { text-align: left; font-weight: 600; }
.metals-table tbody tr:hover { background: var(--green-bg); }
.metals-table .safe { color: var(--green); font-weight: 700; }

/* --- Products / E-shop --- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__img {
  background: var(--cream-dark);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.product-card__img .product-icon {
  font-size: 4rem;
  color: var(--green);
}
.product-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__weight {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.product-card__specs {
  font-size: .85rem;
  color: var(--text3);
  margin-bottom: 16px;
  flex: 1;
}
.product-card__price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.product-card__price .unit {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text3);
}

/* --- Sustainability / Law --- */
.sustainability__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sustainability__points {
  list-style: none;
  display: grid;
  gap: 20px;
}
.sustainability__points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sustainability__points .point-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.sustainability__points h4 { margin-bottom: 4px; }
.sustainability__points p { font-size: .9rem; color: var(--text3); }

/* --- Certifications --- */
.certs__grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cert-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  min-width: 180px;
  transition: transform .3s var(--ease);
}
.cert-badge:hover { transform: translateY(-4px); }
.cert-badge i { font-size: 2rem; color: var(--green); margin-bottom: 12px; display: block; }
.cert-badge__title { font-weight: 700; font-size: .9rem; color: var(--green-dark); margin-bottom: 4px; }
.cert-badge__desc { font-size: .8rem; color: var(--text3); }

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand h3 { color: white; font-size: 1.3rem; margin-bottom: 8px; }
.footer__brand p { font-size: .9rem; line-height: 1.8; }
.footer h4 { color: white; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__links a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}
.footer__bottom a { color: var(--gold-light); }

/* --- Quality Stars --- */
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 2px; }
.stars-sm { font-size: .9rem; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
details.faq-item:hover { box-shadow: var(--shadow); }
details.faq-item[open] { border-color: var(--green-light); }
details.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .7rem;
  color: var(--green);
  transition: transform .2s var(--ease);
}
details.faq-item[open] summary::before { transform: rotate(90deg); }
details.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text2);
  font-size: .95rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { order: -1; }
  .hero__label-img { max-width: 280px; }
  .hero__badges { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .presentation__grid { grid-template-columns: 1fr; }
  .sustainability__grid { grid-template-columns: 1fr; }
  .keyfigures__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .origin__timeline { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 64px 0; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav__lang { display: none; }
  .nav__toggle { display: block; }

  .uses__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .keyfigures__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .comparison-table { font-size: .8rem; }
  .comparison-table thead th,
  .comparison-table tbody td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: calc(var(--nav-h) + 40px) 0 60px; }
  .hero__label-img { max-width: 220px; }
  .keyfigures__grid { grid-template-columns: 1fr 1fr; }
  .keyfigure__value { font-size: 1.8rem; }
}

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
