/* css/responsive.css - Responsive Design Media Queries */

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

@media (max-width: 1024px) {
  /* Layout adjustments */
  .section {
    padding: 4rem 0;
  }

  :root {
    --section-padding: 4rem;
  }

  /* Container padding reduction */
  .container {
    padding: 0 var(--container-padding);
  }

  /* Navbar adjustments */
  .nav-content {
    height: 70px;
  }

  .nav-menu {
    gap: var(--space-6);
  }

  /* Hero Section */
  .hero-content {
    padding: var(--space-6);
  }

  .hero h1 {
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-5xl));
  }

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

  .hero-buttons {
    gap: var(--space-3);
  }

  /* Pain Points Grid: 2 columns instead of 4 */
  .pain-points-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Solution Grid: 2 columns */
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  /* Timeline: Remove connecting line and adjust layout */
  .timeline {
    max-width: 100%;
    padding: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column !important;
    gap: var(--space-6);
  }

  .timeline-item:nth-child(even) {
    flex-direction: column !important;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
  }

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

  /* Services: Featured card single column */
  .services-grid {
    gap: var(--space-6);
  }

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

  .service-card.featured .service-content {
    padding: var(--space-8);
  }

  .service-card.featured h3 {
    font-size: var(--font-size-2xl);
  }

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

  /* Services grid: 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* About Section: Single column centered */
  .sobre-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .sobre-text h2 {
    font-size: var(--font-size-3xl);
  }

  .sobre-image {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stats: Keep 3 columns on tablet */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--font-size-2xl);
  }

  /* Results: Keep 3 columns on tablet */
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

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

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

  /* CTA Section */
  .cta-content h2 {
    font-size: var(--font-size-4xl);
  }

  .cta-content p {
    font-size: var(--font-size-lg);
  }

  /* Footer: 2 columns */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* WhatsApp Float Button */
  .whatsapp-float {
    width: 55px;
    height: 55px;
  }

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

/* ==========================================================================
   MOBILE: max-width 768px
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
    --container-padding: 1rem;
  }

  /* Layout */
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* Typography */
  h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  }

  h2 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  }

  h3 {
    font-size: var(--font-size-lg);
  }

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

  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
  }

  .nav-content {
    height: 60px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    z-index: calc(var(--z-sticky) - 1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: var(--space-3) 0;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: var(--z-sticky);
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
  }

  /* Hamburger X animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Logo */
  .logo img {
    height: 120px;
  }

  /* Hero Section */
  .hero {
    min-height: 90vh;
    padding-top: 60px;
  }

  .hero-content {
    padding: var(--space-4);
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
  }

  .hero .subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-6);
  }

  /* Hero buttons: full width column layout */
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Section spacing */
  .section-header {
    margin-bottom: var(--space-12);
  }

  .section-title {
    margin-bottom: var(--space-3);
  }

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

  /* Pain Points: Single column */
  .pain-points-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .pain-point-card .icon {
    width: 48px;
    height: 48px;
  }

  /* Solution: Single column */
  .solution-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .solution-card .icon {
    width: 48px;
    height: 48px;
  }

  /* Timeline: Vertical layout */
  .timeline {
    padding: 0;
    max-width: 100%;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .timeline-marker {
    width: 45px;
    height: 45px;
    font-size: var(--font-size-lg);
  }

  .timeline-content {
    padding: var(--space-4);
  }

  .timeline-content h3 {
    font-size: var(--font-size-lg);
  }

  /* Services: Single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .service-card.featured {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .service-card.featured h3 {
    font-size: var(--font-size-xl);
  }

  .service-features {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

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

  .service-card:not(.featured) .icon {
    width: 48px;
    height: 48px;
  }

  .service-card:not(.featured) h3 {
    font-size: var(--font-size-lg);
  }

  /* About Section: Single column */
  .sobre-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .sobre-text h2 {
    font-size: var(--font-size-2xl);
  }

  .sobre-subtitle {
    font-size: var(--font-size-lg);
  }

  .sobre-text p {
    font-size: var(--font-size-base);
  }

  .sobre-image {
    max-width: 100%;
  }

  /* Stats: Single column on mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--font-size-2xl);
  }

  .stat-label {
    font-size: var(--font-size-xs);
  }

  /* Results: Single column */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .metric-icon {
    width: 60px;
    height: 60px;
  }

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

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

  /* CTA Section */
  .cta-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }

  .cta-content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-6);
  }

  .cta-content .btn {
    width: 100%;
  }

  /* Footer: Single column then column layout */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-bottom p {
    font-size: var(--font-size-xs);
  }

  /* Footer bottom: Column layout */
  .footer-bottom {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-6);
  }

  /* WhatsApp Float Button: 50x50 on mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

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

  /* Buttons adjustment */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
  }

  .btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
  }

  /* Grid adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Service badge */
  .service-badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
  }

  /* Scroll indicator */
  .scroll-indicator {
    font-size: var(--font-size-xl);
  }
}

/* ==========================================================================
   SMALL MOBILE: max-width 480px
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem;
    --container-padding: 0.875rem;
    --space-8: 1.5rem;
    --space-10: 1.875rem;
  }

  /* Layout */
  .section {
    padding: 2.5rem 0;
  }

  /* Typography - Smaller font sizes */
  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  h3 {
    font-size: var(--font-size-base);
  }

  p {
    font-size: var(--font-size-sm);
  }

  /* Navbar */
  .nav-content {
    height: 50px;
  }

  .logo img {
    height: 100px;
  }

  .nav-menu {
    top: 50px;
  }

  /* Hero Section */
  .hero {
    min-height: 80vh;
    padding-top: 50px;
  }

  .hero-content {
    padding: var(--space-3);
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-3);
  }

  .hero .subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-subtitle {
    font-size: var(--font-size-sm);
  }

  /* Cards and spacing reduction */
  .pain-points-grid {
    gap: var(--space-3);
  }

  .pain-point-card {
    padding: var(--space-4);
  }

  .pain-point-card h3 {
    font-size: var(--font-size-base);
  }

  .pain-point-card .icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-3);
  }

  /* Solution cards */
  .solution-grid {
    gap: var(--space-3);
  }

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

  .solution-card h3 {
    font-size: var(--font-size-base);
  }

  .solution-card .icon {
    width: 40px;
    height: 40px;
  }

  /* Timeline */
  .timeline-item {
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
    flex-shrink: 0;
  }

  .timeline-content {
    padding: var(--space-3);
  }

  .timeline-content h3 {
    font-size: var(--font-size-base);
  }

  /* Services */
  .services-grid {
    gap: var(--space-3);
  }

  .service-card.featured {
    gap: var(--space-3);
  }

  .service-card.featured .service-content {
    padding: var(--space-4);
  }

  .service-card.featured h3 {
    font-size: var(--font-size-lg);
  }

  .service-card:not(.featured) {
    padding: var(--space-4);
  }

  .service-card:not(.featured) h3 {
    font-size: var(--font-size-base);
  }

  .service-card:not(.featured) .icon {
    width: 40px;
    height: 40px;
  }

  /* About section */
  .sobre-text h2 {
    font-size: var(--font-size-xl);
  }

  .sobre-subtitle {
    font-size: var(--font-size-base);
  }

  .sobre-text p {
    font-size: var(--font-size-sm);
  }

  /* Stats: Column layout */
  .stats-grid {
    gap: var(--space-3);
  }

  .stat-item {
    padding: var(--space-3);
  }

  .stat-number {
    font-size: var(--font-size-xl);
  }

  .stat-label {
    font-size: var(--font-size-xs);
  }

  /* Results: Single column on small mobile */
  .metrics-grid {
    gap: var(--space-3);
  }

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

  .metric-icon {
    width: 50px;
    height: 50px;
  }

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

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

  .metric-card p {
    font-size: var(--font-size-xs);
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
  }

  .cta-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
  }

  .cta-final::before {
    width: 400px;
    height: 400px;
  }

  /* Buttons */
  .btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-size-xs);
  }

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

  /* Footer */
  .footer-brand p {
    font-size: var(--font-size-xs);
  }

  .footer-links h4 {
    font-size: var(--font-size-base);
  }

  .footer-links a {
    font-size: var(--font-size-xs);
  }

  /* WhatsApp Float: Smaller on small mobile */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

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

  /* Hamburger */
  .hamburger span {
    width: 22px;
    height: 2px;
  }

  /* Service features */
  .service-features li {
    font-size: var(--font-size-xs);
  }

  /* Badge sizes */
  .badge {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
  }

  .service-badge {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
  }
}

/* ==========================================================================
   ULTRA-SMALL DEVICES: max-width 360px (optional but useful)
   ========================================================================== */

@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
  }

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

  h2 {
    font-size: var(--font-size-xl);
  }

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

  .stat-number {
    font-size: var(--font-size-lg);
  }

  .whatsapp-float {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
  }

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

/* ==========================================================================
   LANDSCAPE MODE ADJUSTMENTS
   ========================================================================== */

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
  }

  .nav-content {
    height: 60px;
  }

  .hero-content {
    padding: var(--space-4);
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-3);
  }

  .hero .subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
  }

  .scroll-indicator {
    display: none;
  }
}

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

@media print {
  * {
    animation: none !important;
    transition: none !important;
  }

  .navbar,
  .whatsapp-float,
  .hamburger {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}
