:root {
  --bg: #faf7f2;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #2f2924;
  --muted: #6f665d;
  --line: rgba(120, 108, 97, 0.12);
  --shadow: 0 12px 32px rgba(48, 37, 29, 0.04);
  --radius: 16px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #3c6e47;
  color: #fff;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

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

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 239, 233, 0.88);
  border-bottom: 1px solid rgba(120, 108, 97, 0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 60px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding-bottom: 20px;
}

.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .subheading {
  margin: 16px auto 32px;
  max-width: 48ch;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn-primary {
  background: #3c6e47;
  color: #fff !important;
  border: 2px solid #3c6e47;
}

.btn-primary:hover {
  background: #2a5033;
  border-color: #2a5033;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(42, 80, 51, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #3c6e47 !important;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fdfdfd;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.ordering-note {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow);
}

.ordering-note strong {
  color: #3c6e47;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section {
  padding: 40px 0;
  scroll-margin-top: 80px;
}

.section-title {
  text-align: center;
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 500;
}

.products {
  display: grid;
  gap: 12px;
}

.flip-card {
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 260px;
}

.flip-card-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-card-front {
  display: grid;
  grid-template-columns: 1.25fr 240px;
}

.flip-card-back {
  display: grid;
  grid-template-columns: 1fr;
  opacity: 0;
  pointer-events: none;
}

.flip-card.is-flipped .flip-card-front {
  opacity: 0;
  pointer-events: none;
}

.flip-card.is-flipped .flip-card-back {
  opacity: 1;
  pointer-events: auto;
}

.flip-card:hover .flip-card-face {
  box-shadow: 0 16px 40px rgba(48, 37, 29, 0.08);
  transform: translateY(-2px);
}

.product-copy {
  padding: 24px 28px;
}

.back-copy {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 260px;
}

.back-copy h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  font-weight: 600;
}

.back-copy p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.back-copy p:last-of-type {
  margin-bottom: 14px;
}

.flip-toggle {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  width: fit-content;
}

.flip-toggle:hover {
  background: #f5f1eb;
  border-color: #5f574f;
}

.flip-toggle:focus {
  outline: 2px solid #3c6e47;
  outline-offset: 2px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}

h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pack {
  font-size: 1rem;
  margin-bottom: 6px;
}

.ingredients {
  font-size: 1rem;
}

.ingredients em,
.ingredients .latin {
  color: #5f574f;
}

.product-image {
  background: linear-gradient(180deg, rgba(236, 230, 222, 0.95) 0%, rgba(222, 214, 204, 0.95) 100%);
  position: relative;
  min-height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.95;
}

.approach {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4px;
  padding: 8px 0 0;
}

.approach p {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.gumby-divider {
  text-align: center;
  margin: 45px 0 1px;
}

.gumby-divider img {
  width: 320px;
  max-width: 48%;
  opacity: 0.85;
  display: block;
  margin: 0 auto;
}

.hero-info {
  padding-top: 2px;
  padding-bottom: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin: 12px auto 0;
  gap: 14px;
  align-items: start;
}

.gallery-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d8d1c8 0%, #ede7de 100%);
  overflow: hidden;
}

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

.contact {
  text-align: center;
  padding: 12px 0 34px;
}

.contact-form {
  max-width: 620px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
}

.contact-form select,
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
}

#order-fields {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  resize: vertical;
  box-shadow: var(--shadow);
}

.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%232f2924' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.contact-form select:focus {
  outline: 2px solid rgba(60, 110, 71, 0.22);
  outline-offset: 1px;
  border-color: rgba(60, 110, 71, 0.35);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(60, 110, 71, 0.22);
  outline-offset: 1px;
  border-color: rgba(60, 110, 71, 0.35);
}

.contact-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 2px solid #3c6e47;
  border-radius: 999px;
  background: #3c6e47;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  width: fit-content;
  margin: 4px auto 0;
}

.contact-form-button:hover {
  background: #2a5033;
  border-color: #2a5033;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(42, 80, 51, 0.18);
}

.contact-form-button:focus {
  outline: 2px solid rgba(60, 110, 71, 0.22);
  outline-offset: 2px;
}

.contact-form-button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .contact-form {
    margin-top: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 13px 14px;
  }

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

.product-meta {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: #5f5a54;
  letter-spacing: 0.02em;
}

.contact-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.form-status {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-meta,
.contact-links {
  color: var(--muted);
  font-size: 1rem;
}

.contact-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-info-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  text-align: left;
}

.contact-logo {
  width: 70px;
  height: auto;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details .contact-links {
  justify-content: flex-start;
  margin-top: 0;
}

.contact-details .contact-meta {
  margin-top: 0 !important;
}

.disclaimer {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 16px 20px;
  background: #f1ede7;
  border-radius: 40px;
  font-size: 0.9rem;
  color: #4f4a44;
  border: 1px solid rgba(90, 80, 70, 0.1);
}

@media (max-width: 760px) {
  .topbar-inner {
    flex-direction: column;
    align-items: start;
  }

  .contact-logo {
    width: 65px;
  }

  .product-top {
    margin-bottom: 2px;
    align-items: center;
  }

  .flip-card-inner {
    min-height: 320px;
  }

  .flip-card-front {
    grid-template-columns: 1fr;
  }

  .product-copy {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-copy h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .pack {
    font-size: 0.82rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .ingredients {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .back-copy {
    padding: 16px;
  }

  .back-copy h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .back-copy p {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .flip-toggle {
    font-size: 0.85rem;
    margin-top: 10px;
    width: fit-content;
  }

  .approach {
    margin-bottom: 0;
  }

  .gumby-divider {
    margin: 16px 0;
  }

  .gumby-divider img {
    width: 180px;
    max-width: 55%;
  }

  .hero-info {
    padding-top: 0;
    padding-bottom: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 180px;
    order: -1;
  }

  .gallery-media {
    aspect-ratio: 3 / 2;
  }

  .price {
    font-size: 1.35rem;
  }
}
