/* ==========================================================================
   AM Beachwear — Landing
   ========================================================================== */

:root {
  --cream: #faf5ee;
  --sand: #f1e7d8;
  --sand-deep: #e6d6bf;
  --ink: #2b1d16;
  --ink-soft: #6b5a4f;
  --night: #1f1511;
  --gold-1: #8f5a12;
  --gold-2: #c98f1f;
  --gold-3: #ecc46a;
  --gold-grad: linear-gradient(120deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 62%, var(--gold-2) 82%, var(--gold-1) 100%);
  --rose: #d6578f;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 22px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
}
/* Celulares com notch (modo paisagem): respeita a área segura */
@supports (padding: max(0px)) {
  .container { width: min(100% - 2.5rem - env(safe-area-inset-left) - env(safe-area-inset-right), var(--container)); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.1rem; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Tipografia -------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
h3 { font-size: 1.7rem; }
h1 em, h2 em {
  font-style: italic; font-weight: 400;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .06em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 1.3rem;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--gold-grad); }
.eyebrow-light { color: var(--gold-3); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; font-weight: 300; }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-small { padding: .7rem 1.2rem; font-size: .74rem; }
.btn-gold {
  color: #fff; background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 10px 28px -10px rgba(143, 90, 18, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 34px -10px rgba(143, 90, 18, .75); }
.btn-ghost { color: var(--ink); border-color: rgba(43, 29, 22, .25); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-outline { color: var(--ink); border-color: var(--gold-2); }
.btn-outline:hover { background: var(--gold-2); color: #fff; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled {
  --header-h: 72px;
  height: 72px;
  background: rgba(250, 245, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(43, 29, 22, .08);
}
.header-inner { display: flex; align-items: center; gap: 2rem; }
.brand img { width: 74px; height: auto; transition: width .35s var(--ease); }
.is-scrolled .brand img { width: 62px; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 2.4rem; }
.nav a {
  position: relative; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding-block: .4rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + 2rem); padding-bottom: 5rem;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(236, 196, 106, .28), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(214, 87, 143, .12), transparent 70%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: min(calc(100svh - var(--header-h) - 7rem), 760px); }
.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-media { position: relative; justify-self: center; width: min(100%, 460px); }
.arch { position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5.2; box-shadow: 0 40px 80px -30px rgba(43, 29, 22, .45); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 1px solid var(--gold-2); border-radius: 999px 999px var(--radius) var(--radius);
}
.badge {
  position: absolute; left: -1.6rem; bottom: 2.6rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.3rem;
  background: rgba(250, 245, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 18px 40px -16px rgba(43, 29, 22, .45);
  animation: float 5s ease-in-out infinite;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(214, 87, 143, .6); animation: pulse 2s infinite; }

/* Entrada do hero (CSS puro: não depende de JS e não atrasa o LCP) */
.hero .reveal { opacity: 1; transform: none; animation: rise 1s var(--ease) both; }
.hero .hero-copy .reveal:nth-child(2) { animation-delay: .08s; }
.hero .hero-copy .reveal:nth-child(3) { animation-delay: .16s; }
.hero .hero-copy .reveal:nth-child(4) { animation-delay: .24s; }
.hero .hero-media.reveal { animation-name: rise-soft; animation-delay: .1s; }

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--night); color: var(--cream); padding-block: 1.25rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--font-serif); font-style: italic; font-size: 1.7rem; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee-track span::after { content: "✿"; font-style: normal; font-size: 1.15rem; color: var(--gold-2); margin-inline: 2.2rem; }
.marquee-track .hot {
  font-style: normal; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 1.15rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Seções ------------------------------------------------------------------ */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.section-head .eyebrow::after { content: ""; width: 2.4rem; height: 1px; background: var(--gold-grad); }
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p:last-child { color: var(--ink-soft); font-weight: 300; font-size: 1.12rem; }

/* Coleção ----------------------------------------------------------------- */
.grid-colecao { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card:nth-child(even) { margin-top: 3rem; }
.card a { display: block; }
.card-img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5.4; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card a:hover .card-img img { transform: scale(1.06); }
.card-body { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem .3rem 0; }
.card-body h3 small { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-left: .35rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1);
}
.card-link svg { transition: transform .35s var(--ease); }
.card a:hover .card-link svg { transform: translateX(4px); }

/* Best seller ------------------------------------------------------------- */
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.bs-media { position: relative; width: min(100%, 480px); justify-self: center; padding-bottom: 3rem; }
.bs-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(43, 29, 22, .5); }
.bs-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.bs-hat {
  position: absolute; right: -2rem; bottom: 0; width: 62%;
  padding: 1.6rem 1.4rem;
  background: var(--cream); border-radius: 20px;
  box-shadow: 0 26px 50px -20px rgba(43, 29, 22, .5);
  transform: rotate(-3deg);
  animation: sway 6s ease-in-out infinite;
}
/* Pontos de bordado ao redor do chapéu */
.bs-hat::after {
  content: ""; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none;
  border: 1.5px dashed var(--gold-2);
}
.bs-hat img { width: 100%; height: auto; }
.bs-seal {
  position: absolute; top: -1.4rem; left: -.5rem;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; text-align: center;
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.05; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(143, 90, 18, .7);
  outline: 1.5px dashed rgba(255, 255, 255, .8); outline-offset: -7px;
  transform: rotate(-12deg);
}
.bs-copy h2 { margin-bottom: 1.4rem; }
.bs-lead { color: var(--ink-soft); font-weight: 300; font-size: 1.12rem; max-width: 46ch; }
.bs-details { margin: 1.8rem 0 2.2rem; display: grid; gap: .9rem; }
.bs-details li { display: flex; gap: .8rem; align-items: baseline; padding-bottom: .9rem; border-bottom: 1px dashed rgba(143, 90, 18, .4); }
.bs-details em { font-family: var(--font-serif); font-size: 1.15rem; }
.bs-flower { color: var(--gold-2); }

/* Peças ------------------------------------------------------------------- */
.grid-pecas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.piece a { display: block; }
.piece-img {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--tint, var(--sand));
  transition: box-shadow .5s var(--ease);
}
.piece-img::after { content: ""; position: absolute; inset: 8px; border-radius: 15px; border: 1px dashed rgba(143, 90, 18, .35); pointer-events: none; }
.piece-img img { position: absolute; inset: 1.5rem; width: calc(100% - 3rem); height: calc(100% - 3rem); object-fit: contain; transition: transform .9s var(--ease); }
.piece a:hover .piece-img { box-shadow: 0 26px 50px -26px rgba(43, 29, 22, .5); }
.piece a:hover img { transform: scale(1.06) rotate(-1deg); }
.piece-ceu { --tint: #e6eefa; }
.piece-pink { --tint: #fde1ee; }
.piece-azul { --tint: #e0eff9; }
.piece-vermelho { --tint: #fbe2df; }
.piece-body { display: flex; flex-direction: column; gap: .1rem; padding: 1rem .3rem 0; }
.piece-body span { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1); }

/* Detalhes / embalagem ---------------------------------------------------- */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.details-copy h2 { margin-bottom: 1.4rem; }
.details-copy > p:not(.eyebrow) { color: var(--ink-soft); font-weight: 300; font-size: 1.12rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.chips li {
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px dashed var(--gold-2); color: var(--gold-1);
  font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.details-media { width: min(100%, 440px); justify-self: center; }
.details-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 75%; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 40px 80px -30px rgba(43, 29, 22, .45); }

/* Sobre ------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.about-media { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.about-media img { border-radius: var(--radius); object-fit: cover; box-shadow: 0 30px 60px -28px rgba(43, 29, 22, .5); }
.about-a { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 5.2; width: 100%; }
.about-b { grid-column: 6 / 13; grid-row: 1; align-self: end; transform: translateY(18%); aspect-ratio: 4 / 5; width: 100%; border: 6px solid var(--sand); }
.about-media { padding-bottom: 18%; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy > p { color: var(--ink-soft); font-weight: 300; font-size: 1.12rem; max-width: 46ch; }
.pillars { margin-top: 2.4rem; display: grid; gap: 1.6rem; }
.pillars li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid rgba(43, 29, 22, .14); }
.pillar-n { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold-2); line-height: 1.2; }
.pillars h3 { font-size: 1.55rem; margin-bottom: .2rem; }
.pillars p { color: var(--ink-soft); font-weight: 300; }

/* Em breve ---------------------------------------------------------------- */
.soon {
  position: relative; overflow: hidden; text-align: center; color: var(--cream);
  padding-block: clamp(5rem, 11vw, 9rem);
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(201, 143, 31, .28), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(214, 87, 143, .18), transparent 70%),
    var(--night);
}
.soon-inner { max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.soon .eyebrow { margin-bottom: 0; }
.soon p:not(.eyebrow) { color: rgba(250, 245, 238, .78); font-weight: 300; font-size: 1.15rem; }
.soon .btn { margin-top: 1rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--night); color: rgba(250, 245, 238, .75); border-top: 1px solid rgba(250, 245, 238, .08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-block: 4rem 3rem; }
.footer-brand img { width: 110px; margin-bottom: 1rem; }
.footer-brand p { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--cream); }
.site-footer h2 { font-family: var(--font-sans); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--gold-3); margin-bottom: 1.2rem; }
.site-footer li + li { margin-top: .6rem; }
.site-footer a { transition: color .25s; display: inline-block; padding-block: .3rem; }
.site-footer a:hover { color: var(--gold-3); }
.footer-bottom { padding-block: 1.6rem; border-top: 1px solid rgba(250, 245, 238, .1); font-size: .86rem; color: rgba(250, 245, 238, .5); }

/* 404 --------------------------------------------------------------------- */
.not-found {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; padding: 2rem; text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(236, 196, 106, .3), transparent 70%), var(--cream);
}
.not-found img { width: 120px; }
.not-found h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.not-found p { color: var(--ink-soft); }

/* Reveal on scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid-colecao .card:nth-child(2).reveal { transition-delay: .08s; }
.grid-colecao .card:nth-child(3).reveal { transition-delay: .16s; }
.grid-colecao .card:nth-child(4).reveal { transition-delay: .24s; }

/* Animações --------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { transform: translateY(26px); } to { transform: none; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes sway { 50% { transform: rotate(-1deg) translateY(-6px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(214, 87, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 87, 143, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-colecao, .grid-pecas { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(even) { margin-top: 0; }
  .card:nth-child(n+3) { margin-top: 0; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 1.8rem; }
  .nav a { font-family: var(--font-serif); font-size: 2.4rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
  .menu-open { overflow: hidden; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero { padding-bottom: 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-media { width: min(86%, 420px); }
  .badge { left: -.6rem; }

  .about-grid, .bs-grid, .details-grid { grid-template-columns: 1fr; }
  .bs-media { width: auto; justify-self: stretch; max-width: 480px; margin-inline: .8rem 1.6rem; }
  .bs-hat { right: -1.5rem; }
  .details-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .grid-colecao, .grid-pecas { gap: .9rem; }
  .piece-img img { inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); }
  .piece-body h3 { font-size: 1.4rem; }
  .bs-seal { width: 78px; height: 78px; font-size: 1.05rem; left: -.5rem; top: -1rem; }
  .card-body { flex-direction: column; gap: .2rem; }
  .card-body h3 { font-size: 1.4rem; }
  .card-body h3 small { display: block; margin: 0; }
  .marquee-track span { font-size: 1.35rem; }
}

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