/* =========================================
   SpinCycle Rentals | Vanilla CSS
   ========================================= */

/* Variables & Theme */
:root {
    --primary: #0056b3; /* Professional Water Blue */
    --primary-light: #3384e6;
    --primary-dark: #003d82;
    --secondary: #f8f9fa;
    --accent: #ffc107;
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    
    --radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
strong { color: var(--text-dark); }

/* Layout & Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-perks span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-perks svg {
    color: #10b981; /* Success Green */
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Features */
.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* How It Works */
.rounded-image {
    border-radius: var(--radius);
}

.shadow-large {
    box-shadow: var(--shadow-lg);
}

.steps-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.steps-list li {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

/* Contact / Apply */
.contact-methods {
    margin: 3rem 0;
}

.contact-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid #e2e8f0;
}

.contact-card svg {
    color: var(--primary);
    margin-bottom: 1rem;
}

.apply-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

.apply-box h3 {
    color: var(--white);
    font-size: 2rem;
}

.apply-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.apply-box .btn {
    background: var(--white);
    color: var(--primary);
    width: 100%;
}

.apply-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6) !important;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer h4 {
    color: var(--white);
}

.footer strong {
    color: #cbd5e1;
}

.footer-links {
    text-align: right;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-right { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-left { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }

.visible { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-perks { justify-content: center; }
    .hero { padding-top: 7rem; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0 !important;
        box-shadow: var(--shadow-sm); /* Always show shadow on mobile for separation */
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 320px;
        max-width: 85vw;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-dark);
        border-bottom: 1px solid #f1f5f9;
        transition: padding-left 0.3s ease, color 0.3s ease;
    }
    
    .nav-links a:active {
        background: rgba(0, 86, 179, 0.05);
    }
    
    .nav-links a.btn {
        margin-top: 1.5rem;
        justify-content: center;
        border-bottom: none;
        padding: 1rem;
        color: var(--white);
    }
    
    .mobile-toggle { 
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative; 
        z-index: 1001;
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.03);
        border-radius: 8px;
        color: var(--primary);
        transition: background 0.3s ease;
    }
    .mobile-toggle:active {
        background: rgba(0,0,0,0.08);
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .footer-links { text-align: left; justify-content: flex-start; margin-top: 2rem; }
}


/* Pricing Page Specifics */
.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.pricing-header { text-align: center; margin-bottom: 2rem; }
.pricing-price { font-size: 4rem; font-weight: 800; color: var(--text-dark); line-height: 1; margin: 1rem 0; }
.pricing-price span { font-size: 1.25rem; color: var(--text-muted); font-weight: 500; }
.pricing-features { margin-bottom: 2.5rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-weight: 500; }
.pricing-features svg { color: #10b981; flex-shrink: 0; }

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -2.5rem;
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.25rem 3rem;
    transform: rotate(45deg);
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

/* FAQ Page Specifics */
.faq-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-question svg {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}


/* Footer Enhancements */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    letter-spacing: 0.5px;
    font-size: 1.125rem;
}

.footer-contact a {
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-light) !important;
}

.footer-hours ul {
    list-style: none;
    padding: 0;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-hours strong {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .footer .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .footer-contact, .footer-hours { margin-top: 1rem; }
}



/* Custom Built By Button */
.built-by-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    width: 100%;
    max-width: 300px;
    background-color: #1a2c3b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.built-by-btn:hover {
    background-color: #233545;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.built-by-btn:active {
    transform: scale(0.95);
}

.built-by-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    opacity: 0;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: opacity 0.5s ease;
}

.built-by-btn:hover .built-by-bg {
    opacity: 1;
}

.built-by-label {
    position: relative;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #64748b;
    font-weight: 700;
    transition: color 0.3s ease;
}

.built-by-btn:hover .built-by-label {
    color: #d4af37; /* Gold */
}

.built-by-name-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0.75rem;
}

.built-by-name {
    font-family: Georgia, serif;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.built-by-btn:hover .built-by-name {
    color: var(--white);
}

.built-by-icon {
    width: 12px;
    height: 12px;
    color: #d4af37;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.built-by-btn:hover .built-by-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}


/* About Page Specifics & Mobile Fixes */
.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}
.about-image {
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

@media (max-width: 768px) {
    .about-card {
        padding: 1.5rem;
    }
    .about-card .how-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .about-image {
        min-height: 250px;
        width: 100%;
    }
    .feature-card {
        padding: 1.5rem;
    }
}






