/* Root sizing for responsive typography */
html {
  font-size: 16px;
}

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

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

/* define nav height variable and reserve space so fixed nav won't overlap content */
:root {
  --nav-height: 120px; /* desktop default */
}

body {
  /* reserve space equal to the fixed nav height */
  padding-top: var(--nav-height);
  box-sizing: border-box;
}

.nav-bar {
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(243, 182, 31, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.15s ease;
}

/* match variable to smaller nav sizes at breakpoints */
@media (max-width: 768px) {
  :root { --nav-height: 70px; }
}

@media (max-width: 480px) {
  :root { --nav-height: 60px; }
}

/* Section base styles */
body > section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;  /* ensures scroll halts at each section */
}

/* Hero Section */
body > section:first-of-type {
  padding: 3rem 2rem;
  gap: 2rem;
  padding-top: 3rem; /* keep a small inner padding but don't duplicate nav space */
}

/* Decorative backgrounds - scaled responsively */
.fundo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(255, 80, 144, 1) 0%,
    rgba(233, 92, 45, 0.9) 50%,
    rgba(243, 182, 31, 1) 100%
  );
  opacity: 0.9;
}

.rectangle,
.div {
  display: none;
}

.logo {
  position: relative;
  width: 250px;
  height: auto;
  max-width: 90vw;
}

@media (max-width: 768px) {
  .logo {
    width: 200px;
  }
}

/* Main heading */
.headline {
  position: relative;
  width: 100%;
  max-width: 600px;
  font-family: "Abordage-Regular", Helvetica;
  font-weight: 400;
  color: #fefefe;
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: left;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .headline {
    text-align: center;
  }
}

/* SVG vector path */
.vector {
  position: absolute;
  /* desktop/large: bias to the left (20%) */
  left: 20%;
  transform: translateX(0);
  /* fluid width but constrained */
  width: clamp(400px, 40vw, 900px);
  max-width: 60%;
  height: auto;
  z-index: -1;
  opacity: 0.6;
  top: 0;
  pointer-events: none;
}

/* smaller screens keep centered */
@media (max-width: 768px) {
  .vector {
    left: 50%;
    transform: translateX(-20%);
    width: clamp(280px, 80vw, 600px);
  }
}


@media (max-width: 768px) {
  .vector {
    opacity: 0.5;
  }
}

/* Category cards container */
body > section:nth-of-type(2),
body > section:nth-of-type(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

/* new: cardsline helpers to explicitly align left / right */
.cardsline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;               /* was 2rem — slightly tighter on desktop */
  
  width: 100%;
  max-width: 1200px;
  margin: 0.8rem auto;       /* smaller vertical spacing between sections */
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.cardsline.left { justify-content: flex-start; }
.cardsline.right { justify-content: flex-end; }

@media (max-width: 768px) {
  .cardsline {
    gap: 1rem;               /* tighter gap on tablet / mobile */
    margin: 0.6rem auto;
    padding: 0 1rem;
    display: block;
    justify-content: center; /* keep centered on smaller widths */
  }

  .cardsline .text-wrapper-2,
  .cardsline .text-wrapper-3 {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ensure category rows are centered on narrower viewports up to 896px */
@media (max-width: 896px) {
  .cardsline {
    justify-content: center; /* center cards on small/medium screens */
    padding: 0 1rem;
  }

  .cardsline .text-wrapper-2,
  .cardsline .text-wrapper-3 {
    width: 100%;
    text-align: center;
  }
}

/* Individual category cards - UNIFIED CLASS */
.category-card {
  position: relative;
  width: 280px;
  height: 220px;
  background-color: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .category-card {
    width: 240px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .category-card {
    width: 100%;
    max-width: 356px;
    transform: rotate(0deg) !important;
  }
}

/* Rotation values for each card */
.category-card:nth-child(1) {
  --rotation: 5deg;
}

.category-card:nth-child(2) {
  --rotation: -3deg;
}

.category-card:nth-child(3) {
  --rotation: -8.21deg;
}

.category-card:nth-child(4) {
  --rotation: 5.48deg;
}

/* Keep old classes for backward compatibility */
.ESCOLA,
.VIAGEM,
.CASAMENTO,
.FAMILIA {
  position: relative;
  width: 280px;
  height: 220px;
  background-color: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .ESCOLA,
  .VIAGEM,
  .CASAMENTO,
  .FAMILIA {
    width: 240px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .ESCOLA,
  .VIAGEM,
  .CASAMENTO,
  .FAMILIA {
    width: 100%;
    max-width: 280px;
    transform: rotate(0deg) !important;
  }
}

.ESCOLA {
  --rotation: 5deg;
}

.VIAGEM {
  --rotation: -3deg;
}

.CASAMENTO {
  --rotation: -8.21deg;
}

.FAMILIA {
  --rotation: 5.48deg;
}

/* Category images - SCALED AND CROPPED */
.people,
.pexels-caio,
.couple,
.pexels-emma-bauso {
  position: absolute;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Gradient overlay */
.rectangle-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 80, 144, 1) 0%,
    rgba(233, 92, 45, 1) 46%,
    rgba(243, 182, 31, 1) 100%
  );
  opacity: 0.3;
  z-index: 1;
}

/* Category labels */
.escola,
.viagem,
.casamento,
.fam-lia {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "League Spartan", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

/* Section headings */
.text-wrapper,
.text-wrapper-2,
.text-wrapper-3 {
  position: relative;
  width: 100%;
  max-width: 700px;
  font-family: "Abordage-Regular", Helvetica;
  font-weight: 400;
  color: #fefefe;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  line-height: 1.3;
  padding: 1rem;
}

.text-wrapper-3 {
  text-align: right;
}

@media (max-width: 768px) {
  .text-wrapper-3 {
    text-align: center;
  }
}

/* CTA Button */
.group-2 {
  position: relative;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;       /* removed forced max-width/height so the button can size naturally */
  height: auto;
  z-index: 10;
}

/* make rectangle-2 act as the button background (responsive, smaller) */
.rectangle-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 28px;
  padding: 0.45rem 1rem;   /* controls visual size */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

/* anchor inside the button */
.saiba-mais {
  display: inline-block;
  color: #444444;
  font-family: "Roboto", Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem); /* fluid text size */
  line-height: 1;
  text-align: center;
  padding: 0.35rem 0.6rem; /* inner hit area */
}

/* hover / focus states for affordance & accessibility */
.rectangle-2:hover,
.rectangle-2:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.saiba-mais:focus-visible {
  outline: 3px solid rgba(74,144,226,0.18);
  border-radius: 6px;
}

/* smaller display on very small screens */
@media (max-width: 480px) {
  .rectangle-2 {
    padding: 0.35rem 0.75rem;
    border-radius: 22px;
  }

  .saiba-mais {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Features section - CENTERED CONTAINER */
body > section:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature cards - ROW layout on desktop, COLUMN on mobile */
.frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  min-height: 200px;
  background-color: #fefefe;
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .frame {
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .frame {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

/* Icon sizing */
.icon {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .icon {
    width: 100px;
    height: 100px;
  }
}

/* Text wrapper for feature cards */
.titulo-destaques {
  position: relative;
  font-family: "Abordage-Regular", Helvetica;
  font-weight: 400;
  color: #444444;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-align: left;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 768px) {
  .titulo-destaques {
    text-align: center;
  }
}

.texto-destaques {
  position: relative;
  font-family: "Abordage-Regular", Helvetica;
  font-weight: 400;
  color: #444444;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  text-align: left;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .texto-destaques {
    text-align: center;
  }
}

/* Scroll snap */
.y.mandatory-scroll-snapping {
  scroll-snap-type: y mandatory;
}

.always-stop > section {
  scroll-snap-stop: always;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  body > section {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

@media (max-width: 768px) {
  body > section:nth-of-type(even)::before {
    width: 700px;
    height: 900px;
    transform: translate(-50%, -55%) rotate(90deg);
    opacity: 0.6;
  }
}

/* hide on very small screens to keep content legible */
@media (max-width: 480px) {
  body > section:nth-of-type(even)::before {
    display: none;
  }
}
