/* Versão B, "Estojo": fundo marinho como o estojo da marca, ouro nos detalhes, vídeo vertical. */

:root {
  --marinho: #2C3E4D;
  --marinho-fundo: #26384A;    /* seções alternadas */
  --marinho-escuro: #1E2B36;   /* texto sobre ouro */
  --marinho-2: #354A5B;        /* espaço reservado */
  --creme: #FCFBF7;
  --ouro: #B19D6A;
  --nevoa: #E1E1DF;
  --preto: #0A0A0A;

  --texto: var(--creme);
  --texto-2: rgba(252, 251, 247, 0.72);
  --linha: rgba(177, 157, 106, 0.35);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --t-h2: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 4.5rem;
  --max: 84rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--marinho);
  color: var(--texto);
  font: 400 var(--t-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--creme); color: var(--marinho); }
.skip:focus { top: 1rem; }

.logo { display: inline-block; background-color: currentColor; -webkit-mask: var(--src) no-repeat center / contain; mask: var(--src) no-repeat center / contain; }
.logo--monograma { --src: url("../shared/assets/logo/monograma.svg"); aspect-ratio: 330.9 / 243.6; }
.logo--wordmark  { --src: url("../shared/assets/logo/wordmark.svg");  aspect-ratio: 784.4 / 218.5; }
.logo--selo      { --src: url("../shared/assets/logo/selo.svg");      aspect-ratio: 1; }

.sketch-bar { background: var(--ouro); color: var(--marinho-escuro); font-size: var(--t-sm); line-height: 1.4; padding: .6rem var(--gutter); text-align: center; }

.section { padding-block: var(--section); }
.section__head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); padding-inline: var(--gutter); }
.section__head .lead { max-width: 32em; }
.h2 { font-family: var(--serif); font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: .5em; }
.h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; margin-bottom: .5em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--texto); }
.note { font-size: var(--t-sm); color: var(--texto-2); border-left: 2px solid var(--ouro); padding-left: .75rem; max-width: 40em; }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.75rem;
  border: 1px solid var(--creme); background: var(--creme); color: var(--marinho);
  font: 500 .9375rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: transparent; color: var(--creme); }
.btn--gold { background: var(--ouro); border-color: var(--ouro); color: var(--marinho-escuro); }
.btn--gold:hover { background: transparent; color: var(--ouro); }
.btn--small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .875rem; background: transparent; color: var(--ouro); border-color: var(--ouro); }
.btn--small:hover { background: var(--ouro); color: var(--marinho-escuro); }
.btn--full { width: 100%; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--ouro); transition: text-decoration-color .2s ease; }
.link:hover { text-decoration-color: currentColor; }

/* Espaço reservado em "moldura de estojo" */
.ph {
  position: relative; margin: 0; display: grid; place-items: center;
  background: var(--marinho-2); color: var(--texto-2); min-height: 10rem; overflow: hidden;
}
.ph--frame { box-shadow: inset 0 0 0 1px var(--linha); }
.ph::before { content: ""; position: absolute; inset: .6rem; border: 1px solid rgba(177, 157, 106, 0.22); pointer-events: none; }
.ph__label { position: relative; max-width: 24em; padding: 1.25rem; font-size: var(--t-sm); line-height: 1.45; text-align: center; }
.ph__label::before { content: "Espaço para foto real"; display: block; margin-bottom: .35rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ouro); }

/* Cabeçalho (sempre sólido) */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--marinho); border-bottom: 1px solid var(--linha); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ouro); text-decoration: none; margin-right: auto; }
.brand .logo--monograma { height: 2.1rem; }
.brand .logo--wordmark { height: 1.9rem; color: var(--creme); }
.nav__list { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.nav__list a { font-size: .9375rem; text-decoration: none; padding-block: .4rem; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav__list a:hover { border-bottom-color: var(--ouro); }
.nav__toggle { display: none; font: 500 .9375rem var(--sans); color: inherit; background: none; border: 0; padding: .5rem; cursor: pointer; }
@media (max-width: 60rem) {
  .brand .logo--wordmark { display: none; }
  .nav__toggle { display: inline-block; }
  .nav__list { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--marinho); border-bottom: 1px solid var(--linha); overscroll-behavior: contain; }
  .nav__list[hidden] { display: none; }
  .nav__list a { display: block; padding-block: .85rem; font-size: 1.125rem; border-bottom: 1px solid var(--linha); }
  .site-header__inner { gap: 1rem; }
}

/* Abertura */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  min-height: calc(100svh - var(--header-h));
}
.hero__title { font-family: var(--serif); font-size: var(--t-h1); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: .55em; }
.hero__lead { font-size: var(--t-lead); color: var(--texto-2); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.hero__video { aspect-ratio: 9 / 16; max-height: 78svh; width: 100%; justify-self: end; max-width: 26rem; }

/* História */
.historia {
  background: var(--marinho-fundo);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.historia__mono { height: 3.25rem; color: var(--ouro); margin-bottom: 2rem; }
.historia__inner p:not(.lead):not(.note) { color: var(--texto-2); max-width: 32em; }
.historia__fotos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: end; }
.historia__fotos .ph:first-child { aspect-ratio: 3 / 4; }
.historia__fotos .ph:last-child { aspect-ratio: 1; }

/* Processo: faixa horizontal */
.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0 var(--gutter) 1.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  max-width: var(--max);
  margin-inline: auto;
}
.reel:focus-visible { outline-offset: -2px; }
.reel__item { scroll-snap-align: start; }
.reel__media { aspect-ratio: 9 / 16; margin-bottom: 1.25rem; }
.reel__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; margin-bottom: .5rem; display: flex; align-items: baseline; gap: .6rem; }
.reel__n { font-style: italic; color: var(--ouro); font-size: 1.125rem; }
.reel__item p { font-size: .975rem; color: var(--texto-2); }
.processo__note { max-width: var(--max); margin: 2.5rem auto 0; margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }

/* Projetos: abas */
.projetos { background: var(--marinho-fundo); }
.tabs { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.tabs__list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; border-bottom: 1px solid var(--linha); margin-bottom: 2rem; }
.tabs__list [role="tab"] {
  font: 400 1.125rem/1.3 var(--serif);
  color: var(--texto-2);
  background: none; border: 0; padding: .9rem 0; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  cursor: pointer; touch-action: manipulation;
  transition: color .2s ease, border-color .2s ease;
}
.tabs__list [role="tab"]:hover { color: var(--creme); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--creme); border-bottom-color: var(--ouro); }
.tabs__desc { font-size: var(--t-lead); max-width: 34em; margin-bottom: 2rem; }
.galeria { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.galeria .g1 { grid-row: span 2; aspect-ratio: 4 / 5; }
.galeria .g2, .galeria .g3 { min-height: 0; }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1.25rem; }
.quote p { font: italic 400 clamp(1.375rem, 1.2rem + .8vw, 1.875rem)/1.35 var(--serif); color: var(--texto-2); }
.quote figcaption { font-size: var(--t-sm); color: var(--ouro); }

/* Agendar (claro) */
.agendar { background: var(--creme); color: var(--marinho); }
.agendar__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter);
}
.agendar .lead { color: var(--marinho); margin-bottom: 2rem; }
.agendar .note { color: #56636E; margin-top: 1rem; }
.agendar .btn { background: var(--marinho); color: var(--creme); border-color: var(--marinho); }
.agendar .btn:hover { background: var(--marinho-escuro); border-color: var(--marinho-escuro); }
.contato { font-style: normal; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ouro); }
.contato__social { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: var(--t-sm); color: #3E5263; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--marinho);
  background: #fff; border: 1px solid #C9CCCB; border-radius: 0; color-scheme: light;
  transition: border-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #7D8790; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--marinho); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ouro); outline-offset: 0; border-color: var(--marinho); }
.field input[type="file"] { padding: .6rem; font-size: .9375rem; }
.field [aria-invalid="true"] { border-color: #A2412A; }
.field__error { font-size: var(--t-sm); color: #A2412A; margin: 0; }
.form__status { min-height: 1.5em; margin-top: 1rem; font-size: .9375rem; }
.mapa iframe { width: 100%; height: clamp(18rem, 36vw, 24rem); border: 0; filter: grayscale(1); }

/* Rodapé */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 4rem var(--gutter); text-align: center; }
.site-footer__selo { width: 7rem; color: var(--ouro); }
.site-footer__meta { margin: 0; font-size: var(--t-sm); color: var(--texto-2); }

/* Responsivo */
@media (max-width: 60rem) {
  .hero, .historia, .agendar__inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__video { justify-self: start; max-width: 20rem; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .galeria { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .galeria .g1 { grid-column: 1 / -1; grid-row: auto; }
  .galeria .g2, .galeria .g3 { aspect-ratio: 1; }
  .hero__actions .btn { width: 100%; }
  .hero__video { max-width: none; aspect-ratio: 4 / 5; }
}
.sketch-bar a { color: inherit; font-weight: 500; text-underline-offset: .2em; margin-left: .35rem; }
.reel { scrollbar-color: var(--ouro, #B19D6A) transparent; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(177, 157, 106, .25); }

/* Fotos ilustrativas (Unsplash), só para mostrar o tipo de imagem; serão trocadas pelas fotos do ateliê */
.ph__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(.ph__img) { background: #1A232C; }
.ph:has(.ph__img) .ph__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; max-width: none; margin: 0;
  padding: 2.5rem 1rem .9rem; text-align: left; font-size: .8125rem; line-height: 1.4; color: #FCFBF7;
  background: linear-gradient(transparent, rgba(10, 15, 20, .82));
  opacity: 0; transform: translateY(.5rem); transition: opacity .4s ease, transform .4s ease;
}
.ph:has(.ph__img) .ph__label::before { content: "Sugestão de foto do ateliê"; color: #D9C79A; font-size: .9375rem; }
.ph:has(.ph__img):hover .ph__label { opacity: 1; transform: none; }
.ph__tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2; pointer-events: none;
  padding: .3rem .6rem; border-radius: 999px; font: 500 .6875rem/1 "Inter Tight", Arial, sans-serif; letter-spacing: .01em;
  background: rgba(10, 15, 20, .55); color: #FCFBF7; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (hover: none) { .ph:has(.ph__img) .ph__label { opacity: 1; transform: none; font-size: .75rem; padding-top: 2rem; } }
.ph[class*="hero"] .ph__tag { top: 6.5rem; }
