/* ============================================
   DUBLIN SEO - Main Stylesheet
   Design Reference: thedistance.co.uk
   ============================================ */

:root {
    --primary-color: #E55A3C;
    --secondary-color: #1B5E7D;
    --accent-color: #FF8C42;
    --background-color: #FAFBFC;
    --text-color: #2B3A42;
    --text-light: #5A6670;
    --heading-color: #2B3A42;
    --white: #ffffff;
    --border-color: #E2E8F0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --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;
}

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

a:hover {
    color: var(--secondary-color);
}

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

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

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

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

p {
    margin-bottom: 1rem;
}

/* ============================================
   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:hover {
    color: var(--text-color);
}

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

.logo-text {
    font-weight: 700;
}

/* ============================================
   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);
}

.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 {
    opacity: 0.9;
    color: var(--white) !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(0, 0, 0, 0.03);
}

/* ============================================
   DESKTOP DROPDOWN BEHAVIOR
   ============================================ */

@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
   ============================================ */

.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
   ============================================ */

@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);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #D14E32;
    border-color: #D14E32;
    color: var(--white);
}

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

.btn-secondary:hover {
    background: #164D66;
    border-color: #164D66;
    color: var(--white);
}

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

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

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

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

/* ============================================
   HERO SECTION - DASHBOARD STYLE
   ============================================ */

.hero-dashboard {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-trust-line .separator {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.hero-dashboard-content h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--heading-color);
    font-weight: 700;
}

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

.hero-dashboard-content > p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.hero-trust-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-trust-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.hero-trust-bullets svg {
    flex-shrink: 0;
}

/* Dashboard Visual */
.hero-dashboard-visual {
    position: relative;
}

.dashboard-cards-wrapper {
    position: relative;
    padding: 1rem;
}

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

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-card-traffic {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #236B8E 100%);
    color: var(--white);
}

.dashboard-card-traffic .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.dashboard-card-traffic .card-label,
.dashboard-card-traffic .card-sublabel {
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-card-traffic .card-value {
    color: var(--white);
}

.dashboard-card-traffic .card-chart {
    margin-left: auto;
    width: 100px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.1;
}

.card-value-score .score-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.card-sublabel {
    font-size: 0.75rem;
    color: var(--text-light);
}

.mini-chart {
    width: 100%;
    height: auto;
}

.card-badge {
    margin-top: auto;
}

.badge-dublin {
    display: inline-block;
    background: rgba(27, 94, 125, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-progress {
    margin-top: auto;
}

.progress-bar {
    height: 6px;
    background: var(--background-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1s ease-out;
}

.progress-label {
    font-size: 0.7rem;
    color: var(--text-light);
}

.card-gauge {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.gauge-svg {
    width: 50px;
    height: 25px;
}

/* Legacy Hero (for service pages) */
.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--white) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

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

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 540px;
    line-height: 1.6;
}

.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;
}

/* ============================================
   SERVICE HERO (Unique Service Page Heroes)
   ============================================ */

.service-hero {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.service-hero .breadcrumbs {
    margin-bottom: 1.5rem;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-hero-content {
    max-width: 520px;
}

.service-hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.service-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.service-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-deliverables svg {
    flex-shrink: 0;
}

.service-hero-visual {
    display: flex;
    justify-content: center;
}

/* === KEYWORD RESEARCH VISUAL === */
.keyword-search-visual {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 1.25rem;
    width: 100%;
    max-width: 340px;
}

.search-bar-mock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.search-bar-mock svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.keyword-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.keyword-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--background-color);
    transition: background 0.2s;
}

.keyword-row--highlight {
    background: rgba(27, 94, 125, 0.08);
    border-left: 3px solid var(--primary-color);
}

.kw-text {
    flex: 1;
    color: var(--text-color);
}

.kw-vol {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 0.75rem;
}

.kw-diff {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.kw-diff--easy { background: #E8F5E9; color: #2E7D32; }
.kw-diff--medium { background: #FFF3E0; color: #E65100; }
.kw-diff--hard { background: #FFEBEE; color: #C62828; }

.keyword-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.keyword-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: var(--background-color);
    border-radius: 20px;
    color: var(--text-light);
}

/* === ON-PAGE AUDIT VISUAL === */
.audit-checklist-visual {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--background-color);
}

.audit-title {
    font-weight: 600;
    color: var(--heading-color);
}

.audit-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.audit-score span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.audit-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.audit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.audit-progress {
    height: 6px;
    background: var(--background-color);
    border-radius: 3px;
    overflow: hidden;
}

.audit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4CAF50);
    border-radius: 3px;
}

/* === LINK BUILDING NETWORK VISUAL === */
.link-network-visual {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 220px;
}

.network-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(27, 94, 125, 0.3);
}

.da-badge {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-top: 0.25rem;
}

.network-nodes {
    position: absolute;
    inset: 0;
}

.network-node {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.node-1 { top: 5%; left: 5%; }
.node-2 { top: 0; right: 10%; }
.node-3 { bottom: 15%; left: 0; }
.node-4 { bottom: 10%; right: 5%; }

.node-name {
    font-weight: 600;
    color: var(--heading-color);
}

.node-da {
    font-size: 0.6rem;
    color: var(--primary-color);
}

.network-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.link-stats {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.link-stat {
    background: #E8F5E9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-num {
    font-weight: 700;
    color: #2E7D32;
}

.stat-label {
    font-size: 0.7rem;
    color: #2E7D32;
}

/* === LOCAL SEO MAP VISUAL === */
.local-map-visual {
    width: 100%;
    max-width: 300px;
}

.map-container {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #E8F4F8 0%, #D4E8EF 100%);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(27,94,125,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,94,125,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% { transform: translate(-50%, -80%); }
    50% { transform: translate(-50%, -85%); }
}

.map-radius {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(229, 90, 60, 0.3);
    border-radius: 50%;
    animation: pulseRadius 2s ease-out infinite;
}

@keyframes pulseRadius {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.gbp-card {
    background: var(--white);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.gbp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.gbp-name {
    font-weight: 600;
    color: var(--heading-color);
}

.gbp-rating {
    text-align: right;
}

.stars {
    color: #FF8C42;
    font-size: 0.8rem;
}

.rating-text {
    font-size: 0.7rem;
    color: var(--text-light);
    display: block;
}

.gbp-details {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gbp-category {
    font-size: 0.75rem;
    color: var(--text-light);
}

.gbp-status {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.gbp-status.open {
    background: #E8F5E9;
    color: #2E7D32;
}

.gbp-rank {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--background-color);
}

.rank-badge {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.rank-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* === CONTENT STRATEGY VISUAL - LARGE CALENDAR === */
.content-calendar-large {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
}

.content-calendar-large .cal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-color);
}

.content-calendar-large .cal-header svg {
    color: var(--primary-color);
    width: 22px;
    height: 22px;
}

.content-calendar-large .cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.content-calendar-large .cal-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.content-calendar-large .cal-grid-proper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.content-calendar-large .cal-day {
    aspect-ratio: 1;
    background: var(--background-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-calendar-large .cal-day:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-calendar-large .cal-day.has-content {
    font-weight: 700;
    color: var(--white);
}

.content-calendar-large .cal-day.has-content.type-pillar {
    background: var(--secondary-color);
}

.content-calendar-large .cal-day.has-content.type-blog {
    background: var(--accent-color);
}

.content-calendar-large .cal-day.has-content.type-social {
    background: #9C27B0;
}

.content-calendar-large .cal-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-color);
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--background-color);
}

.content-calendar-large .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-calendar-large .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.content-calendar-large .dot.type-pillar { background: var(--secondary-color); }
.content-calendar-large .dot.type-blog { background: var(--accent-color); }
.content-calendar-large .dot.type-social { background: #9C27B0; }

/* Legacy mini calendar (keep for other uses) */
.content-calendar-mini {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.cal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--background-color);
}

.cal-header svg {
    color: var(--primary-color);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.cal-grid-proper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.cal-day {
    aspect-ratio: 1;
    background: var(--background-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-light);
    position: relative;
}

.cal-day.has-content {
    font-weight: 600;
    color: var(--white);
}

.cal-day.has-content.type-pillar {
    background: var(--secondary-color);
}

.cal-day.has-content.type-blog {
    background: var(--accent-color);
}

.cal-day.has-content.type-social {
    background: #9C27B0;
}

.cal-legend {
    display: flex;
    gap: 0.6rem;
    font-size: 0.55rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.type-pillar { background: var(--secondary-color); }
.dot.type-blog { background: var(--accent-color); }
.dot.type-social { background: #9C27B0; }

/* === TECHNICAL SEO VISUAL === */
.tech-performance-visual {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 1.25rem;
    width: 100%;
    max-width: 280px;
}

.speed-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.gauge-svg {
    width: 120px;
    height: 70px;
}

.gauge-fill {
    transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-value {
    text-align: center;
    margin-top: -0.5rem;
}

.gauge-num {
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    display: block;
}

.gauge-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cwv-metrics {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cwv-metric {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--background-color);
    border-radius: 8px;
}

.cwv-metric.cwv-good {
    border-bottom: 2px solid #4CAF50;
}

.cwv-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    display: block;
}

.cwv-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}

.cwv-status {
    font-size: 0.6rem;
    color: #4CAF50;
}

.tech-issues {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-color);
}

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

section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

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

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

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.bg-secondary {
    background-color: 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 {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Gradient Cards - High contrast text */
.gradient-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 3rem;
}

.gradient-card:hover {
    transform: translateY(-2px);
}

.gradient-card h2,
.gradient-card h3 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gradient-card h3 {
    font-size: 1.75rem;
}

.gradient-card p {
    color: var(--white);
    opacity: 0.95;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gradient-card--secondary {
    background: linear-gradient(135deg, var(--secondary-color), #2A7A9A);
}

.gradient-card--featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.gradient-card--featured blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--white);
}

.gradient-card--featured .testimonial-author-name {
    color: var(--white);
}

.gradient-card--featured .testimonial-author-name strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.gradient-card--featured .testimonial-author-name span {
    color: rgba(255, 255, 255, 0.9);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    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(--white);
}

.card h3 {
    margin-bottom: 1rem;
}

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

/* Service Cards */
.service-card {
    text-align: center;
}

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

/* ============================================
   SERVICES GRID
   ============================================ */

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

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

.stats-section {
    background: var(--secondary-color);
    color: var(--white);
    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 {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

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

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

.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 h4 {
    margin-bottom: 0.75rem;
}

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

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

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

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

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

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

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

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

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   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: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(27, 94, 125, 0.12);
}

.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.2s ease, color 0.2s ease;
}

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

.faq-question:focus {
    outline: none;
    background: var(--background-color);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background: rgba(27, 94, 125, 0.03);
}

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

.faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--background-color);
    border-radius: 50%;
    margin-left: auto;
    transition: all 0.25s ease;
}

.faq-item:hover .faq-icon {
    background: rgba(27, 94, 125, 0.1);
}

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

.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.25s ease;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.3s ease 0.1s;
}

.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;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 90, 60, 0.1);
}

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

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

.site-footer {
    background: var(--text-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);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    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);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

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

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

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

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

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* ============================================
   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; }

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   404 ERROR PAGE
   ============================================ */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.error-content {
    max-width: 600px;
}

.error-illustration {
    margin-bottom: 2rem;
}

.error-content h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

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

.what-we-do-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.what-we-do-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.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;
}

.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: var(--font-family);
}

.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 h1:first-child,
.popup-content h2:first-child {
    margin-bottom: 1rem;
    padding-right: 3rem;
}

.popup-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.popup-content ul,
.popup-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.popup-content li {
    margin-bottom: 0.5rem;
}

/* Carousel 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;
    }

    .what-we-do-section {
        padding: 3rem 0;
    }

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

/* ============================================
   SERVICES BENTO GRID
   ============================================ */

.services-bento-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--background-color) 0%, #fff 100%);
}

/* Header */
.bento-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bento-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.bento-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.bento-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(229, 90, 60, 0.08);
    border: 1px solid rgba(229, 90, 60, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1rem;
}

/* Base Card Styles */
.bento-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(229, 90, 60, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bento-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Featured Card */
.bento-featured {
    grid-column: span 7;
    grid-row: span 2;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1B5E7D 0%, #164a63 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

.bento-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(27, 94, 125, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.bento-featured h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.bento-featured .featured-desc {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.featured-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.featured-list svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.featured-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.featured-stats .stat {
    text-align: center;
}

.featured-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.featured-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-cta {
    width: fit-content;
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.featured-cta:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

/* Small Cards */
.bento-small {
    grid-column: span 5;
    padding: 1.5rem;
}

/* Medium Card */
.bento-medium {
    grid-column: span 5;
    padding: 1.5rem;
}

/* Icon Badge */
.bento-icon-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(229, 90, 60, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bento-icon-badge svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

/* Card Content */
.bento-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.bento-card > p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Mini Stats */
.bento-mini-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bento-mini-stats span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary-color);
    background: rgba(27, 94, 125, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Learn More Link */
.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bento-link:hover {
    color: var(--secondary-color);
    gap: 0.5rem;
}

.bento-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Expand Button (Mobile) */
.bento-expand-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bento-expand-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.bento-expand-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.bento-expand-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.bento-expand-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Details (Hidden by default) */
.bento-details {
    display: none;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.bento-details p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.bento-card.expanded .bento-details {
    display: block;
}

/* Grid Layout Adjustments */
.bento-grid > .bento-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
.bento-grid > .bento-card:nth-child(2) { grid-column: 8 / 13; }
.bento-grid > .bento-card:nth-child(3) { grid-column: 8 / 13; }
.bento-grid > .bento-card:nth-child(4) { grid-column: 1 / 6; }
.bento-grid > .bento-card:nth-child(5) { grid-column: 6 / 9; }
.bento-grid > .bento-card:nth-child(6) { grid-column: 9 / 13; }
.bento-grid > .bento-card:nth-child(7) { grid-column: 1 / 5; }

/* Responsive: Tablet */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento-grid > .bento-card:nth-child(1) { grid-column: 1 / 7; grid-row: auto; }
    .bento-grid > .bento-card:nth-child(2) { grid-column: 1 / 4; }
    .bento-grid > .bento-card:nth-child(3) { grid-column: 4 / 7; }
    .bento-grid > .bento-card:nth-child(4) { grid-column: 1 / 7; }
    .bento-grid > .bento-card:nth-child(5) { grid-column: 1 / 4; }
    .bento-grid > .bento-card:nth-child(6) { grid-column: 4 / 7; }
    .bento-grid > .bento-card:nth-child(7) { grid-column: 1 / 4; }

    .bento-featured {
        padding: 2rem;
    }

    .bento-featured h3 {
        font-size: 1.5rem;
    }

    .featured-stats {
        flex-wrap: wrap;
    }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
    .services-bento-section {
        padding: 3rem 0;
    }

    .bento-header h2 {
        font-size: 1.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bento-grid > .bento-card:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

    .bento-featured {
        padding: 1.5rem;
    }

    .bento-featured h3 {
        font-size: 1.375rem;
    }

    .featured-desc {
        font-size: 0.95rem;
    }

    .featured-list li {
        font-size: 0.875rem;
    }

    .featured-stats {
        gap: 1rem;
    }

    .featured-stats .stat-value {
        font-size: 1.25rem;
    }

    .bento-small,
    .bento-medium {
        padding: 1.25rem;
        padding-right: 3.5rem;
    }

    .bento-expand-btn {
        display: flex;
    }

    .bento-link {
        display: none;
    }

    .bento-card.expanded .bento-link {
        display: inline-flex;
        margin-top: 0.75rem;
    }
}
