/* Self-hosted Be Vietnam Pro, shared with the home page; licence in assets/fonts/OFL.txt. */
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/BeVietnamPro-400.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/BeVietnamPro-600.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/BeVietnamPro-700.woff2") format("woff2");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/BeVietnamPro-800.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --cherry: #c8102e;
  --cherry-bright: #d81736;
  --cherry-deep: #970820;
  --cherry-soft: #f8dfe4;
  --leaf-soft: #dce9df;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #1d1514;
  --muted: #6d5652;
  --focus-ink: #1d1514;
  --focus-rose: #ffb8c5;
  --line: rgba(151, 8, 32, 0.2);
  --max: 1240px;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.64.07-.3-.15-1.25-.46-2.38-1.47a8.9 8.9 0 0 1-1.65-2.05c-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.91-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.08c.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.7.63.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.42.25-.69.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35M12.04 21.5h-.01a9.6 9.6 0 0 1-4.9-1.34l-.35-.21-3.64.95.97-3.55-.23-.36A9.57 9.57 0 0 1 2.4 11.9a9.64 9.64 0 0 1 9.63-9.62c2.57 0 4.98 1 6.8 2.82a9.56 9.56 0 0 1 2.82 6.81 9.64 9.64 0 0 1-9.61 9.59m8.19-17.8A11.5 11.5 0 0 0 12.03.3C5.66.3.48 5.48.48 11.86c0 2.04.53 4.03 1.55 5.78L.38 23.7l6.2-1.63a11.55 11.55 0 0 0 5.45 1.39h.01c6.37 0 11.55-5.18 11.55-11.56 0-3.09-1.2-6-3.36-8.19'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cherry-soft);
  color: var(--cherry-deep);
}

.hero ::selection,
.close ::selection {
  background: var(--white);
  color: var(--cherry-deep);
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus-ink);
  outline-offset: 4px;
}

/* Rose is for cherry fields only: on paper and white it fails 3:1. */
.hero-message :focus-visible,
.segments :focus-visible,
.close :focus-visible {
  outline-color: var(--focus-rose);
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

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

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(151, 8, 32, 0.08);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--cherry-deep);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-link,
.footer-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-link:hover,
.header-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cherry);
  text-decoration-line: underline;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background-color 220ms ease;
}

.button::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-right: 8px;
  background: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat;
  mask: var(--wa-icon) center / contain no-repeat;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-cherry {
  background: var(--cherry);
  color: var(--white);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cherry-deep) 22%, transparent);
}

.button-cherry:hover {
  background: var(--cherry-deep);
}

.button-light {
  background: var(--white);
  color: var(--cherry-deep);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--cherry-deep) 25%, transparent);
}

/* Optional owner facts from content.js (wholesale.minimumOrder, formats, deliveryZones); empty ones are not on the page. */
.fact {
  color: var(--cherry-deep);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: 56px 0 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, var(--cherry-bright) 0%, var(--cherry) 52%, var(--cherry-deep) 100%);
  border-radius: 0 0 48% 0 / 0 0 64px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.hero-lead {
  max-width: 34ch;
  margin-top: 22px;
  font-size: 1.125rem;
  font-weight: 600;
}

.segments {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}

.segments legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.segment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment {
  position: relative;
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segment span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 200ms ease, color 200ms ease;
}

.segment:hover span {
  background: rgba(255, 255, 255, 0.14);
}

.segment input:checked + span {
  border-color: var(--white);
  background: var(--white);
  color: var(--cherry-deep);
}

.segment input:focus-visible + span {
  outline: 3px solid var(--focus-rose);
  outline-offset: 3px;
}

.offer {
  margin-top: 18px;
}

.offer-panel {
  display: grid;
  grid-template-columns: 38% 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(68, 6, 16, 0.24);
}

.offer-panel[hidden] {
  display: none;
}

.offer-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 44% 0 0 / 0 30% 0 0;
}

.offer-body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px 28px 28px;
}

.offer-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--cherry-deep);
}

.offer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.offer-list li {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.offer-price,
.quote-price {
  font-weight: 800;
  color: var(--cherry-deep);
}

.offer-body .button {
  justify-self: start;
}

/* The one authored motion: the offer settles in when the buyer changes segment. */
.offer-panel.is-entering .offer-body,
.offer-panel.is-entering > img {
  animation: offer-in 420ms var(--ease-out);
}

@keyframes offer-in {
  from {
    opacity: 0.35;
    transform: translateY(8px);
  }
}

/* Origin */

.origin {
  padding: 112px 0 0;
}

.origin-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.origin-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 46% 18% 40% 14% / 30% 16% 34% 12%;
}

.origin-copy p {
  max-width: 52ch;
  margin-top: 22px;
  font-size: 1.125rem;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 0;
  background: var(--cherry);
  color: var(--white);
}

.proof div {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  margin: -1px 0 0 -1px;
}

.proof .proof-wide {
  grid-column: span 2;
}

.proof dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof dd {
  margin: 5px 0 0;
  font-weight: 700;
  line-height: 1.3;
}

/* Steps */

.steps-section {
  padding: 112px 0;
}

.steps-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.steps-photo {
  margin-top: 32px;
  max-width: 420px;
}

.steps-photo img {
  width: 100%;
  border-radius: 18% 46% 22% 40% / 16% 38% 20% 34%;
  box-shadow: 0 26px 50px rgba(68, 6, 16, 0.16);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 10px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps h3 {
  color: var(--cherry-deep);
}

.steps p {
  max-width: 52ch;
}

.noscript-order {
  font-weight: 700;
}

/* Quote form */

.quote {
  padding: 96px 0;
  background: var(--cherry-soft);
}

.quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.quote-copy p {
  max-width: 38ch;
  margin-top: 18px;
  font-size: 1.125rem;
}

.quote-copy .quote-price {
  font-size: 1rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(151, 8, 32, 0.1);
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-wide,
.form-actions {
  grid-column: 1 / -1;
}

.field[hidden] {
  display: none;
}

.field > label,
.field legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.field legend {
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="number"],
.field select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #8f7672;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--white);
  caret-color: var(--cherry);
  accent-color: var(--cherry);
}

.field select {
  appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23970820' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}

.field input:hover,
.field select:hover {
  border-color: var(--cherry-deep);
}

.field [aria-invalid="true"] {
  border-color: var(--cherry);
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-list label {
  position: relative;
}

.choice-list input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice-list span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1.5px solid #8f7672;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 800;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.choice-list label:hover span {
  border-color: var(--cherry-deep);
}

.choice-list input:checked + span {
  border-color: var(--cherry);
  background: var(--cherry);
  color: var(--white);
}

.choice-list input:focus-visible + span {
  outline: 3px solid var(--focus-ink);
  outline-offset: 3px;
}

.error {
  color: var(--cherry-deep);
  font-size: 0.875rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.form-note {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Close */

.close {
  padding: 96px 0;
  background: linear-gradient(145deg, var(--cherry-bright) 0%, var(--cherry) 52%, var(--cherry-deep) 100%);
  color: var(--white);
}

.close-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
}

.close h2 {
  max-width: 14ch;
  margin-bottom: 30px;
}

.close-photo img {
  width: 100%;
  max-width: 512px;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 44% 12% 40% 16% / 34% 14% 30% 18%;
}

/* Footer */

.site-footer {
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 32px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-origin {
  color: var(--cherry-deep);
  font-weight: 700;
}

.copyright {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Responsive */

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-lead {
    max-width: 52ch;
  }

  .quote-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding: 28px 0 48px;
    border-radius: 0 0 40% 0 / 0 0 36px 0;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 1rem;
  }

  .offer-panel {
    grid-template-columns: 1fr;
  }

  .offer-panel > img {
    display: none;
  }

  .offer-body {
    gap: 10px;
    padding: 20px;
  }

  .offer-list {
    gap: 6px;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .offer-list li {
    padding-top: 6px;
  }

  .offer-body .button {
    justify-self: stretch;
  }

  .origin {
    padding-top: 84px;
  }

  .origin-inner,
  .steps-inner,
  .close-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .origin-copy {
    order: -1;
  }

  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .proof div {
    padding: 16px 18px;
  }

  .steps-section,
  .quote,
  .close {
    padding: 84px 0;
  }

  .steps-photo {
    max-width: 360px;
  }

  .close-photo img {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-link {
    grid-column: 2;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .hero-lead {
    font-size: 0.9375rem;
  }

  .segment span {
    padding: 8px 14px;
  }

  .origin {
    padding-top: 72px;
  }

  .steps-section,
  .quote,
  .close {
    padding: 72px 0;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .form-actions .button {
    width: 100%;
  }

  .proof .proof-wide {
    grid-column: 1 / -1;
  }
}

/* Small phones (320 px wide): the panel's WhatsApp button stays in the first 640 px. */
@media (max-width: 380px) {
  .header-inner {
    min-height: 56px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-lead {
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .hero-inner {
    gap: 12px;
  }

  .segments legend {
    margin-bottom: 8px;
    font-size: 0.875rem;
  }

  .segment-list {
    gap: 6px;
  }

  .segment span {
    min-height: 40px;
    padding: 6px 11px;
    font-size: 13px;
  }

  .offer {
    margin-top: 8px;
  }

  .offer-body {
    gap: 8px;
    padding: 16px;
  }

  .offer-list {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .offer-price {
    font-size: 0.875rem;
  }

  .offer-body .button {
    min-height: 46px;
    padding-block: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .segment span,
  .choice-list span {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }

  .offer-panel.is-entering .offer-body,
  .offer-panel.is-entering > img {
    animation: none;
  }
}

@media (min-width: 541px) {
  .field-wide select {
    max-width: calc(50% - 12px);
  }
}
