/* Sunshine & Spice Cafe — styles
   Palette: warm cream, dark cacao brown, single amber accent.
   Fraunces (display serif) + Nunito (body). Hand-made bakery feel
   with a Mexican-cafe twist. */

:root {
  --cream: #FBF4E3;
  --cream-soft: #F4E8CE;
  --cream-deep: #EDDDBB;
  --brown: #362114;
  --brown-soft: #6E4E35;
  --brown-faint: #8A6B50;
  --amber: #F0B42E;
  --amber-deep: #C98F1F;
  --amber-soft: #F9DE9C;
  --accent-red: #97331F;
  --white: #FFFDF6;
  --success: #2E6B32;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 6px 24px rgba(74, 46, 22, 0.10), 0 2px 6px rgba(74, 46, 22, 0.06);
  --shadow-lift: 0 14px 36px rgba(74, 46, 22, 0.16), 0 4px 10px rgba(74, 46, 22, 0.08);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --max-width: 1120px;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  background-color: var(--cream);
  /* Subtle warm texture: faint amber glow top-left + dotted crumb pattern */
  background-image:
    radial-gradient(1100px 520px at 12% -6%, rgba(240, 180, 46, 0.13), transparent 65%),
    radial-gradient(rgba(74, 46, 22, 0.045) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  color: var(--brown);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0.35rem 0 0.75rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
}

/* Shared section header */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 2.5rem;
}

.section-head .section-sub {
  color: var(--brown-soft);
  margin: 0;
  max-width: 46ch;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brown);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: rgba(251, 244, 227, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 46, 22, 0.10);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown);
}

.brand-logo {
  position: relative;
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-style: italic;
  color: var(--amber-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--brown-soft);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brown);
  background: rgba(240, 180, 46, 0.18);
}

.site-nav .nav-cta {
  background: var(--brown);
  color: var(--cream);
  padding: 8px 18px;
  margin-left: 6px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--accent-red);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--brown);
  box-shadow: 0 4px 0 var(--amber-deep), var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--amber-deep), var(--shadow-lift);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--amber-deep), var(--shadow-soft);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.06rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  font-weight: 800;
  color: var(--brown-soft);
  text-decoration: none;
  padding: 12px 6px;
  border-bottom: 2px dotted var(--amber-deep);
  transition: color 0.2s ease;
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--accent-red);
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.accent-script {
  font-style: italic;
  color: var(--accent-red);
}

.hero-sub {
  max-width: 46ch;
  margin: 0 0 1.9rem;
  color: var(--brown-soft);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  color: var(--brown-faint);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  background: radial-gradient(ellipse at 50% 55%, rgba(240, 180, 46, 0.22), transparent 68%);
  z-index: -1;
}

.hero-logo {
  width: min(480px, 88vw);
  filter: drop-shadow(0 14px 26px rgba(74, 46, 22, 0.16));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scalloped divider — bakery doily edge */
.scallop-divider {
  height: 26px;
  background:
    radial-gradient(circle at 50% 0, var(--cream-soft) 13px, transparent 14px);
  background-size: 34px 26px;
  background-repeat: repeat-x;
}

/* Sections */
.section {
  padding: 72px 0 84px;
}

.section-alt {
  background: var(--cream-soft);
}

/* Product cards — bakery menu style */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
  justify-content: center;
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 14px,
    var(--accent-red) 14px 28px
  );
  opacity: 0.85;
}

.product-card h3 {
  margin: 4px 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
}

.product-card p {
  color: var(--brown-soft);
  margin: 0 0 4px;
}

/* Flavor list — reads as a sub-menu under the description */
.flavors-label {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

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

.product-flavors li {
  padding: 3px 0;
  line-height: 1.4;
}

.product-flavors .flavor-name {
  font-weight: 700;
}

.product-flavors .flavor-note {
  color: var(--brown-soft);
  font-size: 0.92rem;
  font-style: italic;
}

/* Price options as menu rows with dotted leaders */
.product-options {
  list-style: none;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px dashed var(--cream-deep);
}

.product-options li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-weight: 700;
}

.product-options .opt-name {
  white-space: nowrap;
}

.product-options .opt-dots {
  flex: 1;
  border-bottom: 2px dotted var(--cream-deep);
  transform: translateY(-4px);
}

.product-options .opt-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-card .price-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brown-soft);
}

.loading-note {
  text-align: center;
  color: var(--brown-soft);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber-deep);
  display: block;
  margin-bottom: 14px;
}

@supports not (-webkit-text-stroke: 1px black) {
  .step-num { color: var(--amber-deep); }
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  font-weight: 700;
}

.step p {
  color: var(--brown-soft);
  margin: 0;
}

/* Order form */
.order-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-lift);
  border-top: 6px solid var(--amber);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.form-grid .form-row:first-child {
  grid-column: 1 / -1;
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  padding: 0;
  min-width: 0;
}

.form-row[hidden] {
  display: none;
}

.fulfillment-fieldset {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 18px 10px;
  margin-left: 0;
  margin-right: 0;
}

.fulfillment-fieldset legend {
  font-weight: 800;
  padding: 0 6px;
  margin-left: -6px;
}

label {
  font-weight: 700;
  font-size: 0.98rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-deep);
  background: var(--white);
  color: var(--brown);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--amber-soft);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(240, 180, 46, 0.25);
}

textarea {
  resize: vertical;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.radio-row input[type="radio"] {
  accent-color: var(--amber-deep);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-row label {
  font-weight: 600;
}

.hint {
  color: var(--brown-faint);
  font-weight: 500;
  font-size: 0.88rem;
}

.field-error {
  color: var(--accent-red);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.1em;
}

.order-summary {
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-summary:not(:empty) {
  background: var(--cream-soft);
  border: 1px dashed var(--amber-deep);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.form-status {
  margin-top: 16px;
  font-weight: 700;
  text-align: center;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--accent-red);
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 900px;
}

.about-art {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 230px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 18px rgba(74, 46, 22, 0.14));
}

.about-wrap p {
  color: var(--brown-soft);
  max-width: 58ch;
}

/* Footer */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 14px,
    transparent 14px 28px
  );
}

.footer-logo {
  width: 96px;
  margin: 0 auto 14px;
  opacity: 0.95;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.footer-tag {
  color: var(--amber-soft);
  font-style: italic;
  margin: 0 0 18px;
}

.footer-links {
  margin: 0;
}

.site-footer a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-links .dot {
  margin: 0 10px;
  color: var(--brown-faint);
}

.disclosure {
  color: rgba(251, 244, 227, 0.6);
  font-size: 0.82rem;
  max-width: 52ch;
  margin: 22px auto 0;
}

.copyright {
  color: rgba(251, 244, 227, 0.55);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-copy .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-badges {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-logo {
    width: min(320px, 84vw);
  }

  .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-head .section-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .about-logo {
    width: 140px;
  }

  .about-wrap p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .header-inner {
    justify-content: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 4px;
  }

  .brand-logo {
    width: 46px;
    height: 33px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .site-nav {
    justify-content: center;
    gap: 0;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 6px 8px;
  }

  .site-nav .nav-cta {
    padding: 6px 14px;
    margin-left: 4px;
  }

  .order-form {
    padding: 26px 20px;
  }

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