/* Mobile-First Responsive Styles for SelectionWise - Updated for New Grid Layout */

/* Clean Footer Links Styling */
.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    margin-right: 2rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF4500;
}

.footer-links a:last-child {
    margin-right: 0;
}

/* Base Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 1rem 0;
    }
    
    .nav-links {
        display: none; /* Will need mobile menu implementation */
    }
    
    .logo img {
        max-width: 200px;
        height: auto;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero .hero-subline {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero .container {
        padding: 2rem 1rem;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Success Checklist */
    .success-checklist {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Methodology Section - Updated for new grid layout */
    .methodology h2 {
        font-size: 2rem;
    }
    
    .phase {
        margin-bottom: 1.5rem;
        display: block; /* Override grid layout on mobile */
        padding: 1.5rem;
    }
    
    .phase-header {
        display: block; /* Override display: contents on mobile */
    }
    
    .phase-number-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .phase-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0;
    }
    
    .phase-icon {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    
    .phase-content-wrapper {
        display: block;
    }
    
    .phase-content {
        margin-right: 0;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .phase-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .phase-description {
        text-align: center;
        font-size: 1rem;
    }
    
    .phase-details {
        margin-right: 0;
        margin-left: 0;
        margin-top: 0;
        text-align: left;
    }
    
    .phase-steps {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .phase-steps .step {
        margin: 0.25rem;
        font-size: 0.85rem;
    }
    
    /* Toolkit Section */
    .toolkit .container > div {
        padding: 1.5rem;
    }
    
    .toolkit h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .early-adopter {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .contact-form input {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-form button {
        width: 100%;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Resources/Lead Magnets */
    .magnets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Book Section */
    .book-content {
        flex-direction: column;
    }
    
    .book-cover {
        margin-bottom: 2rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-info {
        text-align: center;
    }
    
    /* About Section */
    .about-content {
        padding: 2rem 1rem;
    }
    
    /* FAQ Section */
    .faq .container {
        padding: 2rem 1rem;
    }
    
    /* Mobile Footer Links */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0;
        text-align: center;
        padding: 0.75rem 1rem;
        min-width: 120px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .footer-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #FF4500;
    }
    
    /* Footer */
    footer .container {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    /* Buttons */
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* General Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Utility: Hide on mobile */
    .hide-mobile {
        display: none;
    }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Stats Grid - 2 columns on tablet */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Services Grid - 2 columns on tablet */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Resources Grid - 2 columns on tablet */
    .magnets-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Success Checklist - 2 columns on tablet */
    .success-checklist {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Tablet maintains grid layout but with smaller icons */
    .phase-icon {
        width: 80px;
        height: 80px;
    }
    
    /* Ensure proper spacing on tablets */
    .phase-details {
        margin-top: 1rem;
    }
}

/* Desktop Icon Sizing - NO CHANGES NEEDED as main CSS handles this */
@media (min-width: 1025px) {
    /* Desktop layout is handled by main CSS grid structure */
    .phase-icon {
        width: 100px;
        height: 100px;
    }
}

/* Large Desktop (1400px+) - Bigger icons */
@media (min-width: 1400px) {
    .phase-icon {
        width: 120px;
        height: 120px;
    }
}

/* Small Desktop (1025px to 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

/* Mobile Menu Enhanced */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 1rem 0;
    }
    
    .nav-links.mobile-active li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links.mobile-active li:last-child {
        border-bottom: none;
    }
    
    .nav-links.mobile-active a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        color: #333;
        text-decoration: none;
        transition: background-color 0.3s;
    }
    
    .nav-links.mobile-active a:hover {
        background-color: #f8f9fa;
        color: #FF4500;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Tables (if any) */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Responsive Text */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Slightly smaller base font on very small screens */
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Extra small mobile - keep icons even smaller */
    .phase-icon {
        width: 50px;
        height: 50px;
    }
    
    .phase-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .phase {
        padding: 1rem;
    }
    
    .phase-details {
        margin-top: 1rem;
    }
}

/* Fix horizontal scroll issues */
html, body, div, section, header, footer, nav, main, article, aside {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

/* Assessment Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .results-container {
        padding: 1.5rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-circle svg {
        width: 150px;
        height: 150px;
    }
    
    .score-text {
        font-size: 36px;
    }
    
    .recommendations {
        padding: 1.5rem;
    }
}