:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --primary-blue: #0284c7;
    --accent-cyan: #06b6d4;
    --brand-navy: #1e293b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   Header & Sticky Navigation (Extended Gradient)
   ========================================== */
header {
    background: linear-gradient(to right, #000000 0%, #000000 45%, #0f172a 65%, #0f172a 100%) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

/* Logo Link Container */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0; 
}

/* Logo Image Styling (~9% Increase) */
.logo img {
    height: 74px !important; 
    width: auto;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #f8fafc !important; /* White text for dark header */
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-cyan, #06b6d4) !important;
}

.nav-cta {
    background-color: var(--primary-blue, #0284c7) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--accent-cyan, #06b6d4) !important;
}

/* Navigation Dropdown */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e293b !important;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown:focus-within .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    padding: 0.7rem 1.2rem;
    display: block;
    color: #cbd5e1 !important;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-menu .dropdown-menu a:hover,
.nav-menu .dropdown-menu a.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent-cyan, #06b6d4) !important;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff !important;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.85)), 
                url('../imgs/Carretera-Drive-Theatre-1-scaled-1920w.jpg') center/cover no-repeat;
    padding: 5.5rem 1.5rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0369a1;
}

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

.btn-outline:hover {
    background-color: rgba(2, 132, 199, 0.05);
}

.badge {
    display: inline-block;
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Feature Hook */
.feature-hook {
    background-color: var(--bg-alt);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.hook-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-left: 5px solid var(--accent-cyan);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hook-text h2 {
    font-size: 1.5rem;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.hook-text p {
    color: var(--text-muted);
}

/* Services Grid */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

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

.section-header h2 {
    font-size: 2rem;
    color: var(--brand-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

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

/* Footer */
footer {
    background-color: var(--brand-navy);
    color: #f8fafc;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer-content a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    .logo img {
        height: 42px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a !important;
        padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu .dropdown:hover .dropdown-menu,
    .nav-menu .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #1e293b !important;
        width: 100%;
        padding-left: 1rem;
    }

    .nav-menu .dropdown-menu a {
        color: #cbd5e1 !important;
    }

    .hook-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Homepage Review Carousel Styles */
.reviews-section {
    background-color: var(--bg-alt);
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.reviews-container {
    max-width: 800px;
    margin: 0 auto;
}

.reviews-container .stars {
    color: #f59e0b;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.reviews-container h2 {
    color: var(--brand-navy);
    font-size: 2rem;
    margin: 0.5rem 0;
}

.reviews-container .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.carousel-wrapper {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.review-slide.active {
    display: block;
    opacity: 1;
}

.review-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--brand-navy);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.reviewer-info strong {
    display: block;
    color: var(--brand-navy);
    font-size: 0.95rem;
}

.reviewer-info .source {
    display: block;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dots .dot {
    height: 12px;
    width: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-dots .dot:hover {
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Infinite Brand Logo Ticker */
.brand-ticker-section {
    background-color: #ffffff;
    padding: 2.5rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.ticker-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    animation: scrollTicker 35s linear infinite;
}

.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 50px;
    width: 130px;
}

.ticker-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.75);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.ticker-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Brand Category Cards */
.brand-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-bottom: 0.8rem;
}

.brand-card-logo img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
}

.brand-card-logo.fader {
    position: relative;
}

.brand-card-logo.fader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    animation: logoCrossfade 8s infinite ease-in-out;
}

.brand-card-logo.fader img:first-child {
    animation-name: logoFadeOne;
}

.brand-card-logo.fader img:last-child {
    animation-name: logoFadeTwo;
    opacity: 0;
}

@keyframes logoFadeOne {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes logoFadeTwo {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

.brand-card-logo.fader-3 {
    position: relative;
}

.brand-card-logo.fader-3 img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    opacity: 0;
    animation: logoFadeThree 9s infinite ease-in-out;
}

.brand-card-logo.fader-3 img:nth-child(1) { animation-delay: 0s; }
.brand-card-logo.fader-3 img:nth-child(2) { animation-delay: 3s; }
.brand-card-logo.fader-3 img:nth-child(3) { animation-delay: 6s; }

@keyframes logoFadeThree {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

/* Reviews Page Styles */
.reviews-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.8rem;
    border-radius: 8px;
    text-align: center;
}

.stat-badge .score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-badge .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

.stat-badge .platform {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.platform-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.platform-tag.google {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.platform-tag.thumbtack {
    background-color: #e6f7f5;
    color: #009688;
}

.platform-tag.video {
    background-color: #fce8e6;
    color: #d93025;
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
}

.video-embed-container img.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-embed-container:hover img.video-thumb {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(2, 132, 199, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.video-embed-container:hover .play-button {
    background-color: #0369a1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}