/* =====================================================================
   Studio Minele Malavasi — estilos
   Paleta, tipografia e estrutura conforme guia_visual_studio_minele_malavasi.pdf
   ===================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --brown: #17100C;
  --cafe: #2B1B13;
  --cream: #F3E5D7;
  --offwhite: #FBF6EF;
  --gold: #D9A441;
  --gold-light: #F0C56E;
  --gold-deep: #7A561B;      /* dourado escurecido: texto pequeno sobre fundo claro (contraste AA) */
  --ink: #211710;
  --light: #F7F0E8;

  --ink-soft: rgba(33, 23, 16, .74);
  --light-soft: rgba(247, 240, 232, .76);
  --line-light: rgba(139, 100, 33, .2);
  --line-dark: rgba(240, 197, 110, .2);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 80px;
  --container: 1220px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --section-pad: clamp(72px, 9vw, 128px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(43, 27, 19, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--offwhite); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
em { font-style: italic; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--gold); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }
.container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto; padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); text-wrap: balance; }
.section-text { color: var(--ink-soft); font-size: clamp(1rem, 1.15vw, 1.08rem); max-width: 560px; }

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--ink); box-shadow: 0 10px 26px -14px rgba(217, 164, 65, .9);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--cafe); color: var(--light); }
.btn-dark .icon { color: var(--gold-light); }
.btn-dark:hover { background: var(--brown); }
.btn-outline-light { border-color: rgba(240, 197, 110, .55); color: var(--light); }
.btn-outline-light .icon { color: var(--gold-light); }
.btn-outline-light:hover { border-color: var(--gold-light); background: rgba(240, 197, 110, .08); }
.btn-sm { --h: 44px; font-size: .86rem; padding: 0 1.2em; }
.btn-lg { --h: 58px; font-size: 1rem; padding: 0 1.9em; }
.icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* ---------- 1. Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(23, 16, 12, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--light);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 58px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-kicker { font-family: var(--serif); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand-sub { margin-top: 3px; font-size: .58rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.main-nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .92rem; font-weight: 500; color: var(--light); transition: color .2s var(--ease);
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--gold-light); }
.main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-cta { margin-left: clamp(8px, 2vw, 28px); }

.menu-toggle {
  display: none; position: relative; width: 46px; height: 46px; padding: 0; margin-left: 4px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--light);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cafe); color: var(--light);
  height: clamp(500px, calc(100vw / 2.4756), min(860px, calc(100svh - var(--header-h))));
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 16, 12, .88) 0%, rgba(23, 16, 12, .66) 28%, rgba(23, 16, 12, .16) 47%, rgba(23, 16, 12, 0) 58%),
    linear-gradient(0deg, rgba(23, 16, 12, .35) 0%, rgba(23, 16, 12, 0) 22%);
}
.hero-content > * { max-width: min(44vw, 560px); }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 4.3vw, 4.6rem); line-height: 1.02;
}
.hero h1 em { color: var(--gold-light); }
.hero-lead { margin-top: 20px; font-size: clamp(.98rem, 1.15vw, 1.12rem); color: var(--light-soft); max-width: min(40vw, 470px); }
.hero-actions { margin-top: 30px; }

.hero-controls {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 22px;
  display: flex; align-items: center; gap: 4px;
}
.hero-dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; translate: -50% -50%;
  background: rgba(247, 240, 232, .45); border-radius: 2px; transition: background-color .3s, width .3s;
}
.hero-dot.is-active::before { background: var(--gold-light); width: 30px; }
.hero-pause {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(247, 240, 232, .35); background: rgba(23, 16, 12, .35);
  color: var(--light); cursor: pointer;
}
.hero-pause .icon { width: 16px; height: 16px; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-pad); }
/* Seções abaixo da primeira dobra só calculam layout quando se aproximam da tela */
.section, .cta, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .section-title { margin-top: 16px; }
.section-head--split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px 64px; align-items: end; }
.section-head--split .section-text { padding-bottom: 8px; }

/* ---------- 3. Serviços ---------- */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 14px 14px; border-radius: var(--radius);
  background: var(--offwhite); border: 1px solid var(--line-light); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, .45); box-shadow: 0 26px 50px -24px rgba(43, 27, 19, .5); }
.card-head { display: flex; gap: 14px; padding-inline: 10px; }
.card-icon { width: 34px; height: 34px; flex: none; color: var(--gold-deep); margin-top: 2px; }
.card h3 { font-size: 1.65rem; font-weight: 600; }
.card-head p { margin-top: 6px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.card-media { margin-top: auto; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #e8d6c4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.services-cta { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }

/* ---------- 4. Galeria ---------- */
.gallery {
  position: relative; overflow: hidden; color: var(--light);
  background: linear-gradient(160deg, var(--brown) 0%, var(--cafe) 100%);
}
.gallery-arc { position: absolute; left: -40px; bottom: -20px; width: min(560px, 70vw); color: rgba(217, 164, 65, .35); pointer-events: none; }
.gallery .eyebrow { color: var(--gold-light); }
.gallery .section-title em { color: var(--gold-light); }
.gallery .section-text { color: var(--light-soft); margin-top: 14px; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-bottom: 32px; }
.gallery-head .section-title { margin-top: 16px; }

.gallery-tabs {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: rgba(247, 240, 232, .06); border: 1px solid var(--line-dark);
}
.gallery-tab {
  min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--light-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.gallery-tab[aria-selected="true"] { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-dark); background: transparent; color: var(--light-soft);
  font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.chip:hover { border-color: rgba(240, 197, 110, .6); color: var(--light); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-light); background: rgba(217, 164, 65, .12); }

.gallery-viewport { position: relative; }
.gallery-track {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 clamp(210px, 21vw, 280px); scroll-snap-align: start; }
.gallery-open {
  display: block; width: 100%; padding: 0; border: 0; background: rgba(247, 240, 232, .05);
  border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 3 / 4;
}
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s; }
.gallery-open::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(240, 197, 110, 0); transition: box-shadow .3s var(--ease);
}
.gallery-open:hover img { transform: scale(1.04); }
.gallery-open:hover::after, .gallery-open:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold); }
.gallery-track.is-swapping .gallery-item { animation: fadeIn .5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(23, 16, 12, .72); border: 1px solid rgba(240, 197, 110, .5); color: var(--gold-light);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .25s, background-color .25s;
}
.gallery-nav:hover { background: var(--brown); }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-nav--prev { left: -18px; }
.gallery-nav--next { right: -18px; }
.gallery-foot { margin-top: 26px; display: flex; align-items: center; gap: 24px; }
.gallery-progress { flex: 1; height: 1px; background: rgba(247, 240, 232, .16); position: relative; }
.gallery-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--gold); border-radius: 2px; transition: left .2s linear, width .2s; }
.gallery-status { font-size: .84rem; color: var(--light-soft); white-space: nowrap; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15, 10, 7, .96); color: var(--light); overflow: hidden;
}
.lightbox::backdrop { background: rgba(15, 10, 7, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 72px 24px; }
.lightbox-figure img {
  width: auto; height: auto; max-width: min(92vw, 900px); max-height: calc(100dvh - 150px);
  border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px -30px #000;
}
.lightbox-figure figcaption { display: flex; gap: 18px; align-items: baseline; font-size: .92rem; color: var(--light-soft); text-align: center; }
.lightbox-count { color: var(--gold-light); font-weight: 700; letter-spacing: .08em; }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(43, 27, 19, .8); border: 1px solid rgba(240, 197, 110, .45); color: var(--gold-light);
}
.lightbox-btn:hover { background: var(--cafe); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- 5. O Estúdio ---------- */
.studio { background: var(--offwhite); }
.studio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.studio-media { margin: 0; position: relative; }
.studio-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(217, 164, 65, .55);
  border-radius: var(--radius); z-index: 0;
}
.studio-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 543 / 797; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.studio-media figcaption {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  padding: 5px 12px; border-radius: 999px; background: rgba(23, 16, 12, .62); color: var(--light);
  font-size: .72rem; letter-spacing: .08em;
}
.studio-copy .section-title { margin-top: 16px; }
.studio-copy .section-title em { color: var(--gold-deep); }
.studio-copy .section-text { margin-top: 20px; }
.values { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); }
.values li { display: flex; align-items: center; gap: 12px; padding: 4px 18px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.values li:first-child { padding-left: 0; }
.values li + li { border-left: 1px solid var(--line-light); }
.value-icon { width: 36px; height: 36px; flex: none; color: var(--gold-deep); }

/* ---------- 6. Localização ---------- */
.location { background: var(--cafe); color: var(--light); }
.location .eyebrow { color: var(--gold-light); }
.location .section-title em { color: var(--gold-light); }
.location-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.location-copy .section-title { margin-top: 16px; }
.address-card {
  margin-top: 32px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center;
  padding: 24px 26px; border-radius: var(--radius);
  background: rgba(247, 240, 232, .05); border: 1px solid var(--line-dark);
}
.address-icon { grid-row: span 2; width: 44px; height: 44px; color: var(--gold-light); }
.address-street { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; }
.address-city { margin-top: 4px; font-size: 1rem; color: var(--light-soft); letter-spacing: .02em; }
.location-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list { margin-top: 30px; display: grid; gap: 4px; }
.contact-list a, .contact-hours {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--light-soft); font-weight: 500;
  transition: color .2s;
}
.contact-list a:hover { color: var(--gold-light); }
.contact-list .icon { color: var(--gold-light); }
.map-frame {
  position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); background: #20150f;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; filter: sepia(.18) saturate(.9); }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--light-soft); font-weight: 600;
}
.map-fallback .icon { width: 38px; height: 38px; color: var(--gold-light); }

/* ---------- 7. Instagram ---------- */
.insta { background: var(--cream); }
.insta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.insta-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.insta-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.insta-photos img:nth-child(2) { transform: translateY(-28px); }
.insta-photos img:nth-child(3) { transform: translateY(18px); }
.insta-icon { width: 44px; height: 44px; color: var(--gold-deep); margin-bottom: 18px; }
.insta-copy .section-title { margin-top: 14px; }
.insta-copy .section-title em { color: var(--gold-deep); }
.insta-handle { margin: 16px 0 28px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- 8. Chamada final ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--light); background: var(--brown); padding-block: clamp(64px, 8vw, 104px); }
.cta-bg {
  position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1;
  background: url("../assets/servicos/textura-cabelo-1050.webp") center / cover no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 55%);
  mask: linear-gradient(90deg, transparent, #000 55%);
  opacity: .5;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-title { font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--gold-light); }
.cta p { margin-top: 12px; max-width: 520px; color: var(--light-soft); font-size: 1.05rem; }

/* ---------- 9. Rodapé ---------- */
.site-footer { background: var(--brown); color: var(--light); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.5fr 1.1fr; gap: 40px; }
.footer-brand img { width: 88px; height: auto; }
.footer-name { margin-top: 14px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15; }
.footer-sub { margin-top: 6px; font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer-title { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.footer-list { margin-top: 16px; display: grid; gap: 2px; }
.footer-list a { display: inline-flex; align-items: flex-start; gap: 10px; padding-block: 8px; color: var(--light-soft); font-size: .95rem; line-height: 1.45; transition: color .2s; }
.footer-list a:hover { color: var(--gold-light); }
.footer-contact .icon { color: var(--gold-light); margin-top: 2px; width: 18px; height: 18px; }
.footer-insta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-insta .footer-title { margin-bottom: 4px; }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding-bottom: 22px; color: rgba(247, 240, 232, .55); font-size: .84rem; }
.footer-bottom-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  padding-top: 22px; border-top: 1px solid var(--line-dark);
}
.credit { letter-spacing: .02em; }
.credit a {
  display: inline-block; padding-block: 6px; margin-left: 2px;
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-light);
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left calc(100% - 4px) / 0 1px;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.credit a:hover { color: var(--light); background-size: 100% 1px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- WhatsApp flutuante (somente celular) ---------- */
.wa-float { display: none; }

/* ---------- Entrada suave ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .gallery-track { scroll-behavior: auto; }
}

/* =====================================================================
   Responsivo
   ===================================================================== */
/* Entre 1024 e 1180 px o nome fica oculto visualmente (continua acessível) para caber o menu */
@media (min-width: 1024px) and (max-width: 1180px) {
  .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1099px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; gap: 14px; }
  .values li, .values li:first-child { padding: 0; }
  .values li + li { border-left: 0; }
}

/* Tablet e celular: menu compacto, hero empilhado (imagem em cima, texto abaixo) */
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .brand-mark { width: 50px; }
  .brand-name { font-size: .98rem; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 28px; background: rgba(23, 16, 12, .985);
    border-bottom: 1px solid var(--line-dark); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--line-dark); }
  .main-nav a:not(.btn) { display: flex; min-height: 58px; font-family: var(--serif); font-size: 1.5rem; }
  .main-nav a:not(.btn)::after { right: auto; width: 28px; bottom: 12px; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 18px; }
  .site-header { background: var(--brown); -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero { height: auto; display: block; }
  .hero-media { position: relative; inset: auto; height: 52vw; }
  .hero-media::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none;
    background: linear-gradient(0deg, var(--cafe), rgba(43, 27, 19, 0));
  }
  .hero::before { display: none; }
  .hero-slide img { object-position: 68% 25%; }
  .hero-content { padding-block: 8px 48px; }
  .hero-content > *, .hero-lead { max-width: 640px; }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
  .hero-controls { top: calc(52vw - 58px); bottom: auto; }

  .section-head--split { grid-template-columns: 1fr; }
  .studio-grid, .location-grid, .insta-grid { grid-template-columns: 1fr; }
  .studio-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .studio-media img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .values li { padding: 4px 14px; }
  .values li:first-child { padding-left: 0; }
  .values li + li { border-left: 1px solid var(--line-light); }
  .map-frame { min-height: 380px; }
  .insta-photos { max-width: 560px; }
  .gallery-nav { display: none; }
}

/* Celular */
@media (max-width: 767px) {
  /* Recorte mobile 4:3: modelo e letreiro "MM Studio Minele Malavasi" completos */
  .hero-media { height: 75vw; }
  .hero-slide img { object-position: 50% 50%; }
  .hero-controls { top: calc(75vw - 56px); right: 10px; }
  .hero-content { padding-block: 0 40px; }
  .hero h1 { font-size: clamp(2.3rem, 10.4vw, 3rem); margin-top: 12px; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { width: 100%; }

  .header-cta { width: 46px; min-height: 46px; padding: 0; }
  .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta .icon { width: 22px; height: 22px; }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 20px 12px 12px; }
  .card-media { aspect-ratio: 16 / 10; }

  .gallery-head { margin-bottom: 24px; }
  .gallery-tabs { width: 100%; }
  .gallery-tab { flex: 1; padding: 0 12px; }
  .gallery-filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-bottom: 20px;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery-item { flex-basis: 66vw; }
  .gallery-foot { gap: 16px; }

  .lightbox-figure { padding: 70px 12px 96px; }
  .lightbox-figure img { max-width: 94vw; max-height: calc(100dvh - 210px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; translate: none; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }

  .values { grid-template-columns: 1fr; gap: 12px; }
  .values li, .values li:first-child { padding: 0; }
  .values li + li { border-left: 0; }
  .studio-media::before { inset: 12px -10px -12px 10px; }

  .address-card { padding: 20px; column-gap: 14px; }
  .address-icon { width: 36px; height: 36px; }
  .location-actions { flex-direction: column; }
  .location-actions .btn { width: 100%; }
  .map-frame { min-height: 320px; }

  .insta-photos { gap: 10px; }
  .insta-photos img:nth-child(2) { transform: translateY(-16px); }
  .insta-photos img:nth-child(3) { transform: translateY(10px); }
  .insta-copy .btn { width: 100%; }

  .cta-bg { width: 100%; opacity: .32; -webkit-mask: linear-gradient(180deg, transparent, #000 70%); mask: linear-gradient(180deg, transparent, #000 70%); }
  .cta-inner .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-brand, .footer-grid > div:nth-child(3), .footer-insta { grid-column: 1 / -1; }
  .footer-bottom { padding-bottom: 92px; }

  .wa-float {
    display: grid; place-items: center; position: fixed; z-index: 90;
    right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .55), 0 0 0 5px rgba(217, 164, 65, .18);
    opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .wa-float .icon { width: 28px; height: 28px; }
  .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
}

@media (max-width: 400px) {
  .brand-mark { width: 44px; }
  .brand-name { font-size: .88rem; letter-spacing: .06em; }
  .brand-kicker { font-size: .72rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .2em; }
  .eyebrow { letter-spacing: .22em; }
  .gallery-tab { font-size: 1.15rem; }
}
