/* ============================================
   Homfixer - Premium Home Services Marketplace
   Custom Stylesheet
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --hf-primary: #0d6efd;
    --hf-green: #198754;
    --hf-green-light: #d1e7dd;
    --hf-dark: #1a1a2e;
    --hf-darker: #16213e;
    --hf-gray: #6c757d;
    --hf-light: #f8f9fa;
    --hf-border: #e9ecef;
    --hf-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --hf-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --hf-radius: 12px;
    --hf-radius-sm: 8px;
    --hf-transition: all 0.3s ease;
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; transition: var(--hf-transition); }
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
.navbar-homfixer {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand-hf {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hf-dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand-hf span {
    color: var(--hf-green);
}

.nav-link-hf {
    color: #555 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--hf-radius-sm);
    transition: var(--hf-transition);
}

.nav-link-hf:hover, .nav-link-hf.active {
    color: var(--hf-green) !important;
    background: var(--hf-green-light);
}

/* City Selector */
.city-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--hf-light);
    border: 1px solid var(--hf-border);
    border-radius: var(--hf-radius-sm);
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hf-dark);
    cursor: pointer;
    transition: var(--hf-transition);
}

.city-selector-btn:hover {
    border-color: var(--hf-green);
    color: var(--hf-green);
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 400px;
}

.search-bar input {
    border-radius: 50px;
    padding: 8px 20px 8px 40px;
    border: 1px solid var(--hf-border);
    font-size: 0.9rem;
    transition: var(--hf-transition);
}

.search-bar input:focus {
    border-color: var(--hf-green);
    box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hf-gray);
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--hf-dark) 0%, var(--hf-darker) 50%, #0a3d2e 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #fff;
    border-radius: 50% 50% 0 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-search-box {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 650px;
    box-shadow: var(--hf-shadow-lg);
}

.hero-search-box select,
.hero-search-box input {
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    background: transparent;
}

.hero-search-box select {
    border-right: 1px solid var(--hf-border);
    min-width: 160px;
    color: var(--hf-dark);
    font-weight: 500;
}

.hero-search-box select:focus,
.hero-search-box input:focus {
    outline: none;
    box-shadow: none;
}

.hero-search-box input { flex: 1; }

.hero-search-btn {
    background: var(--hf-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--hf-transition);
}

.hero-search-btn:hover {
    background: #157347;
    transform: translateY(-1px);
}

.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.trust-badge i {
    color: var(--hf-green);
    font-size: 1.1rem;
}

.trust-badge strong {
    color: #fff;
    font-size: 1.1rem;
}

/* ---------- Section Styles ---------- */
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.bg-section { background: var(--hf-light); }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hf-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--hf-gray);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ---------- Category Cards ---------- */
.category-card {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--hf-shadow);
    border: 1px solid transparent;
    transition: var(--hf-transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hf-shadow-lg);
    border-color: var(--hf-green);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--hf-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: var(--hf-green);
    transition: var(--hf-transition);
}

.category-card:hover .category-icon {
    background: var(--hf-green);
    color: #fff;
}

.category-card h5 {
    font-weight: 600;
    color: var(--hf-dark);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--hf-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Service Cards ---------- */
.service-card {
    background: #fff;
    border-radius: var(--hf-radius);
    overflow: hidden;
    box-shadow: var(--hf-shadow);
    border: 1px solid var(--hf-border);
    transition: var(--hf-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hf-shadow-lg);
}

.service-card-img {
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card-img i {
    font-size: 3rem;
    color: var(--hf-green);
    opacity: 0.5;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hf-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffc107;
    color: var(--hf-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.service-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h5 {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--hf-dark);
    margin-bottom: 0.4rem;
}

.service-card-body p {
    color: var(--hf-gray);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.service-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.service-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--hf-green);
}

.service-price .original-price {
    font-size: 0.85rem;
    color: var(--hf-gray);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #ffc107;
}

.service-rating span {
    color: var(--hf-gray);
    font-weight: 500;
}

.service-duration {
    font-size: 0.8rem;
    color: var(--hf-gray);
}

.service-duration i { margin-right: 4px; }

/* ---------- How It Works ---------- */
.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--hf-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step-card h5 { font-weight: 600; color: var(--hf-dark); }
.step-card p { color: var(--hf-gray); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 1.75rem;
    box-shadow: var(--hf-shadow);
    height: 100%;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--hf-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hf-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.testimonial-author small {
    color: var(--hf-gray);
    font-size: 0.8rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--hf-green), #0a5c36);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 { font-weight: 700; margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn-hf-primary {
    background: var(--hf-green);
    color: #fff;
    border: none;
    border-radius: var(--hf-radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--hf-transition);
}

.btn-hf-primary:hover {
    background: #157347;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}

.btn-hf-outline {
    background: transparent;
    color: var(--hf-green);
    border: 2px solid var(--hf-green);
    border-radius: var(--hf-radius-sm);
    padding: 9px 24px;
    font-weight: 600;
    transition: var(--hf-transition);
}

.btn-hf-outline:hover {
    background: var(--hf-green);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--hf-radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--hf-transition);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

.btn-whatsapp i { font-size: 1.2rem; }

/* ---------- Pricing Card (Service Detail) ---------- */
.pricing-card {
    background: #fff;
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-shadow-lg);
    padding: 1.75rem;
    position: sticky;
    top: 90px;
}

.pricing-card .price-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hf-green);
}

.pricing-card .price-display .original {
    font-size: 1.1rem;
    color: var(--hf-gray);
    text-decoration: line-through;
    font-weight: 400;
}

/* Package Cards */
.package-card {
    border: 2px solid var(--hf-border);
    border-radius: var(--hf-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--hf-transition);
    position: relative;
}

.package-card:hover, .package-card.selected {
    border-color: var(--hf-green);
    background: rgba(25,135,84,0.03);
}

.package-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    right: 16px;
    background: #ffc107;
    color: var(--hf-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}

.package-card h6 { font-weight: 700; margin-bottom: 0.25rem; }
.package-card .pkg-price { font-weight: 700; color: var(--hf-green); font-size: 1.1rem; }

.package-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

.package-features li {
    padding: 3px 0;
    color: #555;
}

.package-features li::before {
    content: '✓';
    color: var(--hf-green);
    font-weight: 700;
    margin-right: 8px;
}

/* ---------- Booking Flow ---------- */
.booking-steps .nav-link {
    color: var(--hf-gray);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.booking-steps .nav-link.active {
    background: var(--hf-green);
    color: #fff;
}

.time-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hf-border);
    border-radius: var(--hf-radius-sm);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hf-transition);
    min-width: 90px;
}

.time-slot:hover, .time-slot.selected {
    border-color: var(--hf-green);
    background: var(--hf-green-light);
    color: var(--hf-green);
}

.order-summary {
    background: var(--hf-light);
    border-radius: var(--hf-radius);
    padding: 1.5rem;
}

.order-summary h5 { font-weight: 700; margin-bottom: 1rem; }

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.order-summary .summary-total {
    border-top: 2px solid var(--hf-border);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- Confirmation ---------- */
.confirmation-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--hf-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirmation-icon i {
    font-size: 3rem;
    color: var(--hf-green);
}

/* ---------- Dashboard ---------- */
.stat-card {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 1.5rem;
    box-shadow: var(--hf-shadow);
    border-left: 4px solid var(--hf-green);
    transition: var(--hf-transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--hf-shadow-lg); }
.stat-card h3 { font-weight: 800; color: var(--hf-dark); margin: 0; }
.stat-card p { color: var(--hf-gray); margin: 0; font-size: 0.85rem; }

.stat-card.blue { border-left-color: #0d6efd; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-card.red { border-left-color: #dc3545; }

/* ---------- Reviews ---------- */
.review-card {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--hf-shadow);
}

.review-stars { color: #ffc107; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--hf-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255,255,255,0.6);
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer a:hover { color: var(--hf-green); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff !important;
}

.footer-brand span { color: var(--hf-green); }

/* ---------- City Modal ---------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.city-grid-item {
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--hf-border);
    border-radius: var(--hf-radius);
    cursor: pointer;
    transition: var(--hf-transition);
    font-weight: 500;
}

.city-grid-item:hover, .city-grid-item.active {
    border-color: var(--hf-green);
    background: var(--hf-green-light);
    color: var(--hf-green);
}

/* ---------- Filter Sidebar ---------- */
.filter-sidebar {
    background: #fff;
    border-radius: var(--hf-radius);
    padding: 1.5rem;
    box-shadow: var(--hf-shadow);
    position: sticky;
    top: 90px;
}

.filter-sidebar h6 {
    font-weight: 700;
    color: var(--hf-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hf-border);
}

/* ---------- Auth Pages ---------- */
.auth-card {
    max-width: 450px;
    margin: 60px auto;
    background: #fff;
    border-radius: var(--hf-radius);
    box-shadow: var(--hf-shadow-lg);
    padding: 2.5rem;
}

.auth-card .brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hf-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .brand span { color: var(--hf-green); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-hf {
    background: var(--hf-light);
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-hf .breadcrumb-item a { color: var(--hf-green); }
.breadcrumb-hf .breadcrumb-item.active { color: var(--hf-gray); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-search-box { flex-direction: column; }
    .hero-search-box select { border-right: none; border-bottom: 1px solid var(--hf-border); min-width: auto; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .trust-badges { gap: 1rem; }
}

@media (max-width: 767.98px) {
    .hero-section { padding: 50px 0 70px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .search-bar { max-width: 100%; }
    .service-card-img { height: 160px; }
}

/* ---------- Utility ---------- */
.text-green { color: var(--hf-green) !important; }
.bg-green-light { background: var(--hf-green-light) !important; }
.fw-800 { font-weight: 800 !important; }
.rounded-hf { border-radius: var(--hf-radius) !important; }
