@media (max-width: 1220px) {
  .nav-link {
    padding-inline: 0.72rem;
    font-size: 0.78rem;
  }

  .header-cnpj {
    display: none;
  }

  .project-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --section-y: clamp(4rem, 9vw, 5.5rem);
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero {
    min-height: auto;
    background: var(--off-white);
  }

  .hero-bg-left,
  .hero-bg-right,
  .hero-curve,
  .hero-media {
    display: none;
  }

  .hero-inner {
    width: min(calc(100% - 2rem), 52rem);
    padding-block: 2.25rem 4.5rem;
  }

  .hero-grid {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
    padding: 0;
    text-align: center;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-name {
    font-size: clamp(2.65rem, 11vw, 4rem);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 5rem);
  }

  .hero-description {
    margin-inline: auto;
    max-width: 35rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mobile-portrait {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 22rem);
    height: 21rem;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border-radius: 0 0 10rem 10rem;
    background:
      radial-gradient(ellipse at 50% 70%, rgba(212, 175, 55, 0.25), transparent 58%),
      linear-gradient(135deg, rgba(15, 92, 46, 0.92), rgba(22, 163, 74, 0.82));
    box-shadow: var(--shadow-green);
  }

  .hero-mobile-portrait img {
    width: auto;
    height: 24rem;
    margin-top: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.32));
  }

  .about-grid,
  .party-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: 2;
  }

  .about-copy {
    order: 1;
  }

  .principle-grid,
  .ideal-grid,
  .family-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container,
  .wide-container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .brand-logo img {
    height: 42px;
  }

  .section-heading {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero {
    padding-top: var(--header-height);
  }

  .btn {
    width: 100%;
    min-height: 3.1rem;
  }

  .hero-actions {
    width: min(100%, 24rem);
    margin-inline: auto;
  }

  .stats-grid,
  .project-grid,
  .principle-grid,
  .ideal-grid,
  .family-grid,
  .social-grid,
  .proposal-stats,
  .actions-grid,
  .related-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-photo-frame img {
    height: 22rem;
  }

  .family-hero-copy {
    position: relative;
    background: var(--green-primary);
  }

  .family-hero img {
    height: 13rem;
  }

  .party-stats {
    gap: 0.6rem;
  }

  .party-stats strong {
    font-size: 1.6rem;
  }

  .footer-main,
  .footer-bottom-inner,
  .detail-footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom-inner {
    align-items: center;
    text-align: center;
  }

  .detail-footer-inner {
    align-items: center;
    text-align: center;
  }

  .detail-header-button {
    display: none;
  }

  .proposal-title {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .proposal-hero {
    min-height: 82vh;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 76px;
  }

  .header-inner,
  .detail-header-inner {
    gap: 0.75rem;
  }

  .hero-inner {
    padding-top: 1.5rem;
  }

  .hero-mobile-portrait {
    width: min(100%, 19rem);
    height: 18.5rem;
  }

  .hero-mobile-portrait img {
    height: 21.5rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-badge {
    gap: 0.45rem;
    font-size: 0.58rem;
  }

  .hero-badge::before,
  .hero-badge::after {
    width: 0.85rem;
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .about-years {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .project-link {
    min-height: 280px;
  }

  .project-card {
    min-height: 280px;
  }

  .contact-card,
  .contact-form,
  .principle-card,
  .ideal-card {
    padding: 1.25rem;
  }

  .proposal-stats {
    gap: 0.75rem;
  }
}

@media (max-width: 375px) {
  .brand-logo img {
    height: 38px;
  }

  .hero-name {
    font-size: 2.45rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .section-heading {
    font-size: 2.1rem;
  }

  .family-pillar,
  .action-card {
    gap: 0.75rem;
  }
}

@media (min-width: 1440px) {
  .hero-copy {
    max-width: 660px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1360px;
    --container-wide: 1500px;
  }

  .hero-copy {
    max-width: 690px;
  }
}
