/* ===== HAMBURGER BUTTON (always defined, hidden on desktop) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: none;
  padding: 6px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* =================================================================
   BREAKPOINT 1 — Large desktop (max-width: 1400px)
   Ajustes sutis de espaçamento e proportion
================================================================= */
@media (max-width: 1400px) {
  nav {
    padding: 24px 48px;
  }

  nav.scrolled {
    padding: 16px 48px;
  }

  .hero-left {
    padding: 140px 48px 80px;
  }

  .about {
    padding: 100px 48px;
    gap: 80px;
  }

  .services {
    padding: 100px 48px;
  }

  .puzzle-section {
    padding: 100px 48px;
  }

  .testimonials {
    padding: 100px 48px;
  }

  .cta-section {
    padding: 160px 48px;
  }

  .location {
    padding: 100px 48px;
  }

  footer {
    padding: 60px 48px;
  }
}


/* =================================================================
   BREAKPOINT 2 — Tablet landscape / desktop médio (max-width: 1200px)
   Grid começa a apertar, espaçamentos reduzidos
================================================================= */
@media (max-width: 1200px) {
  nav {
    padding: 22px 36px;
  }

  nav.scrolled {
    padding: 14px 36px;
  }

  .hero-left {
    padding: 130px 40px 70px;
  }

  .about {
    padding: 80px 40px;
    gap: 60px;
  }

  .about-photo-stack {
    margin-left: 60px;
    height: 460px;
  }

  .photo-card-1 {
    width: 220px;
    height: 360px;
  }

  .photo-card-2 {
    width: 210px;
    height: 340px;
    left: 232px;
  }

  .services {
    padding: 80px 40px;
  }

  .services-grid {
    gap: 16px;
  }

  .puzzle-section {
    padding: 80px 40px;
    gap: 60px;
  }

  .testimonials {
    padding: 80px 40px;
  }

  .cta-section {
    padding: 140px 40px;
  }

  .location {
    padding: 80px 40px;
    gap: 60px;
  }

  footer {
    padding: 50px 40px;
  }
}


/* =================================================================
   BREAKPOINT — Navigation & Typography Transition (max-width: 1050px)
   Ativa o menu hamburger mais cedo e ajusta a headline
 ================================================================= */
@media (max-width: 1050px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
    z-index: 100;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    font-size: 22px;
    letter-spacing: 0.08em;
    padding: 18px 24px;
    color: var(--dark);
  }

  .hero-title {
    font-size: clamp(40px, 5vw, 48px);
  }

  .about-photo-stack {
    margin-left: 20px;
  }
}


/* =================================================================
   BREAKPOINT 3 — Tablet portrait (max-width: 900px)
   Single column, hamburger menu, hero empilhado
================================================================= */
@media (max-width: 900px) {

  /* ── Nav ── */
  nav {
    padding: 20px 24px;
  }

  nav.scrolled {
    padding: 14px 24px;
  }

  .nav-logo-img {
    height: 52px;
  }

  nav.scrolled .nav-logo-img {
    height: 34px;
  }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px !important;
  }

  /* ── Hero ── */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 110px 24px 52px;
  }

  .hero-right {
    height: 300px;
  }

  .hero-float-1 {
    left: 12px;
    width: 170px;
  }

  .hero-float-2 {
    right: 12px;
    width: 160px;
  }

  /* ── About ── */
  .about {
    grid-template-columns: 1fr;
    padding: 60px 0 80px;
    gap: 40px;
  }

  .about-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-photo-stack {
    width: 100%;
    height: 80vw;
    max-height: 420px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .photo-card-1 {
    width: 42vw;
    max-width: 200px;
    height: 76vw;
    max-height: 380px;
    left: calc(50% - 43vw);
    top: 4vw;
    transform: rotate(-2deg);
  }

  .photo-card-2 {
    width: 40vw;
    max-width: 192px;
    height: 74vw;
    max-height: 365px;
    left: calc(50% + 2vw);
    top: 0;
    transform: rotate(2deg);
  }

  .about-content {
    padding: 0 24px;
  }

  .about-puzzle-accent {
    display: none;
  }

  .about-timeline {
    margin-left: 0;
    margin-top: 18px;
    padding-left: 28px;
  }

  .timeline-dot {
    left: -28px;
    top: 18px;
  }

  .timeline-title {
    font-size: 20px;
  }

  /* ── Services ── */
  .services {
    padding: 72px 24px;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(-n+3),
  .services-grid .service-card:nth-child(n+4) {
    grid-column: span 1;
  }

  /* ── Puzzle section ── */
  .puzzle-section {
    grid-template-columns: 1fr;
    padding: 72px 24px;
    gap: 48px;
  }

  .puzzle-visual-large {
    height: 300px;
  }

  /* ── Testimonials ── */
  .testimonials {
    padding: 72px 24px;
  }

  .testimonials-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonials-track {
    min-height: 300px;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 90px 24px;
  }

  .cta-arc-2,
  .cta-arc-3 {
    display: none;
  }

  .cta-micro-3,
  .cta-micro-4 {
    display: none;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── Location ── */
  .location {
    grid-template-columns: 1fr;
    padding: 72px 24px;
    gap: 40px;
  }

  .location-map {
    height: 320px;
  }

  /* ── Footer ── */
  footer {
    padding: 40px 24px;
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-logo-img {
    height: 44px;
  }

  /* ── Stats ── */
  .stats-row {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* ── Decorative pieces hidden ── */
  .section-piece {
    display: none;
  }

  .puzzle-bg-piece {
    display: none;
  }
}


/* =================================================================
   BREAKPOINT 4 — Mobile (max-width: 600px)
   Ajustes finos para telefones
================================================================= */
@media (max-width: 600px) {

  /* ── Nav ── */
  .nav-logo-img {
    height: 44px;
  }

  /* ── Hero ── */
  .hero-left {
    padding: 100px 20px 48px;
  }

  .hero-right {
    height: 260px;
  }

  .hero-float {
    padding: 14px 16px;
  }

  .hero-float-1 {
    width: 150px;
    bottom: 24%;
  }

  .hero-float-2 {
    width: 144px;
    top: 24%;
  }

  .float-value {
    font-size: 20px;
  }

  /* ── About ── */
  .about {
    padding: 52px 0 72px;
  }

  .about-photo-stack {
    height: 84vw;
    max-height: 380px;
  }

  .photo-card-1 {
    width: 44vw;
    max-width: 175px;
    height: 80vw;
    max-height: 340px;
    left: calc(50% - 45vw);
    top: 5vw;
  }

  .photo-card-2 {
    width: 42vw;
    max-width: 167px;
    height: 77vw;
    max-height: 325px;
    left: calc(50% + 2vw);
  }

  /* ── Section shared ── */
  .section-title {
    font-size: clamp(32px, 7vw, 48px);
  }

  .section-body {
    font-size: 14px;
  }

  /* ── Services ── */
  .services {
    padding: 60px 20px;
  }

  .service-card {
    padding: 28px 24px;
  }

  /* ── Puzzle ── */
  .puzzle-section {
    padding: 60px 20px;
  }

  .stat-number {
    font-size: 40px;
  }

  /* ── Testimonials ── */
  .testimonials {
    padding: 60px 20px;
  }

  .testimonials-track {
    min-height: 240px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 72px 20px;
  }

  .cta-title {
    font-size: clamp(40px, 9vw, 64px);
  }

  .cta-body {
    font-size: 14px;
  }

  .btn-cta-primary,
  .btn-cta-ghost {
    padding: 16px 32px;
    font-size: 13px;
  }

  /* ── Location ── */
  .location {
    padding: 60px 20px;
  }

  .location-map {
    height: 260px;
  }

  /* ── Footer ── */
  footer {
    padding: 36px 20px;
    gap: 20px;
  }

  .footer-links {
    gap: 16px;
  }
}


/* =================================================================
   BREAKPOINT 5 — Mobile pequeno (max-width: 400px)
================================================================= */
@media (max-width: 400px) {
  .hero-left {
    padding: 90px 16px 40px;
  }

  .hero-right {
    height: 220px;
  }

  .hero-float-1,
  .hero-float-2 {
    display: none;
  }

  .about {
    padding: 48px 0 64px;
  }

  .about-photo-stack {
    height: 86vw;
  }

  .photo-card-1 {
    width: 44vw;
    height: 80vw;
    left: calc(50% - 45vw);
  }

  .photo-card-2 {
    width: 42vw;
    height: 78vw;
    left: calc(50% + 2vw);
  }

  .about-content {
    padding: 0 16px;
  }

  .services {
    padding: 52px 16px;
  }

  .puzzle-section {
    padding: 52px 16px;
  }

  .testimonials {
    padding: 52px 16px;
  }

  .cta-section {
    padding: 60px 16px;
  }

  .location {
    padding: 52px 16px;
  }

  footer {
    padding: 32px 16px;
  }

  .credential-item {
    padding: 12px 14px;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
  }
}