/* ==========================================================================
   CONCEPTNAILS — EDITORIAL
   Paleta: papel / tinta / amarelo como acento
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #f2eee5;
  --paper-3: #e9e4d8;
  --ink: #0f0f0e;
  --ink-soft: #2a2a27;
  --muted: #6e6a61;
  --rule: rgba(15, 15, 14, 0.14);
  --rule-soft: rgba(15, 15, 14, 0.08);
  --accent: #f5c400;
  --accent-deep: #c79c00;

  --shell: 1280px;
  --gut: clamp(20px, 4vw, 56px);

  --f-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  padding: 10px 16px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - (var(--gut) * 2)));
  margin-inline: auto;
}

/* ============================ TIPOGRAFIA ============================ */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}

.display em {
  font-style: italic;
}

.kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 44ch;
}

.band-note {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================ TEXT ROLL ============================
   O rotulo sobe e uma copia identica entra por baixo, no mesmo espaco.
   A marcacao e montada pelo JS a partir de [data-roll]; sem JS o link
   continua sendo texto comum.
   ================================================================== */

.roll {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
  vertical-align: bottom;
}

.roll-inner {
  display: block;
  transition: transform 0.42s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.roll-inner > span {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
}

a:hover .roll-inner,
a:focus-visible .roll-inner {
  /* -50% = exatamente a altura de uma copia (o wrapper guarda duas) */
  transform: translateY(-50%);
}

.link-underline {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease);
}

.link-underline:hover {
  border-color: var(--accent-deep);
}

/* ============================ BOTÕES ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn.full {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(14deg);
}

.brand-mark {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark em {
  font-style: normal;
  font-weight: 300;
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav-idx {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.nav a:hover .nav-idx {
  color: var(--accent-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-ig {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.header-ig:hover {
  color: var(--ink);
}

.header-cta {
  padding: 11px 22px;
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ============================ HERO ============================ */

.hero {
  padding-top: clamp(40px, 7vw, 92px);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    'head  figure'
    'aside figure';
  align-items: end;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: clamp(28px, 4vw, 48px);
}

.hero-head {
  grid-area: head;
}

.hero-head .kicker {
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(3.2rem, 9.2vw, 8.2rem);
}

.hero-title em {
  display: inline-block;
}

/* --- Carinha apoiada sobre a letra "o" de "autoral" --- */
.letter-mark {
  position: relative;
  display: inline-block;
}

.letter-smiley {
  position: absolute;
  /* Apoiada no topo direito da letra, sem cobrir o desenho do "o" */
  top: -0.03em;
  left: 84%;
  width: 0.44em;
  height: 0.44em;
  /* O translate fica no transform para a microanimacao herdar a posicao */
  transform: translateX(-50%) rotate(-10deg);
  transform-origin: 50% 85%;
  cursor: grab;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter-smiley img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.letter-mark:hover .letter-smiley,
.letter-smiley:focus-visible {
  transform: translateX(-50%) translateY(-0.06em) rotate(14deg) scale(1.15);
}

.letter-smiley:active {
  cursor: grabbing;
}

/* Anel que irradia no clique */
.letter-smiley::after {
  content: '';
  position: absolute;
  inset: -5%;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.letter-smiley.is-pulsing::after {
  animation: smiley-ring 0.62s var(--ease);
}

.letter-smiley.is-pulsing img {
  animation: smiley-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes smiley-ring {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

@keyframes smiley-pop {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.82);
  }
}

.hero-aside {
  grid-area: aside;
  display: grid;
  gap: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-figure-main {
  grid-area: figure;
  align-self: end;
}

.hero-figure-main img {
  width: 100%;
  height: clamp(420px, 70vh, 740px);
  object-fit: cover;
  object-position: 50% 24%;
}

.hero-figure-detail {
  width: min(230px, 55%);
}

.hero-figure-detail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ============================ MARQUEE ============================ */

.marquee {
  --marquee-gap: clamp(26px, 3vw, 52px);
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Fallback sem JS: dois blocos deslizando em loop */
.marquee-track:not([data-ready]) {
  animation: slide 34s linear infinite;
}

.marquee-row {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
  white-space: nowrap;
}

.marquee-row span {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.4s var(--ease);
}

.marquee-row .marquee-alt {
  font-family: var(--f-ui);
  font-size: clamp(0.66rem, 0.9vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.marquee-row img {
  width: clamp(15px, 1.5vw, 21px);
  height: auto;
  flex: 0 0 auto;
  opacity: 0.9;
}

.marquee:hover .marquee-row span {
  opacity: 0.45;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ============================ BANDS ============================ */

.band {
  padding: clamp(64px, 10vw, 140px) 0;
}

.band-alt {
  background: var(--paper-2);
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}

.band-ink .kicker,
.band-ink .band-note {
  color: rgba(250, 248, 244, 0.6);
}

.band-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 900px;
}

.band-head .display {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
}

.band-foot {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.band-ink .band-foot {
  border-color: rgba(250, 248, 244, 0.16);
}

/* ============================ TRABALHOS ============================ */

.work-grid {
  columns: 3;
  column-gap: clamp(14px, 2vw, 26px);
}

.work {
  break-inside: avoid;
  margin: 0 0 clamp(26px, 3.4vw, 48px);
  position: relative;
  cursor: zoom-in;
}

.work-offset {
  margin-top: clamp(20px, 4vw, 56px);
}

.work img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--paper-3);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}

.work-tall img {
  aspect-ratio: 2 / 3;
}

.work-lg img {
  aspect-ratio: 4 / 5;
}

.work:hover img {
  filter: brightness(1.04) contrast(1.02);
  transform: scale(1.015);
}

.work figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.work figcaption span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.work:hover figcaption {
  color: var(--ink);
}

/* ============================ SERVIÇOS ============================ */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 190px 130px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.4s var(--ease);
}

.service-row:hover {
  padding-left: 12px;
}

.service-idx {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.service-main h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.05;
  margin: 0 0 6px;
}

.service-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46ch;
}

.service-meta {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-link-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.35s var(--ease), color 0.3s var(--ease);
}

.service-link-cta i {
  font-style: normal;
}

.service-link-cta:hover {
  gap: 14px;
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ============================ FULL BLEED ============================ */

.bleed {
  position: relative;
  height: clamp(420px, 78vh, 760px);
  overflow: hidden;
  background: var(--ink);
}

.bleed-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A foto ja vem recortada com o rosto e as maos no centro, entao o
     enquadramento se mantem em qualquer largura de tela (de 485px a ultrawide).
     Um percentual fixo nao funcionava: a janela visivel encolhe conforme a
     tela alarga, e o recorte escapava do rosto. */
  object-position: 50% 50%;
  opacity: 0.82;
}

.bleed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--gut);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

.bleed-quote {
  color: var(--paper);
  font-size: clamp(2rem, 6vw, 5rem);
  margin: 0;
}

/* PNG transparente: lettering em cor-papel, sem disco de fundo.
   A sombra acompanha o recorte do logo (drop-shadow, nao box-shadow). */
.bleed-seal {
  position: absolute;
  top: clamp(22px, 4vw, 54px);
  right: clamp(22px, 4vw, 54px);
  width: clamp(108px, 13vw, 190px);
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
  animation: seal-float 7s ease-in-out infinite;
}

@keyframes seal-float {
  0%,
  100% {
    transform: rotate(-9deg) translateY(0);
  }

  50% {
    transform: rotate(-6deg) translateY(-9px);
  }
}

/* ============================ ESTÚDIO ============================ */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.about-figure {
  margin: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  background: var(--paper-3);
}

.about-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.about-copy .display {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}

.about-copy p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 10px 0 0;
}

.about-facts > div {
  background: var(--paper);
  padding: 18px 20px;
}

.about-facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.about-facts dd {
  margin: 0;
  font-size: 0.92rem;
}

/* ============================ CURSOS ============================ */

.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(250, 248, 244, 0.16);
}

.course-row {
  display: grid;
  grid-template-columns: 56px 300px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid rgba(250, 248, 244, 0.16);
}

.band-ink .service-idx {
  color: var(--accent);
}

.course-row h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  margin: 0;
  line-height: 1.1;
}

.course-row p {
  margin: 0;
  color: rgba(250, 248, 244, 0.62);
  font-size: 0.92rem;
}

/* ============================ DEPOIMENTOS ============================ */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.quote-card {
  background: var(--paper);
  margin: 0;
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.quote-card p {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  margin: 0;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================ AGENDAMENTO ============================ */

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.rules-label,
.form-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.rules-list {
  border-top: 1px solid var(--rule);
}

.rule {
  border-bottom: 1px solid var(--rule);
}

.rule summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  position: relative;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: color 0.3s var(--ease);
}

.rule summary::-webkit-details-marker {
  display: none;
}

.rule summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.rule[open] summary::after {
  content: '–';
  color: var(--accent-deep);
}

.rule summary:hover {
  color: var(--accent-deep);
}

.rule p {
  margin: 0 0 20px;
  padding-left: 32px;
  padding-right: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 56ch;
}

/* --- Formulário --- */

.pre-booking-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 42px);
}

.form-section-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule-soft);
}

.form-section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 14px;
}

.block-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.block-number {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.block-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Campo-armadilha contra robos de spam.
   Fora da tela em vez de display:none -- alguns robos ignoram campos
   escondidos com display:none, mas preenchem os que estao posicionados
   fora da area visivel. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.input-group {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.required-indicator {
  color: var(--accent-deep);
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-size: 0.98rem;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.input-group textarea {
  resize: vertical;
  min-height: 56px;
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 11px) 19px, calc(100% - 6px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
  cursor: pointer;
}

.input-group select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(110, 106, 97, 0.55);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ---------------------------------------------------------------
   SELECT CUSTOMIZADO
   O <select> nativo continua no DOM como fonte da verdade (o
   script.js le e escreve nele); o JS so desenha a camada visivel.
   Sem JS, o select nativo aparece normalmente.
   --------------------------------------------------------------- */

.select-shell {
  position: relative;
}

/* O :disabled precisa da mesma especificidade da regra de campo nativo,
   senao o select desabilitado reaparece a 45% e mostra a seta do browser */
.select-shell select,
.select-shell select:disabled {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0;
  font-size: 0.98rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.select-trigger:focus-visible,
.select-trigger[aria-expanded='true'] {
  outline: none;
  border-bottom-color: var(--ink);
}

.select-trigger.is-placeholder {
  color: rgba(110, 106, 97, 0.55);
}

.select-caret {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.select-trigger[aria-expanded='true'] .select-caret {
  transform: translateY(1px) rotate(-135deg);
}

.select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 232px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.select-shell.is-open .select-list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.select-list li {
  padding: 10px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.select-list li.is-active {
  background: var(--paper-2);
}

.select-list li[aria-selected='true'] {
  background: var(--ink);
  color: var(--paper);
}

/* A opcao vazia e so um rotulo de instrucao: nao recebe destaque de escolha */
.select-list li[data-value=''] {
  color: var(--muted);
}

.select-list li[data-value=''][aria-selected='true'] {
  background: transparent;
  color: var(--muted);
}

.select-shell.is-disabled .select-trigger {
  opacity: 0.42;
  cursor: not-allowed;
}

.input-group.has-error .select-trigger {
  border-bottom-color: #b3261e;
}

/* ---------------------------------------------------------------
   CALENDARIO CUSTOMIZADO
   O <input type="date"> segue sendo o dono do valor (formato
   YYYY-MM-DD, respeitando o min). So trocamos o popup nativo.
   --------------------------------------------------------------- */

.date-shell {
  position: relative;
}

.date-shell input[type='date']::-webkit-calendar-picker-indicator {
  -webkit-appearance: none;
  display: none;
}

.date-trigger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  line-height: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.date-trigger:hover,
.date-shell.is-open .date-trigger {
  color: var(--ink);
}

.calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  width: min(292px, 86vw);
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.date-shell.is-open .calendar {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  line-height: 1;
  text-transform: capitalize;
}

.cal-nav {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.cal-nav:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  padding: 6px 0;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.cal-day:hover:not(:disabled) {
  background: var(--paper-2);
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--accent-deep);
}

.cal-day.is-selected {
  background: var(--ink);
  color: var(--paper);
}

.cal-day:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

.cal-day.is-empty {
  visibility: hidden;
}

.cal-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}

.cal-foot button {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.cal-foot button:hover {
  color: var(--ink);
}

.conditional-field {
  display: none;
}

.conditional-field.is-visible {
  display: grid;
}

.error-msg {
  display: none;
  font-size: 0.74rem;
  color: #b3261e;
  letter-spacing: 0.02em;
}

.input-group.has-error .error-msg {
  display: block;
}

.input-group.has-error input,
.input-group.has-error select,
.input-group.has-error textarea {
  border-bottom-color: #b3261e;
}

#checkboxes-error.is-visible {
  display: block;
  margin-top: 10px;
}

.checkboxes-wrapper {
  display: grid;
  gap: 12px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid var(--rule);
  margin-top: 2px;
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.custom-checkbox input:checked + .checkbox-box {
  background: var(--ink);
  border-color: var(--ink);
}

.custom-checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid var(--paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pre-booking-card .btn.full {
  margin-top: 8px;
}

/* --- Sucesso --- */

.success-header {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-bottom: 24px;
}

.success-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.success-header h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}

.success-header p,
.success-instruction p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.success-instruction {
  margin-bottom: 22px;
}

.whatsapp-preview {
  border: 1px solid var(--rule);
  padding: 18px;
  margin-bottom: 20px;
}

.whatsapp-preview strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.message-box {
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 230px;
  overflow-y: auto;
  color: var(--ink-soft);
}

.btn-back-form {
  margin-top: 10px;
}

/* ============================ CONTATO ============================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.contact-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  gap: 8px;
  position: relative;
  transition: background 0.35s var(--ease);
}

a.contact-card:hover {
  background: var(--accent);
}

.contact-k {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

a.contact-card:hover .contact-k {
  color: var(--ink);
}

.contact-v {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.15;
}

.contact-go {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

a.contact-card:hover .contact-go {
  opacity: 1;
  transform: translateX(0);
}

/* ============================ FOOTER ============================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(50px, 7vw, 90px) 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.16);
  padding-bottom: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(30px, 4vw, 50px);
}

.footer-mark {
  width: clamp(52px, 8vw, 104px);
  height: auto;
  flex: 0 0 auto;
}

.footer-word {
  font-size: clamp(2.6rem, 12vw, 10rem);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.03em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.footer-grid p,
.footer-grid a {
  color: rgba(250, 248, 244, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-grid a {
  display: block;
  padding: 3px 0;
  transition: color 0.3s var(--ease);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-k {
  font-size: 0.66rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45) !important;
  margin-bottom: 12px !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 248, 244, 0.16);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 244, 0.5);
}

/* ============================ LIGHTBOX ============================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: rgba(250, 248, 244, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--paper);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox button:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================ REVEAL ============================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Esteira e microinteracoes param: ficam legiveis, sem movimento continuo */
  .marquee-track {
    animation: none !important;
  }

  .roll {
    height: auto;
    line-height: inherit;
  }

  .roll-inner > span:last-child {
    display: none;
  }

  .letter-smiley.is-pulsing::after,
  .letter-smiley.is-pulsing img {
    animation: none !important;
  }
}

/* ============================ RESPONSIVO ============================ */

@media (max-width: 1080px) {
  .work-grid {
    columns: 2;
  }

  .service-row {
    grid-template-columns: 44px minmax(0, 1fr) 120px;
  }

  .service-meta {
    display: none;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px var(--gut) 26px;
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.06);
  }

  .site-header.menu-open .nav {
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header-ig {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'figure'
      'aside';
  }

  .hero-figure-main img {
    min-height: clamp(360px, 80vw, 560px);
  }

  .hero-figure-detail {
    display: none;
  }

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

  .about-figure {
    max-width: 440px;
  }

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

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

  .course-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .course-row p {
    grid-column: 2;
  }

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

@media (max-width: 620px) {
  .work-grid {
    columns: 1;
  }

  .work-offset {
    margin-top: 0;
  }

  .header-cta {
    display: none;
  }

  .service-row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 14px;
  }

  .service-link-cta {
    grid-column: 2;
    justify-self: start;
  }

  .service-row:hover {
    padding-left: 0;
  }

  .about-facts,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .about-facts {
    gap: 1px;
  }

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

  .band-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-mark {
    width: 58px;
  }

  .hero-actions {
    gap: 18px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
