/* ============================================================
   Sophie Iroth — Opção roxa
   Base quase preta com detalhes em roxo. Só tema escuro.
   ============================================================ */

:root {
  --bg:        #0B0910;
  --bg-soft:   #120F19;
  --surface:   #17131F;
  --line:      #2A2335;
  --text:      #EEEAF4;
  --text-soft: #B5ADC2;
  --text-mute: #7D7489;

  /* Roxo — a cor de destaque */
  --accent:      #A77BFF;
  --accent-deep: #6D3FD6;
  --accent-glow: rgba(167, 123, 255, 0.35);
  --accent-tint: rgba(167, 123, 255, 0.10);

  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-deep); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}
h1 em, h2 em { color: var(--accent); font-style: italic; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.section-label, .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before, .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font: 500 0.88rem var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 28px var(--accent-glow);
}
/* Encomendas encerradas: botão sem link */
.btn.is-closed,
.btn.is-closed:hover {
  background: transparent;
  border-color: var(--line);
  color: var(--text-mute);
  box-shadow: none;
  cursor: default;
  justify-content: center;
  text-align: center;
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); box-shadow: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 9, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-right: auto;
  white-space: nowrap;
}
.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--accent);
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(11, 9, 16, 0.5);
}
.lang button {
  border: 0;
  background: none;
  color: var(--text-mute);
  font: 600 0.7rem var(--sans);
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button:hover { color: var(--text); }
.lang button.active { background: var(--accent-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; background: var(--bg-soft); }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 9s ease-out;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 9, 16, 0.92) 0%, rgba(11, 9, 16, 0.55) 45%, rgba(11, 9, 16, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 16, 0) 40%),
    radial-gradient(ellipse at 15% 100%, rgba(109, 63, 214, 0.35), transparent 60%);
}

.hero-content { max-width: 640px; }
.hero h1 {
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  margin-bottom: 18px;
}
.hero h1 em { text-shadow: 0 0 40px var(--accent-glow); }
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft);
  max-width: 460px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 96px);
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-soft);
  text-align: right;
  max-width: 300px;
  transition: opacity .6s;
}
.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(48px, 9vh, 96px) - 28px);
  display: flex;
  gap: 8px;
}
.hero-dots[hidden] { display: none; }
.hero-dot {
  width: 34px;
  height: 18px;                    /* área de clique maior que o traço */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.hero-dot i {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(238, 234, 244, 0.25);
  overflow: hidden;
  transition: background .2s;
}
.hero-dot:hover i { background: rgba(238, 234, 244, 0.5); }
.hero-dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.done i::after { transform: scaleX(1); opacity: .45; }
.hero-dot.on i::after { animation: hero-fill var(--hero-interval, 6500ms) linear forwards; }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-caption small {
  display: block;
  font: 500 0.7rem var(--sans);
  letter-spacing: 0.18em;
  color: var(--accent);
  font-style: normal;
}

/* ---------- Seções ---------- */
.gallery, .about, .contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}

/* ---------- Galeria ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.masonry { display: flex; gap: 14px; align-items: flex-start; }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  outline: 1px solid transparent;
  transition: outline-color .3s, box-shadow .3s;
  animation: rise .6s ease both;
}
.shot img {
  width: 100%;
  height: auto;
  transition: transform .6s ease, filter .6s ease;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 9, 16, 0.9), rgba(11, 9, 16, 0) 55%);
  opacity: 0;
  transition: opacity .35s;
}
.shot figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}
.shot .d { display: block; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }

.shot:hover, .shot:focus-visible {
  outline-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -12px var(--accent-glow);
}
.shot:hover img { transform: scale(1.04); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.loadmore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}
.gallery-end {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-soft);
  text-align: center;
}
.loadmore-wrap [hidden] { display: none; }

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  border-top: 1px solid var(--line);
}
.about-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: visible;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.6;
}
.about-body h2 { margin-bottom: 24px; }
.about-body p { color: var(--text-soft); max-width: 520px; }

.socials { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: border-color .2s, color .2s, background .2s;
}
.social:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
/* Selo sem link (Aetherphone) */
.social.plain,
.social.plain:hover { border-color: transparent; background: none; color: var(--text-soft); padding-inline: 8px; }
.social.plain svg { color: var(--accent); }

/* ---------- Contato ---------- */
.contact {
  text-align: center;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 10% 20%;
  background: radial-gradient(ellipse, rgba(109, 63, 214, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.contact .section-label { justify-content: center; }
.contact h2 { margin-bottom: 16px; }
.contact-lead { color: var(--text-soft); margin: 0 0 32px; }

/* ---------- Rodapé ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-mute);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(6, 5, 9, 0.96);
  backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.lb-figure {
  grid-column: 2;
  margin: 0;
  height: 100svh;
  padding: 48px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}
.lb-figure img {
  max-height: calc(100svh - 150px);
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px -10px var(--accent-glow);
}
.lb-figure figcaption { text-align: center; }
.lb-meta { display: block; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }

.lb-btn {
  border: 1px solid var(--line);
  background: rgba(23, 19, 31, 0.8);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  justify-self: center;
  transition: border-color .2s, color .2s;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 1rem; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .hero-caption { display: none; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 22px; }
}
@media (max-width: 560px) {
  .masonry, .masonry .col { gap: 8px; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-figure { padding: 56px 8px 84px; }
  .lb-figure img { max-height: calc(100svh - 220px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot.on i::after { transform: scaleX(1); }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
