:root {
  --color-primary: #243828;
  --color-primary-strong: #17271c;
  --color-secondary: #f3e8d0;
  --color-accent: #a9432f;
  --color-sage: #73845d;
  --color-cream: #faf7ef;
  --color-paper: #fffaf0;
  --color-text: #242424;
  --color-muted: #554f45;
  --color-border: #d8ceba;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(36, 56, 40, 0.1);
  --shadow-card: 0 22px 56px rgba(36, 56, 40, 0.13);
  --shadow-strong: 0 32px 86px rgba(17, 23, 17, 0.22);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --content: 720px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(243, 232, 208, 0.72), rgba(250, 247, 239, 0) 520px),
    radial-gradient(circle at 8% 18%, rgba(169, 67, 47, 0.06), transparent 26%),
    radial-gradient(circle at 94% 48%, rgba(115, 132, 93, 0.08), transparent 28%);
}

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

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

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-primary);
  color: var(--color-cream);
}

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

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-4);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
  scroll-margin-top: 88px;
}

.section--tight {
  padding-block: var(--space-7);
}

.section-heading {
  max-width: var(--content);
  margin-bottom: var(--space-7);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  max-width: 11.4ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.65rem, 9vw, 4.55rem);
  line-height: 1;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: 1.32rem;
  line-height: 1.18;
}

p {
  color: var(--color-muted);
}

.section-heading > p:not(.eyebrow),
.hero__lead,
.final-cta__inner > p {
  max-width: 64ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, 0.94);
  border-bottom: 1px solid rgba(216, 206, 186, 0.76);
  box-shadow: 0 10px 24px rgba(36, 56, 40, 0.04);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 800;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  object-fit: cover;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.14rem;
}

.nav__toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-primary);
  cursor: pointer;
}

.nav__toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav__menu {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 8px);
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav__menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__menu a:not(.button) {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 750;
}

.nav__menu a[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.08rem;
  width: 100%;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary,
.button--small,
.button--product {
  background: var(--color-primary);
  color: var(--color-cream);
  box-shadow: 0 14px 30px rgba(36, 56, 40, 0.2);
}

.button--primary:hover,
.button--small:hover,
.button--product:hover {
  background: var(--color-primary-strong);
}

.button--secondary {
  background: rgba(255, 250, 240, 0.9);
  border-color: var(--color-border);
  color: var(--color-primary);
}

.button--secondary:hover {
  border-color: rgba(36, 56, 40, 0.38);
  background: var(--color-paper);
}

.button--small {
  min-height: 44px;
  padding-inline: var(--space-4);
  box-shadow: none;
}

.button--product {
  width: 100%;
  margin-top: var(--space-3);
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-7);
  background:
    linear-gradient(90deg, rgba(250, 247, 239, 0.96) 0 48%, rgba(250, 247, 239, 0.5) 72%),
    linear-gradient(180deg, var(--color-secondary), var(--color-cream));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, var(--color-cream));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: var(--space-6);
  color: #403b32;
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  max-width: 440px;
}

.hero__actions .button {
  width: auto;
}

.hero__note {
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 0.93rem;
  font-weight: 750;
}

.product-grid,
.faq__list {
  display: grid;
  gap: var(--space-5);
}

.product-card,
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.86);
}

.about {
  background:
    linear-gradient(90deg, rgba(36, 56, 40, 0.06), transparent 44%),
    var(--color-paper);
}

.faq__grid {
  display: grid;
  gap: var(--space-7);
}

.about__heading {
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.about__heading h2 {
  max-width: 760px;
  margin-inline: auto;
}

.about__body {
  display: grid;
  gap: var(--space-7);
}

.about__intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.about__intro p:last-child {
  margin-bottom: 0;
}

.about-card-grid {
  display: grid;
  gap: var(--space-5);
}

.about-card {
  position: relative;
  min-height: 100%;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 16px 38px rgba(36, 56, 40, 0.075);
}

.about-card::before {
  content: "";
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  top: 0;
  height: 3px;
  background: var(--color-accent);
}

.about-card p {
  margin-bottom: 0;
}

.products {
  background: linear-gradient(180deg, var(--color-cream), rgba(243, 232, 208, 0.48), var(--color-cream));
}

.products .section-heading::after {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin: var(--space-5) auto 0;
  background: var(--color-accent);
  opacity: 0.75;
}

.product-grid {
  width: min(100%, 1060px);
  margin: var(--space-7) auto 0;
  align-items: stretch;
}

.product-card {
  --product-card-height: 680px;
  --product-image-height: calc(var(--product-card-height) * 0.7);
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--product-image-height) 1fr;
  height: 100%;
  position: relative;
  border-color: rgba(216, 206, 186, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(243, 232, 208, 0.38)),
    var(--color-paper);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(36, 56, 40, 0.12);
  min-height: var(--product-card-height);
}

.product-card__visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fffaf0, #f3e8d0);
  min-height: 0;
}

.product-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 23, 17, 0), rgba(17, 23, 17, 0.08));
}

.product-card__visual--eggplant img {
  object-position: center;
}

.product-card__visual--pepper img {
  object-position: center;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  gap: 0;
  padding: 20px var(--space-6) var(--space-6);
}

.product-card h3 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.42rem, 2.2vw, 1.72rem);
  line-height: 1.08;
  white-space: nowrap;
}

.product-card__content p {
  margin-bottom: 0;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-1) 0 0;
  list-style: none;
}

.product-card .button {
  margin-top: 20px;
}

.product-card__tags li {
  border: 1px solid rgba(36, 56, 40, 0.16);
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.72);
  color: var(--color-primary);
  padding: 0.4rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.faq {
  background:
    linear-gradient(rgba(23, 39, 28, 0.91), rgba(23, 39, 28, 0.94)),
    url("../../assets/img/fr-conservas-hero.jpg") center / cover;
}

.faq h2,
.faq .eyebrow {
  color: var(--color-cream);
}

.faq__grid {
  align-items: start;
}

.faq details {
  padding: 0;
  border-color: rgba(250, 247, 239, 0.24);
  background: rgba(250, 247, 239, 0.1);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  color: var(--color-cream);
  cursor: pointer;
  font-weight: 850;
}

.faq summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details p {
  padding: 0 var(--space-5) var(--space-5);
  margin-bottom: 0;
  color: rgba(250, 247, 239, 0.8);
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(243, 232, 208, 0.98) 0 48%, rgba(250, 247, 239, 0.78)),
    url("../../assets/img/fr-conservas-hero.jpg") right center / cover;
}

.final-cta__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.final-cta__inner > p {
  margin-inline: auto;
}

.final-cta__inner .button {
  margin-top: var(--space-3);
}

.site-footer {
  padding-block: var(--space-7) calc(var(--space-8) + 48px);
  background: var(--color-primary-strong);
  color: var(--color-cream);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
}

.site-footer p,
.site-footer a {
  color: rgba(250, 247, 239, 0.84);
}

.brand--footer {
  margin-bottom: var(--space-4);
  color: var(--color-cream);
}

.footer__contact {
  display: grid;
  gap: var(--space-3);
  font-style: normal;
}

.footer__contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: underline;
  text-decoration-color: rgba(250, 247, 239, 0.35);
  text-underline-offset: 5px;
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 16px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(36, 56, 40, 0.22);
}

.back-to-top {
  bottom: 16px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-paper);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.back-to-top.is-visible {
  display: inline-flex;
}

@media (min-width: 560px) {
  .button {
    width: auto;
  }

  .button--product {
    width: 100%;
  }

  .hero__actions .button {
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .section {
    padding-block: var(--space-9);
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .product-card {
    --product-card-height: 660px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  .hero {
    min-height: calc(100svh - 76px);
    display: grid;
    align-items: center;
    padding-block: var(--space-9);
  }

  .hero__grid,
  .faq__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero__content {
    grid-column: 2 / span 7;
    max-width: 720px;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  .hero__actions .button {
    flex: 0 0 auto;
    width: auto;
  }

  .faq__grid > .section-heading {
    grid-column: span 4;
  }

  .faq__list {
    grid-column: 6 / -1;
  }
}

@media (max-width: 767px) {
  h1 {
    max-width: 11.5ch;
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .hero {
    padding-bottom: var(--space-7);
  }

  .final-cta {
    background:
      linear-gradient(rgba(243, 232, 208, 0.96), rgba(250, 247, 239, 0.96)),
      url("../../assets/img/fr-conservas-hero.jpg") center / cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
