@font-face {
  font-family: Studio Serif;
  src: url("assets/serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Studio Serif;
  src: url("assets/serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf6f3;
  --surface: #fffcfa;
  --champagne: #f2e8df;
  --rose: #e7d1cc;
  --ink: #31282c;
  --muted: #62565b;
  --accent: #794b58;
  --line: #dacbc6;
  --serif: "Studio Serif", Georgia, serif;
  --gutter: clamp(1.125rem, 4vw, 4.5rem);
  --header-height: 4.375rem;
  --section-space: clamp(3.75rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem / 1.6 system-ui, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.045em; line-height: .97; }
h1 { font-size: clamp(3.4rem, 12vw, 7.2rem); }
h2 { font-size: clamp(2.65rem, 7.5vw, 5.2rem); }
h3 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -.025em; }
h1 em, h2 em { color: var(--accent); font-weight: inherit; }
.wrap { width: min(82rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.eyebrow {
  color: var(--accent);
  font-weight: 650;
  font-size: .75rem;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3rem;
  max-width: 100%;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { background: var(--accent); }
.button-outline { background: transparent; border-color: #a9989b; }
.button-outline:hover { background: var(--champagne); border-color: var(--accent); }
.button-light { background: var(--surface); color: var(--ink); }
.button-light:hover { background: var(--rose); }
.button-light:focus-visible { outline-color: var(--rose); }
.skip {
  position: fixed;
  z-index: 20;
  inset: .5rem auto auto .5rem;
  padding: .6rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.site-header[data-scrolled] {
  background: var(--surface);
  border-color: var(--line);
}
.header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; flex-direction: column; flex: none; line-height: .95; }
.brand-name { font: 2rem / .95 var(--serif); letter-spacing: -.04em; }
.brand-dot { color: var(--accent); }
.brand-sub { margin: .35rem 0 0 .125rem; font-size: .53rem; font-weight: 650; letter-spacing: .31em; }
.desktop-nav, .header-cta { display: none; }
.mobile-menu summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding-inline: .65rem;
  cursor: pointer;
  list-style: none;
  font-size: .875rem;
  font-weight: 650;
}
summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 1rem; height: 1rem; }
.menu-icon::before, .menu-icon::after {
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  content: "";
  background: currentColor;
  transform: translateY(-3px);
}
.menu-icon::after { transform: translateY(3px); }
.mobile-menu[open] .menu-icon::before { transform: rotate(45deg); }
.mobile-menu[open] .menu-icon::after { transform: rotate(-45deg); }
.mobile-menu nav {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  padding: .5rem var(--gutter) .9rem;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: .65rem .35rem; }
.mobile-menu a + a { border-top: 1px solid var(--line); }
.mobile-menu a:hover, .desktop-nav a:hover, .footer nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  padding-bottom: clamp(1rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: clamp(1.15rem, 4vw, 2.75rem) 0 1.65rem; }
.hero-description { margin: .9rem 0 1.2rem; max-width: 24rem; }
.hero-visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.28;
  background: #ccb098;
  border-radius: .35rem;
  overflow: hidden;
}
.hero-visual img, .service-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual img { object-position: 50% 32%; }

.studio { display: grid; gap: 1.8rem; align-items: center; }
.studio-copy { grid-row: 1; }
.studio-copy p:not(.eyebrow) { max-width: 34rem; margin-top: 1.1rem; }
.studio-portrait {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: .35rem;
  background: var(--champagne);
}
.studio-portrait img {
  width: clamp(5.8rem, 25vw, 10rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: .25rem;
}
.studio-portrait strong { display: block; font: 2rem / 1 var(--serif); }
.studio-portrait span { display: block; margin-top: .35rem; color: var(--muted); font-size: .875rem; }

.services { background: var(--champagne); }
.section-heading { margin-bottom: 1.8rem; }
.service-grid { display: grid; gap: 1rem; }
.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: .45rem;
  overflow: hidden;
}
.service-media { position: relative; height: clamp(8.5rem, 19vw, 15rem); background: var(--rose); }
.service-media > img { object-position: 50% 39%; }
.course-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(115deg, #dfc0c0, #efdbd2);
  padding: .75rem;
}
.course-media img {
  width: clamp(5.5rem, 10vw, 8.75rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 1px solid #ac8d94;
  outline-offset: .45rem;
}
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 2.75rem);
}
.service-content h3 + p { margin-block: .8rem 1.3rem; }
.service-content .button { margin-top: auto; }
.inline-link { text-decoration: underline; text-underline-offset: .18em; }
.inline-link:hover { color: var(--accent); }

.price-section { margin-top: clamp(2.5rem, 6vw, 5rem); }
.price-section h2 { font-size: clamp(2.6rem, 6vw, 4.7rem); margin-bottom: 1.45rem; }
.price-grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.price-list {
  margin: 0;
  padding: .35rem clamp(1.1rem, 2.5vw, 2rem);
  background: var(--surface);
  border-radius: .45rem;
}
.price-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: .85rem;
  padding-block: .95rem;
}
.price-list > div + div { border-top: 1px solid var(--line); }
.price-list dd {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spa-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: .45rem;
}
.spa-media { position: relative; min-height: 14rem; background: var(--rose); }
.spa-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.spa-media figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .2rem .5rem;
  border-radius: .2rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
}
.spa-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem clamp(1.1rem, 2.5vw, 2rem);
}

@media (min-width: 50rem) {
  .price-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
  .spa-media { flex: 1; }
  .spa-media img { position: absolute; inset: 0; height: 100%; }
}

.work-heading {
  display: grid;
  align-items: end;
  justify-items: start;
  gap: 1.25rem;
}
.work-heading h2 + p { margin-top: .85rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem .75rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
.gallery-francesinha-classica { grid-column: span 2; }
.gallery-grid a {
  display: block;
  height: clamp(8.5rem, 43vw, 15rem);
  overflow: hidden;
  border-radius: .35rem;
  background: var(--champagne);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.gallery-francesinha-classica img { object-position: 50% 55%; }
.gallery-vermelho-cereja img { object-position: 50% 60%; }
.gallery-marrom-gloss img { object-position: 50% 65%; }
.gallery-nude-rosado img { object-position: 50% 36%; }
.gallery-perolado-nos-pes img { object-position: 50% 40%; }
.gallery-grid a:hover img { transform: scale(1.035); }
.gallery-grid figcaption { padding: .45rem .05rem 0; font-size: .875rem; }
.lightbox {
  width: min(44rem, calc(100% - 2rem));
  max-height: 90dvh;
  padding: 1rem;
  border: 0;
  border-radius: .5rem;
  background: var(--surface);
  color: var(--ink);
}
.lightbox::backdrop { background: #241c22d9; }
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.lightbox-header h3 { font-size: clamp(1.45rem, 5vw, 2rem); }
.lightbox img { width: 100%; max-height: 68dvh; object-fit: contain; }
.lightbox figcaption:not(:empty) { padding-top: .65rem; }
html:has(.lightbox[open]) { overflow: hidden; }

.booking { background: var(--ink); color: var(--surface); }
.booking h2 em, .booking .eyebrow { color: #e9c1c5; }
.booking h2 + p { margin-top: .95rem; color: #eadde0; }
.booking-inner { display: grid; align-items: center; gap: 1.5rem; }
.booking-actions { display: grid; justify-items: start; gap: .6rem; }
.booking-actions span { color: #eadde0; font-size: .875rem; }

.visit { display: grid; gap: 2.8rem; align-items: start; }
.location-card { padding: clamp(1.4rem, 4.4vw, 3.5rem); background: var(--champagne); border-radius: .45rem; }
.location-card h2, .faq h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.location-card address { font-style: normal; margin-block: 1.15rem 1.35rem; }
.faq h2 { margin-bottom: 1.05rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: .95rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 550;
}
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 .85rem .95rem 0; }
.faq details a, .privacy p a { text-decoration: underline; text-underline-offset: .18em; }

.site-footer { border-top: 1px solid var(--line); }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  padding-block: 1.5rem calc(5.5rem + env(safe-area-inset-bottom));
}
.footer p, .footer small { font-size: .8125rem; }
.footer small { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .875rem; }
.footer nav a { display: inline-block; padding-block: .65rem; }

.floating-booking {
  position: fixed;
  z-index: 4;
  inset: auto 0 0;
  display: grid;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.floating-booking .button { width: 100%; }
.privacy { max-width: 49rem; padding-block: var(--section-space); }
.privacy h1 { font-size: clamp(2.75rem, 10vw, 5rem); margin-bottom: 1.65rem; }
.privacy h2 { font-size: 2rem; margin: 1.7rem 0 .7rem; }
.privacy p + p { margin-top: .8rem; }
.privacy .button { margin-top: 1.5rem; }

@media (min-width: 42rem) {
  .hero {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: stretch;
    gap: clamp(1.75rem, 4vw, 4.5rem);
    padding-top: clamp(1rem, 2.5vw, 2.5rem);
  }
  .hero-copy { align-self: center; }
  h1 { font-size: clamp(3.35rem, 8vw, 7.75rem); }
  .hero-visual { aspect-ratio: 1.03; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem 1rem; }
  .gallery-grid a { height: clamp(10rem, 27vw, 16rem); }
  .studio { grid-template-columns: minmax(13rem, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 6rem); }
  .studio-copy { grid-row: auto; }
  .studio-portrait {
    min-height: 17rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .work-heading, .booking-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 6vw, 5rem); }
}

@media (min-width: 50rem) {
  :root { --header-height: 5rem; }
  .brand-name { font-size: 2.3rem; }
  .desktop-nav { display: flex; gap: clamp(.85rem, 2.5vw, 2.6rem); font-size: .875rem; }
  .desktop-nav a { padding-block: .65rem; }
  .header-cta { display: inline-flex; min-height: 2.75rem; }
  .mobile-menu { display: none; }
  .hero-copy { padding: 2.5rem 0; }
  h1 { font-size: clamp(4.25rem, 7.75vw, 7.75rem); }
  .hero-description { margin-block: 1.35rem 1.55rem; font-size: 1.125rem; }
  .studio-portrait { min-height: 21rem; }
  .section-heading { margin-bottom: 2.4rem; }
  .floating-booking {
    inset: auto max(1.25rem, env(safe-area-inset-right)) 1.25rem auto;
    padding: 0;
    border: 0;
    border-radius: .35rem;
    box-shadow: 0 3px 18px #31282c20;
  }
  .floating-booking .button { font-size: .8125rem; }
  .footer { justify-content: space-between; padding-bottom: 5.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .floating-booking:not([hidden]) { animation: enter .2s ease-out; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(.3rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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

@media (max-width: 49.999rem) {
  html { scroll-padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 50rem) {
  .site-header[data-floating-booking] .header-cta:not(:focus) { visibility: hidden; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid a { height: clamp(11rem, 21vw, 18rem); }
}
