/* ============ D'SSENZA — Landing Page ============ */

:root {
  --cream: #f6ecdd;
  --cream-dark: #ecdec2;
  --gold: #b8935a;
  --gold-light: #d9b877;
  --dark: #1c1712;
  --dark-soft: #2b241c;
  --text: #3a332c;
  --white: #fffaf2;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;

  --container: 1180px;
  --transition: .35s cubic-bezier(.25,.8,.25,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--dark); }

.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.section { padding: 110px 0; }
.section-sub { max-width: 560px; margin: 18px auto 0; color: var(--text); opacity: .8; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 40px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(184,147,90,.35); }

.btn-outline {
  border-color: var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-outline-light {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-outline-light:hover { background: var(--gold-light); color: var(--dark); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(255,250,242,.4);
  padding: 10px 22px;
  font-size: .72rem;
  transition: var(--transition), color .35s ease, border-color .35s ease;
}
.btn-ghost:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 18px 0;
  transition: var(--transition);
  background: linear-gradient(to bottom, rgba(20,17,13,.55), transparent);
}
.site-header.scrolled {
  background: rgba(246, 236, 221, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 12px 0;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,250,242,.5);
}
.logo-mark span {
  font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .12em;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  transition: color .35s ease;
}

.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 34px; }
.main-nav a {
  text-decoration: none; color: var(--white); font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
  position: relative; padding-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  transition: color .35s ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold-light); transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; flex-direction: column; justify-content: space-between; }
.nav-toggle span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: background .35s ease;
}

/* header text turns dark once the cream bar appears behind it */
.site-header.scrolled .logo-mark span,
.site-header.scrolled .main-nav a,
.site-header.scrolled .btn-ghost {
  color: var(--dark);
  text-shadow: none;
}
.site-header.scrolled .logo-mark img { box-shadow: none; }
.site-header.scrolled .main-nav a::after { background: var(--gold); }
.site-header.scrolled .nav-toggle span { background: var(--dark); box-shadow: none; }
.site-header.scrolled .btn-ghost {
  border-color: rgba(28,23,18,.25);
}
.site-header.scrolled .btn-ghost:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* mobile dropdown always sits on a cream panel, regardless of scroll state */
.main-nav.open a { color: var(--dark); text-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 130px 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(184,147,90,.22), transparent 38%),
              radial-gradient(circle at 18% 80%, rgba(255,250,242,.08), transparent 42%),
              linear-gradient(145deg, #15110e 0%, #251d17 55%, #171310 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.05), transparent 70%);
}

.hero-content { position: relative; z-index: 2; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  align-items: center; gap: clamp(48px, 8vw, 110px);
}
.hero-copy { max-width: 610px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  color: rgba(255,250,242,.75);
  max-width: 520px; margin: 0 0 40px;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,250,242,.4); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--dark); }

.hero-visual { position: relative; justify-self: end; width: min(100%, 470px); }
.hero-image-frame {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 220px 220px 18px 18px;
  box-shadow: 0 38px 80px rgba(0,0,0,.38);
  border: 1px solid rgba(255,250,242,.2);
}
.hero-image-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,.52), transparent 42%);
  pointer-events: none;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-image-label {
  position: absolute; z-index: 2; left: 26px; bottom: 24px;
  color: var(--white); font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; letter-spacing: .02em;
}

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block; width: 22px; height: 34px; border: 1px solid rgba(255,250,242,.5);
  border-radius: 20px; position: relative;
}
.scroll-cue span::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold-light); border-radius: 2px;
  animation: cueMove 1.6s infinite;
}
@keyframes cueMove {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Essência ---------- */
.essence-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.essence-image img {
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(28,23,18,.18);
}
.essence-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.essence-text > p { opacity: .85; margin-bottom: 28px; max-width: 460px; }

.essence-values { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.essence-values li {
  display: flex; align-items: baseline; gap: 16px;
  font-size: .95rem; color: var(--text);
}
.essence-values li span {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1rem; min-width: 26px;
}

/* ---------- Nossa História (slideshow) ---------- */
.story { background: var(--cream); }

.story-slider {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  isolation: isolate;
}
.story-slider::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(184,147,90,.42);
  border-radius: 14px;
  z-index: -1;
}
.story-track {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(28,23,18,.18);
  background: var(--cream-dark);
}
.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.story-slide.active { opacity: 1; visibility: visible; }
.story-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04);
  transition: transform 5.5s ease-out;
}
.story-slide.active img { transform: scale(1); }

.story-counter {
  position: absolute; z-index: 3; right: 18px; top: 18px;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 30px;
  background: rgba(28,23,18,.62); color: var(--white);
  font-size: .66rem; letter-spacing: .12em;
  backdrop-filter: blur(7px);
}
.story-counter-line { width: 16px; height: 1px; background: var(--gold-light); }
.story-progress {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 4px; background: rgba(255,250,242,.28);
}
.story-progress span { display: block; width: 0; height: 100%; background: var(--gold-light); }
.story-progress span.running { animation: storyProgress 5s linear forwards; }
@keyframes storyProgress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .story-slide, .story-slide img { transition: none; }
  .story-progress span.running { animation: none; width: 100%; }
}

.story-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,250,242,.85);
  color: var(--dark);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(28,23,18,.2);
  transition: var(--transition);
}
.story-arrow:hover { background: var(--gold); color: var(--white); }
.story-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.story-prev { left: -20px; }
.story-next { right: -20px; }

.story-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.story-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(28,23,18,.25); cursor: pointer; padding: 0;
  transition: var(--transition);
}
.story-dots button.active { background: var(--gold); width: 22px; border-radius: 5px; }

/* ---------- Coleção ---------- */
.collection { background: var(--cream-dark); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card { text-align: center; }
.product-thumb {
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 16px 32px rgba(28,23,18,.14);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-name { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dark); font-weight: 600; }
.product-tagline { font-size: .82rem; color: var(--text); opacity: .75; margin-top: 4px; font-style: italic; }
.product-link {
  display: inline-block; margin-top: 10px;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.product-link:hover { color: var(--dark); border-color: var(--dark); }

/* ---------- Como comprar ---------- */
.shopping { background: var(--cream); }
.shopping-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.shopping-card {
  padding: 34px 30px; border: 1px solid rgba(184,147,90,.32);
  border-radius: 12px; background: rgba(255,250,242,.62);
  box-shadow: 0 18px 40px rgba(28,23,18,.06);
}
.shopping-number {
  display: block; margin-bottom: 18px; color: var(--gold);
  font-family: var(--font-serif); font-size: 1rem; letter-spacing: .12em;
}
.shopping-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.shopping-card p { font-size: .9rem; opacity: .82; }

/* ---------- Instagram CTA ---------- */
.insta-cta {
  background: linear-gradient(135deg, #241d16, #171310);
  text-align: center;
}
.insta-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.insta-cta .eyebrow { color: var(--gold-light); }
.insta-cta .section-sub { color: rgba(255,250,242,.7); margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,250,242,.7); padding: 50px 0 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,250,242,.12);
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.footer-name { font-family: var(--font-serif); color: var(--white); letter-spacing: .1em; font-size: 1.1rem; }
.footer-tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }

.footer-social { display: flex; gap: 26px; }
.footer-social a { color: rgba(255,250,242,.75); text-decoration: none; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-social a:hover { color: var(--gold-light); }

.footer-bottom { text-align: center; padding: 24px 0; font-size: .8rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr 340px; gap: 42px; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
  .essence-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shopping-grid { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; }
}

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

  .main-nav.open {
    display: flex; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: center;
    padding: 30px 0; gap: 22px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .hero { padding-top: 118px; text-align: center; }
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 650px; margin: 0 auto; }
  .hero .eyebrow { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-self: center; width: min(82vw, 430px); }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .hero { padding: 105px 0 70px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { width: min(88vw, 390px); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .story-slider { max-width: calc(100% - 24px); }
  .story-slider::before { inset: 16px -12px -16px 12px; }
  .story-prev { left: -14px; }
  .story-next { right: -14px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
