:root {
  --cream: #fbf6ee;
  --cream-deep: #f1e6d4;
  --paper: #fffdf8;
  --ink: #2a1c14;
  --chocolate: #3d2416;
  --cocoa: #6a3f28;
  --terracotta: #c15c3a;
  --terracotta-deep: #9e3f26;
  --blush: #e8c4b0;
  --sage: #6b7f5a;
  --sage-soft: #e6ecd9;
  --gold: #c4a35a;
  --muted: #6e5a4c;
  --line: rgba(61, 36, 22, 0.12);
  --shadow: 0 24px 60px rgba(61, 36, 22, 0.12);
  --radius: 1.5rem;
  --header: 4.25rem;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 0.5rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); font-optical-sizing: auto; line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--chocolate); }
p { margin: 0; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 0.85rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 1.4rem; height: 1px; background: var(--gold); display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; padding: 0.9rem 1.45rem;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px rgba(193, 92, 58, 0.28); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--chocolate); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--cocoa); }
.btn-dark { background: var(--chocolate); color: #fff; }
.btn-dark:hover { background: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(61, 36, 22, 0.05); }
.nav {
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--chocolate); }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cocoa); font-weight: 500; }
.nav-links { display: none; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--cocoa); }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { display: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--chocolate); transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-panel {
  display: none; flex-direction: column; gap: 1rem;
  padding: 0.25rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a { text-decoration: none; font-weight: 500; color: var(--chocolate); padding: 0.35rem 0; }

/* Hero — official banner is full-width, no text overlaid on the artwork */
.hero {
  position: relative;
  padding: 0 0 3.2rem;
  overflow: hidden;
}
.hero-banner {
  background: #f3e4cf;
  line-height: 0;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-intro { padding-top: 2rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }
.hero-lead {
  margin-top: 1rem; max-width: 38rem;
  font-size: 1.08rem; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem;
  font-size: 0.88rem; color: var(--cocoa);
}
.hero-meta strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); font-weight: 600; }

@media (min-width: 860px) {
  .hero { padding-bottom: 4.2rem; }
  .hero-intro { padding-top: 2.4rem; }
}

/* Pastillas card: keep the cake in frame, not the wall above it */
.cake-media-pastillas img { object-position: 50% 70%; }

/* Sections */
.section { padding: 4.2rem 0; }
.section-head { max-width: 38rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 500; }
.section-head p { margin-top: 0.85rem; color: var(--muted); font-size: 1.05rem; }
.band { background: var(--paper); }
.band-sage { background: linear-gradient(180deg, #f3f6eb 0%, var(--cream) 100%); }

/* Featured cakes */
.featured-grid {
  display: grid; gap: 1.15rem;
}
@media (min-width: 700px) {
  .featured-grid { grid-template-columns: repeat(6, 1fr); }
  .cake-card:nth-child(1),
  .cake-card:nth-child(2) { grid-column: span 3; }
  .cake-card:nth-child(n+3) { grid-column: span 2; }
}
.cake-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cake-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cake-media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--cream-deep); overflow: hidden; text-decoration: none; color: inherit;
}
.cake-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cake-card:hover .cake-media img { transform: scale(1.05); }
.cake-art {
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.cake-art svg { width: min(46%, 140px); height: auto; }
.cake-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.cake-body h3 { font-size: 1.35rem; font-weight: 600; }
.cake-body p { color: var(--muted); font-size: 0.95rem; }
.cake-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage);
}

/* Occasions */
.occasions { display: grid; gap: 1rem; }
@media (min-width: 700px) { .occasions { grid-template-columns: repeat(3, 1fr); } }
.occ {
  background: var(--paper);
  border-radius: 1.25rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
}
.occ h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.occ p { color: var(--muted); font-size: 0.96rem; }
.occ .when { margin-top: 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--terracotta); }

/* Gallery */
.gallery-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 2; }
}
.gallery-item {
  position: relative; display: block; border-radius: 1.15rem; overflow: hidden;
  background: var(--cream-deep); aspect-ratio: 1;
  text-decoration: none; color: #fff;
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(2) { aspect-ratio: auto; min-height: 220px; }
@media (min-width: 800px) {
  .gallery-item:nth-child(1) { min-height: 100%; }
  .gallery-item:nth-child(2) { min-height: 240px; }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item.gallery-banner {
  grid-column: 1 / -1;
  aspect-ratio: 1942 / 809;
  min-height: 0;
}
@media (min-width: 800px) {
  .gallery-item.gallery-banner { min-height: 0; }
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption,
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.9rem 0.85rem;
  background: linear-gradient(transparent, rgba(42, 28, 20, 0.72));
  font-size: 0.88rem; font-weight: 500;
}

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; } }
.about-photos { display: grid; gap: 0.8rem; grid-template-columns: 1.1fr 0.9fr; }
.about-photos img {
  border-radius: 1.25rem; width: 100%; height: 100%; object-fit: cover;
  box-shadow: var(--shadow);
}
.about-photos img:first-child { min-height: 240px; }
.about-copy p + p { margin-top: 0.95rem; }
.about-copy p { color: var(--muted); font-size: 1.04rem; }

/* Order */
.steps { display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--paper); border-radius: 1.25rem; padding: 1.5rem 1.3rem;
  border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 2rem; color: var(--terracotta); line-height: 1;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); }
.order-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2rem; } }
.contact-card {
  background: var(--chocolate); color: #f7efe4;
  border-radius: 1.6rem; padding: 2rem 1.5rem;
}
.contact-card h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-card p { margin-top: 0.8rem; color: rgba(247, 239, 228, 0.8); }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.contact-list small { display: block; font-weight: 400; font-size: 0.82rem; color: rgba(247, 239, 228, 0.7); letter-spacing: 0.04em; }
.contact-aside {
  background: var(--paper); border-radius: 1.6rem; padding: 1.7rem 1.4rem;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 0.8rem;
}
.contact-aside h3 { font-size: 1.4rem; }
.contact-aside p { color: var(--muted); }

/* Footer */
.site-footer {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--chocolate); font-weight: 600; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(24, 14, 10, 0.88);
  display: none; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: 0.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-cap {
  position: absolute; left: 0; right: 0; bottom: 0.8rem;
  text-align: center; color: #f7efe4; font-size: 0.95rem;
}
.lightbox-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .btn:hover, .cake-card:hover, .cake-card:hover .cake-media img, .gallery-item:hover img { transform: none; }
}

.cake-art-malunggay { background: linear-gradient(160deg, #e6ecd9, #f4efe2); }
.cake-art-ube { background: linear-gradient(160deg, #efe4f4, #f8f1e8); }
.cake-art-kalabasa { background: linear-gradient(160deg, #f6e4c8, #f8f1e8); }
.cake-art-strawberry { background: linear-gradient(160deg, #f8e4e6, #f8f1e8); }
.order-cta { margin-top: 1.2rem; }
.not-found { text-align: center; padding: 4rem 0; }
.not-found-lead { margin-inline: auto; }
