/* Mobile Critical Content Visibility Fix */
@media (width <= 768px) {
  /* Ensure hero section is immediately visible on mobile */
  .hero-section [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Ensure critical above-the-fold content is visible */
  .hero-copy [data-reveal],
  .hero-media [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Ensure header is always visible */
  .main-header [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive adjustments */
@media (width <= 1024px) {
  section {
    padding-block: var(--space-7);
  }

  .stack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stack-actions .btn {
    width: 100%;
  }

  .contact-section .section-header {
    justify-items: center;
    text-align: center;
  }

  .contact-info-card,
  .contact-form-container {
    padding: var(--space-4);
  }
}

@media (width <= 768px) {
  .section-header {
    margin-bottom: var(--space-4);
  }

  .hero-section {
    padding-top: calc(var(--hero-top-offset, 72px) + 16px);
  }

  .hero-visual {
    padding: var(--space-2);
  }

  .hero-video-contact-btn {
    top: var(--space-3);
    right: var(--space-3);
  }

  .showcase-controls {
    display: none;
  }

  .made-banner {
    padding: var(--space-4);
  }

  .contact-wrapper {
    gap: var(--space-4);
  }

  .contact-channel-list li {
    align-items: flex-start;
  }

  .stats-grid,
  .tools-grid,
  .why-grid,
  .faq-grid,
  .calculator-results {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-activity-feed {
    left: var(--space-3);
    right: var(--space-3);
    max-width: none;
  }
}

@media (width <= 520px) {
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-guarantee {
    flex-direction: column;
    text-align: center;
  }

  .trust-badge {
    width: 100%;
    justify-content: center;
  }

  .gallery-item {
    flex-basis: clamp(220px, 80vw, 280px);
  }

  .calculator-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .value-prop {
    width: 100%;
  }
}

@media (width <= 640px) {
  :root {
    --hero-media-vh: clamp(220px, 58vw, 360px);
  }

  body {
    font-size: 0.96rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
  }

  .hero-section {
    padding-inline: clamp(1rem, 4vw, 1.5rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero-grid {
    gap: clamp(1.1rem, 4vw, 1.75rem);
  }

  .hero-headline {
    letter-spacing: -0.01em;
  }

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

  .hero-media-card {
    padding: clamp(0.85rem, 4vw, 1.25rem);
    box-shadow: var(--shadow-xs);
  }

  .hero-ctas .btn,
  .hero-left-actions .btn,
  .cta-actions .btn,
  .contact-form .btn,
  .stack-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .section-header {
    justify-items: start;
    text-align: left;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .section-subtitle,
  .prose {
    font-size: clamp(0.96rem, 4vw, 1.05rem);
    line-height: 1.5;
  }

  .promise-card,
  .made-banner,
  .cta-content,
  .savings-calculator,
  .contact-info-card,
  .contact-form-container {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }

  .stats-grid,
  .calculator-results {
    gap: var(--space-3);
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .stat-number {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .cta-value-props {
    gap: var(--space-2);
  }

  .value-prop {
    width: 100%;
    justify-content: center;
  }

  .contact-wrapper {
    gap: var(--space-4);
  }

  .contact-channel-list li,
  .contact-method {
    align-items: flex-start;
  }

  .contact-methods {
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav-panel {
    padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  }
}

@media (width <= 480px) {
  section:not(.hero-section) {
    padding-block: var(--space-5);
  }

  .hero-section {
    padding-top: calc(var(--hero-top-offset, 72px) + 8px);
  }

  .hero-meta {
    gap: var(--space-2);
  }

  .hero-guarantee {
    gap: var(--space-2);
  }

  .hero-media-card-title {
    font-size: var(--text-base);
  }

  .hero-media-card {
    gap: 0.4rem;
  }

  .hero-highlights {
    gap: var(--space-2);
  }

  .hero-guarantee,
  .hero-trust-badges {
    width: 100%;
  }

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

  .section-subtitle,
  .prose {
    letter-spacing: 0.01em;
  }

  .stat-card,
  .calculator-result,
  .faq-item {
    padding: clamp(1.25rem, 5vw, 1.65rem);
  }

  .calculator-controls {
    gap: var(--space-3);
  }

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

  .cta-subheadline {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
  }

  .cta-alternative {
    text-align: center;
  }

  .footer-content {
    gap: var(--space-4);
  }

  .footer-bottom {
    align-items: flex-start;
    gap: var(--space-3);
  }

  .footer-trust {
    gap: var(--space-2);
  }
}

@media (width <= 360px) {
  body {
    font-size: 0.94rem;
  }

  .hero-section {
    padding-inline: clamp(0.75rem, 5vw, 1.25rem);
  }

  .hero-headline {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-subheadline {
    font-size: clamp(0.88rem, 4vw, 0.98rem);
  }

  .hero-media-card {
    border-radius: var(--radius-md);
  }

  .nav-panel {
    padding-inline: clamp(1rem, 6vw, 1.5rem);
  }
}

.testimonial-card {
    background-color: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.testimonial-card blockquote {
    font-size: var(--text-md);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.testimonial-card figcaption {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-2);
}
