/* ============================================================
   VERNAZZA COFFEE ROASTERS - Main CSS (v2 - Modern & Cool)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #050505;
  --dark: #0d0d0d;
  --dark2: #141414;
  --gold: #C9A96E;
  --gold-light: #e8c98a;
  --gold-dark: #a07840;
  --white: #FFFFFF;
  --white-dim: rgba(255,255,255,0.6);
  --white-faint: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-gold: rgba(201,169,110,0.3);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ---- Selection ---- */
::selection { background: var(--gold); color: var(--black); }

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display {
  font-family: 'Playfair Display', serif;
}

/* Smaller font sizes globally */
html {
  font-size: 14px; /* Reduced from 16px */
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

/* Adjust button font sizes */
.btn-primary,
.btn-outline,
.btn-gold {
  font-size: 0.65rem; /* Reduced from 0.7rem */
}

/* Adjust navigation font sizes */
.nav-link {
  font-size: 0.6rem; /* Reduced from 0.65rem */
}

/* Adjust section labels */
.section-label {
  font-size: 0.55rem; /* Reduced from 0.6rem */
}

/* Adjust marquee text */
.marquee-item {
  font-size: 0.6rem; /* Reduced from 0.65rem */
}

/* Adjust form input text */
.form-input {
  font-size: 0.8125rem; /* Reduced from 0.875rem */
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--gold);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  background: transparent;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#header.scrolled {
  background: rgba(5, 5, 5, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  position: relative;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.15);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   SWIPER CUSTOMIZATION
   ============================================================ */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.3) !important;
  opacity: 1 !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 32px !important;
  border-radius: 0 !important;
}

.testimonials-swiper .swiper-pagination {
  bottom: 0;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up    { transform: translateY(60px); }
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-fade  { transform: scale(0.96); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays for process cards - 1 second each */
.stagger-1 { transition-delay: 1.0s; }
.stagger-2 { transition-delay: 2.0s; }
.stagger-3 { transition-delay: 3.0s; }
.stagger-4 { transition-delay: 4.0s; }

/* ============================================================
   PROCESS CARDS
   ============================================================ */
.process-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--dark2);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.process-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
}

.process-card:hover::before { opacity: 1; }

.process-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(201,169,110,0.08);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: color 0.5s ease;
}

.process-card:hover .process-number {
  color: rgba(201,169,110,0.15);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1.25rem;
  color: var(--white);
  font-size: 0.8125rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-input:focus {
  border-color: var(--gold);
  background: rgba(201,169,110,0.03);
}

select.form-input option {
  background: var(--dark);
  color: var(--white);
}

/* ============================================================
   PARALLAX
   ============================================================ */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Extreme parallax effect */
.parallax-extreme .parallax-bg {
  transform: scale(1.5);
}

/* ============================================================
   CONTENT PADDING
   ============================================================ */
.content-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (max-width: 768px) {
  .content-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ============================================================
   B2B WHOLESALE — STICKY HORIZONTAL SCROLL
   ============================================================ */

/*
  Layout:
  - .b2b-sticky-outer  → tall section that "consumes" scroll
  - .b2b-sticky-inner  → sticky viewport (100vh)
  - .b2b-track-wrap    → overflow:hidden clip
  - .b2b-track         → the row of cards, translated by JS
  Cards are 38vw wide (desktop) so 2.5 fit in view at once.
*/

.b2b-sticky-outer {
  /* Height = viewport + extra scroll room for all cards.
     JS reads this to compute how far to translate. */
  position: relative;
  background: var(--black);
}

.b2b-sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
}

/* ---- Header ---- */
.b2b-header {
  margin-top: 5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.b2b-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.b2b-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.b2b-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

/* ---- Track ---- */
.b2b-track-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.b2b-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.05s linear;
  /* no transition — JS drives it smoothly via lerp */
  transition: none;
  align-items: stretch;
}

/* ---- Card background image ---- */
.b2b-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 0.5s ease, transform 0.6s ease;
  transform: scale(1.05);
  z-index: 0;
}

.b2b-card:hover .b2b-card__bg {
  opacity: 0.28;
  transform: scale(1.0);
}

/* First card: blurred background */
.b2b-card:first-child .b2b-card__bg {
  filter: blur(6px);
  opacity: 0.22;
}

/* ---- Cards ---- */
.b2b-card {
  flex-shrink: 0;
  width: 38vw;
  max-width: 520px;
  min-height: 320px;
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

/* All content inside card must sit above the bg image */
.b2b-card > *:not(.b2b-card__bg):not(.b2b-cta__glow) {
  position: relative;
  z-index: 1;
}

.b2b-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.75) 100%);
  z-index: 0;
  transition: opacity 0.4s ease;
}

.b2b-card:hover {
  border-color: rgba(201,169,110,0.4);
  transform: translateY(-6px);
}

/* Icon */
.b2b-card__icon {
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.b2b-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Number */
.b2b-card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(201,169,110,0.07);
  line-height: 1;
  transition: color 0.4s ease;
}

.b2b-card:hover .b2b-card__num {
  color: rgba(201,169,110,0.14);
}

/* Title */
.b2b-card__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

/* Text */
.b2b-card__text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

/* List */
.b2b-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.b2b-card__list li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  padding-left: 1.25rem;
  position: relative;
}

.b2b-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 1px;
  background: var(--gold);
}

/* ---- CTA Card ---- */
.b2b-card--cta {
  background: linear-gradient(135deg, #1a1208 0%, #0d0d0d 100%);
  border-color: rgba(201,169,110,0.25);
  justify-content: center;
  gap: 1.5rem;
}

.b2b-cta__glow {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.b2b-cta__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.b2b-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.b2b-cta__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.b2b-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.b2b-cta__btn:hover {
  background: transparent;
  color: var(--gold);
}

/* ---- Progress bar ---- */
.b2b-progress-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  right: 4rem;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.b2b-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}

/* ---- Mobile: disable sticky, stack cards vertically ---- */
@media (max-width: 900px) {
  .b2b-sticky-inner {
    position: relative;
    height: auto;
    padding: 4rem 1.5rem 3rem;
    overflow: visible;
  }

  .b2b-header {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .b2b-track-wrap {
    overflow: visible;
    flex: none;
    display: block;
  }

  .b2b-track {
    flex-direction: column;
    transform: none !important;
    gap: 1.25rem;
    align-items: stretch;
  }

  .b2b-card {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
  }

  /* Remove blur on first card on mobile — less distracting */
  .b2b-card:first-child .b2b-card__bg {
    filter: none;
  }

  .b2b-progress-bar { display: none; }
}

/* Increased margins for contact section */
#contacto .container {
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}

@media (max-width: 768px) {
  #contacto .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Increased margins for footer */
footer .container {
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}

@media (max-width: 768px) {
  footer .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* ============================================================
   LIGHT SECTION
   ============================================================ */
.section-light {
  background: linear-gradient(to bottom, #F5F0E8 0%, #E8DCC8 100%);
  color: #1a1a1a;
}

.section-light h2,
.section-light h3 {
  color: #1a1a1a;
}

.section-light p {
  color: rgba(26, 26, 26, 0.7);
}

.section-light .text-brand-gold {
  color: #8B4513 !important;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item.open { border-color: rgba(201,169,110,0.3); }

.faq-icon { transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   SOBRE NÓS — PARALLAX DOIS PAINÉIS (imagem esq / texto dir)
   ============================================================ */

/*
  Dois painéis lado a lado, cada um com velocidade de parallax diferente:
    Painel imagem  → speed 0.2  (move pouco — parece mais fundo)
    Painel texto   → speed 0.6  (move mais  — parece mais perto)
  O desfasamento entre os dois cria a ilusão de profundidade.
*/

.sobre-section {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* ---- PAINEL ESQUERDO: Imagem ---- */
.sobre-img-panel {
  position: relative;
  width: 75%;
  overflow: hidden;
  will-change: transform;
  flex-shrink: 0;
}

.sobre-img-wrap {
  position: absolute;
  /* overscan: mais alto que o painel para o parallax ter espaço */
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
}

.sobre-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sobre-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 30%,
    rgba(10,10,10,0.6) 65%,
    var(--black) 90%
  );
}

/* Badge sobre a imagem */
.sobre-badge {
  position: absolute;
  bottom: 3rem;
  right: -1.5rem;
  z-index: 10;
  background: var(--gold);
  color: var(--black);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(201,169,110,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.sobre-badge__number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.sobre-badge__label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- PAINEL DIREITO: Texto ---- */
.sobre-txt-panel {
  width: 50%;
  display: flex;
  align-items: center;
  will-change: transform;
  flex-shrink: 0;
  margin-left: -25%;
  position: relative;
  z-index: 2;
}

.sobre-txt-inner {
  padding: 8rem 5rem 8rem 4rem;
  max-width: 580px;
}

.sobre-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.sobre-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.sobre-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.sobre-divider {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.75rem;
}

.sobre-text {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

/* ---- Mobile: esconde imagem, só texto ---- */
@media (max-width: 900px) {
  .sobre-section {
    flex-direction: column;
    min-height: auto;
  }

  .sobre-img-panel {
    display: none;
  }

  .sobre-txt-panel {
    width: 100%;
    margin-left: 0;
  }

  .sobre-txt-inner {
    padding: 4rem 2rem;
    max-width: 100%;
  }

  .sobre-txt-inner .btn-outline {
    display: none;
  }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  transition: background 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(5, 5, 5, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

#mobile-menu.scrolled {
  background: rgba(5, 5, 5, 0.25) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .btn-primary,
  .btn-outline,
  .btn-gold {
    padding: 0.875rem 2rem;
    font-size: 0.65rem;
  }
}