/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary: #4F46E5;
    /* Indigo 600 - Main Brand */
    --primary-dark: #4338ca;
    /* Indigo 700 - Hover */
    --primary-light: #818cf8;
    /* Indigo 400 - Accents */

    --secondary: #10B981;
    /* Emerald 500 - Success/Verified */

    --dark: #111827;
    /* Gray 900 - Headings */
    --text: #4B5563;
    /* Gray 600 - Body Text */
    --light-bg: #F9FAFB;
    /* Gray 50 - Background */
    --white: #FFFFFF;
    /* Cards */

    --border: #E5E7EB;
    /* Gray 200 */
    --shadow-sm: 0 1px 2px 0 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);

    /* Spacing */
    --container-padding: 1.25rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

/* -------------------------------------------------------------------------- */
/*                                   RESET                                    */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

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

/* -------------------------------------------------------------------------- */
/*                                 UTILITIES                                  */
/* -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-blue {
    color: #3b82f6;
}

.text-orange {
    color: #f97316;
}

.text-yellow {
    color: #eab308;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-wide {
    width: 100%;
    max-width: 300px;
}

/* -------------------------------------------------------------------------- */
/*                                  HEADER                                    */
/* -------------------------------------------------------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-accent {
    color: var(--primary);
}

.mobile-menu-btn {
    font-size: 1.5rem;
    color: var(--dark);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.nav-menu.open {
    transform: translateX(0);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.btn-featured {
    background-color: var(--dark);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-size: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                                   HERO                                     */
/* -------------------------------------------------------------------------- */
.hero {
    padding: 3rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
}

.badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.trust-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------------- */
/*                                  STATS                                     */
/* -------------------------------------------------------------------------- */
.stats-overview {
    padding: 2rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* Stats Cards Grid */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-stars {
    color: #FBBF24;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-meta {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.stat-trend {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.stat-trend.positive {
    color: var(--secondary);
}

.stat-trend i {
    font-size: 1rem;
}

.stat-badge {
    display: inline-flex;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.stat-badge.excellent {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

/* Main Rating Card */
.overall-rating-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Rating Breakdown */
.rating-breakdown {
    width: 100%;
}

.breakdown-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.breakdown-star {
    min-width: 50px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breakdown-star i {
    color: #FBBF24;
    font-size: 0.9rem;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background-color: #F3F4F6;
    border-radius: 10px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5 0%, #818cf8 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.breakdown-count {
    min-width: 40px;
    text-align: right;
    font-weight: 700;
    color: var(--dark);
}

/* Category Ratings - Updated */
.category-ratings {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cat-rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.cat-label {
    min-width: 140px;
    font-weight: 600;
    color: var(--dark);
}

.cat-score {
    font-weight: 700;
    min-width: 35px;
    text-align: left;
    color: var(--dark);
}

.cat-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    display: flex;
    gap: 0.2rem;
}

/* Old bar styles for backwards compatibility */
.bar-container {
    flex: 1;
    height: 10px;
    background-color: #F3F4F6;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Legacy rating-big styles */
.rating-big {
    text-align: center;
}

.rating-big .score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
}

.rating-big .stars {
    color: var(--text-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    gap: 0.2rem;
    display: flex;
    justify-content: center;
}

.fa-star,
.fa-star-half-stroke {
    color: #FBBF24;
}

.total-reviews {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}


/* -------------------------------------------------------------------------- */
/*                                 REVIEWS                                    */
/* -------------------------------------------------------------------------- */
.reviews-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.controls-bar {
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.controls-bar::-webkit-scrollbar {
    display: none;
}

.filters-scroll {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
    padding: 0 4px;
    /* prevent shadow cut off */
}

.filter-chip {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background-color: var(--white);
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.filter-chip.active,
.filter-chip:hover {
    background-color: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
    flex-wrap: wrap;
}

.verified-badge {
    color: var(--secondary);
    font-size: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.review-date i {
    font-size: 0.8rem;
}

.review-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    gap: 2px;
    display: flex;
    flex-shrink: 0;
}

.review-service-tag {
    display: inline-block;
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.review-content {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Review Category Ratings */
.review-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.review-cat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.review-cat-label {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

.review-cat-stars {
    color: #FBBF24;
    font-size: 0.85rem;
    display: flex;
    gap: 0.2rem;
}

.review-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.helpful-count {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.helpful-count i {
    color: var(--primary);
}

.response-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.response-link:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.load-more-container {
    margin-top: 3.5rem;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                                  FOOTER                                    */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: var(--dark);
    color: #D1D5DB;
    padding: 4rem 0 2rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links i {
    width: 24px;
    margin-right: 0.5rem;
    text-align: center;
    color: var(--primary);
    /* Optional: make icons pop a bit, or keep white/inherit */
}

/* Specific brand colors on hover (optional but nice) */
.footer-links a:hover .fa-tiktok {
    color: #fe2c55;
}

.footer-links a:hover .fa-facebook {
    color: #1877f2;
}

.footer-links a:hover .fa-instagram {
    color: #c13584;
}

.contact-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* City Accordion */
.city-accordion {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.city-accordion[open] {
    background: rgba(255, 255, 255, 0.05);
}

.city-accordion summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    list-style: none;
    transition: background 0.2s;
}

.city-accordion summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.city-accordion summary::-webkit-details-marker {
    display: none;
}

.city-list {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.city-list a {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.city-list a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 2rem;
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */

/* Tablet (768px+) */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-menu {
        position: static;
        height: auto;
        transform: none;
        background: transparent;
        padding: 0;
        border: none;
        flex-direction: row;
        width: auto;
        overflow: visible;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-link {
        width: auto;
        padding: 0;
        text-align: left;
        font-size: 1rem;
        background: transparent !important;
    }

    .nav-link.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary);
        margin-top: 4px;
        border-radius: 2px;
    }

    .btn-featured {
        margin-top: 0;
        padding: 0.5rem 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    /* Stats Cards Responsive */
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .overall-rating-card {
        padding: 3rem;
    }

    .overall-rating-card {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        padding: 3rem;
    }

    .rating-big {
        flex: 0 0 250px;
        text-align: left;
        border-right: 1px solid var(--border);
        padding-right: 2rem;
    }

    .rating-big .stars {
        justify-content: flex-start;
    }

    .category-ratings {
        flex: 1;
    }

    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .review-categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .city-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .city-list a {
        white-space: nowrap;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {

    /* Stats Cards - 4 columns on desktop */
    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }



    .hero {
        padding: 5rem 0;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                ANIMATIONS                                  */
/* -------------------------------------------------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Class added by JS Observer */
.active-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}