/* ==========================================================================
   RESPONSIVE CSS - O Biscoito de Polvilho®
   Media Queries específicas para ajustes responsivos
   ========================================================================== */

/* ==========================================================================
   TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  /* Header & Navigation */
  .nav__list {
    gap: var(--space-lg);
  }
  
  /* Hero */
  .hero__content {
    gap: var(--space-2xl);
  }
  
  .hero__title {
    font-size: var(--font-5xl);
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  
  /* Como Preparar */
  .step {
    grid-template-columns: 60px 1fr 150px;
    gap: var(--space-lg);
  }
  
  .step__image {
    width: 150px;
    height: 120px;
  }
}

/* ==========================================================================
   TABLET PEQUENO (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Header & Navigation */
  .nav {
    height: 70px;
  }
  
  .nav__logo-img {
    height: 50px;
  }
  
  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 70px);
    background: var(--color-white);
    padding: var(--space-2xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-sizing: border-box;
  }

  .nav__menu.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }
  
  .nav__link {
    font-size: var(--font-lg);
    width: 100%;
    padding: var(--space-md) 0;
  }
  
  .nav__link.active::after {
    bottom: 0;
  }
  
  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  /* Hero */
  .hero {
    padding-top: 110px;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    min-height: auto;
  }
  
  .hero__text {
    order: 1;
    text-align: center;
  }
  
  .hero__image {
    order: 2;
  }
  
  .hero__title {
    font-size: var(--font-4xl);
  }
  
  .hero__slogan {
    font-size: var(--font-xl);
  }
  
  .hero__description {
    font-size: var(--font-base);
  }
  
  .hero__badges {
    justify-content: center;
  }
  
  .hero__cta {
    justify-content: center;
  }
  
  .hero__float-badge {
    width: 80px;
    height: 80px;
  }
  
  .hero__float-number {
    font-size: var(--font-3xl);
  }
  
  /* Diferenciais */
  .diferencial__icon {
    font-size: var(--font-5xl);
  }
  
  /* Como Preparar */
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .step__number {
    margin: 0 auto;
  }
  
  .step__image {
    width: 100%;
    height: 200px;
    margin: 0 auto;
  }
  
  /* CTA Final */
  .cta-final__title {
    font-size: var(--font-4xl);
  }
  
  .cta-final__text {
    font-size: var(--font-lg);
  }
  
  .cta-final__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-final__buttons .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer__col:first-child {
    text-align: center;
  }
  
  .footer__logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* ==========================================================================
   MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Header */
  .nav {
    height: 60px;
  }
  
  .nav__menu {
    top: 60px;
    height: calc(100vh - 60px);
    padding: var(--space-xl);
  }
  
  .nav__logo-img {
    height: 50px;
  }
  
  /* Hero */
  .hero {
    padding-top: 90px;
    padding-bottom: var(--space-3xl);
  }
  
  .hero__title {
    font-size: var(--font-3xl);
  }
  
  .hero__slogan {
    font-size: var(--font-lg);
  }
  
  .hero__description {
    font-size: var(--font-sm);
  }
  
  .hero__badges {
    gap: var(--space-sm);
  }
  
  .badge {
    font-size: var(--font-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .hero__cta {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero__cta .btn {
    width: 100%;
  }
  
  .hero__float-badge {
    width: 70px;
    height: 70px;
    top: 5%;
    right: 2%;
  }
  
  .hero__float-number {
    font-size: var(--font-2xl);
  }
  
  .hero__float-text {
    font-size: var(--font-xs);
  }
  
  /* Seções */
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .section-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-sm);
  }
  
  .section-subtitle {
    font-size: var(--font-base);
    margin-bottom: var(--space-2xl);
  }
  
  /* Cards */
  .card {
    padding: var(--space-lg);
  }
  
  /* Diferenciais */
  .diferencial__icon {
    font-size: var(--font-4xl);
  }
  
  .diferencial__title {
    font-size: var(--font-lg);
  }
  
  .diferencial__text {
    font-size: var(--font-sm);
  }
  
  /* Como Preparar */
  .step {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  
  .step__number {
    width: 50px;
    height: 50px;
    font-size: var(--font-xl);
  }
  
  .step__title {
    font-size: var(--font-lg);
  }
  
  .step__text {
    font-size: var(--font-sm);
  }
  
  .step__image {
    height: 180px;
  }
  
  /* Depoimentos */
  .depoimento__text {
    font-size: var(--font-sm);
  }
  
  .depoimento__avatar {
    width: 45px;
    height: 45px;
    font-size: var(--font-lg);
  }
  
  .depoimento__info strong {
    font-size: var(--font-sm);
  }
  
  .depoimento__info span {
    font-size: var(--font-xs);
  }
  
  /* CTA Final */
  .cta-final__title {
    font-size: var(--font-3xl);
  }
  
  .cta-final__text {
    font-size: var(--font-base);
  }
  
  /* Footer */
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg);
  }
  
  .footer__content {
    gap: var(--space-xl);
  }
  
  .footer__logo {
    height: 100px;
  }
  
  .footer__text {
    font-size: var(--font-sm);
  }
  
  .footer__title {
    font-size: var(--font-base);
    margin-bottom: var(--space-md);
  }
  
  .footer__links a,
  .footer__address {
    font-size: var(--font-sm);
  }
  
  .footer__social a {
    width: 36px;
    height: 36px;
  }
  
  .footer__social svg {
    width: 18px;
    height: 18px;
  }
  
  .footer__bottom {
    font-size: var(--font-xs);
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   MOBILE PEQUENO (max-width: 360px)
   ========================================================================== */

@media (max-width: 360px) {
  .hero__title {
    font-size: var(--font-2xl);
  }
  
  .section-title {
    font-size: var(--font-xl);
  }
  
  .cta-final__title {
    font-size: var(--font-2xl);
  }
  
  .hero__float-badge {
    display: none;
  }
}

/* ==========================================================================
   LANDSCAPE MOBILE (max-height: 500px and orientation: landscape)
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 90px;
    padding-bottom: var(--space-2xl);
  }
  
  .hero__content {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
  }
  
  .hero__text {
    order: 1;
    text-align: left;
  }
  
  .hero__image {
    order: 2;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ==========================================================================
   DARK MODE (prefers-color-scheme: dark) - OPCIONAL
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Descomente se quiser suporte a dark mode automático */
  /*
  :root {
    --color-dark: #F5F5F5;
    --color-white: #1A1A1A;
    --color-light-gray: #2C2C2C;
  }
  
  body {
    background-color: #1A1A1A;
    color: #F5F5F5;
  }
  */
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .header,
  .nav__toggle,
  .whatsapp-float,
  .hero__cta,
  .cta-final__buttons,
  .footer__social {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .section {
    page-break-inside: avoid;
  }
}