/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================ */

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
  /* Container */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Spacing */
  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Hero */
  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero__visual {
    height: 300px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .service-card--featured {
    transform: scale(1);
  }

  .service-card--featured:hover {
    transform: translateY(-8px);
  }

  /* Case Study */
  .flow-arrow {
    transform: rotate(90deg);
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .pricing-card--featured {
    transform: scale(1);
  }

  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  /* Typography */
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Section */
  .section {
    padding: var(--spacing-lg) 0;
  }

  .section__header {
    margin-bottom: var(--spacing-md);
  }

  .section__description {
    font-size: 1rem;
  }

  /* Navigation */
  .nav {
    height: 70px;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav__menu.show {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }

  .nav__link {
    font-size: 1.125rem;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .nav__toggle {
    display: block;
  }

  .nav__actions .btn {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: calc(100vh - 70px);
    padding-top: 70px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 2;
    height: 250px;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__description {
    font-size: 1.125rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .service-card {
    padding: var(--spacing-md);
  }

  /* Case Study */
  .case-study__flow {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .flow-step {
    width: 100%;
    min-width: auto;
  }

  .flow-arrow {
    display: none;
  }

  .case-study__results {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .pricing-card {
    padding: var(--spacing-md);
  }

  /* FAQ */
  .faq-item__question {
    font-size: 1rem;
    padding: var(--spacing-sm);
  }

  .faq-item__answer p {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    font-size: 0.9375rem;
  }

  /* Contact */
  .contact-form {
    padding: var(--spacing-md);
  }

  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* WhatsApp Float */
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Spacing */
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }

  .btn--large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Navigation */
  .nav__logo a {
    font-size: 1.5rem;
  }

  .nav__menu {
    width: 90%;
  }

  /* Hero */
  .hero__title {
    font-size: 1.875rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__visual {
    height: 200px;
  }

  /* Service Cards */
  .service-card {
    padding: var(--spacing-sm);
  }

  .service-card__icon {
    width: 56px;
    height: 56px;
  }

  .service-card__icon svg {
    width: 32px;
    height: 32px;
  }

  /* Case Study */
  .flow-step {
    padding: var(--spacing-sm);
  }

  .flow-step__icon svg {
    width: 28px;
    height: 28px;
  }

  .result-card__value {
    font-size: 2.5rem;
  }

  .result-card__label {
    font-size: 1rem;
  }

  /* Pricing Cards */
  .pricing-card {
    padding: var(--spacing-sm);
  }

  .pricing-card__icon {
    width: 56px;
    height: 56px;
  }

  .pricing-card__icon svg {
    width: 32px;
    height: 32px;
  }

  /* FAQ */
  .faq-item__question {
    padding: var(--spacing-sm);
    font-size: 0.9375rem;
  }

  /* Contact Form */
  .form-input {
    padding: 0.75rem var(--spacing-xs);
    font-size: 0.9375rem;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-md) 0 var(--spacing-sm);
  }

  .footer__logo {
    font-size: 1.5rem;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION (MOBILE)
   ============================================ */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .hero__visual {
    display: none;
  }

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  /* Hide non-essential elements */
  .nav,
  .whatsapp-float,
  .hero__visual,
  .btn {
    display: none !important;
  }

  /* Ensure readability */
  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }

  /* Avoid page breaks inside elements */
  .service-card,
  .pricing-card,
  .faq-item,
  .flow-step {
    page-break-inside: avoid;
  }

  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus states for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__shape {
    animation: none;
  }

  .whatsapp-float {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-light: #4A4A4A;
  }

  .btn--primary {
    border: 2px solid var(--white);
  }

  .service-card,
  .pricing-card,
  .faq-item {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode support (optional, for future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Uncomment and customize if you want to add dark mode support
  :root {
    --light-bg: #1A1A2E;
    --white: #0F0F1E;
    --text-dark: #F8F9FA;
  }
  */
}
