/* ============================================
   Liverpool SEO - Main Styles
   Design Reference: thedistance.co.uk
   Colors: Cyan/Teal palette (hue 202)
   ============================================ */

:root {
    --primary-color: #0891B2;
    --primary-dark: #0E7490;
    --primary-light: #22D3EE;
    --secondary-color: #164E63;
    --accent-color: #F97316;
    --accent-hover: #EA580C;
    --background-color: #F8FAFC;
    --text-color: #1E293B;
    --text-light: #64748B;
    --white: #ffffff;
    --border-color: #E2E8F0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-xl: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

/* ============================================
   HEADER - CRITICAL SECTION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: var(--shadow);
    height: var(--header-height);
    overflow: visible;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-weight: 700;
    color: var(--secondary-color);
}

/* ============================================
   NAVIGATION - BASE STYLES
   ============================================ */

.main-nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

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

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    color: var(--primary-color);
}

/* Active page link */
.nav-list > li > a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact CTA button */
.nav-cta {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius);
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* ============================================
   DROPDOWN - CRITICAL SECTION
   ============================================ */

.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.has-dropdown > .nav-link {
    padding-right: 0.25rem;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-toggle svg {
    transition: transform 0.3s ease;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    z-index: 10000;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.dropdown-menu a.active {
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(8, 145, 178, 0.05);
}

/* ============================================
   DESKTOP DROPDOWN BEHAVIOR (min-width: 769px)
   ============================================ */

@media (min-width: 769px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }

    .has-dropdown:hover > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .has-dropdown:hover > .dropdown-toggle {
        color: var(--primary-color);
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block;
    }

    .has-dropdown.dropdown-open > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .nav-list > li {
        flex-shrink: 0;
    }
}

.has-dropdown.has-active-child > .nav-link {
    color: var(--primary-color);
}

/* ============================================
   MOBILE MENU TOGGLE (Hamburger)
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-header {
        overflow: visible;
    }

    .header-container {
        overflow: visible;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .main-nav.mobile-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 1rem;
        margin: 0;
        overflow: visible;
    }

    .nav-list > li {
        border-bottom: 1px solid var(--border-color);
        overflow: visible;
    }

    .nav-list > li:last-child {
        border-bottom: none;
    }

    .nav-list > li > a {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .has-dropdown {
        flex-wrap: wrap;
        overflow: visible;
    }

    .has-dropdown > .nav-link {
        flex: 1;
        padding-right: 0;
    }

    .has-dropdown > .dropdown-toggle {
        min-width: 44px;
        min-height: 44px;
        border-left: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: var(--background-color);
        display: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block;
        max-height: 500px;
        padding: 0.5rem 0;
        overflow: visible;
    }

    .has-dropdown.dropdown-open > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-cta {
        margin: 1rem 0 0 0 !important;
        text-align: center;
        justify-content: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

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

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
    min-height: calc(100vh - var(--header-height));
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image svg,
.hero-image img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

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

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

.bg-primary h2,
.bg-primary h3,
.bg-primary p {
    color: var(--white);
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card .card-icon {
    margin: 0 auto 1.5rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--secondary-color);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.testimonial-card .quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author .name {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-author .role {
    font-size: 0.875rem;
    color: var(--text-light);
}

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

/* ============================================
   FAQ ACCORDION COMPONENT
   ============================================ */

.faq-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.faq-question > span:first-child {
    flex: 1;
    padding-right: 1.5rem;
}

.faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 6px;
    color: var(--text-light);
    margin-left: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-icon svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-question:hover .faq-icon {
    background: var(--primary-color);
    color: var(--white);
}

.faq-item.active .faq-icon {
    background: var(--primary-color);
    color: var(--white);
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0;
}

/* FAQ Two-Column Grid Layout */
.faq-accordion.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
}

/* FAQ Tabs Layout */
.faq-tabs-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.faq-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-tab:hover,
.faq-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.faq-tab-content {
    display: none;
}

.faq-tab-content.active {
    display: block;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

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

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--background-color);
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
}

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

.breadcrumbs .current {
    color: var(--text-color);
    font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   WHAT WE DO CAROUSEL
   ============================================ */

.what-we-do-section {
    padding: 4rem 0;
    overflow: hidden;
    background: var(--background-color);
}

.what-we-do-section .section-header {
    margin-bottom: 2rem;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-row {
    display: flex;
    margin-bottom: 1rem;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll-left 240s linear infinite;
    min-width: 200%;
    width: max-content;
}

.carousel-row.reverse .carousel-track {
    animation: scroll-right 250s linear infinite;
}

.carousel-row[data-speed="260"] .carousel-track {
    animation-duration: 260s;
}

/* Pause on hover */
.carousel-row:hover .carousel-track {
    animation-play-state: paused;
}

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

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

.carousel-item {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.carousel-item:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    position: relative;
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--text-light);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 1;
    transition: background 0.3s;
}

.popup-close:hover {
    background: var(--primary-color);
}

.popup-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: 80vh;
}

.popup-content h1,
.popup-content h2 {
    margin-top: 0;
}

.popup-content p {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .popup-container {
        margin: 1rem;
        max-height: 90vh;
    }

    .popup-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
}
