/* ============================================ */
/* RESPONSIVE STYLES - AFRIPRECISION */
/* Mobile-first responsive adjustments */
/* ============================================ */

/* ============================================ */
/* 1. DESKTOP (1200px+) - Default styles */
/* ============================================ */

/* Large desktop adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-premium__title {
        font-size: 72px;
    }
    
    .section-title__heading {
        font-size: var(--text-5xl);
    }
}

/* ============================================ */
/* 2. LAPTOP / SMALL DESKTOP (992px - 1199px) */
/* ============================================ */

@media (max-width: 1199px) {
    /* Typography scaling */
    :root {
        --text-hero: 56px;
        --text-h1: 44px;
        --text-h2: 36px;
        --text-h3: 22px;
    }
    
    /* Hero adjustments */
    .hero-premium {
        min-height: 85vh;
        padding: 140px 0 80px;
    }
    
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-5xl);
    }
    
    /* Navigation */
    .main-nav {
        display: none;
    }
    
    .mobile-nav__toggler {
        display: flex;
    }
    
    /* Cards grid */
    .services-premium-grid .row {
        --bs-gutter-x: 24px;
        --bs-gutter-y: 24px;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
}

/* ============================================ */
/* 3. TABLET (768px - 991px) */
/* ============================================ */

@media (max-width: 991px) {
    /* Typography scaling */
    :root {
        --text-hero: 48px;
        --text-h1: 40px;
        --text-h2: 32px;
        --text-h3: 20px;
        --section-padding-lg: 80px;
        --section-padding-md: 64px;
    }
    
    /* Hero adjustments */
    .hero-premium {
        min-height: 80vh;
        padding: 120px 0 60px;
    }
    
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-4xl);
        letter-spacing: -0.02em;
    }
    
    .hero-premium__subtitle,
    .hero-saas__subtitle {
        font-size: var(--text-lg);
    }
    
    /* Stack hero image on top */
    .hero-premium .row {
        flex-direction: column-reverse;
    }
    
    .hero-premium__image {
        margin-bottom: var(--space-10);
    }
    
    /* Page header */
    .page-header {
        padding: 140px 0 60px;
    }
    
    /* Section titles */
    .section-title__heading {
        font-size: var(--text-3xl);
    }
    
    /* Cards - 2 columns */
    .service-card {
        padding: var(--space-8);
    }
    
    .service-icon-container {
        width: 64px;
        height: 64px;
    }
    
    .service-icon-container i {
        font-size: 28px;
    }
    
    /* Stats section */
    .stats-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item__number {
        font-size: var(--text-4xl);
    }
    
    /* Comparison section */
    .comparison-section__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .comparison-card {
        padding: var(--space-10) var(--space-8);
    }
    
    /* CTA sections */
    .cta-saas {
        padding: var(--space-16) 0;
    }
    
    .cta-saas__title {
        font-size: var(--text-3xl);
    }
    
    /* About badge positioning */
    .about-badge {
        bottom: -20px;
        right: 20px;
        width: 140px;
        height: 140px;
    }
    
    .about-badge__number {
        font-size: var(--text-4xl);
    }
    
    /* Forms */
    .form-group--inline {
        flex-direction: column;
    }
    
    .contact-form,
    .quote-form {
        padding: var(--space-10) var(--space-8);
    }
    
    /* Footer */
    .footer__main {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    /* Header call button */
    .main-header__call {
        display: none;
    }
}

/* ============================================ */
/* 4. MOBILE LANDSCAPE (576px - 767px) */
/* ============================================ */

@media (max-width: 767px) {
    /* Typography scaling */
    :root {
        --text-hero: 36px;
        --text-h1: 32px;
        --text-h2: 28px;
        --text-h3: 20px;
        --text-body: 15px;
        --section-padding-lg: 64px;
        --section-padding-md: 48px;
        --section-padding-sm: 32px;
    }
    
    /* Hero adjustments */
    .hero-premium {
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-3xl);
        letter-spacing: -0.01em;
    }
    
    .hero-premium__subtitle,
    .hero-saas__subtitle {
        font-size: var(--text-base);
    }
    
    .hero-premium__badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
    }
    
    .hero-premium__actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-premium__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Page header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header__title {
        font-size: var(--text-3xl);
    }
    
    .page-header__breadcrumb {
        font-size: var(--text-sm);
    }
    
    /* Section titles */
    .section-title {
        margin-bottom: var(--space-10);
    }
    
    .section-title__heading {
        font-size: var(--text-2xl);
    }
    
    .section-title__text {
        font-size: var(--text-base);
    }
    
    /* Cards - 1 column */
    .service-card {
        padding: var(--space-6);
    }
    
    .service-card__title {
        font-size: var(--text-xl);
    }
    
    .service-icon-container {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-4);
    }
    
    .service-icon-container i {
        font-size: 24px;
    }
    
    /* Feature pills */
    .feature-pill {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
    
    .feature-pill:hover {
        transform: translateY(-4px);
    }
    
    /* Process cards */
    .process-card {
        padding: var(--space-8);
    }
    
    .process-card__number {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }
    
    /* Stats section */
    .stats-section__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stat-item {
        padding: var(--space-6);
    }
    
    .stat-item__number {
        font-size: var(--text-3xl);
    }
    
    /* Comparison section */
    .comparison-card {
        padding: var(--space-8) var(--space-6);
    }
    
    .comparison-card__title {
        font-size: var(--text-2xl);
    }
    
    .comparison-card__text {
        font-size: var(--text-base);
    }
    
    .comparison-checklist li {
        font-size: var(--text-base);
        padding-left: var(--space-8);
    }
    
    .comparison-checklist li::before {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    /* CTA sections */
    .cta-saas {
        padding: var(--space-12) 0;
    }
    
    .cta-saas__title {
        font-size: var(--text-2xl);
    }
    
    .cta-saas__text {
        font-size: var(--text-base);
    }
    
    .cta-saas__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-saas__actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* About badge */
    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        width: 120px;
        height: 120px;
        margin: var(--space-6) auto 0;
    }
    
    .about-badge__number {
        font-size: var(--text-3xl);
    }
    
    .about-badge__text {
        font-size: 10px;
    }
    
    /* Forms */
    .contact-form,
    .quote-form {
        padding: var(--space-8) var(--space-5);
    }
    
    .form-header__title {
        font-size: var(--text-2xl);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-6);
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-base);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer__main {
        padding: var(--space-12) 0 var(--space-10);
    }
    
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .footer__bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Hide quote button on mobile header */
    .quote-btn {
        display: none;
    }
    
    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
    
    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
    
    /* Topbar */
    .topbar__info {
        display: none;
    }
    
    .topbar__menu {
        display: none;
    }
}

/* ============================================ */
/* 5. MOBILE PORTRAIT (< 575px) */
/* ============================================ */

@media (max-width: 575px) {
    /* Typography scaling */
    :root {
        --text-hero: 32px;
        --text-h1: 28px;
        --text-h2: 24px;
        --text-h3: 18px;
    }
    
    /* Container padding */
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    /* Hero */
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: 28px;
    }
    
    .hero-premium__subtitle,
    .hero-saas__subtitle {
        font-size: var(--text-sm);
    }
    
    /* Cards */
    .service-card {
        padding: var(--space-5);
    }
    
    .service-card__title {
        font-size: var(--text-lg);
    }
    
    .service-card__text {
        font-size: var(--text-sm);
    }
    
    /* Value cards */
    .value-card {
        padding: var(--space-6) var(--space-5);
    }
    
    .value-card__icon {
        width: 56px;
        height: 56px;
    }
    
    .value-card__icon i {
        font-size: 24px;
    }
    
    .value-card__title {
        font-size: var(--text-lg);
    }
    
    /* Feature strip */
    .feature-strip__grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-banner__title,
    .cta-saas__title {
        font-size: var(--text-xl);
    }
    
    /* Forms */
    .contact-form,
    .quote-form {
        padding: var(--space-6) var(--space-4);
    }
    
    .form-header__title {
        font-size: var(--text-xl);
    }
    
    .form-header__badge {
        font-size: var(--text-xs);
    }
    
    /* Footer */
    .footer__brand {
        text-align: center;
    }
    
    .footer__logo img {
        margin: 0 auto;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__links {
        text-align: center;
    }
    
    .footer__links a::before {
        display: none;
    }
}

/* ============================================ */
/* 6. TOUCH DEVICE OPTIMIZATIONS */
/* ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-check-input {
        width: 24px;
        height: 24px;
    }
    
    /* Remove hover effects */
    .service-card:hover,
    .feature-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Mobile nav touch targets */
    .mobile-nav__container a {
        padding: var(--space-4) 0;
    }
    
    .mobile-nav__container .dropdown-btn {
        width: 44px;
        height: 44px;
    }
}

/* ============================================ */
/* 7. PRINT STYLES */
/* ============================================ */

@media print {
    /* Hide non-essential elements */
    .topbar,
    .main-header,
    .cookie-banner,
    .whatsapp-float,
    .back-to-top,
    .scroll-progress,
    .footer__social,
    .mobile-nav__wrapper {
        display: none !important;
    }
    
    /* Reset backgrounds */
    .hero-premium,
    .page-header,
    .hero-saas,
    .cta-saas,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    /* Ensure text is visible */
    * {
        color: black !important;
        background: white !important;
    }
    
    /* Show URLs for links */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================ */
/* END RESPONSIVE STYLES */
/* ============================================ */

