/*
  Home independente e mobile-first.
  Mantemos este arquivo fora de main.css para que a landing não baixe estilos
  de loja, checkout ou administração.
*/

:root {
  color-scheme: dark;
  --page-bg: #12081e;
  --page-bg-deep: #09050f;
  --surface: #1a0d2a;
  --surface-strong: #24103a;
  --line: rgba(226, 205, 255, 0.16);
  --text: #f8f4ff;
  --text-muted: #c9c0d7;
  --accent: #b76cff;
  --accent-strong: #8c35e5;
  --shell: min(100% - 2rem, 72rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 80% -10%, rgba(161, 76, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #f1d5ff;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  background: #fff;
  color: #190928;
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 10;
  width: var(--shell);
  transform: translateX(-50%);
  transition: transform 280ms ease-out, opacity 180ms ease-out;
}

.site-header.is-hero-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-8rem);
  animation: navbar-swing-away 520ms cubic-bezier(0.22, 0.75, 0.35, 1) both;
}

@keyframes navbar-swing-away {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  30% {
    transform: translateX(-50%) translateY(0.2rem) rotate(1.1deg);
  }

  58% {
    transform: translateX(-50%) translateY(-0.45rem) rotate(-0.8deg);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8rem) rotate(0.35deg);
  }
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-inline: 0.8rem;
  border: 1px solid rgba(226, 205, 255, 0.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 15, 56, 0.96), rgba(16, 7, 28, 0.94));
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
}

/* Área visual reservada para a imagem da futura marca. */
.brand-image-slot {
  width: 2.5rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px dashed rgba(241, 213, 255, 0.65);
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(183, 108, 255, 0.2), rgba(183, 108, 255, 0.04));
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 0.88rem;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.menu-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  place-content: center;
  gap: 0.28rem;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.site-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  left: 0;
  display: none;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #1a0d2a;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
}

.site-menu.is-open {
  display: grid;
  gap: 0.75rem;
}

.menu-links,
.menu-actions {
  display: grid;
  gap: 0.2rem;
}

.menu-actions {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
}

.menu-actions > :not(.cart-link) {
  flex: 1 1 0;
  text-align: center;
}

.site-menu a {
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
}

.nav-logout {
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.nav-logout:hover,
.nav-logout:focus-visible {
  color: var(--text);
  background: rgba(183, 108, 255, 0.12);
}

.site-menu .menu-store-link {
  color: #fff;
  background: var(--accent-strong);
}

.site-menu .cart-link {
  display: inline-grid;
  width: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--text);
}

.cart-link svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
  background: #10061b;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    radial-gradient(circle at 50% 38%, rgba(16, 5, 30, 0.06), rgba(9, 4, 17, 0.52) 68%),
    linear-gradient(180deg, rgba(9, 4, 17, 0.62) 0%, rgba(9, 4, 17, 0.2) 42%, rgba(9, 5, 15, 0.92) 100%);
}

.hero-content {
  align-self: center;
  max-width: 68rem;
  padding-block: 9rem 8rem;
  text-align: center;
}

.eyebrow,
.card-label {
  margin: 0 0 0.9rem;
  color: #e6c9ff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 10ch;
  margin-inline: auto;
  font-size: clamp(2.9rem, 12vw, 5.9rem);
}

.hero h1 span {
  color: #e0b8ff;
}

.hero-description {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: #eee8f4;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  color: #fff;
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(20, 10, 32, 0.55);
}

.hero-scroll-link {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(248, 244, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll-link span {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-status-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(226, 205, 255, 0.14);
  background: rgba(9, 5, 15, 0.88);
  color: rgba(248, 244, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-status-strip span + span::before {
  margin-right: 0.75rem;
  color: var(--accent);
  content: "•";
}

.section {
  padding-block: 4.5rem;
}

.gallery-section {
  background: linear-gradient(180deg, #0a0c11 0%, #12081e 100%);
}

.gallery-heading {
  max-width: 43rem;
  margin-inline: auto;
  text-align: center;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.gallery-heading > p:not(.eyebrow) {
  margin: 1.1rem 0 0;
  color: var(--text-muted);
}

/* Dois cards de altura em qualquer breakpoint; o restante só aparece quando há coluna para ele. */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(1, 15rem);
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.photo-tile {
  display: none;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #100b17;
}

.photo-tile:nth-child(-n + 2) {
  display: block;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-section {
  background: linear-gradient(180deg, #0d0615 0%, #160a24 100%);
}

.intro-layout {
  display: grid;
  gap: 2rem;
}

.intro-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.intro-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.intro-copy p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.contact-card > div > p:not(.eyebrow) {
  color: var(--text-muted);
}

.intro-copy h2,
.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 8vw, 3.65rem);
}

.intro-copy > p:not(.eyebrow) {
  margin: 1.25rem 0 0;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.feature-list li {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

/* Mantém uma área estável para expandir a lore oficial depois. */
.feature-list .lore-card {
  min-height: 14.5rem;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.highlights-section {
  background: #12081e;
}

.section-heading {
  max-width: 43rem;
}

.section-heading > p:not(.eyebrow) {
  margin: 1.1rem 0 0;
}

.highlights-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.highlight-card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c0613;
}

.highlight-content {
  padding: 1.25rem;
}

.highlight-content h3 {
  margin: 0;
  font-size: 1.3rem;
}

.highlight-content p:not(.card-label) {
  min-height: 3rem;
  margin: 0.7rem 0 1rem;
  color: var(--text-muted);
}

.highlight-content a {
  color: #f0d7ff;
  font-weight: 800;
}

.highlight-content a span {
  display: inline-block;
  margin-left: 0.25rem;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.contact-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 64, 128, 0.16), transparent 28rem),
    linear-gradient(180deg, #0d0f14 0%, #06070a 100%);
}

.contact-card {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.contact-card > div > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1rem auto 0;
}

.contact-card .contact-actions {
  align-self: center;
  justify-content: center;
  margin-top: 0;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-content p {
  margin: 0;
}

.footer-content div {
  display: flex;
  gap: 1rem;
}

/* A animação é opcional, ocorre uma vez e nunca mantém um loop de renderização. */
@media (prefers-reduced-motion: no-preference) {
  .has-js .section [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 360ms ease-out, transform 360ms ease-out;
  }

  .has-js .section [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 48rem) {
  :root {
    --shell: min(100% - 3rem, 72rem);
  }

  .header-content {
    min-height: 5rem;
    padding-inline: 1rem;
  }

  .menu-button {
    display: none;
  }

  .site-menu {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-menu a {
    min-height: 2.6rem;
    padding: 0.6rem 0.75rem;
  }

  .nav-logout {
    min-height: 2.6rem;
    padding: 0.6rem 0.75rem;
  }

  .menu-links,
  .menu-actions {
    display: flex;
    align-items: center;
  }

  .menu-links {
    gap: 0.15rem;
  }

  .menu-actions {
    gap: 0.35rem;
  }

  .menu-actions > :not(.cart-link) {
    flex: 0 0 auto;
  }

  .site-menu .cart-link {
    width: 2.6rem;
  }

  .hero {
    /* No desktop, a primeira dobra é sempre exatamente a área visível. */
    height: 100svh;
    min-height: 0;
  }

  .hero-content {
    padding-block: 8rem 6.5rem;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(3.5rem, 6.4vw, 5.25rem);
  }

  .section {
    padding-block: 6.5rem;
  }

  .photo-gallery {
    grid-template-columns: repeat(3, 15rem);
  }

  .photo-tile:nth-child(-n + 6) {
    display: block;
  }

  .intro-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    align-items: center;
    gap: 3.5rem;
  }

  /* A segunda dobra cabe inteira no desktop sem sacrificar a leitura. */
  .intro-section {
    display: grid;
    height: 100svh;
    min-height: 0;
    align-items: center;
    padding-block: 5rem 3rem;
  }

  .intro-layout {
    width: 100%;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .intro-copy h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
  }

  .intro-copy > p:not(.eyebrow) {
    margin-top: 0.9rem;
  }

  .feature-list {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .feature-list li {
    padding: 0.65rem 0.8rem;
  }

  .feature-list .lore-card {
    min-height: 13.5rem;
  }

  .feature-list span {
    font-size: 0.84rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-card {
    gap: 2rem;
  }
}

@media (min-width: 36rem) and (max-width: 47.999rem) {
  .photo-gallery {
    grid-template-columns: repeat(2, 15rem);
  }

  .photo-tile:nth-child(-n + 4) {
    display: block;
  }
}

@media (min-width: 70rem) {
  .photo-gallery {
    grid-template-columns: repeat(4, 15rem);
  }

  .photo-tile:nth-child(-n + 8) {
    display: block;
  }
}

/* A página de fotos mostra o catálogo inteiro; a home conserva só duas linhas. */
.photos-page .photos-hero {
  padding: 9rem 0 3rem;
  text-align: center;
}

.photos-page .photos-hero h1 {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(2.8rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.photo-gallery-full .photo-tile {
  display: block;
}

@media (min-width: 36rem) {
  .photo-gallery-full {
    grid-template-columns: repeat(2, 15rem);
  }
}

@media (min-width: 48rem) {
  .photo-gallery-full {
    grid-template-columns: repeat(3, 15rem);
  }
}

@media (min-width: 70rem) {
  .photo-gallery-full {
    grid-template-columns: repeat(4, 15rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button,
  .highlight-card,
  .highlight-content a,
  .site-menu a {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .button:hover {
    transform: translateY(-2px);
  }

  .highlight-card:hover {
    border-color: rgba(226, 205, 255, 0.35);
    transform: translateY(-4px);
  }

  .highlight-content a:hover {
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
