/* ==========================================================================
   Patula Modas — Landing Page
   Base + Tema Claro (Versão 1 · "boutique de dia")
   --------------------------------------------------------------------------
   Conceito: monograma de anel duplo "P" como assinatura recorrente.
   Tipografia: Bodoni Moda (display editorial) · Inter (corpo)
   Cores (claro): porcelana · areia · carvão quente · rosé-cobre
   O tema escuro (Versão 2) só sobrescreve as variáveis em css/theme-dark.css.
   ========================================================================== */

:root {
  /* Paleta — Versão 1 (clara) */
  --bg:          #FBF8F4;   /* porcelana */
  --bg-alt:      #F1EAE0;   /* areia */
  --surface:     #FFFFFF;
  --ink:         #23201E;   /* carvão quente */
  --ink-soft:    #6E655D;
  --ink-faint:   rgba(35,32,30,0.55);
  --accent:      #B27B74;   /* rosé-cobre (dessaturado, sem "candy") */
  --accent-deep: #96625C;
  --accent-soft: #EADCD6;
  --line:        rgba(35,32,30,0.12);
  --line-strong: rgba(35,32,30,0.22);
  --hero-scrim:  linear-gradient(180deg, rgba(22,19,17,0.30) 0%, rgba(22,19,17,0.15) 40%, rgba(22,19,17,0.62) 100%);
  --shadow:      0 24px 60px -28px rgba(35,32,30,0.35);
  --shadow-soft: 0 12px 32px -18px rgba(35,32,30,0.28);

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --max:   74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --header-h: 4.75rem;
}

/* Reset leve --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

/* Utilitários -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bg-alt { background-color: var(--bg-alt); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.v { white-space: pre-line; }


/* Eyebrow com "anel" do monograma ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.72rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px;
  border: 1.5px solid currentColor; flex: 0 0 auto;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.section-head p.lead { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 34rem; }
.is-center .eyebrow { justify-content: center; }
.is-center p.lead { margin-inline: auto; }

/* Botões ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border-radius: 999px; padding: 0.9rem 1.7rem;
  font-weight: 500; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #A79D93; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.5); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Estado "sem número de WhatsApp" (placeholder) */
.btn-disabled { background: var(--bg-alt); color: var(--ink-faint); cursor: default; border-color: var(--line); box-shadow: none; }
.btn-disabled:hover { transform: none; background: var(--bg-alt); color: var(--ink-faint); }

/* Monograma de anel duplo (assinatura da marca) --------------------------- */
.mono { display: block; color: var(--accent); }
.mono--ring { animation: mono-spin 60s linear infinite; transform-origin: center; }

@keyframes mono-spin { to { transform: rotate(360deg); } }

/* Animação reveal (só ativa quando há JS) ---------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* HEADER fixo -------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  color: #fff;                 /* sobre o hero */
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 2.15rem; height: 2.15rem; color: currentColor; flex: 0 0 auto; }
.brand__word { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.92rem; font-weight: 600; padding-left: 0.05em; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a:not(.btn) { font-size: 0.9rem; letter-spacing: 0.01em; position: relative; padding-block: 0.35rem; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: currentColor; transition: width 0.25s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-header.is-scrolled .site-nav .btn-ghost { border-color: var(--line-strong); }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer;
  position: relative; border-radius: 999px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 1.4rem; height: 2px; background: currentColor; transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* HERO --------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
  padding-block: calc(var(--header-h) + 2rem) clamp(3rem, 8vw, 5.5rem);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__ring {
  position: absolute; right: -12vw; top: 8vh; width: 46vw; max-width: 620px; aspect-ratio: 1;
  color: rgba(255,255,255,0.16); pointer-events: none;
}
.hero__content { position: relative; z-index: 1; width: 100%; }
.hero__inner { max-width: 46rem; }
.hero__tagline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 1.25rem;
}
.hero__tagline::before { content: ""; width: 2.2rem; height: 1px; background: rgba(255,255,255,0.6); }
.hero__title { font-size: clamp(2.8rem, 9vw, 5.75rem); }
.hero__title em { font-style: italic; color: #fff; }
.hero__subtitle { max-width: 32rem; margin-top: 1.35rem; font-size: 1.12rem; color: rgba(255,255,255,0.9); }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.4rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(255,255,255,0.8);
}
.hero__scroll .line { width: 2.4rem; height: 1px; background: currentColor; transform-origin: left; animation: scroll-line 2.4s ease-in-out infinite; }
@keyframes scroll-line { 0%,100% { transform: scaleX(0.35); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* Faixa de valor (marquee sutil, encerra o "picolé") ---------------------- */
.value-strip { border-block: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.value-strip__track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  padding-block: 1.05rem; animation: value-marquee 32s linear infinite;
}
.value-strip__track span {
  display: inline-flex; align-items: center; gap: 2.5rem;
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink); white-space: nowrap;
}
.value-strip__track span::after {
  content: ""; width: 0.42rem; height: 0.42rem; border-radius: 999px; border: 1.5px solid var(--accent);
}
.value-strip:hover .value-strip__track { animation-play-state: paused; }
@keyframes value-marquee { to { transform: translateX(-50%); } }

/* Coleções ----------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card-colecao {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-colecao:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-colecao__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-colecao__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card-colecao:hover .card-colecao__media img { transform: scale(1.06); }
/* Placeholder tipográfico (enquanto não há foto) */
.card-colecao__media.is-placeholder { background: linear-gradient(150deg, var(--accent-soft), var(--bg-alt)); }
.card-colecao__media .ph-mono { width: 34%; aspect-ratio: 1; color: var(--accent); opacity: 0.6; }
.card-colecao__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
}
.card-colecao__name { font-family: var(--serif); font-size: 1.5rem; }
.card-colecao__hint { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }

/* Sobre -------------------------------------------------------------------- */
.sobre-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .sobre-grid { grid-template-columns: 1.05fr 1fr; } }
.sobre__media { position: relative; }
.sobre__media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.sobre__media .mono-badge {
  position: absolute; right: -1.1rem; bottom: -1.1rem; width: 5.5rem; height: 5.5rem;
  background: var(--bg); border-radius: 999px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.sobre__media .mono-badge svg { width: 62%; aspect-ratio: 1; color: var(--accent); }
.sobre__text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.1rem; }
.sobre__text p.body { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1rem; }
.sobre__meta { display: flex; gap: 2.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.sobre__meta .num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; }
.sobre__meta .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-top: 0.35rem; }

/* Diferenciais ------------------------------------------------------------- */
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card-dif {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card-dif:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.card-dif__icon {
  width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.card-dif__icon svg { width: 1.4rem; height: 1.4rem; }
.card-dif h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.card-dif p { font-size: 0.92rem; color: var(--ink-soft); }

/* Instagram ---------------------------------------------------------------- */
.ig-viewport {
  overflow: hidden; position: relative; width: 100%; margin-top: 0.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.ig-track { display: flex; gap: 1rem; width: max-content; animation: ig-marquee 45s linear infinite; }
.ig-viewport:hover .ig-track, .ig-viewport:focus-within .ig-track { animation-play-state: paused; }
.ig-slide {
  flex: 0 0 auto; width: 15rem; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent-soft), var(--bg-alt));
}
.ig-slide img { width: 100%; height: 100%; object-fit: cover; }
.ig-slide .ph-mono { width: 42%; aspect-ratio: 1; color: var(--accent); opacity: 0.55; }
.ig-slide:nth-child(even) { background: linear-gradient(150deg, var(--bg-alt), var(--accent-soft)); }
@keyframes ig-marquee { to { transform: translateX(-50%); } }
.ig-cta { text-align: center; margin-top: 2.25rem; }

/* Visite a loja ------------------------------------------------------------ */
.visite-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 860px) { .visite-grid { grid-template-columns: 1fr 1fr; } }
.visite__info img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; object-fit: cover; aspect-ratio: 16 / 10; }
.visite__list { list-style: none; }
.visite__list li { display: flex; gap: 0.85rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.visite__list li:last-child { border-bottom: 0; }
.visite__list .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); min-width: 5.5rem; padding-top: 0.2rem; }
.visite__list .v { color: var(--ink); }
.visite__map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.visite__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.visite__map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  height: 100%; min-height: 320px; padding: 2rem; text-align: center; color: var(--ink-faint);
}
.visite__map-placeholder svg { width: 2.5rem; color: var(--accent); opacity: 0.6; }

/* CTA final — foto + overlay (fim do "picolé") ---------------------------- */
.cta-final {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding-block: clamp(4.5rem, 12vw, 8rem);
}
.cta-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,17,0.55), rgba(22,19,17,0.78)); }
.cta-final .container { position: relative; z-index: 1; }
.cta-final .eyebrow { color: #fff; }
.cta-final .eyebrow::before { border-color: rgba(255,255,255,0.7); }
.cta-final h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.9rem; }
.cta-final p { color: rgba(255,255,255,0.9); max-width: 34rem; margin-inline: auto; }
.cta-final .btn { margin-top: 2rem; }

/* Rodapé ------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--bg); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer .container { display: grid; gap: 2.5rem; }
@media (min-width: 780px) { .footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand { color: var(--bg); margin-bottom: 1rem; }
.footer__brand .brand__mark { color: var(--accent); }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 22rem; }
.footer__col h4 { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 1rem; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.75); font-size: 0.92rem; padding-block: 0.3rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.75rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer__bottom p { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer__switch {
  font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.45rem 1rem;
}
.footer__switch:hover { border-color: var(--accent); color: #fff; }

/* Botão flutuante WhatsApp ------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 55;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
  transform: translateY(6rem); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease;
}
.wa-float.is-visible { transform: translateY(0); opacity: 1; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 1.75rem; height: 1.75rem; }

/* Aviso de cookies --------------------------------------------------------- */
.cookie {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 56;
  background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: 1rem 1.15rem; font-size: 0.85rem; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem;
}
@media (min-width: 780px) { .cookie { left: auto; right: 1.25rem; max-width: 26rem; } }
.cookie p { flex: 1 1 14rem; }
.cookie a { color: var(--accent); text-decoration: underline; }
.cookie[hidden] { display: none; }

/* Menu mobile -------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; z-index: 61; }
  .site-nav {
    position: fixed; inset: 0; z-index: 60;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    color: var(--ink);
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { font-family: var(--serif); font-size: 1.6rem; }
  .site-nav .btn { margin-top: 0.5rem; }
}

/* Página de privacidade ---------------------------------------------------- */
.doc { max-width: 46rem; margin-inline: auto; padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
.doc p { color: var(--ink-soft); margin-bottom: 1rem; }
.doc a { color: var(--accent); }

/* Acessibilidade: reduzir movimento --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ig-track, .value-strip__track { animation: none; transform: none; }
  .ig-viewport { overflow-x: auto; }
  .value-strip__track { justify-content: center; width: 100%; flex-wrap: wrap; }
}
