/* =========================================
   GLOBAL STYLES & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --charcoal: #1e293b; /* Deepened slightly for higher contrast and premium appeal */
    --steel-blue: #4682b4; /* Brand identity steel blue */
    --accent-blue: #5dade2; /* Bright accent blue */
    --white: #ffffff;
    --light-grey: #f1f5f9; /* Modern slate-tinted light grey */
    --body-bg: #f8fafc; /* Ultra-premium cool off-white background */
    --dark-bg: #0f172a; /* Richer, darker navy-charcoal for high-end contrast */
    
    /* Apple-style custom cubic-bezier for silky, natural-feeling transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.7; /* Extra breathing room for modern typography */
    color: #475569; /* Soft slate grey instead of harsh charcoal */
    background-color: var(--body-bg); /* Highlighted background for glassmorphism to sit on */
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    line-height: 1.25;
    letter-spacing: -0.5px; /* Tighter kerning for editorial style */
    color: var(--charcoal);
}

/* =========================================
   NAVIGATION BAR (Frosted Glass Effect)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    
    /* Premium Glassmorphic Layer */
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Ultra-fine highlight line */
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03); /* Extremely soft ambient shadow */
    
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    font-family: 'Montserrat', sans-serif; 
    color: var(--charcoal); 
    letter-spacing: 0.5px;
}

.logo span { 
    color: var(--steel-blue); 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
}

nav a { 
    text-decoration: none; 
    color: #64748b; /* Softened standard link color */
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition); 
}

nav a:hover { 
    color: var(--steel-blue); 
}

nav a.active { 
    color: var(--steel-blue); 
    border-bottom: 2px solid var(--steel-blue); 
    padding-bottom: 4px;
}

/* =========================================
   HERO SECTION (With Parallax Depth)
   ========================================= */
.hero {
    /* Subtle overlay gradient to blend into dark headers */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1579165466541-74e2beeac70b?auto=format&fit=crop&q=80&w=2070'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates premium parallax background scroll */
    padding: 160px 10%;
    text-align: center;
    color: var(--white); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-motto {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px; /* Clean tracking */
    color: var(--accent-blue); 
    margin-bottom: 20px;
    text-transform: uppercase;
    display: block;
}

.hero h1 { 
    font-size: 3.2rem; 
    margin-bottom: 25px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 950px;
    color: var(--white);
}

.hero p { 
    font-size: 1.25rem; 
    margin-bottom: 45px; 
    font-weight: 300; 
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1; /* Off-white for sleek contrast */
}

/* =========================================
   BUTTONS (Dynamic Gradients)
   ========================================= */
.cta-group { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.btn {
    padding: 16px 36px;
    border-radius: 8px; /* Slightly softer corners for high-end look */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif; 
}

.btn-primary { 
    /* Rich, multi-tone blue gradient */
    background: linear-gradient(135deg, var(--steel-blue), #34628a); 
    color: var(--white); 
    border: none;
    /* Brand-tinted glow shadow */
    box-shadow: 0 10px 20px rgba(70, 130, 180, 0.25);
}

.btn-primary:hover { 
    background: linear-gradient(135deg, var(--accent-blue), var(--steel-blue)); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 25px rgba(70, 130, 180, 0.45);
}

.btn-secondary { 
    border: 2px solid rgba(255, 255, 255, 0.8); 
    color: var(--white); 
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover { 
    background: var(--white); 
    color: var(--dark-bg); 
    transform: translateY(-3px);
    border-color: var(--white);
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
    background: var(--white);
    padding: 25px 10%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.trust-item { 
    font-weight: 700; 
    color: #64748b; 
    font-size: 0.8rem; 
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-item i {
    color: var(--steel-blue); 
    font-size: 1.3rem;
}

/* =========================================
   SECTIONS & GRIDS (Depth-based Cards)
   ========================================= */
.section-padding { 
    padding: 100px 10%; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-title h2 { 
    font-size: 2.4rem; 
    color: var(--charcoal); 
    position: relative; 
    padding-bottom: 20px; 
    text-transform: uppercase;
}

.section-title h2::after { 
    content: ''; 
    width: 50px; 
    height: 4px; 
    background: linear-gradient(90deg, var(--steel-blue), var(--accent-blue)); 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    border-radius: 2px;
}

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

/* Premium Glassmorphic Service Cards */
.card { 
    background: rgba(255, 255, 255, 0.7); /* Perfect transparency on body-bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    padding: 45px 35px; 
    border-radius: 16px; /* Sleeker, softer corners */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Sharp inner border */
    
    /* Double-layered soft ambient shadow with brand-tinted undertones */
    box-shadow: 
        0 4px 6px -1px rgba(70, 130, 180, 0.02),
        0 20px 40px -10px rgba(70, 130, 180, 0.08); 
    
    transition: var(--transition); 
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dynamic Top Border Line inside the card padding wrapper */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--steel-blue), var(--accent-blue));
    opacity: 0.8;
}

.card:hover { 
    transform: translateY(-10px) scale(1.02); 
    background: rgba(255, 255, 255, 0.95); 
    /* Deeper, more expansive glow effect */
    box-shadow: 
        0 10px 20px -3px rgba(70, 130, 180, 0.08),
        0 30px 60px -15px rgba(70, 130, 180, 0.18); 
}

.card h3 { 
    margin-bottom: 18px; 
    color: var(--charcoal); 
    font-size: 1.4rem;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.card ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05); /* Soft divider lines */
    color: #475569;
    font-size: 0.95rem;
}

.card ul li:last-child {
    border-bottom: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: var(--dark-bg); 
    color: #94a3b8; /* Highly readable cool light-grey text */
    padding: 80px 10% 30px; 
    text-align: center; 
}

.footer-grid h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-bottom { 
    margin-top: 60px; 
    padding-top: 25px; 
    border-top: 1px solid rgba(255, 255, 255, 0.04); 
    font-size: 0.85rem; 
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent-blue) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES (Max-Width: 768px)
   ========================================================================== */

/* Global Phone Link Fix (Stops browsers from forcing bright blue on numbers) */
a[href^="tel"], 
a[href^="mailto"] {
    color: var(--steel-blue) !important; /* Forces your brand's steel blue */
    text-decoration: none !important;
    font-weight: 700 !important;
    border-bottom: 1px dashed rgba(70, 130, 180, 0.4); /* Elegant subtle indicator */
    transition: var(--transition);
}

a[href^="tel"]:hover, 
a[href^="mailto"]:hover {
    color: var(--accent-blue) !important;
}

@media (max-width: 768px) {
    /* 1. Ultra-Sleek App-Style Horizontal Navigation */
    nav { 
        flex-direction: column !important; 
        padding: 12px 0 0 0 !important; /* Tighten up vertical spacing */
        text-align: center;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .logo {
        font-size: 1.4rem !important;
        margin-bottom: 8px;
    }

    /* Transform the list into a silky smooth swipeable horizontal bar */
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 5px !important;
        padding: 8px 15px 12px 15px !important;
        overflow-x: auto !important; /* Enable side-scrolling */
        white-space: nowrap !important; /* Stop text wrapping to new lines */
        -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scroll */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        border-top: 1px solid rgba(15, 23, 42, 0.05);
    }

    /* Hide scrollbars for Chrome, Safari, and Opera */
    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav ul li {
        display: inline-block;
        flex: 0 0 auto; /* Keep items from shrinking */
    }

    nav a { 
        display: inline-block !important;
        padding: 8px 14px !important;
        font-size: 0.75rem !important; 
        background: var(--light-grey) !important;
        color: #475569 !important;
        border-radius: 20px !important; /* Beautiful pill-shaped buttons */
        border: 1px solid rgba(15, 23, 42, 0.03) !important;
        transition: var(--transition);
    }

    nav a.active {
        background: var(--steel-blue) !important;
        color: var(--white) !important;
        border-bottom: none !important;
        padding-bottom: 8px !important;
    }

    /* 2. Tightened Hero Layouts */
    header { 
        padding: 60px 6% !important; 
    } 
    
    .hero {
        padding: 80px 6% 40px 6% !important; 
        background-attachment: scroll !important; /* Improves mobile scroll lag */
        min-height: auto !important;
    }

    .hero h1 { 
        font-size: 1.7rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .hero p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }
    
    /* 3. Full-Width CTA Tapping Targets */
    .cta-group {
        flex-direction: column !important;
        width: 100%;
        gap: 10px !important;
    }

    .btn {
        width: 100% !important;
        display: block !important;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 0.75rem !important;
    }
    
    /* 4. Grid Adjustments: Balanced 2-Column Trust Items */
    .trust-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 15px 5% !important;
    }

    .trust-item {
        flex-direction: column !important;
        text-align: center !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }

    /* 5. General Section and Internal Padding Controls */
    .section-padding { 
        padding: 40px 6% !important; 
    }

    .section-title h2 {
        font-size: 1.6rem !important;
    }
    
    /* Scale down giant 40px inline paddings so content has breathing room */
    .section-padding > div, 
    section[style*="display: flex"] > div,
    div[style*="padding: 40px"] {
        padding: 20px 15px !important; 
    }
    
    /* 6. Vertical Stack Adjustments */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Force layout boxes to drop cleanly under each other */
    section[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* 7. Gallery Grid (Compact 2-column format) */
    .grid[style*="minmax"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* 8. Text Spacing Scales */
    p, li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* 9. Contact Page Form Constraints */
    div[style*="min-width: 300px"] {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    form input, form textarea {
        padding: 12px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }
    
    /* 10. Neat Footer Links */
    .footer-grid {
        padding: 30px 5% !important;
    }

    .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px 5% !important;
        font-size: 0.8rem !important;
    }
}

/* =========================================
   EXTRA NARROW DEVICES (Max-Width: 480px)
   ========================================= */
@media (max-width: 480px) {
    /* Full single-column grid on tiny smartphones */
    .grid[style*="minmax"] {
        grid-template-columns: 1fr !important;
    }
}
}
