/* 
 * YoyoWash | Premium Laundry & Dry Cleaning Services
 * Main Stylesheet
 */

/* ==========================================================================
   Variables & Theme
   ========================================================================== */
   :root {
    /* Colors */
    --primary-color: #163A5B; /* Dark Navy/Teal from buttons */
    --primary-light: #E0F2FE; /* Light Blue from splash screen */
    --primary-dark: #0F2840; /* Darker Navy */
    
    --secondary-color: #38BDF8; /* Sky Blue */
    --accent-color: #F59E0B; /* Amber/Orange */
    
    --text-dark: #2D3748;
    --text-gray: #718096;
    --text-light: #A0AEC0;
    
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-dark: #1A202C;
    
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(10, 102, 194, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.highlight {
    color: var(--primary-color);
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #147BE8);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

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

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 100% 0%, var(--primary-light) 0%, white 50%);
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(22, 58, 91, 0.1);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    z-index: -1;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-card-1 {
    bottom: -20px;
    left: -40px;
}

.floating-card strong {
    display: block;
    font-size: 0.95rem;
}

.floating-card span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #10B981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-image {
    height: 240px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}

.step-card {
    text-align: center;
    width: 22%;
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(10, 102, 194, 0.05);
    z-index: -1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    margin: 0 auto 24px;
    position: relative;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    top: 40px;
    margin: 0 10px;
    z-index: 1;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transform: rotate(45deg);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxjaXJjbGUgY3g9IjEwIiBjeT0iMTAiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPgo8L3N2Zz4=');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.app-btn:hover {
    transform: translateY(-3px);
    color: var(--text-dark);
}

.app-btn i {
    font-size: 2rem;
}

.app-btn-text {
    text-align: left;
}

.app-btn-text span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.app-btn-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-brand p {
    color: #94A3B8;
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
#menuBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}
#menuBackdrop.show { display: block; }

#mobileNav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    padding: 84px 28px 40px;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
#mobileNav.show { transform: translateX(0); }

#mobileNav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
#mobileNav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast);
}
#mobileNav ul li a:hover { color: var(--primary-color); }
#mobileNav .btn { text-align: center; display: block; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 40px; }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    .step-card { width: 100%; max-width: 340px; }
    .step-connector { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-content h2 { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .hero-image-wrapper { max-width: 420px; margin: 0 auto; }
    .floating-card { display: none; }

    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1rem; }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .cta-card { padding: 40px 20px; }
    .cta-content h2 { font-size: 1.8rem; }
    .app-buttons { flex-direction: column; align-items: center; }
    .app-btn { width: 100%; max-width: 260px; justify-content: center; }

    .footer { padding: 60px 0 30px; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: 40px;
    }
    .footer-brand p { margin: 20px auto; }
    .social-links { justify-content: center; }
    .footer-links { padding: 0; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 40px; height: 1px; }
    .stat-number { font-size: 1.5rem; }

    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.75rem; }

    .badge { font-size: 0.8rem; padding: 6px 12px; }

    .cta-content h2 { font-size: 1.5rem; }
    .cta-content p { font-size: 1rem; }

    .logo-text { font-size: 1.4rem; }
}
