/* Versão C, "Clássico": centrada e simétrica, selo na abertura, estrela de brilho como divisor. */

:root {
  --marinho: #2C3E4D;
  --marinho-escuro: #1E2B36;
  --creme: #FCFBF7;
  --ouro: #B19D6A;
  --nevoa: #E1E1DF;
  --preto: #0A0A0A;

  --texto: var(--marinho);
  --texto-2: #56636E;
  --linha: #D8D8D4;

  --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.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --t-h2: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --t-h1: clamp(2.125rem, 1.4rem + 3vw, 4rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);
  --header-h: 5rem;
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
body { margin: 0; background: var(--creme); color: var(--texto); font: 400 var(--t-base)/1.65 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; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--marinho); color: var(--creme); }
.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(--nevoa); font-size: var(--t-sm); line-height: 1.4; padding: .6rem var(--gutter); text-align: center; }

.section { padding-block: var(--section); padding-inline: var(--gutter); text-align: center; }
.section__head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.h2 { font-family: var(--serif); font-size: var(--t-h2); line-height: 1.12; margin-bottom: .55em; }
.h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; margin-bottom: .4em; }
.lead { font-size: var(--t-lead); line-height: 1.55; }
.note { display: inline-block; font-size: var(--t-sm); color: var(--texto-2); border-top: 1px solid var(--ouro); padding-top: .6rem; max-width: 36em; }
.note--light { color: rgba(252, 251, 247, .75); }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.9rem;
  border: 1px solid var(--marinho); background: var(--marinho); color: var(--creme);
  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(--marinho); }
.btn--light { background: var(--creme); color: var(--marinho); border-color: var(--creme); }
.btn--light:hover { background: transparent; color: var(--creme); }
.btn--small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .875rem; background: transparent; color: var(--marinho); }
.btn--small:hover { background: var(--marinho); color: var(--creme); }
.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; }
.link--light { color: var(--creme); }

/* Espaços reservados */
.ph { position: relative; margin: 0; display: grid; place-items: center; background: var(--nevoa); color: var(--texto-2); min-height: 10rem; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: .75rem; border: 1px solid rgba(177, 157, 106, .55); 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(--marinho); }

/* Cabeçalho: menu | assinatura ao centro | agendar */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--creme); border-bottom: 1px solid var(--linha); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); gap: 1rem; }
.brand { display: inline-flex; color: var(--marinho); text-decoration: none; }
.brand .logo--wordmark { height: 2.6rem; }
.brand .logo--monograma { display: none; height: 2.2rem; }
.site-header__end { justify-self: end; }
.nav__list { display: flex; gap: 1.5rem; 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 0; cursor: pointer; }
@media (max-width: 64rem) {
  .brand .logo--wordmark { display: none; }
  .brand .logo--monograma { display: inline-block; }
  .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(--creme); 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); }
}
@media (max-width: 36rem) {
  .site-header .btn--small { padding-inline: .8rem; }
  .site-header .btn--small { font-size: 0; }
  .site-header .btn--small::after { content: "Agendar"; font-size: .875rem; }
}

/* Abertura */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) 0; }
.hero__selo { width: clamp(9rem, 18vw, 13rem); color: var(--marinho); margin-bottom: clamp(2rem, 4vw, 3rem); }
.hero__title { font-family: var(--serif); font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.01em; max-width: 16em; margin-bottom: .5em; }
.hero__lead { font-size: var(--t-lead); color: var(--texto-2); max-width: 30em; margin-bottom: 2rem; }
.hero__foto { width: 100%; max-width: var(--max); aspect-ratio: 16 / 9; margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Divisor: estrela de brilho entre filetes */
.divisor { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding-block: clamp(3rem, 6vw, 4.5rem) 0; color: var(--ouro); }
.divisor::before, .divisor::after { content: ""; width: clamp(3rem, 10vw, 6rem); height: 1px; background: currentColor; opacity: .6; }
.divisor svg { width: 1.1rem; height: 1.1rem; }

/* História */
.historia { max-width: 44rem; margin-inline: auto; }
.historia p:not(.lead):not(.note) { color: var(--texto-2); }

/* Ateliê */
.atelie { padding-inline: var(--gutter); text-align: center; }
.atelie__fotos { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; max-width: var(--max); margin: 0 auto; }
.atelie__fotos .ph { aspect-ratio: 3 / 4; }
.atelie__fotos .atelie__centro { aspect-ratio: 4 / 5; }
.atelie__texto { max-width: 38rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }
.atelie__texto p { color: var(--texto-2); }

/* Processo: linha do tempo vertical, alternada */
.linha { position: relative; max-width: 60rem; margin: 0 auto; padding: 0; list-style: none; }
.linha::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ouro); opacity: .6; }
.etapa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 6rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); position: relative; }
.etapa:last-child { margin-bottom: 0; }
.etapa__media { aspect-ratio: 4 / 3; }
.etapa__texto { text-align: left; }
.etapa:nth-child(even) .etapa__media { order: 2; }
.etapa:nth-child(even) .etapa__texto { text-align: right; }
.etapa__n { display: block; font: italic 400 1.5rem/1 var(--serif); color: var(--ouro); margin-bottom: .5rem; }
.etapa__texto p { color: var(--texto-2); max-width: 24em; }
.etapa:nth-child(even) .etapa__texto p { margin-left: auto; }
.processo__note { margin-top: 3rem; }

/* Projetos */
.projetos { background: #F4F4F1; }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); max-width: 60rem; margin: 0 auto; }
.cat__media { aspect-ratio: 1; margin-bottom: 1.5rem; }
.cat p { color: var(--texto-2); max-width: 24em; margin-inline: auto; }
.projetos__mais { margin: 3rem 0 0; }

/* Depoimento */
.quote { max-width: 46rem; margin: 0 auto; }
.quote blockquote { margin: 0 0 1.5rem; }
.quote p { font: italic 400 clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem)/1.35 var(--serif); color: var(--texto-2); }
.quote figcaption { font-size: var(--t-sm); color: var(--texto-2); }

/* Agendar */
.agendar { background: var(--marinho); color: var(--creme); margin-top: var(--section); }
.agendar__inner { max-width: 44rem; margin: 0 auto; padding: var(--section) var(--gutter); text-align: center; }
.agendar__mono { height: 3rem; color: var(--ouro); margin-bottom: 2rem; }
.agendar .lead { margin-bottom: 2rem; }
.form { text-align: left; margin-top: clamp(3rem, 6vw, 4rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(177, 157, 106, .5); }
.form .h3 { text-align: center; margin-bottom: 1.75rem; }
.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: rgba(252, 251, 247, .85); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--creme);
  background-color: rgba(252, 251, 247, .06); border: 1px solid rgba(252, 251, 247, .3); border-radius: 0; color-scheme: dark;
  transition: border-color .2s ease;
}
.field select option { background-color: var(--marinho); color: var(--creme); }
.field input::placeholder, .field textarea::placeholder { color: rgba(252, 251, 247, .45); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(252, 251, 247, .6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ouro); outline-offset: 0; border-color: var(--ouro); }
.field input[type="file"] { padding: .6rem; font-size: .9375rem; }
.field [aria-invalid="true"] { border-color: #E8B4A0; }
.field__error { font-size: var(--t-sm); color: #F1C7B7; margin: 0; }
.form__status { min-height: 1.5em; margin-top: 1rem; font-size: .9375rem; text-align: center; }
.contato { font-style: normal; margin-top: 3rem; font-size: .9375rem; line-height: 1.9; }
.contato__social { display: flex; justify-content: center; gap: 1.5rem; margin-top: .5rem; }
.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: 1rem; padding: 3.5rem var(--gutter); text-align: center; }
.site-footer__logo { height: 3rem; color: var(--marinho); }
.site-footer__meta { margin: 0; font-size: var(--t-sm); color: var(--texto-2); }

/* Responsivo */
@media (max-width: 48rem) {
  .atelie__fotos { grid-template-columns: 1fr 1fr; }
  .atelie__fotos .atelie__centro { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
  .linha::before { left: 0; }
  .etapa { grid-template-columns: 1fr; gap: 1.25rem; padding-left: 1.5rem; }
  .etapa:nth-child(even) .etapa__media { order: 0; }
  .etapa:nth-child(even) .etapa__texto { text-align: left; }
  .etapa:nth-child(even) .etapa__texto p { margin-left: 0; }
  .cats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__foto { aspect-ratio: 4 / 3; }
}
.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; }
