/* ============ TOKENS ============ */
:root {
  --blue: #3878D6;
  --blue-deep: #1F4FA8;
  --navy: #16306B;
  --cream: #F5EBD3;
  --cream-soft: #FBF4E2;
  --cream-deep: #ECDDB8;
  --gold: #EFC987;
  --gold-deep: #D9A857;
  --brown: #8E4A1F;
  --brown-soft: #A75A2C;
  --pink: #E84A8C;
  --green: #5BA85A;
  --green-deep: #3F7A3E;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --line: rgba(22, 48, 107, 0.12);
  --line-soft: rgba(22, 48, 107, 0.06);

  --font-ui: 'Manrope', system-ui, sans-serif;
  --font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(22, 48, 107, 0.06);
  --shadow-md: 0 14px 40px -10px rgba(22, 48, 107, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(22, 48, 107, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream-soft); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(251, 244, 226, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo-img { height: 52px; }
.nav-logo-mark {
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(56, 120, 214, 0.32);
  transition: background 0.3s ease;
}
.nav-logo-mark svg { width: 70%; height: 70%; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text .script {
  font-family: var(--font-hand);
  font-size: 52px; font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: -2px;
  line-height: 0.95;
}
.nav-logo-text .meta {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brown-soft);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  position: relative;
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  background: rgba(251, 244, 226, 0.72);
  border: 1px solid rgba(22, 48, 107, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.nav-link:hover {
  background: white;
  border-color: rgba(56, 120, 214, 0.35);
  color: var(--blue);
  transform: translateY(-1px);
}
.nav-link.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.nav.scrolled .nav-link {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.scrolled .nav-link:hover {
  background: rgba(56, 120, 214, 0.08);
  border-color: transparent;
  color: var(--blue);
}
.nav.scrolled .nav-link.active {
  background: rgba(56, 120, 214, 0.12);
  color: var(--blue);
  border-color: transparent;
}
.nav-cta {
  margin-left: 12px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream-soft);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s ease, background 0.25s ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ============ PAGE TRANSITIONS ============ */
.page {
  animation: pageIn 0.6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ BUNTING (festas juninas) ============ */
.bunting {
  position: absolute; left: 0; right: 0; top: 0;
  height: 80px;
  pointer-events: none;
  overflow: visible;
}
.bunting svg { width: 100%; height: 100%; }

/* ============ HOME ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 48px 80px;
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.hero-bg-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(56,120,214,0.18), transparent 70%);
  top: -120px; right: -120px;
}
.hero-bg-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(239,201,135,0.32), transparent 70%);
  bottom: -80px; left: -80px;
}
.hero-palm {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}
.hero-palm-1 { left: -40px; bottom: -20px; width: 260px; transform: rotate(-8deg); }
.hero-palm-2 { right: -30px; top: 80px; width: 220px; transform: rotate(12deg); }

.hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(56, 120, 214, 0.1);
  border: 1px solid rgba(56, 120, 214, 0.18);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 28px;
}
.hero-eyebrow .star { color: var(--gold-deep); font-size: 14px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero h1 .script {
  font-family: var(--font-hand);
  color: var(--blue);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  font-feature-settings: "ss01";
}
.hero-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px -8px rgba(56,120,214,0.55);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(56,120,214,0.65); }
.btn-ghost {
  color: var(--navy);
  padding-left: 16px; padding-right: 16px;
}
.btn-ghost:hover { color: var(--blue); }
.btn-ghost .arrow { transition: transform 0.25s ease; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: grid; place-items: center;
}
.hero-product-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-product-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(239,201,135,0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(232,74,140,0.12), transparent 50%);
  pointer-events: none;
  z-index: 3;
}
.hero-product-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 1.6s ease-out;
  pointer-events: none;
}
.hero-product-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.hero-product-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 92%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.25));
}
.hero-product-dots {
  position: absolute;
  top: 24px; right: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.25s ease;
}
.hero-dot.active {
  width: 24px;
  border-radius: 999px;
  background: white;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hero-product-label {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: flex-end; align-items: end;
  z-index: 4;
}
.hero-product-label .name {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  text-align: right;
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(22, 48, 107, 0.08);
  animation: labelIn 0.5s cubic-bezier(.2,.7,.2,1);
}
@keyframes labelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-product-label .name small {
  display: block;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--blue);
  margin-top: 4px;
  font-weight: 600;
}

/* Featured strip */
.featured {
  padding: 100px 48px;
  background: var(--cream-soft);
  position: relative;
}
.featured-head {
  max-width: 1280px; margin: 0 auto 56px;
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
}
.featured-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.featured-head h2 em { font-style: italic; color: var(--blue); }
.featured-head p {
  font-size: 16px; color: var(--ink-soft);
  max-width: 380px; line-height: 1.55;
}
.featured-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============ CAROUSEL ============ */
.carousel {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 8px;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 40px 24px;
  margin: 0 -40px;
  scroll-padding-left: 40px;
  scroll-padding-right: 40px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 calc((100% - 80px - 60px) / 4);
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  min-width: 240px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -6px rgba(22, 48, 107, 0.28);
  border: 1px solid var(--line-soft);
  z-index: 10;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--blue);
  color: white;
  transform: translateY(-50%) scale(1.06);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel-btn-prev { left: -8px; }
.carousel-btn-next { right: -8px; }
.product-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover { transform: translateY(-8px); }
.product-card-bg {
  position: absolute; inset: 0;
}
.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.product-card-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: white;
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px;
}
.product-card-meta .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}
.product-card-meta h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  line-height: 1; letter-spacing: -0.01em;
}
.product-card-meta .more {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.product-card:hover .product-card-meta .more {
  background: white;
  color: var(--navy);
  transform: rotate(-45deg);
}

/* values */
.values {
  padding: 100px 48px;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
}
.values-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.value h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.value h3 em { color: var(--blue); font-style: italic; }
.value .num {
  font-family: var(--font-hand);
  font-size: 56px;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.value p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
}

/* ============ NOSSA HISTÓRIA ============ */
.story-hero {
  padding: 160px 48px 80px;
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.story-hero-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(56, 120, 214, 0.1);
  border: 1px solid rgba(56, 120, 214, 0.18);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 28px;
}
.story-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 28px;
}
.story-hero h1 em { color: var(--blue); font-style: italic; }
.story-hero h1 .script { font-family: var(--font-hand); color: var(--blue); font-weight: 700; }
.story-hero p {
  font-size: 20px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px; margin: 0 auto;
}

.story-quote {
  padding: 80px 48px;
  background: var(--cream-soft);
}
.story-quote-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 40px; align-items: center;
}
.story-quote-inner--solo {
  max-width: 900px;
  grid-template-columns: 1fr;
  text-align: center;
}
.story-quote-inner--solo .attr { text-align: center; }
.story-quote-img {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-hand);
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.story-quote-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
}
.story-quote q {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
  color: var(--navy);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  quotes: '\201C' '\201D';
}
.story-quote q::before, .story-quote q::after { color: var(--gold-deep); }
.story-quote .attr {
  margin-top: 16px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brown-soft);
}

.timeline {
  padding: 80px 48px 120px;
  background: var(--cream);
  position: relative;
}
.timeline-head {
  max-width: 1100px; margin: 0 auto 56px;
  text-align: center;
}
.timeline-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.timeline-head h2 em { color: var(--blue); font-style: italic; }
.timeline-line {
  max-width: 1100px; margin: 0 auto;
  position: relative;
}
.timeline-line::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-deep) 10%, var(--gold-deep) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-deep);
  border: 4px solid var(--cream);
  margin: 0 auto;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(217, 168, 87, 0.15);
}
.timeline-card {
  background: var(--cream-soft);
  padding: 32px 36px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.timeline-card .year {
  font-family: var(--font-hand);
  font-size: 44px;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.timeline-card p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
}
.timeline-item:nth-child(even) .timeline-card { grid-column: 3; text-align: left; }
.timeline-item:nth-child(odd) .timeline-card { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .empty { grid-column: 3; }

.process {
  padding: 100px 48px;
  background: var(--navy);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(239,201,135,0.15), transparent 70%);
  border-radius: 50%;
}
.process-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.process h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--cream-soft);
}
.process h2 em { color: var(--gold); font-style: italic; }
.process .lead {
  font-size: 17px; line-height: 1.6;
  max-width: 540px;
  opacity: 0.8;
  margin-bottom: 56px;
}
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,235,211,0.18);
  border-radius: 22px;
  overflow: hidden;
}
.process-step {
  background: var(--navy);
  padding: 32px;
  position: relative;
  transition: background 0.3s ease;
}
.process-step:hover { background: #1a3a78; }
.process-step .step-num {
  font-family: var(--font-hand);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 14px; line-height: 1.55;
  opacity: 0.75;
}

/* ============ PRODUTOS ============ */
.products-hero {
  padding: 160px 48px 60px;
  background: var(--cream-soft);
  text-align: center;
  position: relative;
}
.products-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1;
}
.products-hero h1 em { color: var(--blue); font-style: italic; }
.products-hero p {
  font-size: 19px; line-height: 1.55;
  max-width: 600px; margin: 0 auto;
  color: var(--ink-soft);
}

.products-filter {
  display: flex; justify-content: center;
  gap: 8px;
  padding: 32px 48px 0;
  background: var(--cream-soft);
  flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--navy); color: var(--cream-soft); border-color: var(--navy); }

.products-grid {
  max-width: 1380px; margin: 0 auto;
  padding: 56px 48px 120px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-detail {
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
  cursor: pointer;
  border: 1px solid var(--line-soft);
}
.product-detail:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.product-detail-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.product-detail-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.product-detail:hover .product-detail-img img { transform: scale(1.05); }
.product-detail-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.product-detail-body {
  padding: 28px 28px 32px;
  background: var(--cream-soft);
}
.product-detail-body .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.product-detail-body .meta .weight {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brown-soft);
}
.product-detail-body h3 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 400;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.product-detail-body p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  min-height: 66px;
}
.product-detail-cta {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-detail-cta .arrow { transition: transform 0.25s ease; }
.product-detail:hover .product-detail-cta .arrow { transform: translateX(4px); }

/* product modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(22, 48, 107, 0.5);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: grid; place-items: center;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--cream-soft);
  border-radius: 28px;
  max-width: 1000px; width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr;
  animation: modalIn 0.4s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { opacity:0; transform: scale(0.96) translateY(20px); } to { opacity:1; transform: none; } }
.modal-img {
  position: relative;
  overflow: hidden;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-body {
  padding: 48px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  color: var(--navy);
  z-index: 2;
  transition: transform 0.2s ease;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-body .tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown-soft);
  margin-bottom: 16px;
}
.modal-body h2 {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 400;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.modal-body h2 em { color: var(--blue); font-style: italic; }
.modal-body .desc {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.modal-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  background: white;
  border-radius: 16px;
}
.modal-spec .label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brown-soft);
  margin-bottom: 4px;
}
.modal-spec .value {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
}
.modal-ingredients h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.modal-ingredients p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-soft);
}

/* ============ CONTATO ============ */
.contact-hero {
  padding: 160px 48px 60px;
  background: var(--cream-soft);
  text-align: center;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1;
}
.contact-hero h1 em { color: var(--blue); font-style: italic; }
.contact-hero p {
  font-size: 19px; line-height: 1.55;
  max-width: 600px; margin: 0 auto;
  color: var(--ink-soft);
}

.contact-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 60px 48px 100px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--cream-soft);
  padding: 48px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(239,201,135,0.18), transparent 70%);
  border-radius: 50%;
}
.contact-info-card h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  position: relative;
}
.contact-info-card h2 em { color: var(--gold); font-style: italic; }
.contact-info-card .intro {
  font-size: 15px; line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 36px;
  position: relative;
}
.contact-row {
  display: flex; align-items: start; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(245,235,211,0.16);
  position: relative;
}
.contact-row:last-child { border-bottom: 1px solid rgba(245,235,211,0.16); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(239,201,135,0.16);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-row .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-row .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream-soft);
  line-height: 1.3;
}

.contact-form {
  background: var(--cream-soft);
  padding: 8px;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.contact-form .sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 16px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brown-soft);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56,120,214,0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-submit {
  width: 100%;
  padding: 18px;
  background: var(--blue);
  color: white;
  border-radius: 14px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 8px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.contact-submit:hover { background: var(--blue-deep); transform: translateY(-2px); }
.contact-success {
  background: rgba(91,168,90,0.1);
  border: 1px solid rgba(91,168,90,0.3);
  color: var(--green-deep);
  padding: 18px;
  border-radius: 14px;
  font-size: 14px; font-weight: 600;
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--cream-soft);
  padding: 80px 48px 40px;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .script {
  font-family: var(--font-hand);
  font-size: 64px;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.footer-brand .meta {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.6;
  opacity: 0.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(245,235,211,0.16);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.6;
}

/* ============ MOBILE BURGER + MENU ============ */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(251, 244, 226, 0.72);
  border: 1px solid rgba(22, 48, 107, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream-soft);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  padding: 100px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: white;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mobile-link.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.mobile-link-cta {
  margin-top: 12px;
  background: var(--navy);
  color: var(--cream-soft);
  border-color: var(--navy);
  font-size: 22px;
  gap: 14px;
}
.mobile-link-cta.active { background: var(--blue); border-color: var(--blue); }
.mobile-menu-meta {
  margin-top: 32px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-ui);
}

/* ============ RESPONSIVE — TABLET (≤ 980px) ============ */
@media (max-width: 980px) {
  .nav { padding: 14px 24px; }
  .nav.scrolled { padding: 10px 24px; }
  .nav-logo-img { height: 52px; }
  .nav.scrolled .nav-logo-img { height: 44px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero { padding: 110px 24px 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: clamp(38px, 7vw, 56px); }
  .hero-sub { font-size: 17px; }
  .hero-palm { display: none; }

  /* Sections */
  .featured, .values, .timeline, .process, .contact-grid { padding-left: 24px; padding-right: 24px; }
  .featured { padding-top: 72px; padding-bottom: 72px; }
  .values { padding-top: 72px; padding-bottom: 72px; }
  .featured-head { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 36px; }
  .featured-head h2 { font-size: clamp(30px, 4vw, 44px); }
  .featured-head p { max-width: 100%; }

  /* Grids: 2 cols on tablet */
  .featured-grid, .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .carousel-item { flex: 0 0 calc((100% - 40px - 40px) / 2); min-width: 200px; }
  .carousel-btn { width: 44px; height: 44px; }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 72px; }
  .contact-info-card { padding: 36px 28px; }
  .contact-info-card h2 { font-size: 30px; }
  .contact-hero, .products-hero, .story-hero { padding-left: 24px; padding-right: 24px; padding-top: 120px; padding-bottom: 40px; }

  /* Story */
  .story-quote { padding: 56px 24px; }
  .story-quote q { font-size: clamp(20px, 2.6vw, 28px); }

  /* Footer */
  .footer { padding: 56px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .script { font-size: 56px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Modal */
  .modal-back { padding: 16px; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-img { aspect-ratio: 4/3; max-height: 280px; }
  .modal-body { padding: 32px 28px; }
  .modal-body h2 { font-size: 38px; }

  /* Products page */
  .products-grid { padding: 36px 24px 80px; }
  .product-detail-body { padding: 22px 22px 26px; }
  .product-detail-body h3 { font-size: 26px; }
  .product-detail-body p { min-height: auto; }
}

/* ============ RESPONSIVE — PHONE (≤ 640px) ============ */
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .nav.scrolled { padding: 8px 18px; }
  .nav-logo-img { height: 44px; }
  .nav.scrolled .nav-logo-img { height: 38px; }
  .nav-burger { width: 42px; height: 42px; }

  /* Hero */
  .hero { padding: 100px 18px 56px; }
  .hero-inner { gap: 32px; }
  .hero-eyebrow { font-size: 11px; padding: 7px 14px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.05; margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 14px 18px; font-size: 13px; }
  .hero-actions .btn-ghost { flex: 0 0 auto; padding: 14px 8px; }
  .hero-visual { height: 360px; }
  .hero-product-label { bottom: 16px; left: 16px; right: 16px; }
  .hero-product-label .name { font-size: 20px; padding: 14px 18px; border-radius: 14px; }
  .hero-product-label .name small { font-size: 16px; }

  /* Featured / single column products on phone */
  .featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .carousel { padding: 0; }
  .carousel-track { gap: 14px; padding: 4px 18px 20px; margin: 0 -18px; scroll-padding-left: 18px; scroll-padding-right: 18px; }
  .carousel-item { flex: 0 0 78%; min-width: 0; aspect-ratio: 4/5; }
  .carousel-btn { display: none; }
  .product-card { aspect-ratio: 4/3; }
  .product-card-meta { padding: 18px; }
  .product-card-meta h3 { font-size: 24px; }

  /* Values */
  .value h3 { font-size: 24px; }
  .value .num { font-size: 44px; }

  /* Products page */
  .products-hero h1 { font-size: clamp(40px, 9vw, 56px); }
  .products-hero p { font-size: 16px; }
  .products-filter { padding: 24px 18px 0; gap: 6px; }
  .filter-chip { padding: 9px 18px; font-size: 12px; }
  .products-grid { grid-template-columns: 1fr; gap: 16px; padding: 32px 18px 64px; }

  /* Story */
  .story-hero h1 { font-size: clamp(40px, 9vw, 56px); }
  .story-hero p { font-size: 17px; }
  .story-quote-inner--solo { padding: 0 4px; }

  /* Contact */
  .contact-hero h1 { font-size: clamp(40px, 9vw, 56px); }
  .contact-hero p { font-size: 16px; }
  .contact-grid { padding-left: 18px; padding-right: 18px; gap: 24px; }
  .contact-info-card { padding: 30px 22px; border-radius: 22px; }
  .contact-info-card h2 { font-size: 26px; }
  .contact-info-card .intro { font-size: 14px; }
  .contact-row { gap: 12px; padding: 16px 0; }
  .contact-row .value { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form h3 { font-size: 24px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; /* prevents iOS zoom */ }

  /* Modal */
  .modal-back { padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-height: 96vh; align-self: end; width: 100%; max-width: 100%; }
  .modal-body { padding: 28px 22px 32px; }
  .modal-body h2 { font-size: 32px; }
  .modal-body .desc { font-size: 15px; }
  .modal-specs { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
  .modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }

  /* Footer */
  .footer { padding: 48px 22px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand .script { font-size: 48px; }
  .footer-bottom { font-size: 11px; padding-top: 20px; }

  /* Mobile menu type scale on small phones */
  .mobile-menu-inner { padding: 90px 20px 40px; }
  .mobile-link { font-size: 24px; padding: 20px; }
  .mobile-link-cta { font-size: 20px; }
}

/* ============ RESPONSIVE — SMALL PHONE (≤ 380px) ============ */
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .nav-logo-img { height: 38px; }
}
