/* Tah! na Cozinha — landing (Bloco 2A) */

:root {
  --cream: #fff8ef;
  --cream-deep: #f7ebda;
  --gold: #f0c33a;
  --gold-deep: #d9a61f;
  --red: #c62828;
  --red-deep: #9e1c1c;
  --blue: #1b3a6b;
  --blue-soft: #2a4f8a;
  --ink: #2a2430;
  --muted: #5c5360;
  --white: #ffffff;
  --line: rgba(27, 58, 107, 0.14);
  --shadow: 0 18px 40px rgba(27, 58, 107, 0.12);
  --radius: 1.25rem;
  --font-display: "Caveat", cursive;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 4.25rem;
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--red);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 195, 58, 0.22), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(198, 40, 40, 0.1), transparent 36%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 48%, #f3e4d0 100%);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  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: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--blue);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue);
  margin-top: -0.15rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--blue);
  border-radius: 0.75rem;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(255, 248, 239, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  min-height: 2.75rem;
}

.nav-list a:hover {
  background: rgba(240, 195, 58, 0.22);
}

.btn-header {
  width: 100%;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost:hover {
  background: rgba(27, 58, 107, 0.06);
}

.btn-whatsapp {
  background: #128c7e;
  color: var(--white);
  border-color: #128c7e;
}

.btn-whatsapp:hover {
  background: #0e6f64;
  border-color: #0e6f64;
}

.btn-card {
  width: 100%;
  margin-top: auto;
}

/* Hero */

.hero {
  position: relative;
  padding: 2rem 0 2.5rem;
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(240, 195, 58, 0.08) 0 10px,
      rgba(255, 255, 255, 0.04) 10px 20px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 4.5rem);
  line-height: 0.95;
  color: var(--red);
}

.hero-slogan {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  color: var(--blue);
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-highlights {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--blue);
}

.hero-highlights li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 195, 58, 0.35);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-flyer {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: var(--cream-deep);
  animation: rise-in 0.7s var(--ease) both;
}

/* Flyer original tem “Tamanhos: Pequeno e Grande”; composição com recorte do bolo + marca. */
.hero-flyer-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-flyer-shot img {
  position: absolute;
  width: 220%;
  max-width: none;
  height: auto;
  left: -105%;
  top: -28%;
  object-fit: unset;
}

.hero-flyer-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 2.75rem 1rem 1rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(27, 58, 107, 0.42) 38%,
    rgba(27, 58, 107, 0.9) 100%
  );
  text-align: center;
  color: var(--white);
}

.hero-flyer-brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
}

.hero-flyer-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3rem);
  font-weight: 700;
  color: #ffd86a;
}

.hero-flyer-sub {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
}

.hero-flyer-price {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: rise-in 0.55s var(--ease) both;
}

/* Sections shared */

section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  color: var(--blue);
  line-height: 1.05;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 38rem;
}

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

/* Benefits — no card chrome */

.benefits {
  padding-top: 1rem;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefits-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.benefits-list li:last-child {
  border-bottom: 0;
}

.benefit-icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
}

.benefits-list strong {
  color: var(--ink);
}

.benefits-list span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Catalog */

.catalog {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.catalog-status {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--blue);
}

.catalog-status[data-state="loading"]::after {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  vertical-align: -1px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(27, 58, 107, 0.08);
  min-width: 0;
  animation: rise-in 0.45s var(--ease) both;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(240, 195, 58, 0.35), transparent 55%),
    linear-gradient(145deg, #ffe9b8, #f7d4c8 55%, #d7e4f7);
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--blue);
}

.product-placeholder-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}

.product-placeholder-text {
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 12rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.product-name {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
  word-wrap: break-word;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-options {
  margin: 0;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-price {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
}

.catalog-empty,
.catalog-error {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.catalog-error .btn {
  margin-top: 0.75rem;
}

/* Order form */

.order-form-section {
  padding-top: 1rem;
}

.order-config-status {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.order-config-error {
  margin: 1rem 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  text-align: center;
}

.order-catalog-gate {
  margin-top: 1rem;
  text-align: center;
}

.order-catalog-gate .btn {
  margin-top: 0.75rem;
}

.order-form-panel,
.order-success,
.notice-panel,
.pickup-panel,
.contact-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(27, 58, 107, 0.06);
}

.order-form-panel {
  margin-top: 1rem;
}

.selected-product-banner {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: calc(var(--radius) - 0.25rem);
  background: rgba(240, 195, 58, 0.22);
  border: 1px solid rgba(217, 166, 31, 0.35);
}

.selected-product-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.selected-product-name {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
}

.order-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 800;
  color: var(--ink);
}

.optional {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92em;
}

.field-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: var(--focus);
}

.order-form textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: var(--red-deep);
  font-weight: 700;
}

.btn-submit {
  width: 100%;
  margin-top: 0.25rem;
}

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

.product-card.is-selected {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.order-success-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1.1;
}

.order-success-id {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.order-success-summary {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}

.order-success-summary dt {
  margin: 0;
  font-weight: 800;
  color: var(--blue);
}

.order-success-summary dd {
  margin: 0;
  color: var(--ink);
}

.order-success-note {
  margin: 0.75rem 0 1rem;
}

.order-success-actions {
  display: grid;
  gap: 0.75rem;
}

.notice-panel p:first-of-type {
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .btn-submit {
    width: auto;
    min-width: 14rem;
  }

  .order-success-actions {
    grid-template-columns: auto auto;
    align-items: center;
  }
}

/* How it works */

.how-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
  display: grid;
  gap: 1rem;
}

.how-list li {
  counter-increment: how;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.9rem;
  align-items: start;
}

.how-list li::before {
  content: counter(how);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--gold);
  font-weight: 800;
  grid-row: 1 / span 2;
}

.how-list strong {
  color: var(--ink);
}

.how-list span {
  color: var(--muted);
}

/* Pickup / contact */

.pickup-place {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
}

.hours,
.payments {
  margin-top: 1.25rem;
}

.hours-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.hours ul,
.payments ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding-left: 0 !important;
}

.payment-list li {
  font-weight: 700;
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(240, 195, 58, 0.28);
}

.contact-panel {
  text-align: center;
}

.contact-panel .btn {
  margin: 0.75rem 0;
}

.contact-phone {
  margin: 0;
  font-weight: 800;
  color: var(--blue);
  font-size: 1.15rem;
}

/* Footer */

.site-footer {
  background: var(--blue);
  color: #e8eef8;
  padding: 2.25rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.footer-brand p:last-child {
  margin: 0.25rem 0 0;
}

.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: #c9d6ea;
  font-size: 0.95rem;
}

.footer-top {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  width: fit-content;
}

.footer-top:hover {
  text-decoration: underline;
}

/* Tablet+ */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex !important;
    position: static;
    inset: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    align-items: center;
    gap: 1rem;
  }

  .nav-list {
    display: flex;
    margin: 0;
    gap: 0.15rem;
  }

  .nav-list a {
    padding: 0.55rem 0.75rem;
  }

  .btn-header {
    width: auto;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .hero-flyer {
    width: min(100%, 340px);
    justify-self: end;
  }

  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }

  .benefits-list li {
    border-bottom: 0;
    padding: 0.75rem 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1.4fr auto;
    align-items: end;
  }
}

/* Desktop */

@media (min-width: 1100px) {
  .hero-flyer {
    width: min(100%, 390px);
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }

  .how-list li {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .how-list li::before {
    grid-row: auto;
    margin-bottom: 0.35rem;
  }
}
