:root {
  --cream: #FBF6EC;
  --cream-dark: #F2E9D8;
  --ink: #201C18;
  --green: #6E8B47;
  --green-dark: #52682F;
  --pink: #D98BA0;
  --pink-dark: #B65D77;
  --apple-red: #8B2A20;
  --line: rgba(32, 28, 24, 0.15);
  --font-script: "Alex Brush", cursive;
  --font-heading: "Playfair Display", serif;
  --font-body: "Jost", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-wordmark {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- HERO ---------- */

.hero {
  text-align: center;
  padding: 64px 24px 40px;
}

.logo-badge {
  --spike: 10deg;
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    var(--ink) 0deg 3deg,
    transparent 3deg var(--spike)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-badge::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.logo-badge-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.logo-badge .script-line {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.flourish {
  width: 90px;
  margin: 4px auto;
}

.flourish path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.logo-image {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.logo-badge.has-image {
  background: none;
}

.logo-badge.has-image::before {
  display: none;
}

.logo-badge.has-image .logo-image {
  display: block;
}

.logo-badge.has-image .logo-badge-inner {
  display: none;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--green-dark);
}

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

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-link {
  border: none;
  background: none;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- SECTIONS ---------- */

section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin: 0 0 8px;
}

.section-subheading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  color: #4a423a;
}

/* ---------- FLAVORS ---------- */

.flavors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.flavors-loading {
  text-align: center;
  grid-column: 1 / -1;
  color: #4a423a;
  font-style: italic;
}

.flavor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.flavor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-dark);
}

.flavor-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.flavor-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flavor-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
}

.badge-bestseller {
  background: var(--pink-dark);
}

.badge-new {
  background: var(--green-dark);
}

.badge-seasonal {
  background: var(--ink);
}

.badge-always {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.flavor-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.flavor-card p {
  font-size: 0.93rem;
  color: #4a423a;
  margin: 0 0 14px;
  flex: 1;
}

.flavor-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
}

.pricing-note {
  text-align: center;
  font-style: italic;
  color: #4a423a;
  margin-top: 32px;
}

.allergen-note {
  text-align: center;
  font-size: 0.85rem;
  color: #4a423a;
  margin-top: 12px;
}

/* ---------- ORDER & PICKUP ---------- */

.order-section {
  background: var(--cream-dark);
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.info-card p {
  color: #4a423a;
  margin: 0 0 16px;
}

/* ---------- FORMS (custom orders) ---------- */

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

.order-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.order-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  color: var(--apple-red);
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 16px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ---------- CONFIRMATION ---------- */

.order-confirmation {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}

.order-confirmation.visible {
  display: block;
}

.order-confirmation h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 0;
}

/* ---------- ABOUT ---------- */

.about {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 40px 24px;
}

footer .nav-wordmark {
  color: var(--cream);
}

footer .footer-links {
  margin: 16px 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

footer .footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

footer small {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}
