/* ==========================================================================
   Espaço Beauty & Care By Andréia Sousa
   Design tokens per DESIGN.md — "The Algarve Apothecary"
   ========================================================================== */

:root {
  /* Color — sage family extracted from the real logo (oklch 44.33% 0.0798 130) */
  --sage-800: oklch(30% 0.075 130);
  --sage-700: oklch(44.33% 0.0798 130);
  --sage-500: oklch(58% 0.075 133);
  --sage-300: oklch(80% 0.05 128);
  --sage-100: oklch(93% 0.022 125);
  --ivory-50: oklch(98% 0.013 95);
  --ivory-paper: oklch(99% 0.006 90);
  --ink-900: oklch(23% 0.02 130);
  --ink-600: oklch(42% 0.025 125);

  /* Premium depth — sage surfaces read as lit stone rather than flat paint. */
  --grad-sage: linear-gradient(157deg, oklch(35% 0.078 133), oklch(29% 0.073 130) 58%, oklch(24.5% 0.066 131));
  /* Light sage surface for heros & footer — airy, dark ink text on soft green. */
  --surface-hero: linear-gradient(160deg, oklch(95% 0.025 126) 0%, oklch(89% 0.042 131) 100%);

  /* Typography */
  --font-display: 'Domine', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.5rem, 1.4rem + 4vw, 4.25rem);
  --fs-headline: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-title: clamp(1.1875rem, 1.06rem + 0.5vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-body-sm: 0.9375rem;
  --fs-label: 0.875rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 52px;
  --space-2xl: clamp(56px, 6.5vw, 92px);

  /* Elevation */
  --shadow-sm: 0 2px 12px rgba(26, 31, 21, 0.08);
  --shadow-md: 0 16px 40px rgba(26, 31, 21, 0.14);
  --focus-ring: 0 0 0 3px var(--sage-300);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  /* z-index scale */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
  --z-tooltip: 60;

  --container-max: 1240px;
  --edge: clamp(20px, 5vw, 64px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) so we contain the horizontal sliver WITHOUT turning html
     into a scroll container — hidden here would break the sticky header. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-900);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

input, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--sage-300);
  color: var(--ink-900);
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--sage-800);
  color: var(--ivory-50);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--dur-fast) var(--ease-out-quart);
}
.skip-link:focus {
  top: var(--space-sm);
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight { padding-block: var(--space-xl); }

.section--sage {
  background: var(--surface-hero);
  color: var(--ink-900);
}
.section--sage h1, .section--sage h2, .section--sage h3, .section--sage h4,
.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4 {
  color: var(--ink-900);
}
.section--sage p, .hero p, .page-hero p { color: var(--ink-600); }

.section--pale { background: var(--sage-100); }

.section--paper { background: var(--ivory-paper); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.section-head--center { max-width: 640px; margin-inline: auto; text-align: center; }
.section-head--flush { margin-bottom: var(--space-md); }

.section-head h2 { font-size: var(--fs-headline); }
.section-head p {
  margin-top: var(--space-sm);
  font-size: 1.0625rem;
  color: var(--ink-600);
}
.section--sage .section-head p { color: var(--ink-600); }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.section-cta {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
@media (max-width: 480px) {
  .section-cta { flex-direction: column; }
  .section-cta .btn { width: 100%; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
  background: var(--ivory-paper);
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.faq-item:hover { border-color: var(--sage-300); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-title);
  color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--sage-700);
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item__answer {
  margin: 0;
  padding: 0 24px 22px;
  max-width: 68ch;
  color: var(--ink-600);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-label);
  border-radius: var(--radius-pill);
  padding: 15px 32px;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart),
              color var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-base) var(--ease-out-quart),
              transform var(--dur-base) var(--ease-out-expo);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--sage-700);
  color: var(--ivory-50);
}
/* Filled buttons lift gently on hover — calm, never bouncy. Ghost stays color-only. */
.btn--primary:hover {
  background: var(--sage-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(26, 31, 21, 0.22);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--on-dark {
  background: var(--ivory-50);
  color: var(--sage-800);
}
.btn--on-dark:hover {
  background: var(--ivory-paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7, 12, 3, 0.28);
}
.btn--on-dark:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--sage-700);
  border: 1.5px solid var(--sage-700);
  padding: 13.5px 30px;
}
.btn--ghost:hover { background: var(--sage-100); }

/* Heros are light now, so ghost buttons on them use the default sage styling. */

.btn--sm { padding: 10px 22px; font-size: 0.8125rem; }
.btn--lg { padding: 20px 42px; font-size: 1rem; }
.btn--lg.btn--ghost { padding: 18.5px 40px; }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--lg svg { width: 20px; height: 20px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ivory-paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--sage-100);
}

.site-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 14px var(--edge);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.site-header__brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.site-header__brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  color: var(--ink-900);
}
.site-header__brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-600);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.site-nav__link {
  position: relative;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-900);
  padding: 6px 2px;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--sage-700);
  transition: right var(--dur-base) var(--ease-out-quart);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { right: 0; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--sage-100); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--sage-800);
  display: flex;
  flex-direction: column;
  padding: 20px var(--edge) var(--space-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-quart),
              visibility 0s linear var(--dur-base);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-quart),
              visibility 0s linear 0s;
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__top img { width: 40px; height: 40px; border-radius: 50%; }
.mobile-menu__close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory-50);
  border-radius: 50%;
}
.mobile-menu__close:hover { background: color-mix(in oklch, var(--ivory-50) 12%, transparent); }
.mobile-menu__close svg { width: 24px; height: 24px; }

.mobile-menu__links {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: 600;
  color: var(--ivory-50);
}

.mobile-menu__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--space-lg);
}
.mobile-menu__actions .btn--ghost {
  color: var(--ivory-50);
  border-color: color-mix(in oklch, var(--ivory-50) 55%, transparent);
}
.mobile-menu__actions .btn--ghost:hover {
  background: color-mix(in oklch, var(--ivory-50) 12%, transparent);
}

body.menu-is-open { overflow: hidden; }
body.menu-is-open .chat-launcher,
body.menu-is-open .chat-preview,
body.menu-is-open .chat-panel { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory-50);
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  text-align: center;
}
/* Triptych background — three clinic photos side by side, darkened. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}
.hero__bg img {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 26, 14, 0.52) 0%, rgba(16, 22, 10, 0.66) 55%, rgba(11, 16, 6, 0.82) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding: var(--space-2xl) var(--edge);
}

.hero h1, .hero h2 { color: var(--ivory-50); }
.hero p { color: color-mix(in oklch, var(--ivory-50) 90%, transparent); }

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in oklch, var(--ivory-50) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--ivory-50) 32%, transparent);
  color: var(--ivory-50);
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero__rating .stars { display: inline-flex; gap: 2px; color: var(--ivory-50); }
.hero__rating .stars svg { width: 14px; height: 14px; }

.hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.4);
}
.hero__title em {
  font-style: normal;
  color: var(--sage-300);
}

.hero__subtitle {
  margin-top: var(--space-md);
  margin-inline: auto;
  font-size: 1.0625rem;
  max-width: 52ch;
}

.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Ghost button reads on the dark hero imagery. */
.hero .btn--ghost {
  color: var(--ivory-50);
  border-color: color-mix(in oklch, var(--ivory-50) 55%, transparent);
}
.hero .btn--ghost:hover { background: color-mix(in oklch, var(--ivory-50) 14%, transparent); }

.page-hero, .site-footer { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.site-footer > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--sage-100);
  padding-block: var(--space-md);
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-900);
}
.trust-item svg {
  width: 22px; height: 22px;
  color: var(--sage-700);
  flex-shrink: 0;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews__summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.reviews__score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.1rem + 3vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sage-700);
  line-height: 0.9;
}
.reviews__score-meta { font-size: 0.9375rem; color: var(--ink-600); }
.reviews__score-meta .stars { color: var(--sage-700); display: inline-flex; gap: 2px; margin-bottom: 4px; }
.reviews__score-meta .stars svg { width: 16px; height: 16px; }

.review-card {
  background: var(--ivory-paper);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-300);
}
.review-card .stars { display: inline-flex; gap: 2px; color: var(--sage-700); }
.review-card .stars svg { width: 15px; height: 15px; }
.review-card p { color: var(--ink-900); font-size: var(--fs-body-sm); }
.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--space-xs);
}
.review-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.review-card__author-name { font-weight: 700; font-size: 0.875rem; }
.review-card__author-meta { font-size: 0.75rem; color: var(--ink-600); }

/* Reviews carousel — the cards ride a continuous, medium-speed marquee so the
   social proof is always in gentle motion. main.js clones the set once for a
   seamless loop; hover/focus pauses it so anyone can stop and read. Edges fade
   out via a mask so cards drift in and out rather than getting clipped. */
.reviews-marquee {
  margin-top: var(--space-lg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-marquee__track {
  display: flex;
  width: max-content;
  align-items: stretch;
  animation: reviewsScroll 42s linear infinite;
}
.reviews-marquee:hover .reviews-marquee__track,
.reviews-marquee:focus-within .reviews-marquee__track {
  animation-play-state: paused;
}
/* Trailing margin (not gap) keeps the two cloned sets perfectly seamless at -50%. */
.reviews-marquee .review-card {
  width: 340px;
  flex-shrink: 0;
  margin-right: var(--space-md);
}
@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .reviews-marquee .review-card { width: 82vw; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x proximity;
  }
  .reviews-marquee__track { animation: none; }
  .reviews-marquee .review-card { scroll-snap-align: start; }
}

/* ==========================================================================
   Story / História
   ========================================================================== */

.story__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: center;
}
.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: transparent;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__quote {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sage-700);
  line-height: 1.25;
  margin-block: var(--space-lg);
}
.story__signature {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink-900);
}
.story__signature span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-700);
  margin-top: 2px;
}

.story__text { font-size: 1.0625rem; color: var(--ink-600); }

/* Shared credential pills — used standalone (história) and inside the
   team-founder feature card (equipa.html). */
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md); }
.tag-pills span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-800);
  border: 1.5px solid var(--sage-300);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Category tiles (services summary + services page)
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: var(--space-md);
}

.category-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base) var(--ease-out-quart);
}
/* Real <img> (not a CSS background) so the photo is a proper asset reference —
   any export/zip tool that follows <img> includes it. Fills the tile, zooms on hover. */
.category-tile__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-quart);
}
.category-tile:hover .category-tile__img { transform: scale(1.08); }
.category-tile--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.category-tile--featured .category-tile__title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.category-tile::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 17, 0, 0.05) 40%, rgba(7, 17, 0, 0.85) 100%);
  transition: background var(--dur-base) var(--ease-out-quart);
}
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-tile__label {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  color: var(--ivory-50);
  width: 100%;
}
.category-tile__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-title);
  color: var(--ivory-50);
}
.category-tile__label p {
  font-size: 0.8125rem;
  margin-top: 4px;
  color: color-mix(in oklch, var(--ivory-50) 85%, transparent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.category-tile__label p svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out-quart); }
.category-tile:hover .category-tile__label p svg { transform: translateX(4px); }

/* ==========================================================================
   Spaces gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: var(--space-sm);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 2;
}
/* Top row: three portrait-friendly cells. Bottom row: two wider cells. Fills 6 cols cleanly. */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 3; }
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.gallery-item:hover img { transform: scale(1.045); }

/* ==========================================================================
   Contact / info
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.info-row {
  display: flex;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--sage-100);
}
.info-row:last-of-type { border-bottom: none; }
.info-row svg {
  width: 22px; height: 22px;
  color: var(--sage-700);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-row h3 { font-size: 1rem; margin-bottom: 2px; }
.info-row p { color: var(--ink-600); font-size: var(--fs-body-sm); }
.info-row a:hover { color: var(--sage-700); }

.hours-table {
  width: 100%;
  margin-top: var(--space-xs);
  font-size: var(--fs-body-sm);
}
.hours-table tr { border-bottom: 1px dashed var(--sage-100); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 7px 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table tr.is-today td { color: var(--sage-700); font-weight: 700; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sage-100);
  aspect-ratio: 4 / 3;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface-hero);
  color: var(--ink-900);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
}
.footer__brand { max-width: 320px; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; margin-bottom: var(--space-sm); }
.footer__brand p {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--ink-600);
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: var(--space-md);
}
.footer__social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sage-300);
  color: var(--sage-800);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);
}
.footer__social a:hover { background: color-mix(in oklch, white 55%, transparent); border-color: var(--sage-700); }
.footer__social svg { width: 19px; height: 19px; }

.footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--sage-700);
  margin-bottom: var(--space-sm);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col p {
  font-size: 0.9375rem;
  color: var(--ink-600);
}
.footer__col a:hover { color: var(--sage-700); }

.footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in oklch, var(--sage-700) 28%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--ink-600);
}
.footer__bottom a { font-weight: 700; color: var(--ink-900); }
.footer__bottom a:hover { color: var(--sage-700); }

/* ==========================================================================
   Motion system (progressive enhancement — everything is visible by default;
   see main.js). Three differentiated treatments, not one reflex repeated
   everywhere: a single block reveal, a staggered list/grid reveal, and a
   dedicated hero entrance choreography below.
   ========================================================================== */

.reveal {
  transition: opacity var(--dur-slow) var(--ease-out-quart), transform var(--dur-slow) var(--ease-out-quart);
}
.reveal.is-visible { opacity: 1 !important; transform: none !important; }

.reveal-media {
  transition: opacity var(--dur-slow) var(--ease-out-quart), transform 700ms var(--ease-out-expo), clip-path 700ms var(--ease-out-expo);
}
.reveal-media.is-visible { opacity: 1 !important; transform: none !important; clip-path: inset(0 0 0 0) !important; }

/* Staggered grid/list reveals are driven entirely inline by main.js, which
   strips the injected transition + transform once the reveal finishes. If the
   transition stayed in the stylesheet it would override each card's own hover
   transition (and `transform: none !important` would kill the hover lift). */

/* ==========================================================================
   Hero entrance — the one signature choreographed moment on the site.
   Runs once on load, not on scroll. Elements are visible by default; JS
   arms the pre-entrance state only when it can also drive the reveal.
   ========================================================================== */

.hero__rating, .hero__title, .hero__subtitle, .hero__actions {
  transition: opacity 900ms var(--ease-out-expo),
              transform 950ms var(--ease-out-expo),
              filter 900ms var(--ease-out-quart);
}
.hero-ready .hero__rating { transition-delay: 100ms; }
.hero-ready .hero__title { transition-delay: 240ms; }
.hero-ready .hero__subtitle { transition-delay: 480ms; }
.hero-ready .hero__actions { transition-delay: 620ms; }
.hero__rating.is-visible, .hero__title.is-visible, .hero__subtitle.is-visible, .hero__actions.is-visible {
  opacity: 1 !important; transform: none !important; filter: none !important;
}

/* Page-hero entrance (Serviços / Equipa) — a quieter echo of the home choreography
   so the inner pages open with the same unhurried breath rather than snapping in. */
.page-hero__crumb, .page-hero h1, .page-hero p {
  transition: opacity 640ms var(--ease-out-quart), transform 640ms var(--ease-out-quart);
}
.page-hero-ready .page-hero__crumb { transition-delay: 60ms; }
.page-hero-ready .page-hero h1 { transition-delay: 160ms; }
.page-hero-ready .page-hero p { transition-delay: 300ms; }
.page-hero__crumb.is-visible, .page-hero h1.is-visible, .page-hero p.is-visible {
  opacity: 1 !important; transform: none !important;
}

/* ==========================================================================
   Ambient motion — the "living" layer. Everything above reveals once and then
   freezes; this keeps the page gently breathing so it never reads as static.
   Slow, low-amplitude, sun-warmed — never busy. All of it is switched off by
   the global prefers-reduced-motion block (iteration-count:1 + ~0ms duration).
   ========================================================================== */

/* 1 — Drifting sun-light glow behind the light sage sections. */
.page-hero::after,
.site-footer::after {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in oklch, white 68%, transparent), transparent) 72% 14% / 52% 56% no-repeat,
    radial-gradient(closest-side, color-mix(in oklch, var(--ivory-50) 60%, transparent), transparent) 14% 88% / 46% 50% no-repeat;
  filter: blur(34px);
  opacity: 0.7;
  will-change: transform;
  animation: ambientGlow 22s var(--ease-out-quart) infinite alternate;
}
@keyframes ambientGlow {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.14); }
}

/* 2 — Slow Ken Burns drift on the whole hero triptych — never quite still. */
.hero__bg {
  will-change: transform;
  animation: heroZoom 26s var(--ease-out-quart) infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.09); }
}

/* 4 — Sun-dust motes in the hero (injected by main.js). A few slow specks of
   warm light rising through the air — the "sun-warmed" brand word made literal. */
.hero__motes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mote {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--ivory-50) 90%, transparent), transparent 68%);
  opacity: 0;
  will-change: transform, opacity;
  animation: moteFloat var(--mote-dur, 16s) ease-in-out var(--mote-delay, 0s) infinite;
}
@keyframes moteFloat {
  0%   { opacity: 0; transform: translateY(24px) translateX(0) scale(0.5); }
  18%  { opacity: var(--mote-peak, 0.5); }
  82%  { opacity: var(--mote-peak, 0.5); }
  100% { opacity: 0; transform: translateY(-70px) translateX(14px) scale(1); }
}

/* 5 — Small hover delights that keep the chrome responsive to the cursor. */
.category-tile__label { transition: transform var(--dur-base) var(--ease-out-expo); }
.category-tile:hover .category-tile__label { transform: translateY(-4px); }

.site-header__brand img { transition: transform var(--dur-base) var(--ease-out-expo); }
.site-header__brand:hover img { transform: rotate(-6deg) scale(1.06); }

.trust-item svg { transition: transform var(--dur-base) var(--ease-out-expo); }
.trust-item:hover svg { transform: scale(1.15) rotate(-4deg); }

.footer__social a { transition: background-color var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo); }
.footer__social a:hover { transform: translateY(-3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero { min-height: min(78vh, 640px); }

  .story__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .story__media { max-width: 420px; margin-inline: auto; }

  .contact__grid { grid-template-columns: 1fr; }

  .category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
  .footer__brand { max-width: none; grid-column: 1 / -1; }
}

/* Header tiers. The full header (brand text + 4 nav links + 3 labelled buttons)
   only fits on one row from ~1230px. Below that, shed width in two steps before
   collapsing to the hamburger at 860px. */
@media (max-width: 1239px) {
  .site-header__where,
  .site-header__call {
    padding: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    gap: 0;
  }
  .site-header__where span,
  .site-header__call span { display: none; }
  .site-header__where svg,
  .site-header__call svg { width: 21px; height: 21px; }
  .site-header__actions { gap: 8px; }
}
@media (min-width: 861px) and (max-width: 1023px) {
  .site-header__brand-text { display: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  /* "Onde Estamos" moves into the dropdown menu; keep the header uncluttered. */
  .site-header__where { display: none; }
  .menu-toggle { display: flex; }
  /* "Ligar" stays in the header as an icon-only circle — the call CTA is always one tap away. */
  .site-header__inner { gap: var(--space-sm); }
  .site-header__actions { gap: 8px; }
  .site-header__call {
    padding: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    gap: 0;
  }
  .site-header__call span { display: none; }
  .site-header__call svg { width: 21px; height: 21px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item,
  .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3),
  .gallery-item:nth-child(4), .gallery-item:nth-child(5) {
    grid-column: span 1; grid-row: span 1;
  }
  /* First photo leads the mosaic full-width on tablet/phone */
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 640px) {
  :root { --space-2xl: clamp(48px, 11vw, 72px); }
  /* Three thin strips read badly on a phone — show one atmospheric photo full-bleed. */
  .hero__bg img:nth-child(1), .hero__bg img:nth-child(2) { display: none; }
  .category-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .category-tile--featured { grid-column: span 1; min-height: 280px; }
  .reviews__summary { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .trust-strip__row { justify-content: flex-start; gap: var(--space-md); }
  .site-header__actions .btn--primary { padding: 12px 20px; font-size: 0.8125rem; }
}

@media (max-width: 420px) {
  .site-header__brand-text { display: none; }
  .site-header__inner { padding-inline: 16px; }
  .site-header__call { width: 42px; height: 42px; }
  .menu-toggle { width: 42px; height: 42px; }
  .site-header__actions .btn--primary { padding: 11px 16px; font-size: 0.8125rem; }
}

/* ==========================================================================
   Chat widget
   ========================================================================== */

.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--ivory-50);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out-quart), background-color var(--dur-fast) var(--ease-out-quart);
  animation: launcherBob 3.6s var(--ease-out-quart) infinite;
}
@keyframes launcherBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chat-launcher:hover { background: var(--sage-800); box-shadow: var(--shadow-md); }
.chat-launcher[aria-expanded="true"] { animation: none; }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .icon-close { display: none; }
.chat-launcher[aria-expanded="true"] .icon-chat { display: none; }
.chat-launcher[aria-expanded="true"] .icon-close { display: block; }

.chat-launcher__dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sage-300);
  border: 2px solid var(--ivory-50);
}
.chat-launcher__dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--sage-300);
  animation: chatDotPing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.chat-launcher[aria-expanded="true"] .chat-launcher__dot { display: none; }
@keyframes chatDotPing {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher__dot::after { display: none; }
}

.chat-preview {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: var(--z-toast);
  max-width: 270px;
  background: var(--ivory-paper);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 6px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart), visibility 0s linear var(--dur-base);
}
.chat-preview.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart), visibility 0s linear 0s;
}
.chat-preview p { font-size: 0.875rem; color: var(--ink-900); }
.chat-preview__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-600);
}
.chat-preview__close:hover { background: var(--sage-100); }
.chat-preview__close svg { width: 14px; height: 14px; }
/* Visual target stays compact; hit area still meets the 44px touch minimum. */
.chat-preview__close::before { content: ''; position: absolute; inset: -10px; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: var(--z-modal);
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 140px));
  background: var(--ivory-paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart), visibility 0s linear var(--dur-base);
}
.chat-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart), visibility 0s linear 0s;
}

.chat-panel__header {
  background: var(--sage-800);
  color: var(--ivory-50);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-panel__header-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--ivory-50) 16%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-panel__header-avatar svg { width: 20px; height: 20px; }
.chat-panel__header-text { line-height: 1.3; }
.chat-panel__header-text strong { font-family: var(--font-display); font-size: 1rem; }
.chat-panel__header-text span { display: block; font-size: 0.75rem; color: var(--sage-300); }
.chat-panel__header-close {
  position: relative;
  margin-left: auto;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.chat-panel__header-close:hover { background: color-mix(in oklch, var(--ivory-50) 14%, transparent); }
.chat-panel__header-close svg { width: 18px; height: 18px; }
.chat-panel__header-close::before { content: ''; position: absolute; inset: -6px; }

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg { max-width: 86%; font-size: 0.875rem; line-height: 1.5; }
.msg--bot {
  align-self: flex-start;
  background: var(--sage-100);
  color: var(--ink-900);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
}
.msg--user {
  align-self: flex-end;
  background: var(--sage-700);
  color: var(--ivory-50);
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
}
.msg--bot a { text-decoration: underline; font-weight: 700; }

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--sage-100);
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-600);
  opacity: 0.5;
  animation: typingDot 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}
.chip {
  border: 1.5px solid var(--sage-300);
  color: var(--sage-800);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.chip:hover { background: var(--sage-100); }

.chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--sage-100);
}
.chat-panel__form input {
  flex: 1;
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 0.875rem;
  background: var(--ivory-50);
}
.chat-panel__form input:focus-visible { border-color: var(--sage-700); }
.chat-panel__form button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--ivory-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.chat-panel__form button:hover { background: var(--sage-800); }
.chat-panel__form button svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chat-panel, .chat-preview { right: 12px; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-preview { bottom: 88px; max-width: calc(100vw - 32px); }
  .chat-panel { bottom: 88px; width: calc(100vw - 24px); height: min(70vh, 560px); }
}

/* ==========================================================================
   Booking modal — day + time picker, hands off to WhatsApp with the details
   pre-filled. Injected once by main.js and shared across all pages.
   ========================================================================== */

.booking-modal {
  width: min(540px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  margin: auto; /* restore native dialog centering (the global `* { margin:0 }` reset kills it) */
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--ivory-paper);
  color: var(--ink-900);
  box-shadow: 0 40px 90px rgba(7, 12, 3, 0.4);
  overflow: hidden;
}
.booking-modal::backdrop {
  background: color-mix(in oklch, oklch(18% 0.03 131) 62%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* Entrance — only when opened via .is-open (added a frame after showModal). */
.booking-modal {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo);
}
.booking-modal.is-open { opacity: 1; transform: none; }
/* Páginas /marcacao e /en/booking: o modal já faz parte da primeira pintura. */
.booking-modal.is-instant { transition: none; }

.booking-modal__scroll { overflow-y: auto; max-height: inherit; }

.booking-modal__header {
  position: relative;
  background: var(--grad-sage);
  color: var(--ivory-50);
  padding: var(--space-md) var(--space-lg);
}
.booking-modal__header h2 { color: var(--ivory-50); font-size: 1.5rem; }
.booking-modal__header p { color: color-mix(in oklch, var(--ivory-50) 82%, transparent); font-size: var(--fs-body-sm); margin-top: 4px; }
.booking-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ivory-50);
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.booking-modal__close:hover { background: color-mix(in oklch, var(--ivory-50) 16%, transparent); }
.booking-modal__close svg { width: 20px; height: 20px; }

.booking-modal__body { padding: var(--space-md) var(--space-lg) var(--space-lg); }

.booking-modal__service[hidden] { display: none; }
.booking-modal__service {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-100);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--fs-body-sm);
  margin-bottom: var(--space-md);
}
.booking-modal__service strong { font-family: var(--font-display); font-weight: 600; }
.booking-modal__service svg { width: 18px; height: 18px; color: var(--sage-700); flex-shrink: 0; }

.booking-modal__step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-label);
  color: var(--ink-900);
  margin: var(--space-md) 0 12px;
}
.booking-modal__step-label:first-of-type { margin-top: 0; }
.booking-modal__step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--ivory-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.booking-dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.booking-date {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 66px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--sage-100);
  background: var(--ivory-50);
  text-align: center;
  line-height: 1.25;
  transition: border-color var(--dur-fast) var(--ease-out-quart), background-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}
.booking-date:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.booking-date__dow { display: block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-600); }
.booking-date__day { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.booking-date__mon { display: block; font-size: 0.6875rem; color: var(--ink-600); }
.booking-date[aria-pressed="true"] {
  background: var(--sage-700);
  border-color: var(--sage-700);
}
.booking-date[aria-pressed="true"] .booking-date__dow,
.booking-date[aria-pressed="true"] .booking-date__day,
.booking-date[aria-pressed="true"] .booking-date__mon { color: var(--ivory-50); }

.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.booking-time {
  padding: 10px 6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sage-100);
  background: var(--ivory-50);
  font-weight: 700;
  font-size: 0.875rem;
  transition: border-color var(--dur-fast) var(--ease-out-quart), background-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);
}
.booking-time:hover { border-color: var(--sage-300); }
.booking-time[aria-pressed="true"] { background: var(--sage-700); border-color: var(--sage-700); color: var(--ivory-50); }

.booking-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: var(--space-md);
}
.booking-fields label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--ink-600); margin-bottom: 5px; }
.booking-fields input {
  width: 100%;
  border: 1.5px solid var(--sage-100);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: var(--fs-body-sm);
  background: var(--ivory-50);
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.booking-fields input:focus-visible { border-color: var(--sage-700); }

.booking-modal__footer {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-modal__footer .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.booking-modal__note {
  font-size: 0.75rem;
  color: var(--ink-600);
  text-align: center;
}

@media (max-width: 480px) {
  .booking-fields { grid-template-columns: 1fr; }
  .booking-modal__header, .booking-modal__body { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* Service rows become clickable booking triggers on the Serviços page. */
.service-row[role="button"] { cursor: pointer; }

/* ==========================================================================
   Page intro banner (Serviços / Equipa)
   ========================================================================== */

.page-hero {
  background: var(--surface-hero);
  color: var(--ink-900);
  padding-block: var(--space-xl);
}
.page-hero .container { max-width: 760px; }
.page-hero--wide .container { max-width: var(--container-max); }
.related-services {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.related-services a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
  background: var(--ivory-paper);
  transition: border-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo);
}
.related-services a:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.related-services span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink-900); }
.related-services small { color: var(--sage-700); font-weight: 700; font-size: 0.8125rem; }

/* Language switch links (PT <-> EN) */
.hero__lang, .page-hero__lang {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__lang { color: color-mix(in oklch, var(--ivory-50) 88%, transparent); }
.page-hero__lang { color: var(--sage-700); }
.footer__lang { text-decoration: underline; text-underline-offset: 3px; }

/* Cal.com booking modal — professional choice + embedded agenda */
.booking-modal--cal {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
}
.cal-service-hint {
  background: var(--sage-100);
  color: var(--ink-900);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--fs-body-sm);
  margin-bottom: var(--space-sm);
}
.cal-pros__title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  margin-bottom: var(--space-sm);
  text-align: center;
}
.cal-pros__grid {
  display: grid;
  /* 2 ou 3 profissionais lado a lado, conforme o serviço. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
}
.cal-pro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-md);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
  background: var(--ivory-paper);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo);
}
.cal-pro:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.cal-pro img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: var(--sage-100);
}
.cal-pro__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink-900); }
.cal-pro__desc { font-size: 0.8125rem; color: var(--ink-600); max-width: 30ch; }
.cal-back {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sage-700);
  margin-bottom: var(--space-sm);
  cursor: pointer;
}
.cal-back:hover { text-decoration: underline; }
/* Aviso acima da agenda (ex.: duração real vs bloco reservado). */
.cal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-sm);
  padding: 12px 14px;
  border: 1px solid var(--sage-300);
  border-radius: var(--radius-sm);
  background: var(--sage-100);
  color: var(--ink-600);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  text-wrap: pretty;
}
.cal-note svg {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 1px;
  color: var(--sage-700);
}

.cal-embed { min-height: 560px; }

/* Passo 1: grupos de serviços */
.cal-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  margin-bottom: var(--space-sm);
  text-align: center;
}
.cal-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cal-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-md);
  background: var(--ivory-paper);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo);
}
.cal-group:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.cal-group span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-900); }
.cal-group small { font-weight: 700; font-size: 0.75rem; color: var(--sage-700); }

/* Passo 2: lista de serviços do grupo */
.cal-services { display: flex; flex-direction: column; }
.cal-service-item { border-bottom: 1px solid var(--sage-100); }
.cal-services .cal-service-item:last-child { border-bottom: none; }
.cal-service {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  width: 100%;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.cal-service:hover { background: var(--sage-100); }
/* Aberto: o título partilha o fundo da descrição, para o bloco ler como um só. */
.cal-service[aria-expanded="true"] { background: var(--sage-100); }
.cal-service__meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cal-service__chev {
  width: 16px; height: 16px;
  color: var(--sage-700);
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.cal-service[aria-expanded="true"] .cal-service__chev { transform: rotate(180deg); }
.cal-service__desc {
  padding: 0 12px 16px;
  background: var(--sage-100);
}
.cal-service__desc p {
  color: var(--ink-600);
  font-size: var(--fs-body-sm);
  max-width: 62ch;
  padding-top: 12px;
  margin-bottom: 12px;
}
.cal-service__t { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-900); }
.cal-service__p { font-family: var(--font-display); font-weight: 600; color: var(--sage-700); white-space: nowrap; }

@media (max-width: 640px) {
  /* Em linha (foto à esquerda): três cartões empilhados cabem no ecrã. */
  .cal-pros__grid { grid-template-columns: 1fr; gap: 10px; }
  .cal-pro {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 12px 14px;
    text-align: left;
  }
  .cal-pro img { width: 56px; height: 56px; grid-row: 1 / 3; }
  .cal-pro__name { align-self: end; }
  .cal-pro__desc { align-self: start; max-width: none; }
  .cal-groups { grid-template-columns: repeat(2, 1fr); }
  .cal-embed { min-height: 480px; }
}
.page-hero h1 { font-size: var(--fs-display); }
.page-hero p {
  margin-top: var(--space-sm);
  font-size: 1.0625rem;
  max-width: 56ch;
  color: var(--ink-600);
}
.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-700);
  margin-bottom: var(--space-md);
}
.page-hero__crumb svg { width: 14px; height: 14px; }

/* ==========================================================================
   Services page — category navigation + price rows
   ========================================================================== */

.service-category {
  scroll-margin-top: 96px;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--sage-100);
}
.service-category:first-of-type { border-top: none; }

.service-category__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.service-category__head h2 { font-size: var(--fs-headline); }
.service-category__head p { color: var(--ink-600); max-width: 46ch; margin-top: 6px; }
.service-category__count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.service-list { display: flex; flex-direction: column; }

.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 18px 14px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--sage-100);
  transition: background-color var(--dur-fast) var(--ease-out-quart),
              padding-left var(--dur-base) var(--ease-out-expo);
}
.service-list .service-row:last-child { border-bottom: none; }
.service-row:hover { background: var(--sage-100); padding-left: 22px; }
.service-row__text h3,
.service-row__price { transition: color var(--dur-fast) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-expo); }
.service-row:hover .service-row__price { transform: scale(1.06); }

.service-row__text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-900);
}
.service-row__text p {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--ink-600);
  margin-top: 3px;
  max-width: 52ch;
}
.service-row__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--sage-700);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-row__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  color: var(--ink-600);
  text-align: right;
}

/* Serviço temporariamente indisponível: visível na lista, mas não marcável. */
.service-row--unavailable {
  cursor: default;
  opacity: 0.55;
}
.service-row--unavailable:hover { background: transparent; padding-left: 14px; }
.service-row--unavailable .service-row__price {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-600);
}

.service-row--combo {
  background: var(--sage-100);
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-block: 8px;
}
.service-row--combo .service-row__text h3::before {
  content: 'Combo';
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ivory-50);
  background: var(--sage-700);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.results-banner {
  margin-top: var(--space-lg);
  background: var(--ivory-paper);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
}
.results-banner img {
  width: 220px;
  border-radius: var(--radius-md);
}
.results-banner h4 { font-size: 1.0625rem; margin-bottom: 6px; }
.results-banner p { font-size: var(--fs-body-sm); color: var(--ink-600); }

@media (max-width: 640px) {
  .service-category__head { flex-direction: column; align-items: flex-start; }
  .results-banner { grid-template-columns: 1fr; }
  .results-banner img { width: 100%; }
  .service-row { padding: 16px 4px; }
}

/* ==========================================================================
   Team page
   ========================================================================== */

.team-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 460px;
}
.team-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.team-founder {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-xl);
  align-items: center;
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--sage-100);
}
.team-founder:last-of-type { border-bottom: none; padding-bottom: 0; }
/* Second feature block (Ana Júlia) mirrors the founder: text left, photo right. */
@media (min-width: 1025px) {
  .team-founder--reverse { grid-template-columns: 1.3fr 0.7fr; }
  .team-founder--reverse .team-founder__media { order: 2; }
}
.team-founder__media {
  aspect-ratio: 1 / 1;
  background: transparent;
}
.team-founder__media img { width: 100%; height: 100%; object-fit: cover; }
.team-founder__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}
.team-founder h2 { font-size: var(--fs-headline); }
.team-founder p.bio { margin-top: var(--space-sm); font-size: 1.0625rem; color: var(--ink-600); max-width: 60ch; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.team-card {
  background: var(--ivory-paper);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: box-shadow var(--dur-base) var(--ease-out-quart), transform var(--dur-base) var(--ease-out-quart);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.team-card__avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
}
.team-card h3 { font-size: var(--fs-title); }
.team-card__role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--sage-700);
  margin: 4px 0 var(--space-sm);
}
.team-card__bio { font-size: var(--fs-body-sm); color: var(--ink-600); }

.team-cta {
  margin-top: var(--space-xl);
  text-align: center;
  padding: var(--space-lg);
  background: var(--sage-100);
  border-radius: var(--radius-lg);
}
.team-cta h3 { font-size: var(--fs-title); margin-bottom: 8px; }
.team-cta p { color: var(--ink-600); max-width: 50ch; margin-inline: auto; margin-bottom: var(--space-md); }

@media (max-width: 1024px) {
  .team-founder { grid-template-columns: 1fr; }
  .team-founder__media { max-width: 320px; margin-inline: auto; }
}
