/* =====================================================
   GROWMAX TECHNOLOGIES - RESPONSIVE STYLES
   Mobile-First Responsive Design
   ===================================================== */

/* -----------------------------------------------------
   1. BREAKPOINT: 1920px+ (Large Desktop)
   ----------------------------------------------------- */
@media (min-width: 1920px) {
  :root {
    --container-max: 1440px;
    --font-size-7xl: 5rem;
    --font-size-6xl: 4rem;
  }

  .hero-visual {
    height: 600px;
  }
}

/* -----------------------------------------------------
   2. BREAKPOINT: 1440px (Desktop)
   ----------------------------------------------------- */
@media (max-width: 1440px) {
  :root {
    --font-size-7xl: 4rem;
    --font-size-6xl: 3.5rem;
  }

  .hero-inner {
    gap: var(--space-12);
  }
}

/* -----------------------------------------------------
   3. BREAKPOINT: 1280px (Small Desktop)
   ----------------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --font-size-7xl: 3.5rem;
    --font-size-6xl: 3rem;
    --space-24: 5rem;
    --space-32: 6rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* -----------------------------------------------------
   4. BREAKPOINT: 1024px (Tablet Landscape)
   ----------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --font-size-7xl: 3rem;
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --space-20: 4rem;
    --space-24: 4rem;
    --space-32: 5rem;
  }

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

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    display: none;
  }

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

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    display: flex;
    overflow-x: auto;
    gap: var(--space-2);
    padding: var(--space-4);
  }

  .service-tab {
    white-space: nowrap;
    margin-bottom: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .metric-divider {
    display: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .process-line {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-visual {
    order: -1;
    height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .packages-table-wrapper {
    display: none;
  }

  .package-cards-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -----------------------------------------------------
   5. BREAKPOINT: 768px (Tablet Portrait)
   ----------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --font-size-7xl: 2.5rem;
    --font-size-6xl: 2.25rem;
    --font-size-5xl: 1.875rem;
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.25rem;
    --container-padding: 1rem;
    --space-16: 3rem;
    --space-20: 3rem;
    --space-24: 3rem;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  .hero {
    padding-top: 72px;
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .hero-title {
    font-size: var(--font-size-5xl);
  }

  .hero-description {
    font-size: var(--font-size-lg);
  }

  .trust-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .trust-items {
    justify-content: center;
  }

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

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

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

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .metric-value {
    font-size: var(--font-size-4xl);
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step-number {
    margin: 0 auto var(--space-4);
  }

  .package-cards-mobile {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .floating-buttons {
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .testimonial-quote {
    font-size: var(--font-size-lg);
  }

  .testimonial-quote::before {
    font-size: var(--font-size-4xl);
    top: -10px;
    left: -10px;
  }
}

/* -----------------------------------------------------
   6. BREAKPOINT: 480px (Mobile Large)
   ----------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --font-size-7xl: 2rem;
    --font-size-6xl: 1.875rem;
    --font-size-5xl: 1.5rem;
    --font-size-4xl: 1.25rem;
    --font-size-3xl: 1.125rem;
    --space-12: 2rem;
    --space-16: 2.5rem;
    --space-20: 2.5rem;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-eyebrow {
    font-size: var(--font-size-xs);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .trust-items {
    flex-direction: column;
    gap: var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .metric-value {
    font-size: var(--font-size-3xl);
  }

  .metric-label {
    font-size: var(--font-size-sm);
  }

  .process-step-number {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }

  .section-header h2 {
    font-size: var(--font-size-3xl);
  }

  .section-header p {
    font-size: var(--font-size-base);
  }

  .floating-btn-tooltip {
    display: none;
  }
}

/* -----------------------------------------------------
   7. BREAKPOINT: 375px (Mobile Medium)
   ----------------------------------------------------- */
@media (max-width: 375px) {
  :root {
    --font-size-7xl: 1.75rem;
    --font-size-6xl: 1.5rem;
    --container-padding: 0.875rem;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
  }

  .card {
    padding: var(--space-5);
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-xl);
  }
}

/* -----------------------------------------------------
   8. BREAKPOINT: 320px (Mobile Small)
   ----------------------------------------------------- */
@media (max-width: 320px) {
  :root {
    --font-size-7xl: 1.5rem;
    --font-size-6xl: 1.375rem;
    --container-padding: 0.75rem;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metric-value {
    font-size: var(--font-size-2xl);
  }
}

/* -----------------------------------------------------
   9. LANDSCAPE ORIENTATION
   ----------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: var(--space-10);
  }

  .scroll-indicator {
    display: none;
  }

  .nav-mobile {
    padding-top: 60px;
    justify-content: flex-start;
    gap: var(--space-4);
  }

  .nav-mobile .nav-link {
    font-size: var(--font-size-lg);
  }
}

/* -----------------------------------------------------
   10. HIGH DPI / RETINA DISPLAYS
   ----------------------------------------------------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-grid {
    background-size: 30px 30px;
  }
}

/* -----------------------------------------------------
   11. PRINT STYLES
   ----------------------------------------------------- */
@media print {
  .header,
  .preloader,
  .scroll-progress,
  .floating-buttons,
  .scroll-indicator,
  .hero-bg,
  .hero-visual,
  .cta-diagonal,
  .growth-chart,
  .hero-network,
  .hero-particles,
  .hero-glow,
  .hero-diagonal {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: var(--color-white) !important;
    color: var(--color-text-dark) !important;
  }

  .hero-title,
  .hero-description {
    color: var(--color-text-dark) !important;
  }

  .section-dark {
    background: var(--color-white) !important;
    color: var(--color-text-dark) !important;
  }

  .section-dark h2,
  .section-dark p,
  .section-dark .metric-value,
  .section-dark .metric-label {
    color: var(--color-text-dark) !important;
  }

  .btn {
    border: 2px solid var(--color-text-dark) !important;
    background: none !important;
    color: var(--color-text-dark) !important;
  }

  a {
    text-decoration: underline !important;
  }

  .card {
    break-inside: avoid;
    border: 1px solid var(--color-border) !important;
    box-shadow: none !important;
  }

  .work-card {
    break-inside: avoid;
  }
}

/* -----------------------------------------------------
   12. REDUCED MOTION
   ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .hero-card-animate,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .float,
  .icon-pulse,
  .icon-spin-slow,
  .particle,
  .hero-grid,
  .hero-glow,
  .whatsapp-btn,
  .scroll-indicator,
  .badge-pulse::after,
  .shimmer::after {
    animation: none !important;
  }

  .card::before,
  .card-hover-glow::before {
    display: none;
  }

  .btn-shine::after {
    display: none;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* -----------------------------------------------------
   13. DARK MODE SUPPORT (Optional)
   ----------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Keep current dark sections as-is, light sections could adapt */
}

/* -----------------------------------------------------
   14. ACCESSIBILITY - FOCUS VISIBLE
   ----------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  :focus-visible {
    transition: outline-offset 0.2s ease;
  }

  :focus-visible:not(:active) {
    outline-offset: 4px;
  }
}

/* -----------------------------------------------------
   15. SAFARI SPECIFIC FIXES
   ----------------------------------------------------- */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }

  .header.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

/* -----------------------------------------------------
   16. FIREFOX SPECIFIC FIXES
   ----------------------------------------------------- */
@-moz-document url-prefix() {
  .hero-grid {
    background-size: 60px 60px;
  }
}
