/* Landing Page Layout */
.hero-section {
  position: relative;
  min-height: 800px; /* Slightly taller for more grandeur */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--off-white);
  overflow: hidden;
  padding-top: 100px; /* Espaçamento para o navbar flutuante */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(19,69,47,0.3) 0%, rgba(19,69,47,0.7) 50%, rgba(19,69,47,0.95) 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  margin: 0 auto;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 3.5rem auto;
  max-width: 700px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.categories-section {
  padding: 6rem 2rem;
  background-color: var(--off-white);
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-subtitle-small {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header-center .section-title {
  font-size: 3rem;
  color: var(--deep-green);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.section-description {
  color: var(--deep-green);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
}

.header-divider {
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin: 0 auto;
}

/* =========================================
   BENTO GRID — Categories
   Layout (4 cols):
   Row 1: [WIDE x2] [SMALL] [SMALL]
   Row 2: [SMALL]  [SMALL] [SMALL] [SMALL]
   ========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Card base ---- */
.bento-card {
  position: relative;
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.32s cubic-bezier(.25,.8,.25,1);
  color: var(--off-white);

  /* Dark forest green gradient — matches the reference image */
  background: linear-gradient(
    145deg,
    #1f6348 0%,
    #0d3d26 55%,
    #072619 100%
  );
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Subtle radial highlight so cards don't look flat */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 25% 30%,
    rgba(255,255,255,0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
  border-radius: inherit;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ---- Icon ---- */
.bento-icon-wrapper {
  flex-shrink: 0;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid rgba(240, 205, 2, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(240, 205, 2, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover .bento-icon {
  background: rgba(240, 205, 2, 0.16);
  border-color: var(--gold);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

/* ---- Text ---- */
.bento-content {
  text-align: left;
}

.bento-title {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #f0f0e8;
  letter-spacing: 0.01em;
}

.bento-subtitle {
  font-size: 0.82rem;
  color: rgba(240, 240, 232, 0.65);
  margin: 0;
  font-family: var(--font-sans);
}

/* ---- Arrow (top-right) ---- */
.bento-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.6rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  font-size: 1.1rem;
}

.bento-card:hover .bento-arrow {
  color: var(--gold);
  transform: translate(3px, -3px);
}

/* ---- Span variants ---- */
.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* ---- Scroll dots (mobile carousel indicator) ---- */
.section-footer-center {
  margin-top: 5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.btn-explore-all {
  min-width: 280px;
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-width: 1.5px;
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.btn-explore-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(19, 69, 47, 0.1);
}

.steps-scroll-dots {
  display: none;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
  position: relative;
  background-color: var(--deep-green);
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(240, 205, 2, 0.08) 0%, transparent 60%);
  z-index: 0;
  border-radius: 50%;
}

.how-it-works .section-title {
  color: var(--gold);
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  margin-bottom: 4rem;
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Connecting line behind steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 75px; /* Alinha com o centro dos ícones */
  left: 15%;
  right: 15%;
  height: 0;
  border-top: 2px dashed rgba(240, 205, 2, 0.25);
  z-index: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 205, 2, 0.15); /* Subtle gold tint */
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(240, 205, 2, 0.5);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.step-icon-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  z-index: 2;
  background: transparent;
}

.step-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--deep-green);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(240, 205, 2, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.step-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2px;
}

.step-card:hover .step-icon {
  transform: scale(1.08) rotate(5deg);
  background-color: var(--gold);
  color: var(--deep-green);
  box-shadow: 0 15px 35px rgba(240, 205, 2, 0.3);
}

.step-number-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f9df6e 0%, var(--gold) 100%);
  color: var(--deep-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  box-shadow: 0 6px 15px rgba(240, 205, 2, 0.3);
  transition: transform 0.3s ease;
}

.step-card:hover .step-number-badge {
  transform: scale(1.15);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--off-white);
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.step-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: 6rem 2rem;
  background-color: var(--off-white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-card {
  position: relative;
  background: var(--deep-green);
  border-radius: 30px;
  max-width: 1000px;
  width: 100%;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(19, 69, 47, 0.2);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 205, 2, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.cta-description {
  color: var(--off-white);
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-content .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* =========================================
   RESPONSIVE — Tablet
   ========================================= */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 200px;
  }
  .bento-wide  { grid-column: span 2; }
  .bento-tall  { grid-column: span 1; grid-row: span 1; }
}

/* =========================================
   RESPONSIVE — Mobile
   ========================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero-section {
    min-height: 100svh;
    padding-top: 80px;
  }
  .hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
  }

  /* Section headers */
  .section-header-center .section-title {
    font-size: 2rem;
  }

  /* Categories — bento grid optimization for mobile */
  .categories-section {
    padding: 4rem 1.5rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: minmax(170px, auto);
    gap: 1rem;
  }
  
  .bento-card {
    padding: 1.25rem;
    height: 100%;
    min-height: 170px;
  }

  .bento-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
  }

  .bento-subtitle {
    font-size: 0.75rem;
  }

  .bento-icon {
    width: 40px;
    height: 40px;
  }

  .bento-icon svg {
    width: 18px;
    height: 18px;
  }

  .bento-arrow {
    top: 1rem;
    right: 1rem;
  }

  /* Force 1-column span for all on mobile to avoid gaps unless they are explicitly wide */
  .bento-wide, .bento-tall, .bento-small { 
    grid-column: span 1; 
    grid-row: span 1; 
  }

  /* If there's an item that MUST be wide, we can re-enable it but we must be careful with gaps. 
     For now, 1-col per item (2 items per row) is safer and cleaner for mobile. */

  /* How it works — horizontal scroll carousel */
  .how-it-works {
    padding: 4rem 0 5rem 0;
  }
  .how-it-works .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
  }
  .steps-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding: 0.5rem 11vw 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps-grid::-webkit-scrollbar {
    display: none;
  }
  .steps-grid::before {
    display: none;
  }
  .step-card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: center;
    padding: 2rem 1.25rem;
  }
  .step-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }
  .step-icon svg {
    width: 26px;
    height: 26px;
  }
  .step-number-badge {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    top: -8px;
    right: -8px;
  }
  .step-title {
    font-size: 1.3rem;
  }
  .step-description {
    font-size: 1rem;
  }

  /* Scroll dots */
  .steps-scroll-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 1;
  }
  .steps-scroll-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .steps-scroll-dots .dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 4px;
  }

  /* CTA */
  .cta-section {
    padding: 4rem 1.5rem;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-card {
    padding: 3rem 1.5rem;
    border-radius: 20px;
  }
  .cta-description {
    font-size: 1rem;
  }
}

/* =========================================
   RESPONSIVE — Small phone
   ========================================= */
@media (max-width: 420px) {
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .category-grid {
    gap: 0.75rem;
  }
  .step-card {
    flex: 0 0 82vw;
  }
}
