/* ─── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Logo-derived palette ── */
  --purple:      #5c3060;   /* deep purple from the logo text */
  --purple-mid:  #8b6aaf;   /* medium mauve */
  --lavender:    #c9bfe0;   /* light lavender ring */
  --cream:       #f5ead8;   /* warm cream (logo background) */
  --warm-white:  #fdf8f2;   /* off-white for section backgrounds */
  --gold:        #c9962c;   /* golden tan from the crêpe */
  --sage:        #7a9e7e;   /* kept for savory tag */
  --text:        #2e1a36;   /* dark purple-tinted body text */
  --text-muted:  #7a6888;   /* muted purple-gray */

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', system-ui, sans-serif;

  --max-w: 860px;
  --section-gap: 5rem;
}

@media (max-width: 600px) {
  :root { --section-gap: 24px; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #faf6f0;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.2rem;
  font-weight: 300;
}

/* ─── Shared utilities ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  margin-top: 0.5rem;
  height: 2px;
  width: 3rem;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Ornament divider ─────────────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--purple-mid);
  opacity: 0.45;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d0c4b8;
}

.ornament-divider svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

@media (max-width: 600px) {
  .hero { padding-bottom: 0; }
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero__corner {
  position: absolute;
  width: 80px;
  height: 80px;
  color: var(--purple-mid);
  opacity: 0.35;
}

.hero__corner--tl { top: 1rem; left: 0; }
.hero__corner--tr { top: 1rem; right: 0; transform: scaleX(-1); }
.hero__corner--bl { bottom: 1rem; left: 0; transform: scaleY(-1); }
.hero__corner--br { bottom: 1rem; right: 0; transform: scale(-1, -1); }

@media (max-width: 480px) {
  .hero__corner { width: 52px; height: 52px; }
}

.hero__logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 0;
}

@media (max-width: 480px) {
  .hero__logo-wrap { padding: 3rem 0; }
}

.hero__logo {
  width: clamp(200px, 38vw, 300px);
  height: auto;
  object-fit: contain;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--purple);
  line-height: 1.2;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero__slogan {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--purple-mid);
}

/* ─── CTA band ─────────────────────────────────────────────────── */
.cta {
  padding: 2.5rem 1.5rem;
  text-align: center;
}


.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avail-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  margin: 0 auto 20px;
  width: 100%;
  max-width: 300px;
}

.avail-bar {
  width: 100%;
  max-width: 300px;
  height: 12px;
  background: rgba(92, 48, 96, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 0 0.4rem;
}

.avail-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple-mid), var(--purple));
  transition: width 1s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* shimmer effect */
.avail-bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: bar-shimmer 2s ease-in-out infinite;
}

@keyframes bar-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.avail-bar__fill--low {
  background: linear-gradient(90deg, #d4813a, #c05c1a);
}

.cta__avail {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cta__price {
  font-size: 0.95rem;
  color: var(--purple);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}

.cta__btn {
  display: inline-block;
  background: var(--purple);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta__btn:hover { background: var(--purple-mid); }
.cta__btn--soldout { opacity: 0.6; pointer-events: none; }

/* ─── Page header (order pages) ────────────────────────────────── */
.page-header {
  border-bottom: 1px solid var(--lavender);
  background: var(--warm-white);
  padding: 0.75rem 1.5rem;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

.page-header__logo {
  width: 40px;
  height: auto;
}

.page-header__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--purple);
  text-decoration: none;
}

/* ─── Back link (inside main content) ──────────────────────────── */
.back-link {
  display: block;
  width: fit-content;
  font-size: 0.88rem;
  color: var(--purple);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 16px;
  transition: background 0.18s, color 0.18s;
}

.back-link:hover {
  background: var(--lavender);
  color: var(--purple);
}

/* ─── Order section ─────────────────────────────────────────────── */
.order {
  padding: var(--section-gap) 0;
}

@media (max-width: 600px) {
  .order { padding-top: 20px; }
}

/* ─── Tips section ─────────────────────────────────────────────── */
.tips {
  padding: var(--section-gap) 0;
}


.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 580px;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .steps { max-width: 100%; }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step__number {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--purple);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.step__heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.3rem;
}

.step__body p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.fold-diagram {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 0.85rem;
  border-radius: 8px;
}

/* ─── Fillings section ─────────────────────────────────────────── */
.fillings {
  padding: var(--section-gap) 0;
}

.fillings__group {
  margin-bottom: 3rem;
}

.fillings__group-title {
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

.tag--sweet {
  color: var(--purple-mid);
}

.tag--savory {
  color: var(--sage);
}

.fillings__img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .fillings__img-grid { grid-template-columns: repeat(2, 1fr); }
}

.filling-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filling-card__img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #ede4d6;
  position: relative;
}

/* Placeholder shown when image fails to load */
.filling-card__img-wrap--empty::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #c5b5a0;
}

.filling-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.filling-card:hover .filling-card__img {
  transform: scale(1.04);
}

.filling-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ─── Contact section ──────────────────────────────────────────── */
.contact {
  padding: var(--section-gap) 0;
  text-align: center;
}

@media (max-width: 600px) {
  .contact { padding-bottom: 40px; }
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact__sub {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
}

.contact__link:hover {
  color: var(--purple-mid);
}

.contact__icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.contact__icon--whatsapp {
  color: var(--gold);
}

/* ─── Order section ────────────────────────────────────────────── */
.order__price {
  margin-bottom: 1.25rem;
  text-align: center;
}

.order__sub-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.order__sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
}

.order__avail {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.order__avail-bar {
  height: 8px;
  background: var(--lavender);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.order__avail-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.order__avail-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order__form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field { display: flex; flex-direction: column; }

.form-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.form-sublabel {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.form-note {
  margin-bottom: 0.75rem;
}

.form-note .form-sublabel,
.form-note .qty-more {
  margin-bottom: 0;
  margin-top: 0;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--lavender);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--warm-white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--purple-mid); }

.form-input--error { border-color: #c0392b; }

.form-input--qty { width: 100px; }

.phone-field {
  display: flex;
}

.phone-country {
  padding: 0.6rem 0.6rem;
  border: 1.5px solid var(--lavender);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--warm-white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-field .form-input {
  border-radius: 0 8px 8px 0;
  flex: 1;
  min-width: 0;
}

.phone-field:focus-within .phone-country { border-color: var(--purple-mid); }

.phone-field--error .phone-country { border-color: #c0392b; }

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.3rem;
  min-height: 1em;
}

.radio-group--error .radio-option {
  border-color: #c0392b;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--lavender);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:has(input:checked) {
  border-color: var(--purple-mid);
  background: #f5f0fc;
}

.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.radio-option small { color: var(--text-muted); }

.qty-group {
  display: flex;
  gap: 0.5rem;
}

.qty-option {
  display: flex;
}

.qty-option input[type="radio"] {
  display: none;
}

.qty-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--lavender);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}

.qty-option span:hover {
  border-color: var(--purple-mid);
  background: #f5f0fc;
}

.qty-option input[type="radio"]:checked + span {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--cream);
}

.qty-more {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.qty-more__link {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order__btn {
  background: var(--purple);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s;
}

.order__btn:hover { background: var(--purple-mid); }
.order__btn:disabled { opacity: 0.6; cursor: not-allowed; }

.order__success,
.order__soldout {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-size: 0.97rem;
}

.order__success { background: #f0faf0; color: #3a7040; }
.order__soldout { background: #fdf5f0; color: #a05030; }

/* ─── Language toggle ──────────────────────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 100;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--lavender);
}

.lang-toggle__current {
  color: var(--purple);
  font-weight: 700;
}

.lang-toggle__sep {
  color: var(--lavender);
}

.lang-toggle__link {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-toggle__link:hover {
  color: var(--purple);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--purple);
  color: var(--lavender);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* ─── Success / Soldout dialogs ─────────────────────────────────── */
.soldout-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 360px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 40px rgba(80, 40, 120, 0.18);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.soldout-dialog::backdrop {
  background: rgba(30, 20, 50, 0.45);
  backdrop-filter: blur(4px);
}

.success-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 360px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 40px rgba(80, 40, 120, 0.18);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.success-dialog::backdrop {
  background: rgba(30, 20, 50, 0.45);
  backdrop-filter: blur(4px);
}

.success-dialog__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  background: var(--warm-white);
  border-radius: 16px;
}

.success-dialog__icon {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
}

.success-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--purple);
  margin: 0;
  font-weight: 600;
}

.success-dialog__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
