/* 
 * BusinessBlueprint.dev - Main Stylesheet
 * Shared styles for all pages with bulletproof mobile responsiveness
 */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    /* Bulletproof mobile fixes */
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== CONTAINER SYSTEM ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: #4f46e5;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.logo span {
    color: #1f2937;
}

.navigation-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    /* Touch-friendly targets */
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    color: #4f46e5;
    background: rgba(79,70,229,0.1);
}

.nav-highlight {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    color: #fff !important;
    font-weight: 600;
}

.nav-special {
    color: #10b981 !important;
    font-weight: bold !important;
}

/* Mobile toggle + overlay */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    /* Touch-friendly */
    min-height: 44px;
    min-width: 44px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #4f46e5;
    margin: 2px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SHARED BUTTON STYLES ===== */
.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    border: 2px solid transparent;
    /* Touch-friendly */
    min-height: 44px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
}

.cta-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    margin-right: 1rem;
    border: 2px solid transparent;
    min-height: 44px;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: #1f2937;
}

/* ===== SHARED SECTION STYLES ===== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #f8fafc;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #1f2937;
    /* Bulletproof text handling */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-content {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #4b5563;
}

/* ===== SHARED GRID STYLES ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-300 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===== SHARED CARD STYLES ===== */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-center {
    text-align: center;
}

.card h3, .card h4 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.card p {
    color: #4b5563;
    line-height: 1.6;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #4f46e5;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
    color: #bdc3c7;
}

/* ===== BULLETPROOF MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .navigation-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 0 40px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 1002;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .navigation-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-item {
        font-size: 1.2rem;
        padding: 15px 30px;
        width: 100%;
        min-height: 44px;
        margin: 5px 0;
    }
    
    /* Mobile Container */
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    /* Mobile Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
        padding: 0 10px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .section-content {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Mobile Grids */
    .grid-auto,
    .grid-auto-300 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile Cards */
    .card {
        padding: 1.5rem;
    }
    
    /* Mobile Buttons */
    .btn,
    .cta-button {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem;
        text-align: center;
    }
    
    /* Mobile Footer - Ensure visibility */
    .footer {
        padding: 40px 0 20px;
        display: block !important;
        visibility: visible !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        display: grid !important;
    }
    
    .footer-section {
        display: block !important;
    }
    
    .footer-section h3 {
        display: block !important;
        margin-bottom: 15px;
    }
    
    .footer-section ul {
        display: block !important;
    }
    
    .footer-section ul li {
        display: block !important;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        display: block !important;
        text-align: center;
        margin-top: 30px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container,
    .header-content {
        padding: 0 12px;
    }
    
    .section h2 {
        font-size: 1.6rem;
        padding: 0 8px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    .section-content {
        padding: 0 8px;
    }
    
    .card {
        padding: 1.25rem;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .section h2 {
        font-size: 1.5rem;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    
    .card {
        padding: 1rem;
    }
}

/* ===== Mobile Sticky CTA (mobile only) ===== */
.mobile-sticky-cta{position:fixed;left:0;right:0;bottom:0;display:flex;gap:.75rem;padding:calc(.5rem + env(safe-area-inset-bottom)) .75rem .5rem;background:#ffffff;border-top:1px solid #e5e7eb;box-shadow:0 -6px 16px rgba(0,0,0,.08);z-index:1003}
.mobile-sticky-cta__btn{flex:1;display:inline-flex;align-items:center;justify-content:center;height:44px;border-radius:.5rem;font-weight:600;text-decoration:none}
.mobile-sticky-cta__call{background:#10b981;color:#fff}
.mobile-sticky-cta__book{background:#111827;color:#fff}
@media(min-width:768px){.mobile-sticky-cta{display:none}}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

.w-full { width: 100%; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-1000 { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* Text wrapping utilities for bulletproof mobile */
.text-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.text-wrap-anywhere {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.text-wrap-break-all {
    word-break: break-all;
    overflow-wrap: anywhere;
}



}
