/* ============================================================
   Sweet & Dulce Bakery — sweetanddulce.com
   Static rebuild of the original Wix site (no store, WhatsApp CTAs)
   ============================================================ */

:root {
  /* Official Sweet & Dulce palette (from her Wix theme) */
  --pink: #f8c6d3;
  --mint-light: #d0e3d2;
  --sage: #a7b6a8;
  --sage-mid: #7d887e;
  --sage-dark: #545b54;
  --ink: #2a2d2a;
  --ink-soft: #634f54;
  --mauve: #95777f;
  --plum: #5d5368;
  /* Supporting tints */
  --pink-soft: #fdf1f4;
  --pink-deep: #e58ba5;
  --mint: #a9cda8;
  --mint-deep: #7fae7e;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(229, 139, 165, 0.18);
  --radius: 18px;
  /* Baskerville headers, Gotham-style body, playful script (free equivalents) */
  --font-head: "Libre Baskerville", Baskerville, Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-body: "Montserrat", Gotham, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--pink-deep); text-decoration: none; }
a:hover { color: var(--mint-deep); }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #f6e3e9;
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; max-width: 1150px; margin: 0 auto;
}
.nav-bar .brand img { height: 74px; width: auto; }
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a {
  font-family: var(--font-head);
  font-size: 1.06rem; color: var(--ink); letter-spacing: .02em;
}
nav.main a:hover, nav.main a.active { color: var(--pink-deep); }
.nav-social { display: flex; align-items: center; gap: 12px; }
.nav-social a.icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
}
.nav-social a.icon.wa { background: #25d366; }
.nav-social a.icon:hover { background: var(--pink-deep); color: #fff; }
.nav-social svg { width: 20px; height: 20px; fill: currentColor; }

#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; position: relative; z-index: 95; }
#nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
#nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-social.in-menu { display: none; }

/* ---------- Hero (photo + pink wave, logo on the crest) ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center; overflow: hidden;
  background: url("images/hero.jpg") center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(255, 235, 241, .14); }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 66%; z-index: 1; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; padding: 0 20px 46px; }
.hero-inner img.badge {
  height: 200px; width: auto; margin: 0 auto 6px;
  filter: drop-shadow(0 10px 24px rgba(160, 90, 115, .28));
}
.hero h1 {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem); color: var(--ink);
}
.hero p.sub {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--ink); margin-top: 6px;
}
@media (max-width: 700px) {
  .hero { min-height: 84vh; }
  .hero-wave { height: 74%; }
  .hero-inner img.badge { height: 150px; }
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(rgba(253, 241, 244, .78), rgba(253, 241, 244, .78)), var(--pink-soft) center/cover no-repeat;
  text-align: center; padding: 64px 20px 56px;
}
.page-hero h1 { font-family: var(--font-script); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; margin: 8px auto 0; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.tint { background: var(--pink-soft); }
.kicker {
  font-family: var(--font-script); color: var(--pink-deep);
  font-size: 1.7rem; display: block; margin-bottom: 4px;
}
h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.lead { color: var(--ink-soft); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--pink-deep); color: #fff; }
.btn.primary:hover { color: #fff; }
.btn.wa { background: #25d366; color: #fff; }
.btn.wa:hover { color: #fff; }
.btn.ghost { border: 2px solid var(--pink-deep); color: var(--pink-deep); background: transparent; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Cards / tiles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tile img { height: 340px; width: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile .cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(74, 63, 68, .75));
  color: #fff; font-family: var(--font-head); font-size: 1.25rem; text-align: center;
}

/* ---------- Creations (sage section, circle photos + soft blobs) ---------- */
section.creations { background: var(--sage); }
section.creations .kicker { color: #fff5f8; }
section.creations h2 { color: #ffffff; }
section.creations .lead { color: #f2f6f2; }
.creations-grid { margin-top: 46px; }
.creation {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 34px 10px 10px;
}
.creation::before {
  content: ""; position: absolute; z-index: 0;
  width: 190px; height: 190px; border-radius: 46px;
  top: 8px; left: calc(50% - 150px); transform: rotate(-14deg);
  transition: transform .4s ease;
}
.creation::after {
  content: ""; position: absolute; z-index: 0;
  width: 110px; height: 110px; border-radius: 32px;
  bottom: 64px; right: calc(50% - 150px); transform: rotate(18deg);
  transition: transform .4s ease;
}
.creation:nth-child(1)::before { background: var(--pink); }
.creation:nth-child(1)::after  { background: var(--mint-light); }
.creation:nth-child(2)::before { background: var(--mint-light); }
.creation:nth-child(2)::after  { background: var(--pink); }
.creation:nth-child(3)::before { background: #fde7ee; }
.creation:nth-child(3)::after  { background: var(--pink); }
.creation img {
  position: relative; z-index: 1;
  width: 235px; height: 235px; border-radius: 50%; object-fit: cover;
  border: 8px solid #fff; box-shadow: 0 16px 36px rgba(60, 80, 62, .28);
  transition: transform .4s ease;
}
.creation:hover img { transform: scale(1.05) rotate(2deg); }
.creation:hover::before { transform: rotate(-8deg) scale(1.06); }
.creation:hover::after { transform: rotate(24deg) scale(1.08); }
.creation .cap {
  position: relative; z-index: 1; margin-top: 20px;
  background: #fff; color: var(--ink);
  font-family: var(--font-head); font-size: 1.08rem;
  padding: 9px 26px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(60, 80, 62, .18);
  transition: background .25s ease, color .25s ease;
}
.creation:hover .cap { background: var(--pink-deep); color: #fff; }
@media (max-width: 900px) {
  .creation img { width: 210px; height: 210px; }
  .creation::before { width: 170px; height: 170px; left: calc(50% - 135px); }
  .creation::after { width: 95px; height: 95px; right: calc(50% - 135px); }
}

/* ---------- Menu (products) ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin-top: 40px; }
.prod {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 1px solid #f8e6ec;
  transition: transform .3s ease, box-shadow .3s ease;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(229, 139, 165, 0.3); }
.prod .ph { position: relative; overflow: hidden; }
.prod img { height: 240px; width: 100%; object-fit: cover; transition: transform .45s ease; }
.prod:hover img { transform: scale(1.07); }
.prod .ribbon {
  position: absolute; top: 12px; left: 12px;
  background: var(--mint-deep); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.prod .ribbon.pink { background: var(--pink-deep); }
.prod .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod h3 { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.35; }
.prod .price { color: var(--pink-deep); font-weight: 800; font-size: 1.05rem; }
.prod .price small { color: var(--ink-soft); font-weight: 600; }
.prod .order { margin-top: auto; padding-top: 12px; }
.prod .order a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .92rem; color: #1faa53;
}
.prod .order a:hover { color: var(--mint-deep); }
.prod .order svg { width: 17px; height: 17px; fill: currentColor; }
.prod.out .order a { color: var(--ink-soft); }
.note-box {
  margin-top: 44px; background: var(--pink-soft); border-radius: var(--radius);
  padding: 26px 30px; text-align: center; color: var(--ink-soft);
}

/* ---------- Menu filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 6px 0 8px;
}
.filter-bar button {
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--pink); background: #fff; color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.filter-bar button:hover { transform: translateY(-2px); border-color: var(--pink-deep); }
.filter-bar button.active { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* ---------- Product cards: clickable + custom card ---------- */
.prod { cursor: pointer; }
.prod .order { position: relative; z-index: 1; }
.prod.custom {
  background: linear-gradient(150deg, var(--pink) 0%, var(--pink-soft) 70%);
  border: 2px dashed var(--pink-deep);
}
.prod.custom h3 { font-size: 1.25rem; }
.prod.custom .price { color: var(--plum); }

/* ---------- Product modal (click to enlarge) ---------- */
body.modal-open { overflow: hidden; }
.pmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pmodal[hidden] { display: none; }
.pmodal .backdrop { position: absolute; inset: 0; background: rgba(42, 45, 42, .55); }
.pmodal .card {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius);
  max-width: 860px; width: 100%; max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: pmodal-in .3s ease;
}
@keyframes pmodal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.pmodal .photo { position: relative; min-height: 320px; }
.pmodal .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pmodal .photo .ribbon {
  position: absolute; top: 14px; left: 14px;
  background: var(--mint-deep); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.pmodal .photo .ribbon.pink { background: var(--pink-deep); }
.pmodal .info { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.pmodal .info h3 { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.3; padding-right: 30px; }
.pmodal .info .price { color: var(--pink-deep); font-weight: 700; font-size: 1.2rem; }
.pmodal .info .desc { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.pmodal .info .desc .es { display: block; margin-top: 10px; font-style: italic; color: var(--mauve); }
.pmodal .info .order-btn { margin-top: auto; padding-top: 16px; }
.pmodal .close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.pmodal .close:hover { transform: scale(1.08); background: var(--pink-deep); color: #fff; }
@media (max-width: 720px) {
  .pmodal { padding: 12px; }
  .pmodal .card { grid-template-columns: 1fr; max-height: 92vh; }
  .pmodal .photo { min-height: 240px; height: 42vh; }
  .pmodal .info { padding: 24px 20px 22px; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--pink);
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(229, 139, 165, 0.3); }
.quote p { font-style: italic; color: var(--ink-soft); }
.quote .who { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--plum); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }
.split img.fit { width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; }
.split .btn { margin-top: 22px; }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 38px; }
.gal img { border-radius: var(--radius); height: 320px; width: 100%; object-fit: cover; box-shadow: var(--shadow); transition: transform .3s ease; }
.gal img:hover { transform: scale(1.03); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(240px, 320px)); gap: 40px; justify-content: center; margin-top: 40px; }
.member { text-align: center; }
.member img {
  width: min(270px, 86%); aspect-ratio: 3 / 4; object-fit: contain;
  background: #fff; border-radius: 34px; margin: 0 auto 18px;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.member h3 { font-family: var(--font-head); font-size: 1.35rem; }
.member p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 40px auto 0; }
details.faq {
  background: #fff; border: 1px solid #f6dde5; border-radius: 14px;
  margin-bottom: 14px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--pink-deep); flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 40px; }
.ccard {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow); border-bottom: 4px solid var(--pink);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ccard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(229, 139, 165, 0.3); }
.ccard .ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--pink-soft); display: flex; align-items: center; justify-content: center;
}
.ccard .ico svg { width: 26px; height: 26px; fill: var(--pink-deep); }
.ccard h3 { font-family: var(--font-head); margin-bottom: 6px; }
.ccard p { color: var(--ink-soft); font-size: .96rem; overflow-wrap: anywhere; }
.ccard a.big { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; display: inline-block; max-width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-soft) 100%);
  text-align: center; padding: 70px 20px;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink); color: #e6e9e6; padding: 54px 0 30px;
}
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.foot img.flogo { height: 90px; margin-bottom: 14px; }
.foot h4 { font-family: var(--font-head); color: #fff; margin-bottom: 12px; font-size: 1.1rem; }
.foot a { color: #e6e9e6; display: block; margin-bottom: 8px; font-size: .95rem; overflow-wrap: anywhere; }
.foot a:hover { color: var(--pink); }
.foot p { font-size: .95rem; color: #b9c0b9; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #545b54; font-size: .85rem; color: #a3aba3; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Scroll reveal (fade-in) ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split img { height: 300px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  #nav-toggle { display: block; }
  header.site { backdrop-filter: none; } /* backdrop-filter would trap the fixed overlay inside the header */
  .nav-bar > .nav-social { display: none; } /* icons live inside the menu overlay on phones */
  .nav-bar .brand img { height: 58px; }

  /* full-screen menu overlay */
  nav.main {
    display: flex; position: fixed; inset: 0; z-index: 90;
    background: var(--pink-soft);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 26px; padding: 80px 24px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
  }
  nav.main.open { opacity: 1; visibility: visible; transform: none; }
  nav.main a { font-size: 1.55rem; }
  nav.main .nav-social.in-menu { display: flex; gap: 18px; margin-top: 18px; }
  nav.main .nav-social.in-menu a.icon { width: 50px; height: 50px; }
  nav.main .nav-social.in-menu svg { width: 26px; height: 26px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .wa-float { visibility: hidden; }
}

@media (max-width: 600px) {
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-bar button { width: 100%; padding: 12px 6px; font-size: .84rem; }
}
