/* ==========================================================================
   RETANOVA sales-page rebuild
   Design tokens lifted from the live Shopify theme at getretanova.com
   ========================================================================== */

:root {
  /* Core palette */
  --bg:            #202219;
  --fg:            #f6eddd;
  --fg-subdued:    rgb(246 237 221 / 0.8);
  --fg-muted:      rgb(246 237 221 / 0.6);
  --border:        rgb(246 237 221 / 0.18);

  /* Section bands */
  --band-olive:    #46493c;
  --band-taupe:    #635d4e;
  --band-light:    #f5f8f5;

  /* Light-band (pricing) palette */
  --green-deep:    #1f3d2f;
  --green-mid:     #2f5741;
  --green-tint:    #eaf2ec;
  --green-line:    #e0e6e0;
  --grey-text:     #6a786e;
  --grey-body:     #4a5a50;
  --gold:          #b8862f;

  /* Buttons */
  --btn-primary-bg:       #f6eddd;
  --btn-primary-text:     #202219;
  --btn-primary-hover-bg: #f1e2c9;
  --btn-radius:           100px;

  /* Type */
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --size-h1: clamp(2.5rem, 7.2vw, 4.5rem);
  --size-h2: clamp(2rem, 4.8vw, 3rem);
  --size-h3: clamp(1.6rem, 3vw, 2rem);

  /* Layout */
  --page-max: 1360px;
  --gutter: 20px;
  --radius-md: 0.8rem;
  --radius-lg: 1rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

/* Long German compounds must not stretch a grid track */
.media-content__grid > *,
.system-item__grid > *,
.pdp__grid > *,
.contact-grid > *,
.product-grid > *,
.pricing__grid > * { min-width: 0; }

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin: 0 0 1rem;
}

.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;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 16px 28px;
  border-radius: var(--btn-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease-out, color .25s ease-out,
              border-color .25s ease-out, transform .25s ease-out;
}

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

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}
.btn--primary:hover { background: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-bg); }

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border-color: rgb(246 237 221 / 1);
}
.btn--secondary:hover { background: #494e39; }

.btn--green {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 30px;
}
.btn--green:hover { background: var(--green-mid); border-color: var(--green-mid); }

.btn--green-solid {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 30px;
}
.btn--green-solid:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(32 34 25 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: 10px;
}

.logo {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo .logo__nova { font-weight: 400; }

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

.site-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--fg-subdued);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.header-locale {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  padding: 8px 16px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-locale { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding-block: 12px; border-bottom: 1px solid var(--border); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; }

.hero__media {
  position: relative;
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 55%);
}

.hero__content {
  position: relative;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}

/* Marquee band beneath the hero */
.statement {
  background: var(--bg);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.statement p {
  margin: 0;
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  line-height: 1.15;
  max-width: 18em;
}

/* --------------------------------------------------------------------------
   Media + content split sections
   -------------------------------------------------------------------------- */

.media-content { padding-block: clamp(3rem, 7vw, 5.5rem); }
.media-content--olive { background: var(--band-olive); }
.media-content--taupe { background: var(--band-taupe); }

.media-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.media-content--reverse .media-content__media { order: 2; }

.media-content__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.media-content__media img { width: 100%; height: 100%; object-fit: cover; }

.media-content__text h2 { margin-bottom: 0.6em; }
.media-content__text p { color: var(--fg-subdued); max-width: 36em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 860px) {
  .media-content__grid { grid-template-columns: 1fr; }
  .media-content--reverse .media-content__media { order: 0; }
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */

.product-list { padding-block: clamp(3rem, 6vw, 4.5rem); }

.product-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-list__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s ease-out;
}

.product-card:hover { transform: translateY(-4px); }

.product-card__media {
  background: #f1efe9;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10%;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease-out;
}

.product-card:hover .product-card__media img { transform: scale(1.03); }

.product-card__title { margin: 0.9rem 0 0.2rem; font-size: 0.9375rem; }
.product-card__meta  { margin: 0; font-size: 0.875rem; color: var(--fg-muted); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Pricing band (light)
   -------------------------------------------------------------------------- */

.pricing {
  background: var(--band-light);
  color: var(--green-deep);
  padding: clamp(3rem, 7vw, 64px) var(--gutter);
  text-align: center;
}

.pricing__inner { max-width: 1120px; margin-inline: auto; }

.pricing h2 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; margin: 0 0 10px; color: var(--green-deep); }
.pricing__lede { font-size: 1.05rem; color: var(--grey-body); margin: 0 0 40px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 16px;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.04);
}

.tier--popular {
  border: 2px solid var(--green-mid);
  box-shadow: 0 10px 28px rgb(47 87 65 / 0.2);
}

.tier__flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.tier__flag--popular { background: var(--green-mid); }
.tier__flag--value   { background: var(--gold); }

.tier__name   { font-size: 1.35rem; font-weight: 700; color: var(--green-deep); }
.tier--popular .tier__name, .tier--value .tier__name { margin-top: 4px; }
.tier__supply { font-size: 0.9rem; color: var(--grey-text); margin-bottom: 18px; }
.tier__price  { font-size: 2.7rem; font-weight: 800; color: var(--green-deep); line-height: 1; }
.tier__unit   { font-size: 0.9rem; color: var(--grey-text); margin-top: 8px; }

.tier__save {
  margin-top: 12px;
  background: var(--green-tint);
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 20px;
}

.tier .btn { margin-top: 22px; }
.tier--basic .btn { margin-top: 24px; }

.pricing__note { margin: 32px 0 0; font-size: 0.9rem; color: var(--grey-text); }

@media (max-width: 860px) {
  .pricing__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* --------------------------------------------------------------------------
   Product sales page
   -------------------------------------------------------------------------- */

.pdp { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.pdp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pdp__media {
  background: #f1efe9;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8%;
  position: sticky;
  top: 92px;
}

.pdp__media img { width: 100%; height: 100%; object-fit: contain; }

.pdp__title { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.3em; }

.pdp__tagline {
  font-size: 1.125rem;
  color: var(--fg-subdued);
  margin-bottom: 1.5rem;
}

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

.pdp__specs li {
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  padding: 7px 14px;
  color: var(--fg-subdued);
}

.pdp__cta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.75rem;
  margin-bottom: 2rem;
}

.pdp__guarantee { font-size: 0.875rem; color: var(--fg-muted); margin: 1rem 0 0; }

.pdp__body h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.25rem; }
.pdp__body p  { color: var(--fg-subdued); }

.ingredients {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.ingredients li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.ingredients li span:last-child { color: var(--fg-muted); white-space: nowrap; }

@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
}

/* --------------------------------------------------------------------------
   Support System page
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.page-head p { color: var(--fg-subdued); max-width: 40em; margin: 0; }

.system-item { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--border); }

.system-item__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.system-item--reverse .system-item__media { order: 2; }

.system-item__media {
  background: #f1efe9;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10%;
}

.system-item__media img { width: 100%; height: 100%; object-fit: contain; }

.system-item__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
}

.system-item__text h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.system-item__text p  { color: var(--fg-subdued); }

@media (max-width: 860px) {
  .system-item__grid { grid-template-columns: 1fr; }
  .system-item--reverse .system-item__media { order: 0; }
}

/* --------------------------------------------------------------------------
   Content / legal pages
   -------------------------------------------------------------------------- */

.content {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  padding-top: 1.5rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.content h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.6em; }
.content h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin-top: 2.25rem; margin-bottom: 0.6em; }
.content h3 { font-size: 1.125rem; margin-top: 1.75rem; margin-bottom: 0.5em; }
.content p, .content li { color: var(--fg-subdued); }
.content ul, .content ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.content li { margin-bottom: 0.45em; }
.content a { color: var(--fg); }

.meta-line { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 2rem; }

.address-block {
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
  margin: 1.25rem 0 1.75rem;
  font-style: normal;
  color: var(--fg-subdued);
  line-height: 1.7;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: 0.9375rem;
}

.data-table caption {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding-bottom: 0.6rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-subdued);
  vertical-align: top;
}

.data-table th { color: var(--fg); font-weight: 500; }
.data-table td + td, .data-table th + th { text-align: right; padding-right: 0; white-space: nowrap; }

.table-scroll { overflow-x: auto; }

.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgb(99 93 78 / 1);
  border: 1px solid rgb(99 93 78 / 1);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.8rem;
}

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

.form-field input::placeholder, .form-field textarea::placeholder { color: rgb(246 237 221 / 0.5); }

.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.form-note { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 1rem; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Search page */
.search-form { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.search-form input {
  flex: 1 1 260px;
  background: rgb(99 93 78 / 1);
  border: 1px solid rgb(99 93 78 / 1);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  padding: 0.8rem;
}

.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.search-results a { font-size: 1.0625rem; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results p { margin: 0.3rem 0 0; font-size: 0.9375rem; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--fg-subdued);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--fg); text-decoration: underline; }

.site-footer__utilities {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.site-footer__utilities a { color: var(--fg-muted); }

.site-footer__policies { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .product-card:hover { transform: none; }
}
