/* ═══════════════════════════════════════
   FROM ELLA'S KITCHEN  ·  style.css
   Colors: #ECDECD (cream), #8B8379 (taupe), #FFFFFF (white)
   Font: EB Garamond (embedded via assets.js → main.js)
═══════════════════════════════════════ */

/* ── FONT FACE (injected by main.js) ── */

:root {
  --cream:    #ECDECD;
  --taupe:    #8B8379;
  --dark:     #2C2825;
  --white:    #FFFFFF;
  --light:    #F6F0E8;
  --border:   rgba(139,131,121,0.25);
  --shadow:   rgba(44,40,37,0.10);

  --ff-serif: 'EBGaramond', 'EB Garamond', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--ff-serif);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── FLOATING PETALS ── */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petals span {
  position: absolute;
  top: -60px;
  font-size: 1.2rem;
  color: var(--taupe);
  opacity: 0.18;
  animation: fall linear infinite;
}
.petals span::before { content: '✿'; }
.petals span:nth-child(1)  { left: 5%;  animation-duration: 14s; animation-delay: 0s;   font-size: 1rem; }
.petals span:nth-child(2)  { left: 15%; animation-duration: 18s; animation-delay: 3s;   font-size: 1.4rem; }
.petals span:nth-child(3)  { left: 28%; animation-duration: 12s; animation-delay: 1s;   }
.petals span:nth-child(4)  { left: 42%; animation-duration: 20s; animation-delay: 7s;   font-size: 0.8rem; }
.petals span:nth-child(5)  { left: 55%; animation-duration: 15s; animation-delay: 4s;   }
.petals span:nth-child(6)  { left: 65%; animation-duration: 17s; animation-delay: 2s;   font-size: 1.3rem; }
.petals span:nth-child(7)  { left: 75%; animation-duration: 13s; animation-delay: 9s;   font-size: 0.9rem; }
.petals span:nth-child(8)  { left: 85%; animation-duration: 19s; animation-delay: 5s;   }
.petals span:nth-child(9)  { left: 92%; animation-duration: 16s; animation-delay: 0.5s; font-size: 1.5rem; }
.petals span:nth-child(10) { left: 35%; animation-duration: 22s; animation-delay: 11s;  font-size: 0.7rem; }

@keyframes fall {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.18; }
  90%  { opacity: 0.12; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236,222,205,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 1rem;
  font-style: italic;
  color: var(--taupe);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }

.nav-order-btn {
  margin-left: 1.5rem;
  background: var(--taupe);
  color: var(--white);
  border: none;
  border-radius: 2px;
  padding: 0.55rem 1.4rem;
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-order-btn:hover { background: var(--dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--taupe);
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mm-link {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--taupe);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mm-link:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
  background: var(--dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(139,131,121,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(236,222,205,0.06) 0%, transparent 60%);
}

.hero-bg-text {
  position: absolute;
  font-size: clamp(5rem, 15vw, 14rem);
  font-style: italic;
  color: rgba(139,131,121,0.07);
  white-space: nowrap;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  animation: heroFadeIn 1.4s var(--ease-out) forwards;
  opacity: 0;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: min(520px, 80vw);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cream);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.hero-tagline em { color: var(--taupe); }

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 180px;
  margin: 0 auto;
}
.divider-line { flex: 1; height: 1px; background: rgba(139,131,121,0.5); }
.divider-bloom { color: var(--taupe); font-size: 1.2rem; }

.cta-btn {
  display: inline-block;
  border: 1px solid rgba(236,222,205,0.6);
  color: var(--cream);
  padding: 0.9rem 2.5rem;
  font-family: var(--ff-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-style: italic;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, transform 0.15s;
  margin-top: 0.5rem;
}
.cta-btn:hover {
  background: var(--cream);
  color: var(--dark);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--taupe);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeInUp 2s 1.5s var(--ease-out) both;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--taupe), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── ABOUT ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.about-deco {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-mono-logo {
  width: min(300px, 75%);
  opacity: 0.85;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--taupe);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #5a534e;
  margin-bottom: 1.2rem;
}

.about-quote {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--taupe);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--taupe);
  line-height: 1.6;
}

/* ── GALLERY ── */
.gallery {
  background: var(--dark);
  padding: 6rem 0 5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.gallery::before {
  content: '✿';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: rgba(139,131,121,0.15);
}

.gallery-header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 3rem;
}
.gallery-header .section-title { color: var(--cream); }
.gallery-header .section-label { color: var(--taupe); }
.ig-handle {
  display: inline-block;
  color: var(--taupe);
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.ig-handle:hover { color: var(--cream); }

/* Carousel */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track-outer {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 0.85rem);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.carousel-slide:hover img { transform: scale(1.04); }

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,40,37,0);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  transition: background 0.3s;
}
.carousel-slide:hover .carousel-slide-overlay {
  background: rgba(44,40,37,0.35);
}
.carousel-slide-ig {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.carousel-slide:hover .carousel-slide-ig {
  opacity: 1;
  transform: translateY(0);
}

.carousel-btn {
  background: rgba(236,222,205,0.12);
  border: 1px solid rgba(236,222,205,0.2);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.carousel-btn:hover { background: rgba(236,222,205,0.25); transform: scale(1.05); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139,131,121,0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--taupe);
  transform: scale(1.4);
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(139,131,121,0.5);
  color: var(--taupe);
  padding: 0.7rem 2rem;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  border-radius: 2px;
  transition: all 0.25s;
}
.ig-btn:hover {
  background: var(--taupe);
  color: var(--white);
  border-color: var(--taupe);
}

/* ── ORDER SECTION ── */
.order {
  position: relative;
  z-index: 1;
  background: var(--cream);
  padding: 6rem 2rem;
  overflow: hidden;
}

.order::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139,131,121,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,131,121,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.order-deco-top,
.order-deco-bot {
  text-align: center;
  color: var(--taupe);
  letter-spacing: 1.5rem;
  font-size: 1rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
}
.order-deco-bot { margin-bottom: 0; margin-top: 2.5rem; }

.order-inner {
  max-width: 680px;
  margin: 0 auto;
}

.order-header {
  text-align: center;
  margin-bottom: 3rem;
}

.order-title { font-size: clamp(2.5rem, 6vw, 4rem); }

.order-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--taupe);
  margin-top: 0.5rem;
}

.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 48px var(--shadow);
  position: relative;
}

.order-card::before {
  content: '✿';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 0 0.8rem;
  font-size: 1.4rem;
  color: var(--taupe);
}

.order-card-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.order-card-logo img {
  height: 80px;
  margin: 0 auto;
  object-fit: contain;
}

.order-notice {
  background: var(--light);
  border-left: 3px solid var(--taupe);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--taupe);
  line-height: 1.7;
}
.order-notice strong { font-style: normal; color: var(--dark); }

.order-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label,
.label-block {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--taupe);
}
.label-block em { font-style: italic; }

.field-group input,
.field-group textarea {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--dark);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
}
.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--taupe);
  box-shadow: 0 0 0 3px rgba(139,131,121,0.12);
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(139,131,121,0.55);
  font-style: italic;
}

.field-note {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(139,131,121,0.8);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* Checkboxes */
.checkbox-row {
  display: flex;
  gap: 2rem;
  margin-top: 0.25rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--dark);
  user-select: none;
}

.check-label input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--taupe);
  border-radius: 2px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.check-label input:checked ~ .check-box {
  background: var(--taupe);
  border-color: var(--taupe);
}

.check-label input:checked ~ .check-box::after {
  content: '✓';
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1;
}

/* Submit */
.submit-btn {
  margin-top: 0.5rem;
  background: var(--taupe);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  align-self: center;
  min-width: 220px;
}
.submit-btn:hover { background: var(--dark); transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--light);
  border-radius: 4px;
  text-align: center;
  animation: fadeIn 0.5s var(--ease-out);
}
.form-success.show { display: flex; }
.form-success span { font-size: 2rem; color: var(--taupe); }
.form-success p { font-size: 1.1rem; font-style: italic; color: var(--taupe); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 4rem 2rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: min(260px, 60vw);
  filter: brightness(0) invert(1);
  opacity: 0.75;
  margin: 0 auto;
}

.footer-tagline {
  color: var(--taupe);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--taupe);
  font-size: 0.9rem;
  font-style: italic;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  color: rgba(139,131,121,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 1.5rem;
  }
  .about-deco { order: -1; }
  .about-mono-logo { width: 180px; }

  .carousel-slide { flex: 0 0 calc(50% - 0.65rem); }

  .nav-links,
  .nav-order-btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 580px) {
  .carousel-slide { flex: 0 0 85%; }
  .order-card { padding: 2rem 1.25rem; }
  .checkbox-row { flex-direction: column; gap: 0.75rem; }
  .hero-logo { width: 80vw; }
}
