/* =========================================================
   Taty Avelino — Fotografia
   Estilo: clean, minimalista, tons terrosos
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paleta terrosa */
  --sand-50:  #FAF6F0;   /* fundo principal */
  --sand-100: #F3ECE2;   /* seções alternadas */
  --sand-200: #E9DECF;   /* cards / superfícies */
  --sand-300: #DDCAB4;   /* bordas suaves */
  --clay:     #C9AF93;
  --terracotta:      #B06A47;  /* accent decorativo */
  --terracotta-ink:  #935537;  /* botões (texto branco AA) */
  --terracotta-dark: #7C4529;  /* hover */
  --olive:    #6E6A4C;
  --espresso: #2A211A;   /* títulos */
  --brown-700:#463A30;   /* corpo */
  --muted:    #7A6A5A;   /* apoio */

  /* Semânticos */
  --bg: var(--sand-50);
  --surface: var(--sand-200);
  --text: var(--brown-700);
  --heading: var(--espresso);
  --border: var(--sand-300);
  --accent: var(--terracotta);

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamento (escala 8pt) */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(42, 33, 26, .06);
  --shadow-md: 0 12px 30px -12px rgba(42, 33, 26, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h1 em { font-style: italic; color: var(--terracotta); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--terracotta-ink);
  margin-bottom: var(--space-2);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.section-head { max-width: 620px; margin-bottom: var(--space-8); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: var(--space-2); }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--espresso); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible {
  outline: 3px solid var(--terracotta-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-primary {
  background: var(--terracotta-ink);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--sand-300);
}
.btn-ghost:hover { border-color: var(--espresso); background: var(--sand-100); }
.btn-lg { min-height: 56px; padding: 1rem 2.2rem; font-size: 1.1rem; }
.wa-icon { width: 22px; height: 22px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--terracotta-ink);
  margin-top: auto;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: .85rem; color: var(--terracotta-dark); }
.text-link { color: var(--terracotta-ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--terracotta-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--space-3);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--heading); font-weight: 600; }
.brand-tag {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .32em;
  color: var(--muted); margin-top: .3rem;
}
.nav-list { display: flex; gap: var(--space-4); }
.nav-list a {
  font-size: .98rem; font-weight: 500; color: var(--brown-700);
  padding: .4rem 0; position: relative;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--terracotta);
  transition: width .25s var(--ease);
}
.nav-list a:hover { color: var(--heading); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list a.active { color: var(--heading); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; background: transparent; border: 0;
}
.nav-toggle-bar {
  width: 24px; height: 2px; background: var(--espresso); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (vídeo de fundo) ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--espresso); }
.hero-video, .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* scrim quente: mais escuro à esquerda (texto) + base para o cue */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(37,28,22,.94) 0%, rgba(37,28,22,.76) 42%, rgba(37,28,22,.5) 72%, rgba(37,28,22,.6) 100%),
    linear-gradient(0deg, rgba(37,28,22,.6) 0%, rgba(37,28,22,0) 38%),
    rgba(37,28,22,.2);
}
.hero .hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 640px; }
.hero .eyebrow { color: var(--clay); }
.hero h1 { color: var(--sand-50); }
.hero h1 em { color: #E8A87C; }
.hero-lead {
  font-size: 1.2rem; color: rgba(250, 246, 240, .92);
  max-width: 46ch; margin-top: var(--space-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero .btn-ghost { color: var(--sand-50); border-color: rgba(250, 246, 240, .55); }
.hero .btn-ghost:hover { border-color: var(--sand-50); background: rgba(250, 246, 240, .12); }

/* Cue "role para explorar" */
.hero-scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .45rem;
  color: rgba(250, 246, 240, .85);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
  transition: color .2s var(--ease);
}
.hero-scroll svg { width: 20px; height: 20px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero-scroll:hover { color: var(--sand-50); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--sand-100);
  overflow: hidden; padding-block: 1.1rem;
}
.marquee-track {
  display: flex; gap: 2rem; white-space: nowrap;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; color: var(--terracotta);
  width: max-content;
  animation: scroll-x 28s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--clay); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.sobre { background: var(--sand-100); }
.sobre-figure {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.sobre-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre-text h2 { color: var(--terracotta-ink); margin-bottom: var(--space-3); }
.sobre-text p + p { margin-top: var(--space-2); }
.stats {
  display: flex; gap: var(--space-6); margin-top: var(--space-4);
  flex-wrap: wrap;
}
.stats dt { font-family: var(--font-display); font-size: 2.2rem; color: var(--terracotta-ink); line-height: 1; }
.stats dd { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Serviços (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.card {
  display: flex; flex-direction: column;
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 220px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clay); }
.card-icon {
  display: inline-flex; width: 52px; height: 52px;
  align-items: center; justify-content: center;
  background: var(--sand-200); color: var(--terracotta-ink);
  border-radius: 50%; margin-bottom: var(--space-3);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card-cta {
  background: var(--espresso);
  border-color: var(--espresso);
  justify-content: center;
}
.card-cta h3 { color: var(--sand-50); }
.card-cta p { color: var(--sand-300); }
.card-cta .link-arrow { color: var(--clay); }
.card-cta .link-arrow:hover { color: var(--sand-50); }

/* ---------- Portfólio: álbuns por tema (grade uniforme) ---------- */
.albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.album {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-200);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.album img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.album:hover img,
.album:focus-visible img { transform: scale(1.04); }
.album-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: .5rem;
  padding: 2.2rem 1.2rem 1rem;
  font-family: var(--font-display);
  color: #fff; font-size: 1.4rem;
  letter-spacing: .01em;
  background: linear-gradient(to top, rgba(37,28,22,.82), rgba(37,28,22,.2) 55%, transparent);
  pointer-events: none;
}
.album-cap svg {
  width: 20px; height: 20px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.album:hover .album-cap svg,
.album:focus-visible .album-cap svg { opacity: 1; transform: none; }

/* ---------- Depoimento ---------- */
.quote-section { background: var(--espresso); }
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--sand-50); line-height: 1.35;
}
.quote footer { margin-top: var(--space-3); color: var(--clay); font-size: .95rem; font-style: normal; }

/* ---------- Contato ---------- */
.contato { background: var(--sand-100); text-align: center; }
.contato-inner { max-width: 680px; margin-inline: auto; }
.contato-lead { font-size: 1.2rem; color: var(--brown-700); margin: var(--space-3) auto var(--space-6); max-width: 52ch; }
.contato .btn-primary { margin-inline: auto; }
.contato-alt { margin-top: var(--space-4); color: var(--muted); }

/* Localização / mapa */
.local-wrap { margin-top: var(--space-8); }
.local {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  align-items: stretch;
  text-align: left;
  background: var(--sand-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.local-info {
  display: flex; gap: var(--space-2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  align-items: flex-start;
}
.local-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sand-200); color: var(--terracotta-ink);
}
.local-icon svg { width: 24px; height: 24px; }
.local-info .eyebrow { margin-bottom: .4rem; }
.local-info h3 { margin: 0 0 .6rem; }
.local-info address {
  font-style: normal; color: var(--brown-700);
  line-height: 1.6; margin-bottom: var(--space-2);
}
.local-map { min-height: 280px; }
.local-map iframe {
  width: 100%; height: 100%; min-height: 280px;
  border: 0; display: block;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--sand-50); border-top: 1px solid var(--border); padding-top: var(--space-8); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  justify-content: space-between; align-items: flex-start;
  padding-bottom: var(--space-6);
}
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: .5rem; max-width: 30ch; }
.footer-address { font-style: normal; color: var(--muted); font-size: .9rem; margin-top: .75rem; max-width: 32ch; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-nav a { color: var(--brown-700); font-weight: 500; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--terracotta-ink); }
.footer-social { display: flex; gap: var(--space-1); }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--brown-700);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { background: var(--terracotta-ink); color: #fff; border-color: var(--terracotta-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-block: var(--space-3);
  font-size: .85rem; color: var(--muted);
}

/* ---------- Placeholder marker ---------- */
.ph-img { background: linear-gradient(135deg, var(--sand-300), var(--clay)); }

/* ---------- Reveal (scroll) ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Menu mobile aberto */
  .nav.open {
    display: block;
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) 0 var(--space-3);
  }
  .nav.open .nav-list {
    flex-direction: column; gap: 0;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
  }
  .nav.open .nav-list li { border-bottom: 1px solid var(--border); }
  .nav.open .nav-list a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav.open .nav-list a::after { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .sobre-figure { max-width: 460px; margin-inline: auto; }
  .grid-2 { text-align: left; }
  .albums { grid-template-columns: repeat(2, 1fr); }
}

/* Hero em telas baixas (paisagem no celular): sem cue e altura menor */
@media (max-height: 520px) {
  .hero { min-height: 460px; }
  .hero-scroll { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .album-cap { font-size: 1.2rem; padding: 1.8rem 1rem .9rem; }
  .local { grid-template-columns: 1fr; }
  .stats { gap: var(--space-4); }
  .hero-actions .btn { flex: 1 1 auto; }
  /* Mobile: empilha conteúdo e o cue em coluna, para o "Role para explorar"
     ficar SEMPRE abaixo dos botões (sem sobreposição em telas baixas). */
  .hero { flex-direction: column; justify-content: center; }
  .hero-scroll { position: static; transform: none; margin: var(--space-4) auto 0; }
  .footer-inner { flex-direction: column; gap: var(--space-4); }
  /* Foto do Sobre no mobile: mesma proporção/tamanho dos álbuns (4:5).
     A proporção vai no container (reserva espaço mesmo antes de carregar);
     a imagem preenche. Antes, o atributo height do <img> a esticava. */
  .sobre-figure { aspect-ratio: 4 / 5; width: 100%; }
  .sobre-figure img { height: 100%; }
}

@media (max-width: 480px) {
  .albums { grid-template-columns: 1fr; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
