/* Feli Deli — bolos por encomenda no Porto */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Palette */
  --sugar: #FFF8FA;      /* page background */
  --blush: #FDEEF3;      /* tinted sections */
  --meringue: #FADCE6;   /* tile ground, soft fills */
  --rose: #E4789F;       /* tile pattern, decorative only */
  --raspberry: #C22D66;  /* primary: buttons, links */
  --raspberry-deep: #A8245A;
  --cocoa: #3B1E27;      /* text */
  --cocoa-soft: #6E4A55; /* secondary text */
  --azulejo: #2B4C9B;    /* tile centres, focus */
  --line: #EFC6D4;

  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 9vw, 7rem);
  --radius-s: 6px;
  --radius-l: 18px;

  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23FADCE6'/%3E%3Cg fill='%23E4789F'%3E%3Ccircle r='24'/%3E%3Ccircle cx='96' r='24'/%3E%3Ccircle cy='96' r='24'/%3E%3Ccircle cx='96' cy='96' r='24'/%3E%3C/g%3E%3Cg fill='%23FADCE6'%3E%3Ccircle r='15'/%3E%3Ccircle cx='96' r='15'/%3E%3Ccircle cy='96' r='15'/%3E%3Ccircle cx='96' cy='96' r='15'/%3E%3C/g%3E%3Cg fill='%232B4C9B'%3E%3Ccircle r='5'/%3E%3Ccircle cx='96' r='5'/%3E%3Ccircle cy='96' r='5'/%3E%3Ccircle cx='96' cy='96' r='5'/%3E%3C/g%3E%3Cpath d='M48 16 80 48 48 80 16 48Z' fill='none' stroke='%23E4789F' stroke-width='3'/%3E%3Cg fill='%23C22D66'%3E%3Cellipse cx='48' cy='35' rx='6.5' ry='11'/%3E%3Cellipse cx='48' cy='61' rx='6.5' ry='11'/%3E%3Cellipse cx='35' cy='48' rx='11' ry='6.5'/%3E%3Cellipse cx='61' cy='48' rx='11' ry='6.5'/%3E%3C/g%3E%3Ccircle cx='48' cy='48' r='5' fill='%232B4C9B'/%3E%3Crect x='.5' y='.5' width='95' height='95' fill='none' stroke='%23fff' stroke-opacity='.7'/%3E%3C/svg%3E");

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sugar);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--raspberry); text-underline-offset: 3px; }
a:hover { color: var(--raspberry-deep); }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 650;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 24; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cocoa); color: #fff; padding: .6em 1em; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }
.small { font-size: .9rem; color: var(--cocoa-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7em 1.5em;
  border: 2px solid var(--raspberry); border-radius: 999px;
  background: var(--raspberry); color: #fff;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--raspberry-deep); border-color: var(--raspberry-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--raspberry); }
.btn-ghost:hover { background: var(--raspberry); color: #fff; }
.btn-small { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--raspberry); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 250, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.site-nav { margin-left: auto; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--cocoa); line-height: 1.1; }
.brand-name {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72;
  font-weight: 800; font-size: 1.65rem; color: var(--raspberry); margin: 0;
}
.brand-tag { font-size: .8rem; color: var(--cocoa-soft); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--cocoa); text-decoration: none; font-weight: 500; }
.site-nav ul a:hover { color: var(--raspberry); text-decoration: underline; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button {
  border: 0; background: none; font: 600 .85rem var(--body); color: var(--cocoa-soft);
  padding: .35em .75em; border-radius: 999px; cursor: pointer; min-height: 32px;
}
.lang-switch button[aria-pressed="true"] { background: var(--cocoa); color: #fff; }
.menu-toggle { display: none; }


@media (max-width: 960px) {
  .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 20px; height: 2px; background: var(--cocoa); position: relative; transition: transform .2s;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--sugar); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav + .lang-switch { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 750;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  line-height: .98;
  letter-spacing: -0.025em;
  max-width: 11ch;
  margin-bottom: .35em;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--cocoa-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--cocoa-soft); font-size: .95rem; }
.hero-facts li { display: flex; gap: .6rem; align-items: baseline; }
.hero-facts li::before {
  content: ""; flex: none; width: 10px; height: 10px; transform: rotate(45deg) translateY(-1px);
  background: var(--rose); border-radius: 2px;
}

.hero-visual { position: relative; display: flex; justify-content: center; padding: 2.5rem 0; }
.hero-visual .tiles {
  position: absolute; top: 0; bottom: 0; left: 12%; right: -40vw;
  background: var(--tile) 0 0 / 96px 96px;
  border-radius: var(--radius-l) 0 0 var(--radius-l);
}
.arch {
  position: relative; margin: 0; width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden;
  border: 10px solid var(--sugar);
  background: var(--meringue);
  box-shadow: 0 30px 60px -30px rgba(90, 20, 50, .45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 1.5rem 0; }
  .hero-visual .tiles { left: 20%; }
  .arch { width: min(80%, 380px); }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-tint { background: var(--blush); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--cocoa-soft); }

/* Menu */
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--cocoa); }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.menu-item h3 { margin-bottom: .25em; }
.menu-item p { margin: 0; color: var(--cocoa-soft); max-width: 36em; }
.menu-item .price {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36;
  font-weight: 650; font-size: 1.4rem; color: var(--raspberry); white-space: nowrap;
}
.price span { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--cocoa-soft); margin-right: .3em; }

.menu-extra { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; }
.menu-extra p { color: var(--cocoa-soft); max-width: 32em; }
table { border-collapse: collapse; width: 100%; }
.sizes th, .sizes td, .hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.sizes thead th { font-weight: 600; font-size: .9rem; color: var(--cocoa-soft); border-bottom-color: var(--cocoa); }
.sizes td + td, .hours td { text-align: right; }
.hours th { font-weight: 500; }

@media (max-width: 700px) {
  .menu-extra { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 1fr; gap: .4rem; }
}

/* Gallery */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px;
  grid-template-areas:
    "mala  mala  astro bebe"
    "feli  tarte astro bebe"
    "feli  tarte car   car";
}
.gallery li { min-width: 0; }
.gallery li:nth-child(1) { grid-area: mala; }
.gallery li:nth-child(2) { grid-area: astro; }
.gallery li:nth-child(3) { grid-area: car; }
.gallery li:nth-child(4) { grid-area: bebe; }
.gallery li:nth-child(5) { grid-area: feli; }
.gallery li:nth-child(6) { grid-area: tarte; }
.g-item {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-s); overflow: hidden; background: var(--meringue);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px;
    grid-template-areas: "mala mala" "astro bebe" "astro bebe" "feli tarte" "feli tarte" "car car";
  }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(40, 14, 24, .9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 24px; gap: 1rem; }
.lightbox img { max-height: calc(100vh - 150px); max-width: min(100%, 1000px); width: auto; object-fit: contain; border-radius: var(--radius-s); }
.lightbox figcaption { color: #fff; text-align: center; max-width: 40em; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--cocoa); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { margin: 0; border-radius: 999px 999px var(--radius-l) var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.about-copy p { max-width: 34em; }
.signature {
  font-family: var(--display); font-style: normal; font-variation-settings: "SOFT" 100, "opsz" 36;
  font-size: 1.4rem; color: var(--raspberry); margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* Order */
.order { background: var(--tile) 0 0 / 96px 96px; }
.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.order-steps, .order-form {
  background: var(--sugar); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px -30px rgba(90, 20, 50, .5);
}
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--meringue); color: var(--raspberry-deep);
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
}
.steps h3 { font-size: 1.15rem; margin: .45rem 0 .2rem; }
.steps p { margin: 0; color: var(--cocoa-soft); }

.order-form h3 { font-size: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
fieldset.field { border: 0; padding: 0; }
label, legend { font-weight: 600; font-size: .95rem; }
legend { padding: 0; margin-bottom: .35rem; }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: .65em .85em;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff;
  font: inherit; font-size: 1rem; color: var(--cocoa);
}
input:focus, select:focus, textarea:focus { border-color: var(--raspberry); outline: none; box-shadow: 0 0 0 3px rgba(194, 45, 102, .18); }
[aria-invalid="true"] { border-color: #B3261E !important; }
textarea { resize: vertical; min-height: 110px; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.radios label, .consent { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--raspberry); width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.consent { font-size: .92rem; color: var(--cocoa-soft); margin-bottom: 1rem; }
.form-error { color: #B3261E; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-note { font-size: .88rem; color: var(--cocoa-soft); margin: 1rem 0 0; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } .form-actions .btn { width: 100%; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--cocoa); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 24; font-weight: 600; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-size: 1.6rem; font-weight: 400; color: var(--raspberry); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--cocoa-soft); padding-bottom: 1rem; max-width: 40em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-list { margin: 1.5rem 0 1rem; display: grid; gap: 1.1rem; }
.contact-list dt { font-size: .9rem; color: var(--cocoa-soft); }
.contact-list dd { margin: 0; font-size: 1.15rem; }
.contact-grid h3 { margin-top: .4rem; }
.map { margin-top: 1.5rem; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--meringue); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: .6rem; font-size: .95rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--cocoa); color: #F7E3EA; }
.tile-band { height: 48px; background: var(--tile) 0 0 / 48px 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: start; }
.site-footer .brand-name { color: #FFB8D0; }
.site-footer p { margin: .25rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a, .site-footer .link-btn { color: #FFD6E3; }
.site-footer a:hover, .site-footer .link-btn:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; color: #D9B9C4; }
.site-footer :focus-visible { outline-color: #FFB8D0; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Privacy modal */
.modal {
  border: 0; border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: min(640px, calc(100vw - 32px)); color: var(--cocoa); background: var(--sugar);
}
.modal::backdrop { background: rgba(40, 14, 24, .6); }
.modal h2 { font-size: 1.8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
