/* 
 * WorkMotion Errand Services - Core Design System 
 * Inspired by Errand Runner Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=ABeeZee:ital@0;1&display=swap');

:root {
    /* Color Palette */
    --primary: #fe601f;
    --primary-dark: #e5561b;
    --secondary: #182847;
    --text-dark: #000000;
    --text-body: #666666;
    --bg-light: #f5f5f5;
    --bg-gray: #efefef;
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Layout */
    --container-max: 1280px;
    --container-padding: 20px;
    
    /* Borders & Shadows */
    --radius-sm: 2px;
    --shadow-light: 0 5px 20px rgba(0,0,0,0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--primary-dark);
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-heading);
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
    position: relative;
    padding: 10px 0;
}

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

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
    margin-left: 20px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 800px;
    max-height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: 'ABeeZee', sans-serif;
    font-size: 14px;
    letter-spacing: 7px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 58px;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-padding {
    padding: 80px 0;
}

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

.section-bg-dark {
    background-color: var(--black);
    color: var(--white);
}

/* Flex Grids */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-2 {
    width: 50%;
    padding: 15px;
}

.col-3 {
    width: 33.3333%;
    padding: 15px;
}

.col-4 {
    width: 25%;
    padding: 15px;
}

@media (max-width: 991px) {
    .col-4 { width: 50%; }
    .col-3 { width: 50%; }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        border-top: 1px solid #eee;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

@media (max-width: 767px) {
    .col-2, .col-3, .col-4 { width: 100%; }
    
    /* Reset inline styles causing overflow */
    .col-2[style*="padding-left"] {
        padding-left: 15px !important;
        margin-top: 30px;
    }
    
    /* Shrink Typography */
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }
    .title-item h3 {
        font-size: 24px;
    }
    .title-item .caption {
        font-size: 28px;
    }
    
    /* Reduce Padding */
    .section-padding {
        padding: 40px 0;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    .booking-form-container,
    .booking-sidebar {
        width: 100% !important;
    }
    
    .booking-sidebar {
        margin-top: 30px;
    }
}

/* Title Items */
.title-item {
    margin-bottom: 30px;
}

.title-item h3 {
    font-size: 29px;
    color: var(--secondary);
}

.title-item .caption {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-top: 5px;
    line-height: 1.2;
}

.title-item.dark h3 {
    color: var(--white);
}

.title-item.dark .caption {
    color: var(--white);
}

/* Icon Lists */
.icon-list {
    list-style: none;
    margin-bottom: 30px;
}

.icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--text-dark);
}

.icon-list li i {
    color: var(--primary);
    font-size: 22px;
    margin-right: 15px;
}

/* Service Columns (Dark BG) */
.service-col {
    text-align: center;
    padding: 30px 15px;
}

.service-col i {
    color: var(--primary);
    font-size: 40px;
    margin-bottom: 25px;
}

.service-col h3 {
    color: var(--white);
    font-size: 21px;
    margin-bottom: 15px;
}

.service-col p {
    color: #cccccc;
    font-size: 16px;
}

/* Journey Numbers */
.journey-step {
    display: flex;
    align-items: flex-start;
}

.journey-step .number {
    font-size: 46px;
    color: var(--primary);
    font-weight: 700;
    margin-right: 25px;
    line-height: 1;
}

.journey-step h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* ==========================================================================
   BOOKING REDESIGN (CARDS, FORMS, TIMELINE)
   ========================================================================== */
.booking-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(254, 96, 31, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

/* Timeline Sidebar */
.timeline-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
}

.timeline {
    list-style: none;
    position: relative;
    padding: 0;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 2px;
    background: #eeeeee;
}

.timeline li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li .step-num {
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid #eeeeee;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #999;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline li.active {
    color: var(--secondary);
}

.timeline li.active .step-num {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--black);
    color: #999999;
    padding: 70px 0 30px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

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

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

.footer-widget ul li a {
    color: #999999;
}

.footer-widget ul li a:hover {
    color: var(--primary);
}

.footer-divider {
    border-top: 2px solid var(--primary);
    margin: 20px 0;
    width: 40px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--primary);
}
