/* ============================================================
   Mariadita.pt — "Canvas & Confetti"
   Single stylesheet. Tokens derived from DESIGN.md.
   ============================================================ */

/* ---------- Self-hosted fonts (Fontsource variable subsets) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-opsz.woff2') format('woff2');
  font-named-instance: 'Regular';
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-opsz-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/hanken.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
/* Palette taken from the Mariadita logo: terracotta + sand + sage + the smile,
   on a warm canvas with an espresso-brown ink. The bright/light brand hues are
   FILLS ONLY; AA-safe deep shades are used for any small text. */
:root {
  --canvas:    #FBF7F2; /* warm off-white page bg */
  --ink:       #362833; /* deep plum — exact logo dark (#40303d), nudged to clear AA on the terracotta CTA */
  --paper:     #FFFFFF;

  /* Brand fills — sampled from the logo (LogoOriginal-Mariadita.svg). Fills/large/non-text. */
  --terracotta: #d98460; /* logo "m" / "dita" — primary accent + CTA fill */
  --sand:       #f4d07b; /* logo "ari" + the smile */
  --sage:       #a3b0a2; /* logo "a" */
  --blush:      #F4DCD0; /* soft terracotta tint — card/section fills, dividers */

  /* AA-safe deep shades for TEXT / strong accents */
  --terracotta-deep: #9E4527; /* small accent text, links, eyebrows, CTA hover bg (white text) */
  --sage-deep:       #4F6B54; /* the "workshops" chip (white text) */

  /* Legacy aliases so existing rules keep working.
     Deprecated: prefer --terracotta / --terracotta-deep / --sage-deep directly. */
  --tangerine:      var(--terracotta);
  --tangerine-text: var(--terracotta-deep);
  --tangerine-dark: var(--terracotta-deep);
  --eucalypt:       var(--sage-deep);

  --ink-70: rgba(54, 40, 51, 0.72);
  --ink-55: rgba(54, 40, 51, 0.58);
  --ink-12: rgba(54, 40, 51, 0.14);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-btn: 10px;
  --radius-card: 14px;

  --maxw: 1180px;
  --prose: 64ch;

  --pad-section: clamp(4rem, 10vw, 8rem);
  --gap: clamp(1rem, 3vw, 2rem);

  --header-h: 72px;        /* sticky-header height — also drives scroll-padding */
  --hero-max-h: 760px;     /* hero cap, paired with 86vh */
  --focus-ring: rgba(158, 69, 39, .20); /* --terracotta-deep @ 20% — input focus glow */

  --shadow-card: 0 1px 2px rgba(46,31,43,.04), 0 12px 32px -12px rgba(46,31,43,.18);
  --shadow-header: 0 1px 0 var(--ink-12), 0 8px 24px -16px rgba(46,31,43,.3);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--tangerine-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; }
p { margin: 0 0 1.1em; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.section { padding-block: var(--pad-section); }
.section--paper { background: var(--paper); }
.section--blush { background: var(--blush); }
.section--ink { background: var(--ink); color: var(--canvas); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--canvas);
  padding: .6rem 1rem; border-radius: var(--radius-btn);
  z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--tangerine-text);
  margin: 0 0 1rem;
}
.eyebrow--ink { color: var(--ink-70); }

.section-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-70); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; min-height: 48px;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  transition: background-color .15s ease, transform .15s ease, color .15s ease, border-color .15s ease;
}
/* Resting CTA = brand terracotta fill + espresso ink text (4.87:1, AA, matches
   the logo colour). Hover deepens to terracotta-deep with white text (5.72:1). */
.btn--primary { background: var(--terracotta); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink-12); }
.btn--block { width: 100%; justify-content: center; }
.btn--primary:hover { background: var(--terracotta-deep); color: #fff; }
.btn--outline:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover, .btn--outline:hover { transform: translateY(-2px); }
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.header.is-scrolled { background: var(--canvas); box-shadow: var(--shadow-header); }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand__logo { height: 30px; width: auto; display: block; }
@media (min-width: 600px) { .brand__logo { height: 34px; } }

/* ============================================================
   Hero — full-bleed background photo + contrast scrim
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, var(--hero-max-h));
  display: flex; align-items: center;
  padding-block: clamp(5rem, 14vw, 8rem);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* Scrim guarantees white text stays legible (AA) over any photo:
   darker on the text side (left) + gentle top/bottom for header & grounding. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(40,30,37,.5) 0%, rgba(40,30,37,.12) 30%, rgba(40,30,37,.12) 55%, rgba(40,30,37,.5) 100%),
    linear-gradient(102deg, rgba(40,30,37,.9) 0%, rgba(40,30,37,.72) 52%, rgba(40,30,37,.55) 100%);
}
.hero__inner { width: 100%; }
.hero__copy { max-width: 40rem; color: #fff; }
.eyebrow--on-photo { color: var(--sand); }
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-optical-sizing: auto;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(40,30,37,.45);
}
.hero__sub {
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin-bottom: 2rem; max-width: 32ch;
  text-shadow: 0 1px 14px rgba(40,30,37,.45);
}

/* ============================================================
   Story
   ============================================================ */
.story { text-align: left; }
.pull-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-optical-sizing: auto; line-height: 1.18;
  color: var(--ink); max-width: 20ch; margin: 0 auto 3rem;
  text-align: center; text-wrap: balance;
}
.pull-quote::before { content: "\201C"; color: var(--tangerine); }
.pull-quote::after { content: "\201D"; color: var(--tangerine); }
.story__prose { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); max-width: 70ch; margin-inline: auto; }
.story__prose p:first-child { font-size: 1.15rem; font-weight: 500; }
.story__prose q { quotes: "\201C" "\201D"; font-style: italic; }
@media (max-width: 740px) { .story__prose { columns: 1; } }

/* ============================================================
   Gallery — staggered masonry
   ============================================================ */
.gallery__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: var(--prose); }
/* Masonry via CSS multicolumn — predictable across browsers, varied heights flow. */
/* Uniform grid — every tile the same size (object-fit crops to a 3:4 frame). */
.gallery__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; position: relative; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.gallery__btn picture { display: block; width: 100%; height: 100%; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .gallery__btn img { transition: transform .4s ease; }
  .gallery__btn:hover img { transform: scale(1.04); }
}
.gallery figcaption {
  position: absolute; left: .75rem; bottom: .75rem; pointer-events: none;
  background: var(--canvas); color: var(--ink); white-space: nowrap;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 99px;
}
.gallery figcaption.is-eucalypt { background: var(--eucalypt); color: #fff; }

/* ============================================================
   Testimonial — single, large, on blush
   ============================================================ */
.testimonial__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.testimonial__card {
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 56ch; margin-inline: auto; text-align: center;
}
.stars { color: var(--tangerine); font-size: 1.05rem; letter-spacing: .15em; margin-bottom: .9rem; }
.testimonial__quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55;
  font-optical-sizing: auto; margin: 0 0 1.1rem;
  /* clamp long Google reviews so every card stays compact + uniform */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden;
}
.testimonial__cite { font-style: normal; font-weight: 600; color: var(--ink-70); }
.testimonial__cite::before { content: "— "; }
/* hydrated reviews: avatar + name */
.review-cite {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  font-style: normal; font-weight: 600; color: var(--ink-70);
}
.review-cite__name { font-size: .95rem; }
.review-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--blush);
}
.review-avatar--initials {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  color: var(--terracotta-deep); background: var(--blush);
}

/* ============================================================
   Space — big 130 m²
   ============================================================ */
.space__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .space__grid { grid-template-columns: 1.1fr .9fr; } }
.space__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(4rem, 16vw, 9rem); line-height: .9;
  font-optical-sizing: auto; letter-spacing: -.02em;
  display: inline-block; position: relative;
}
.space__num small { font-size: .28em; vertical-align: super; font-weight: 500; }
/* tangerine underline that draws on scroll-in */
.space__num::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 4px;
  background: var(--tangerine); border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
}
.space__num.is-drawn::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .space__num::after { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
}
@media (prefers-reduced-motion: reduce) { .space__num::after { transform: scaleX(1); } }
.space__tagline {
  font-family: var(--font-display); font-style: italic;
  font-optical-sizing: auto;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.1;
  color: var(--ink-70); margin: .35rem 0 0;
}
.space__body { margin-top: 1.5rem; max-width: 46ch; }

.copa { margin-top: 1rem; }
.copa h3 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); margin: 0 0 1rem; }
.copa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.copa li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.copa li svg { flex: none; color: var(--terracotta-deep); } /* AA non-text contrast (1.4.11) */
@media (min-width: 480px) { .copa ul { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq__head { max-width: var(--prose); margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq__list { margin-inline: 0; border-top: 1px solid var(--ink-12); }
.faq__item { border-bottom: 1px solid var(--ink-12); }
.faq__qh { margin: 0; }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; text-align: left;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink);
  min-height: 48px;
}
.faq__icon { flex: none; transition: transform .2s ease; color: var(--terracotta-deep); } /* AA non-text contrast (1.4.11) */
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(180deg); }
.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding: 0 0 1.4rem; color: var(--ink-70); max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) { .faq__a { transition: height .28s ease; } }

/* ============================================================
   Map
   ============================================================ */
.map__head { max-width: var(--prose); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.map__frame {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 16 / 9; background: var(--blush);
}
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact__head { max-width: 36ch; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-70); }
.field .req { color: var(--tangerine-text); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink-12);
  border-radius: var(--radius-btn); padding: .85rem 1rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta-deep);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
/* Programmatic focus target for the submit status — no visible outline. */
.form__status:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-weight: 500; border-radius: var(--radius-btn); padding: .9rem 1.1rem; }
.form__status[hidden] { display: none; }
.form__status.is-ok { background: rgba(47,111,91,.12); color: var(--eucalypt); }
.form__status.is-err { background: rgba(228,86,28,.1); color: var(--tangerine-text); }
.form__note { font-size: .82rem; color: var(--ink-70); margin: 0; }
.contact__wa { margin-top: 1.5rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--canvas); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.footer a { color: var(--canvas); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.footer__brand .brand__logo { height: 48px; }
.footer__tagline { color: rgba(251,247,242,.7); max-width: 32ch; }
.footer h4 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,247,242,.55); margin: 0 0 .85rem; }
.footer__h4-spaced { margin-top: 1.5rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer address { font-style: normal; color: rgba(251,247,242,.85); line-height: 1.6; }
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid rgba(251,247,242,.25); border-radius: 50%;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
@media (prefers-reduced-motion: no-preference) { .footer__social a:hover { transform: translateY(-2px); } }
.footer__social a:hover { background: var(--tangerine); border-color: var(--tangerine); }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(251,247,242,.15);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(251,247,242,.55);
}
.footer__bottom a { color: rgba(251,247,242,.75); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
/* Content is visible by default. The fade-up is an enhancement that only kicks in
   when JS is alive (html.js-reveal, set pre-paint in consent.js) AND motion is
   allowed — so a JS failure or disabled JS can never leave the page body blank. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
  /* hero stagger on load */
  html.js-reveal .hero__copy > .reveal-load { opacity: 0; transform: translateY(12px); }
  /* must out-specify the hidden rule above (0-4-0 > 0-3-1) or the hero copy stays hidden */
  html.js-reveal .hero.is-ready .reveal-load { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
  .hero.is-ready .reveal-load:nth-child(1) { transition-delay: .05s; }
  .hero.is-ready .reveal-load:nth-child(2) { transition-delay: .17s; }
  .hero.is-ready .reveal-load:nth-child(3) { transition-delay: .29s; }
  .hero.is-ready .reveal-load:nth-child(4) { transition-delay: .41s; }
}

/* ============================================================
   Reviews carousel (testimonial section)
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.carousel { position: relative; max-width: 1080px; margin-inline: auto; --per: 1; }
.carousel__viewport { overflow: visible; position: relative; }
/* Swipe affordance: on touch devices, fade the right edge so there's a visible
   hint of more cards. Only when JS reports more than one page (.has-pages), and
   only on touch (desktop already has arrows + dots). Matches the section bg. */
@media (hover: none) and (pointer: coarse) {
  .carousel.has-pages .carousel__viewport::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 28px; width: clamp(24px, 8%, 64px);
    background: linear-gradient(90deg, rgba(244,220,208,0), var(--blush));
    pointer-events: none; z-index: 2;
  }
}
.carousel__track {
  display: flex; gap: var(--gap); margin: 0; padding: 8px 4px 28px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
/* slides-per-view driven by --per (set by main.js: 3 desktop / 2 tablet / 1 mobile) */
.carousel__slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start; display: flex;
}
/* card caps so a single / few cards stay centred instead of stretching wide */
.carousel .testimonial__card { max-width: 560px; width: 100%; height: 100%; margin-inline: auto; }
.stars__empty { color: var(--ink-12); }
/* Hydrating /api/reviews — dim the fallback so a slow fetch isn't a dead widget. */
.carousel[aria-busy="true"] .carousel__track { opacity: .6; transition: opacity .2s ease; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel__controls[hidden] { display: none; }
.carousel__btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--ink-12); background: var(--paper); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.carousel__btn:hover { border-color: var(--tangerine); color: var(--tangerine-text); }
@media (prefers-reduced-motion: no-preference) { .carousel__btn:hover { transform: translateY(-2px); } }
.carousel__dots { display: flex; gap: .55rem; }
.carousel__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ink-12); cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.carousel__dot[aria-selected="true"] { background: var(--tangerine); transform: scale(1.25); }

/* ============================================================
   WhatsApp — official green (#25D366), AA with dark text
   ============================================================ */
:root { --wa: #25D366; --wa-deep: #1EBE57; }
.btn--whatsapp { background: var(--wa); color: var(--ink); border-color: transparent; }
.btn--whatsapp:hover { background: var(--wa-deep); color: var(--ink); }

/* Floating WhatsApp button (icon-only, persistent) */
.wa-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem);
  width: 56px; height: 56px; border-radius: 50%; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px -6px rgba(0,0,0,.4);
  transition: transform .15s ease, background-color .15s ease;
}
.wa-fab:hover { background: var(--wa-deep); }
@media (prefers-reduced-motion: no-preference) { .wa-fab:hover { transform: translateY(-3px) scale(1.05); } }
.wa-fab svg { width: 30px; height: 30px; }

/* ============================================================
   Lightbox (gallery)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,14,18,.92); padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 1000px); max-height: 88vh; width: auto; height: auto;
  border-radius: var(--radius-card); box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 0; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: clamp(.75rem,3vw,1.5rem); right: clamp(.75rem,3vw,1.5rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(.5rem,2vw,1.5rem); }
.lightbox__next { right: clamp(.5rem,2vw,1.5rem); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ============================================================
   Exit-intent banner — discreet, slides up from the bottom
   ============================================================ */
.exit-banner {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%);
  width: min(540px, calc(100% - 1.5rem)); z-index: 90;
  background: var(--ink); color: var(--canvas);
  border: 1px solid rgba(217,132,96,.35); border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
  margin-bottom: env(safe-area-inset-bottom);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) { .exit-banner { transition: none; } }
.exit-banner.is-open { transform: translate(-50%, 0); }
.exit-banner__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 0 2rem .25rem 0; }
.exit-banner__sub { font-size: .9rem; color: rgba(251,247,242,.7); margin: 0 0 .9rem; }
.exit-banner .btn { width: 100%; justify-content: center; }
.exit-banner__close {
  position: absolute; top: .5rem; right: .5rem; width: 34px; height: 34px;
  background: transparent; border: 0; cursor: pointer; border-radius: 50%;
  color: rgba(251,247,242,.6); font-size: 1.4rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.exit-banner__close:hover { background: rgba(251,247,242,.1); color: var(--canvas); }
@media (max-width: 600px) {
  .exit-banner { left: 0; width: 100%; transform: translate(0, 110%); }
  .exit-banner.is-open { transform: translate(0, 0); }
}

/* ============================================================
   Cookie consent (Google Consent Mode v2)
   ============================================================ */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--ink); color: var(--canvas);
  box-shadow: 0 -8px 32px rgba(0,0,0,.28);
  padding-block: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.consent[hidden] { display: none; }
.consent__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .85rem 1.75rem; flex-wrap: wrap;
}
.consent__text { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(251,247,242,.85); max-width: 64ch; }
.consent__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.consent__actions .btn { padding-block: .6rem; }
.consent .btn--outline { color: var(--canvas); border-color: rgba(251,247,242,.4); }
.consent .btn--outline:hover { border-color: var(--canvas); color: var(--canvas); }
@media (max-width: 560px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; justify-content: center; }
}
