/* ==========================================================================
   Base, Fonts & Reset
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a2433;
  background-color: #f7f3ee;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

/* ==========================================================================
   Typography & Color Tokens
   ========================================================================== */

:root {
  --color-bg: #f7f3ee;
  --color-bg-alt: #ffffff;
  --color-accent: #0c3b4c;
  --color-accent-soft: #e3f0f3;
  --color-accent-contrast: #f5fafe;
  --color-text: #1a2433;
  --color-muted: #6e7785;
  --color-border-subtle: #e0d7cf;
  --color-success: #1b8b5f;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 18px 45px rgba(12, 59, 76, 0.08);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);

  --container-width: 1120px;
  --gutter: 1.5rem;
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

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

.section-intro {
  margin: 0 0 2rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.section-intro-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 215, 207, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark,
.footer-logo-mark {
  width: 32px;
  height: 32px;
}

.logo-text,
.footer-logo-text {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-accent);
  transition: width 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(26, 36, 51, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile nav state */
.main-nav.open .nav-list {
  display: flex;
}

.main-nav .nav-list {
  position: absolute;
  inset: 4.25rem 0 auto;
  background-color: #ffffff;
  padding: 1rem var(--gutter) 1.25rem;
  border-bottom: 1px solid rgba(224, 215, 207, 0.8);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.05);
  flex-direction: column;
  align-items: flex-start;
  display: none;
}

.main-nav .nav-link {
  padding: 0.25rem 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out,
    color 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 10% 0, #3e90b0, #0c3b4c);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(12, 59, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(12, 59, 76, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-accent);
  border: 1px solid rgba(12, 59, 76, 0.16);
}

.btn-secondary:hover {
  background-color: var(--color-accent-soft);
}

.btn-full {
  width: 100%;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: 5.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.hero-list li::before {
  content: "•";
  color: var(--color-success);
  margin-right: 0.5rem;
}

.hero-media {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  max-height: 420px;
  width: 100%;
}

.hero-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background-color: rgba(247, 243, 238, 0.95);
  font-size: 0.8rem;
  color: var(--color-muted);
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   About Product
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.icon-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.about-media {
  position: relative;
}

.about-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at 0 0, #f9f1e5, #ffffff);
}

.about-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.benefits-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.benefit-card {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid rgba(224, 215, 207, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 59, 76, 0.16);
  box-shadow: 0 18px 45px rgba(12, 59, 76, 0.12);
}

.benefit-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.benefit-card p {
  margin: 0;
  color: var(--color-muted);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--color-accent-contrast);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   How to Use / Science
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.steps-list span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(12, 59, 76, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.science-diagram {
  margin: 1.4rem 0 0.9rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  align-items: center;
  gap: 0.65rem;
}

.science-node {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background-color: var(--color-accent-soft);
  font-size: 0.75rem;
  text-align: center;
}

.science-arrow {
  width: 26px;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent-soft), var(--color-accent));
  border-radius: 999px;
  position: relative;
}

.science-arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  border-width: 4px 0 4px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-accent);
}

.science-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Ingredients Strip
   ========================================================================== */

.ingredients {
  padding-block: 3rem;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: center;
}

.ingredients-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 59, 76, 0.16);
  font-size: 0.8rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: radial-gradient(circle at 0 0, #f2f7fb, #f7f3ee);
}

.testimonials-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr);
  gap: 2rem;
  align-items: start;
}

.testimonial-slider {
  position: relative;
  min-height: 170px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
}

.testimonial-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.testimonial-controls {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background-color: rgba(12, 59, 76, 0.16);
  cursor: pointer;
  padding: 0;
}

.testimonial-dot.is-active {
  width: 22px;
  background-color: var(--color-accent);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.trust-badge {
  padding: 0.9rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 59, 76, 0.1);
  background-color: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.trust-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(12, 59, 76, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.trust-badge p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ==========================================================================
   CTA / Form
   ========================================================================== */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: start;
}

.cta-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.cta-list li::before {
  content: "✓";
  color: var(--color-success);
  margin-right: 0.5rem;
}

.cta-product {
  margin-top: 1.6rem;
  max-width: 360px;
}

.cta-product-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  width: 100%;
  height: auto;
  display: block;
}

.cta-product-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.order-form {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 36, 51, 0.18);
  background-color: #ffffff;
  outline: none;
  font-size: 0.92rem;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(12, 59, 76, 0.2);
}

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

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.form-error {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 0.9rem;
}

.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid {
  border-color: #b3261e;
  background-color: #fff6f6;
}

/* ==========================================================================
   About Us
   ========================================================================== */

.about-us-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.about-us-subtitle {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.about-us-list {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
}

.about-us-list li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #111720;
  color: #dde2eb;
  padding-top: 2.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.footer-copy {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #a7b0c0;
}

.footer-nav {
  font-size: 0.9rem;
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  color: #c6d0e1;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  padding: 0.9rem 0 1.4rem;
  text-align: center;
}

.footer-small {
  margin: 0;
  font-size: 0.78rem;
  color: #8e97a8;
}

/* ==========================================================================
   Legal Modal
   ========================================================================== */

.legal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: rgba(5, 10, 20, 0.52);
  backdrop-filter: blur(12px);
  z-index: 40;
  padding: 2.5rem 0 2rem;
  overflow-y: auto;
}

.legal-modal {
  max-width: 720px;
  width: calc(100% - 2.5rem);
  max-height: min(85vh, 640px);
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  position: relative;
  padding: 1.5rem 1.6rem 1.6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-content {
  display: block;
}

.legal-title {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.legal-body {
  padding-right: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.legal-body h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--color-text);
}

.legal-body p {
  margin: 0 0 0.6rem;
}

.legal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background-color: rgba(247, 243, 238, 0.95);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.legal-overlay[hidden] {
  display: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Medium Screens
   ========================================================================== */

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  }

  .ingredients-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .testimonials-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.15fr);
  }

  .cta-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  }

  .about-us-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  }

  .header-cta {
    display: inline-flex;
  }
}

/* ==========================================================================
   Large Screens
   ========================================================================== */

@media (min-width: 960px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 5.75rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .main-nav .nav-list {
    position: static;
    display: flex !important;
    flex-direction: row;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
    background-color: transparent;
  }

  .nav-toggle {
    display: none;
  }
}

