/* Responsive CSS for InfluenceConnect - Mobile First Approach */
/* Following Bootstrap 5 breakpoints without overrides */

/* Base styles for mobile (default) */
body {
    font-size: 14px;
}

.navbar-brand {
    font-size: 1.25rem; /* Conservative size as requested */
}

h1, .display-1 { font-size: 1.75rem; }
h2, .display-2 { font-size: 1.5rem; }
h3, .display-3 { font-size: 1.25rem; }
h4, .display-4 { font-size: 1.125rem; }
h5, .display-5 { font-size: 1rem; }
h6, .display-6 { font-size: 0.875rem; }

.lead {
    font-size: 1rem;
}

/* Hero Section Mobile */
.hero-section {
    min-height: 70vh;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-top: 160px; /* Increased padding for mobile */
}

/* Additional mobile padding fix */
@media (max-width: 767.98px) {
    .hero-section h1 {
        padding-top: 180px;
    }
    
    .hero-section {
        padding-top: 3rem;
    }
}

.hero-section .lead {
    font-size: 1rem;
}

/* Cards on Mobile */
.card {
    margin-bottom: 1.5rem;
}

.card-img-top {
    height: 180px;
}

/* Team Grid Mobile */
.team-member img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

/* Process Steps Mobile */
.step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

/* Contact Form Mobile */
.contact-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px 14px;
}

/* Gallery Mobile */
.gallery-item {
    margin-bottom: 0.5rem;
}

/* Stats Mobile */
.stat-item h3 {
    font-size: 2rem;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    body {
        font-size: 15px;
    }
    
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    h1, .display-1 { font-size: 2rem; }
    h2, .display-2 { font-size: 1.75rem; }
    h3, .display-3 { font-size: 1.5rem; }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .navbar-brand {
        font-size: 1.5rem; /* Back to normal size */
    }
    
    h1, .display-1 { font-size: 2.25rem; }
    h2, .display-2 { font-size: 2rem; }
    h3, .display-3 { font-size: 1.75rem; }
    h4, .display-4 { font-size: 1.5rem; }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 125px;
}
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 12px 16px;
    }
    
    .stat-item h3 {
        font-size: 3rem;
    }
    
    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Card grid improvements */
    .card {
        height: 100%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1, .display-1 { font-size: 2.5rem; }
    h2, .display-2 { font-size: 2.25rem; }
    h3, .display-3 { font-size: 2rem; }
    h4, .display-4 { font-size: 1.75rem; }
    
    .hero-section {
        min-height: 100vh;
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem; /* Conservative as requested */
    padding-top: 125px;
}
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
    }
    
    .stat-item h3 {
        font-size: 3.5rem;
    }
    
    /* Better spacing on larger screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Enhanced hover effects on desktop */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .feature-box:hover {
        transform: translateY(-5px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.25rem; /* Still conservative */
    padding-top: 125px;
}
    
    .stat-item h3 {
        font-size: 4rem;
    }
    
    /* Better container spacing */
    .container {
        max-width: 1140px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 3.5rem; /* Maximum conservative size */
    padding-top: 125px;
}
    
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation specific styles */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none !important;
    }
    
    .card,
    .feature-box,
    .team-member img,
    .btn-primary {
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover,
    .feature-box:hover,
    .team-member:hover img,
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Ensure no animations on mobile for reduced motion */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .hero-section::before,
    .contact-form,
    footer .btn {
        display: none !important;
    }
    
    /* Optimize text for print */
    body {
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 12pt; }
    h5, h6 { font-size: 11pt; }
    
    /* Ensure proper page breaks */
    .card,
    .team-member,
    .process-step {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    /* Optimize images for print */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Remove shadows and effects for print */
    .card,
    .shadow,
    .shadow-sm,
    .shadow-lg {
        box-shadow: none !important;
        border: 1px solid #c0c0c0 !important;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Prevent zoom on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Hover-capable devices only */
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
    
    .feature-box:hover {
        background-color: var(--light-color);
        transform: translateY(-3px);
    }
    
    .team-member:hover img {
        transform: scale(1.05);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* No-hover devices (touch) */
@media (hover: none) {
    .card:hover,
    .feature-box:hover,
    .team-member:hover img,
    .btn-primary:hover {
        transform: none;
    }
    
    /* Focus states for touch devices */
    .card:focus,
    .btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 