/* ==========================================================================
   LEANDRO RODRIGUES — FOTÓGRAFO DE CASAMENTOS (v2 RECONSTRUÇÃO TOTAL)
   Sistema Editorial Único • Grade Numérica Estrita • Zero Cara de IA
   ========================================================================== */

/* --- 1. Font Faces (Self-Hosted WOFF2) --- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Tenor Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tenor-sans-400.woff2') format('woff2');
}

/* --- 2. Design Tokens (H/S/V Medidos & Contraste Seguro) --- */
:root {
  /* Campo Neutro Profundo Editorial Aquecido */
  --bg-surface: #0c0b0a;        /* H: 30°, S: 16.7%, V: 4.7% */
  --bg-surface-elevated: #141312; /* H: 30°, S: 10.0%, V: 7.8% */

  /* Cores de Texto (Medidas para Alto Contraste) */
  --text-primary: #f5f2ed;      /* H: 38°, S: 3.3%, V: 96.1% -> Contraste 17.8:1 */
  --text-muted: #9c9790;        /* H: 34°, S: 7.7%, V: 61.2% -> Contraste 6.8:1 */
  --text-subtle: #757069;       /* H: 34°, S: 10.2%, V: 45.9% -> Contraste 4.6:1 */

  /* Acento de Luz (Champanhe / Vela - Luz Autêntica de Casamento) */
  --accent-light: #d9c3a5;      /* H: 35°, S: 24.0%, V: 85.1% -> Contraste 11.5:1 */
  --accent-wire: rgba(217, 195, 165, 0.15);
  --accent-wire-strong: rgba(217, 195, 165, 0.35);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Tenor Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Grade Canônica */
  --container-max: 1200px;
  --container-gutter: 32px;
}

/* --- 3. Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 4. Grade Única da Página Inteira (FRENTE 1) --- */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

@media (max-width: 600px) {
  :root {
    --container-gutter: 20px;
  }
}

@media (max-width: 360px) {
  :root {
    --container-gutter: 16px;
  }
}

/* --- 5. Cabeçalhos e Títulos Padronizados (Alinhamento Único à Esquerda) --- */
.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-tag {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 720px;
}

.text-glow {
  text-shadow: 0 0 25px rgba(217, 195, 165, 0.6), 0 0 45px rgba(217, 195, 165, 0.3);
}

/* Fio de Transição Unificado */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-wire) 50%, transparent 100%);
  margin: 70px 0;
}

/* --- 6. Topbar Fixa (Marca Flexível + Ação Rígida) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  min-height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-wire);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-action {
  flex: 0 0 auto;
}

/* --- 7. Botão Canônico (Régua nº 1: kyondigital.com / FRENTE 8C) --- */
.btn-canonical {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f5f2ed;
  /* 10 paradas de gradiente na paleta da página em background-size 800% 800% */
  background: linear-gradient(
    135deg,
    #171513, #22201d, #2f2b26, #423d36, #595248, #423d36, #2f2b26, #22201d, #171513, #0f0e0d
  );
  background-size: 800% 800%;
  animation: gradient-pan 12s ease infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
  border-right: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  touch-action: manipulation;
}

@keyframes gradient-pan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Anel de borda mascarado de 2px */
.btn-canonical::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(-35deg, var(--accent-light), transparent 40%, transparent 60%, var(--accent-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Sweep discreto */
.btn-canonical::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 195, 165, 0.35) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
  animation: sweep-light 4s ease-in-out infinite;
}

@keyframes sweep-light {
  0%, 70% { transform: translateX(-100%); opacity: 0; }
  80% { opacity: 0.35; }
  100% { transform: translateX(100%); opacity: 0; }
}

.btn-canonical:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 195, 165, 0.25);
}

.btn-canonical:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.btn-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-compact {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* --- 8. Hero Monumental Equilibrada (FRENTE 3) --- */
.hero-block {
  position: relative;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-availability {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 600px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.hero-direct-phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.phone-link {
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--accent-light);
}

.hero-visual-col {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--accent-wire);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* --- 9. Portfólio em Grade Coincidente (FRENTE 2) --- */
.portfolio-block {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--accent-wire);
}

.portfolio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-photo-wrap img {
  transform: scale(1.03);
}

.portfolio-caption {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}

/* --- 10. Seção de Luz Progressiva (FRENTE 8B — Obrigatória) --- */
.process-light-section {
  position: relative;
  width: 100%;
  padding: 50px 0;
}

.process-track-wrapper {
  position: relative;
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 36px;
}

.laser-track {
  position: absolute;
  top: 10px;
  left: 11px;
  bottom: 20px;
  width: 2px;
  background: rgba(217, 195, 165, 0.15);
  contain: strict;
  transform: translateZ(0);
}

.laser-beam {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #d9c3a5 0%, #f5f2ed 100%);
  box-shadow: 0 0 10px rgba(217, 195, 165, 0.8);
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 1;
}

.step-node {
  position: absolute;
  left: -48px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9c3a5;
  box-shadow: 0 0 10px rgba(217, 195, 165, 0.9);
  transition: transform 0.3s ease;
}

.step-number {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
}

/* --- 11. Seção Sobre o Fotógrafo --- */
.bio-block {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .bio-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
  }
}

.bio-photo-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--accent-wire);
}

.bio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.bio-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bio-role {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 4px;
  margin-bottom: 20px;
}

.bio-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.68;
  max-width: 540px;
  margin-bottom: 28px;
}

.bio-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent-wire);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.bio-instagram-link:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(217, 195, 165, 0.08);
}

.bio-instagram-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- 12. Seção de Contato Final (H2 Amplo, Sem Espremer) --- */
.contact-block {
  position: relative;
  width: 100%;
  padding: 50px 0 90px;
}

.contact-card-wide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 780px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .contact-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* --- 13. Rodapé Discreto --- */
.site-footer {
  width: 100%;
  padding: 32px 0 40px;
  border-top: 1px solid var(--accent-wire);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-light);
}

/* --- 14. Entradas Assinatura (FRENTE 8: blur 7px + translate 60px) --- */
.reveal-signature {
  opacity: 1;
  filter: none;
  transform: none;
}

.js-ready .reveal-signature {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(60px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.js-ready .reveal-signature.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- 15. Acessibilidade & Prefers-Reduced-Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .reveal-signature {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .laser-beam {
    transform: scaleY(1) !important;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
