/* 
    Archie Garage Doors Service - Platinic Glass Edition
    Theme: Precision Tech / Digital Blue
    Palette: Soft Silver (#f0f4f8) + Digital Blue (#3b82f6)
*/

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --bg-deep: #f0f4f8;
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --radius: 8px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

p {
    color: var(--text-muted);
}

.opacity-75 {
    opacity: 0.9 !important;
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Enhanced Full-Width Map */
.full-map-section {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 80px;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
}

.full-map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.5) contrast(1.1);
    transition: var(--transition);
}

.full-map-section:hover iframe {
    filter: grayscale(0) contrast(1.2);
}

/* Process Steps */
.step-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    height: 100%;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.step-item:hover {
    border-bottom-color: var(--primary);
    background: var(--bg-elevated);
}

.step-count {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.05;
    color: var(--primary);
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Schibsted Grotesk', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Subtle Tech Grid Overlay */
.carbon-grid {
    position: relative;
    background-image: radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navbar: #12 Floating Rounded */
.navbar-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 100px;
    padding: 12px 35px;
    width: auto;
    min-width: 90%;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08);
}

.navbar.scrolled {
    min-width: 100%;
    top: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .brand-logo {
    height: 45px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 15px !important;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-cta {
    background: var(--primary) !important;
    color: black !important;
    font-weight: 800 !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Hero: #15 Bento-Style Grid */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-deep);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.bento-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-item:hover {
    background: var(--bg-elevated);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-main h1 {
    font-size: 4.5rem;
    line-height: 0.9;
    margin-bottom: 30px;
}

.bento-main .highlight {
    color: var(--primary);
    display: block;
}

.bento-visual {
    grid-column: span 2;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.bento-visual::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), transparent);
    pointer-events: none;
}

.bento-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.9);
}

.bento-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.bento-stat .number {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 900;
}

.bento-stat .label {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Sections Common */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

/* Services: #15 Perspective Grid */
.perspective-container {
    perspective: 1000px;
}

.perspective-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius);
    transform-style: preserve-3d;
    transition: var(--transition);
    height: 100%;
    border-left: 0 solid var(--primary);
}

.perspective-card:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(-5deg);
    border-left-width: 5px;
    box-shadow: -15px 15px 50px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    opacity: 0.8;
}

/* About: #10 Layered Card Peek-a-Boo */
.peek-container {
    position: relative;
    height: 600px;
}

.peek-card {
    position: absolute;
    width: 80%;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 20px 40px 80px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.peek-card.back {
    top: 50px;
    left: 100px;
    z-index: 1;
    opacity: 0.5;
}

.peek-card.front {
    top: 150px;
    left: 0;
    z-index: 2;
    background: var(--bg-elevated);
    border-top: 4px solid var(--primary);
}

.peek-container:hover .back {
    transform: translate(30px, -30px);
    opacity: 1;
}

/* CTA Strip */
.cta-strip {
    background: var(--bg-deep);
    padding: 60px 0;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* FAQ: #18 Two-column Q&A Cards */
.faq-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-top: 2px solid transparent;
}

.faq-card:hover {
    border-top-color: var(--primary);
    transform: translateY(-5px);
}

.faq-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Areas */
.area-section {
    background: var(--bg-deep);
}

.area-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.area-chip {
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    cursor: pointer;
}

.area-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
    border-color: var(--primary);
}

/* Contact: #18 3-Tier Stack */
.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tier-headline {
    text-align: center;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tier-item {
    background: var(--bg-card);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
}

.map-container {
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}

/* Footer: #13 Stacked Asymmetric */
footer {
    padding: 100px 0 40px;
    background: var(--bg-deep);
    border-top: 1px solid #e2e8f0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.footer-links h5 {
    margin-bottom: 25px;
    color: var(--text-main);
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.bottom-bar {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Improvements */
@media (max-width: 1199px) {
    .bento-main h1 { font-size: 3.5rem; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        margin-top: 15px;
        border-radius: 20px;
        padding: 30px;
        border: 1px solid rgba(255, 159, 28, 0.2);
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        transition: var(--transition);
    }
    
    .navbar-nav {
        text-align: center;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link:hover {
        background: rgba(255, 159, 28, 0.05);
        color: var(--primary) !important;
    }
    
    .nav-cta {
        width: 100%;
        margin-top: 15px;
        padding: 15px !important;
        font-size: 1rem !important;
    }

    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: auto;
        gap: 15px; 
    }
    .bento-main { grid-column: span 2; padding: 30px; min-height: 400px; }
    .bento-visual { grid-column: span 2; height: 300px; }
    .tier-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar { 
        min-width: 95%; 
        padding: 5px 20px; 
        border-radius: 20px; 
    }
    .navbar-brand span { font-size: 1.1rem; }
    
    .bento-main h1 { font-size: 2.4rem; line-height: 1.1; }
    .hero { padding: 120px 0 60px; }
    
    .peek-container { height: auto; display: flex; flex-direction: column; gap: 20px; }
    .peek-card { position: relative; width: 100%; top: 0 !important; left: 0 !important; padding: 30px; }
    
    .footer-main { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand .w-75 { width: 100% !important; margin: 0 auto; }
    .bottom-bar { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 576px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-main { grid-column: span 1; padding: 20px; }
    .bento-visual { grid-column: span 1; height: 250px; }
    .bento-stat { padding: 30px; }
    
    .section-title { font-size: 2.2rem; }
    .perspective-card { padding: 30px; }
}
