/* ===================================
   Responsive Styles - Mobile First Approach
   =================================== */

/* ===================================
   Tablet Breakpoint (768px and below)
   =================================== */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Header & Navigation */
    .header-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
        padding: var(--spacing-md) 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: var(--spacing-sm) 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .phone-button {
        display: none;
    }

    .nav-menu .phone-button {
        display: inline-flex;
        margin-top: var(--spacing-sm);
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        order: 1;
    }

    .hero-image-circle {
        width: 300px;
        height: 300px;
    }

    /* Why Choose Us Section */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

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

    /* Service page main content - move image to top on mobile */
    .about-section > .section-container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .hero-image_scroll-reveal-center {
        order: 1;
    }

    .scroll-reveal-center {
        order: 2;
        margin-top: var(--spacing-md);
    }

    /* How it works section - 4 column to 2 columns on tablet */
    .about-section > .section-container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

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

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    /* Spacing adjustments */
    .hero,
    .why-choose-us,
    .services-preview,
    .contact-section,
    .about-section {
        padding: var(--spacing-md) 0;
    }
}

/* ===================================
   Mobile Breakpoint (480px and below)
   =================================== */
@media screen and (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    /* Logo */
    .logo {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-image-circle {
        width: 250px;
        height: 250px;
    }

    /* Button sizes */
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

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

    .benefit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* How it works section - Stack on mobile */
    .about-section > .section-container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
    }

    /* Why Choose Us - Stack on small mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Grid - Stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Form adjustments */
    .submit-button {
        font-size: 1rem;
    }

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

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

    /* Service icon size */
    .service-icon {
        font-size: 2.5rem;
    }

    /* Mobile Animation Enhancements */
    .service-card {
        position: relative;
        overflow: hidden;
    }

    /* Add tap feedback for mobile */
    .service-card,
    .benefit-card {
        -webkit-tap-highlight-color: rgba(2, 181, 175, 0.1);
    }

    /* Icon animations appear on scroll */
    .service-icon i {
        display: inline-block;
    }

    .service-card.revealed .service-icon i {
        animation: iconBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    /* Stagger cards appearance */
    .service-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .service-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .service-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Add subtle pulse to CTA buttons */
    .cta-button {
        animation: tapPulse 2s ease-out infinite;
    }

    /* Mobile touch feedback */
    .cta-button,
    .service-button,
    .submit-button {
        position: relative;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Add glow effect to phone button in header */
    .nav-menu .phone-button {
        animation: glowBorder 2s ease-in-out infinite;
    }

    /* Smooth entrance for benefit cards */
    .benefit-card {
        opacity: 0;
    }

    .benefit-card.revealed {
        animation: slideFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .benefit-card:nth-child(1).revealed {
        animation-delay: 0.1s;
    }

    .benefit-card:nth-child(2).revealed {
        animation-delay: 0.2s;
    }

    .benefit-card:nth-child(3).revealed {
        animation-delay: 0.3s;
    }

    .benefit-card:nth-child(4).revealed {
        animation-delay: 0.4s;
    }

    /* Footer sections slide in */
    .footer-section {
        opacity: 0;
    }

    .footer-section.revealed {
        animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .footer-section:nth-child(1).revealed {
        animation-delay: 0.1s;
    }

    .footer-section:nth-child(2).revealed {
        animation-delay: 0.2s;
    }

    .footer-section:nth-child(3).revealed {
        animation-delay: 0.3s;
    }

    .footer-section:nth-child(4).revealed {
        animation-delay: 0.4s;
    }

    /* Social icons bounce in */
    .social-icon {
        opacity: 0;
    }

    .social-icons.revealed .social-icon {
        animation: iconBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .social-icons.revealed .social-icon:nth-child(1) {
        animation-delay: 0.1s;
    }

    .social-icons.revealed .social-icon:nth-child(2) {
        animation-delay: 0.2s;
    }

    .social-icons.revealed .social-icon:nth-child(3) {
        animation-delay: 0.3s;
    }

    .social-icons.revealed .social-icon:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Hero content animations for mobile */
    .hero-content h1 {
        opacity: 0;
    }

    .hero-content h1.revealed {
        animation: slideFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .hero-content p {
        opacity: 0;
    }

    .hero-content p.revealed {
        animation: slideFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        animation-delay: 0.2s;
    }

    .hero-content .cta-button {
        opacity: 0;
    }

    .hero-content .cta-button.revealed {
        animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        animation-delay: 0.4s;
    }
}

/* ===================================
   Large Desktop Breakpoint (1440px and above)
   =================================== */
@media screen and (min-width: 1440px) {
    /* Increase max-width for larger screens */
    .hero-container,
    .section-container,
    .footer-container,
    .contact-wrapper {
        max-width: 1400px;
    }

    /* Hero typography */
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    /* Larger hero image */
    .hero-image-circle {
        width: 500px;
        height: 500px;
    }
}

/* ===================================
   Landscape Orientation - Tablets
   =================================== */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-md) 0;
    }

    .hero-container {
        gap: var(--spacing-md);
    }

    .hero-image-circle {
        width: 350px;
        height: 350px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .hamburger,
    .cta-button,
    .service-button,
    .submit-button,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .hero,
    .why-choose-us,
    .services-preview,
    .contact-section,
    .about-section {
        padding: 1rem 0;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
