/* =====================================================
   PREBO DIGITAL UK - Design System Styles
   Based on design.json specifications
   ===================================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Primary Colors */
    --color-teal: #155159;
    --color-teal-dark: #0E3A3F;
    --color-teal-light: #1D6B75;
    
    /* Accent Colors */
    --color-coral: #EB5A33;
    --color-coral-hover: #D94E29;
    --color-coral-light: #F5714D;
    
    /* Neutral Colors */
    --color-cream: #F7F5F0;
    --color-white: #FFFFFF;
    --color-off-white: #FAFAF8;
    --color-gray-100: #F0EEEA;
    --color-gray-300: #C4C2BD;
    --color-gray-600: #6B6966;
    --color-gray-900: #1A1A1A;
    
    /* Semantic Colors */
    --color-success: #2E7D5A;
    --color-warning: #E6A23C;
    --color-error: #D93025;
    --color-info: #1B5E50;
    
    /* Typography */
    --font-primary: 'DM Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'DM Sans', 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    
    /* Layout */
    --container-max: 1280px;
    --nav-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 100px;
    
    --transition-fast: 0.15s ease;
    --transition-default: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.display-1 {
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.display-2 {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1, .h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2, .h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.3;
}

h4, .h4 {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.35;
    font-weight: 600;
}

h5, .h5 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.body-large {
    font-size: 18px;
    line-height: 1.6;
}

.body-small {
    font-size: 14px;
    line-height: 1.5;
}

.caption {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.overline {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-3xl);
    }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background var(--transition-default), box-shadow var(--transition-default);
}

.nav.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.nav.scrolled .logo-text {
    color: var(--color-gray-900);
}

/* Old selector removed - now using .nav__menu-btn-icon span */

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.nav__logo {
    z-index: 1001;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    transition: color var(--transition-default);
}

.logo-text--light {
    color: var(--color-white);
}

.logo-dot {
    color: var(--color-coral);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 1001;
}

.nav__menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0 16px;
    transition: all var(--transition-default);
}

.nav__menu-btn-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    display: none;
}

.nav__menu-btn-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 14px;
    gap: 4px;
}

.nav.scrolled .nav__menu-btn {
    border-color: var(--color-gray-900);
}

.nav.scrolled .nav__menu-btn-text {
    color: var(--color-gray-900);
}

.nav__menu-btn-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-default);
}

.nav.scrolled .nav__menu-btn-icon span {
    background: var(--color-gray-900);
}

.nav__menu-btn.active .nav__menu-btn-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.nav__menu-btn.active .nav__menu-btn-icon span:nth-child(2) {
    opacity: 0;
}

.nav__menu-btn.active .nav__menu-btn-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* Nav Light Theme - For pages with light backgrounds (e.g., blog) */
.nav--light .logo-text {
    color: var(--color-gray-900);
}

.nav--light .nav__menu-btn {
    border-color: var(--color-gray-900);
}

.nav--light .nav__menu-btn-text {
    color: var(--color-gray-900);
}

.nav--light .nav__menu-btn-icon span {
    background: var(--color-gray-900);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-teal);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    overflow-y: auto;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(235, 90, 51, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(32, 97, 107, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.menu-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='450' cy='300' rx='200' ry='280' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cellipse cx='480' cy='320' rx='160' ry='220' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cellipse cx='510' cy='340' rx='120' ry='160' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'/%3E%3C/svg%3E") no-repeat right center,
        url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='350' r='300' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Ccircle cx='30' cy='370' r='250' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'/%3E%3C/svg%3E") no-repeat left bottom;
    background-size: 70%, 50%;
    pointer-events: none;
    opacity: 1;
}

.menu-overlay__content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-xl) var(--space-2xl);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .menu-overlay__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: calc(var(--nav-height) + var(--space-3xl)) 8% var(--space-3xl);
    }
}

.menu-overlay__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 500px;
}

.menu-overlay__link {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
    transition: all var(--transition-default);
    opacity: 0;
    transform: translateX(-20px);
    display: inline-block;
    width: fit-content;
}

.menu-overlay.active .menu-overlay__link {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay__link:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay__link:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay__link:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay__link:nth-child(4) { transition-delay: 0.25s; }
.menu-overlay__link:nth-child(5) { transition-delay: 0.3s; }
.menu-overlay__link:nth-child(6) { transition-delay: 0.35s; }

.menu-overlay__link:hover,
.menu-overlay__link.active {
    color: rgba(255, 255, 255, 0.7);
}

.menu-overlay__cta {
    margin-top: var(--space-2xl);
}

@media (min-width: 1024px) {
    .menu-overlay__cta {
        margin-top: 0;
        width: 360px;
        flex-shrink: 0;
    }
}

.cta-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow) 0.3s;
}

.menu-overlay.active .cta-card {
    opacity: 1;
    transform: translateY(0);
}

.cta-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.cta-card__icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cta-card__icon svg {
    width: 28px;
    height: 28px;
}

.cta-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    font-size: 20px;
    color: var(--color-gray-900);
    transition: background var(--transition-default);
}

.cta-card__arrow:hover {
    background: var(--color-coral-hover);
}

.cta-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-gray-900);
}

.cta-card__text {
    font-size: 16px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.menu-overlay__contact {
    margin-top: var(--space-2xl);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow) 0.4s;
}

.menu-overlay.active .menu-overlay__contact {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay__contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: 15px;
    line-height: 1.5;
}

.contact-item a:hover {
    text-decoration: underline;
    color: var(--color-coral);
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-coral);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-default);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-coral);
    color: var(--color-gray-900);
    padding: 14px 28px;
}

.btn--primary:hover {
    background: var(--color-coral-hover);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 12px 26px;
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--secondary-dark {
    background: transparent;
    color: var(--color-gray-900);
    border: 2px solid var(--color-gray-900);
    padding: 12px 26px;
}

.btn--secondary-dark:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn--ghost {
    background: transparent;
    color: var(--color-teal);
    padding: 8px 0;
    text-decoration: underline;
}

.btn--ghost:hover {
    color: var(--color-teal-dark);
}

.btn--large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: auto;
    background: var(--color-teal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-3xl);
}

@media (min-width: 1024px) {
    .hero {
        min-height: calc(100vh - 120px);
        padding-bottom: var(--space-4xl);
    }
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero__shape--1 {
    width: 600px;
    height: 600px;
    background: var(--color-teal-light);
    top: -200px;
    right: -200px;
    filter: blur(80px);
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    background: var(--color-teal-light);
    bottom: -100px;
    left: -100px;
    filter: blur(60px);
}

.hero__container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-xl) var(--space-2xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero__container {
        flex-direction: row;
        align-items: center;
        gap: var(--space-3xl);
        padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl) var(--space-2xl);
    }
}

@media (min-width: 1280px) {
    .hero__container {
        gap: var(--space-4xl);
    }
}

.hero__content {
    flex: 1;
    max-width: 680px;
}

.hero__eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--color-coral);
    display: block;
}

.hero__description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Hero Badges Slider Container - Desktop */
.hero__badges-slider {
    display: contents; /* On desktop, children position absolutely */
}

/* Hero Badges Label - Hidden on desktop, shown on mobile */
.hero__badges-label {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
}

.badge--white {
    background: var(--color-white);
    color: var(--color-gray-900);
}

.badge__icon {
    font-size: 14px;
}

.badge__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hero__visual {
    display: none;
}

@media (min-width: 1024px) {
    .hero__visual {
        display: block;
        flex: 0 0 520px;
        position: relative;
    }
}

/* Hero Showcase with Floating Badges */
.hero__showcase {
    position: relative;
    width: 100%;
    height: 520px;
}

/* Main Team Image */
.hero__team-image {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 400px;
    z-index: 1;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.hero__team-image:hover {
    transform: scale(1.02);
}

.hero__team-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Badge Cards */
.floating-badge {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition-default);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.floating-badge:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.floating-badge img {
    max-width:120px;
    object-fit: contain;
}

/* Individual badge positions and animations */
.floating-badge--1 {
    /* Google Premier - Top Right */
    top: -30px;
    right: -20px;
    width: 180px;
    height: 180px;
    padding: var(--space-lg);
    animation: float1 5s ease-in-out infinite;
}

.floating-badge--2 {
    /* Shopify - Right Side */
    top: 180px;
    right: -60px;
    width: 160px;
    height: 90px;
    animation: float2 6s ease-in-out infinite;
}

.floating-badge--3 {
    /* Microsoft - Bottom Right */
    bottom: 100px;
    right: -50px;
    width: 160px;
    height: 90px;
    animation: float3 5.5s ease-in-out infinite;
}

.floating-badge--4 {
    /* Amazon - Bottom */
    bottom: -20px;
    right: 60px;
    width: 160px;
    height: 90px;
    animation: float4 6.5s ease-in-out infinite;
}

.floating-badge--5 {
    /* Meta - Bottom Left */
    bottom: 40px;
    left: -40px;
    width: 120px;
    height: 120px;
    animation: float5 5s ease-in-out infinite;
}

.floating-badge--6 {
    /* Semrush - Left Side */
    top: 180px;
    left: -60px;
    width: 130px;
    height: 120px;
    animation: float6 6s ease-in-out infinite;
}

/* Floating animations with different timings */
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float6 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

.floating-badge:hover {
    animation-play-state: paused;
}

/* Responsive Hero Showcase */
@media (max-width: 1279px) {
    .hero__showcase {
        height: 450px;
    }
    
    .hero__team-image {
        width: 380px;
    }
    
    .floating-badge--1 {
        width: 160px;
        height: 160px;
        right: -15px;
        top: -20px;
    }
    
    .floating-badge--2,
    .floating-badge--3,
    .floating-badge--4 {
        width: 140px;
        height: 80px;
    }
    
    .floating-badge--5,
    .floating-badge--6 {
        width: 110px;
        height: 100px;
    }
}

/* Mobile Hero Visual & Floating Badges */
@media (max-width: 1023px) {
    .hero__visual {
        display: block;
        width: 100%;
        margin-top: var(--space-xl);
        overflow: hidden;
    }
    
    .hero__showcase {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        overflow: hidden;
    }
    
    .hero__team-image {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl);
    }
    
    /* Partner Badges Horizontal Swipeable Slider */
    .hero__badges-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 8px 0;
    }
    
    .hero__badges-slider::-webkit-scrollbar {
        display: none;
    }
    
    /* Reset ALL floating badge positions for mobile */
    .floating-badge,
    .floating-badge--1,
    .floating-badge--2,
    .floating-badge--3,
    .floating-badge--4,
    .floating-badge--5,
    .floating-badge--6 {
        position: relative !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        scroll-snap-align: start;
        flex-shrink: 0;
        height: 70px;
        width: auto !important;
        min-width: 120px;
        padding: var(--space-sm) var(--space-md);
        margin: 0;
    }
    
    .floating-badge--1 {
        height: 90px !important;
        min-width: 150px;
    }
    
    .floating-badge img {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

/* Hero clients section removed - now using ticker */

/* =====================================================
   CLIENT LOGOS SECTION
   ===================================================== */
.logos-section {
    background: linear-gradient(to bottom, var(--color-teal) 50%, var(--color-cream) 50%);
    padding: 0 var(--space-md);
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .logos-section {
        padding: 0 var(--space-xl);
    }
}

.logos-section__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.logos-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .logos-card {
        padding: var(--space-xl) var(--space-3xl);
    }
}

.logos-card__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg) var(--space-md);
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .logos-card__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-xl);
    }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 100%;
    max-width: 120px;
}

@media (min-width: 768px) {
    .logo-item {
        height: 50px;
        max-width: 140px;
    }
}

.logo-item__img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-default);
}

.logo-item:hover .logo-item__img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item__placeholder {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-300);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
}

@media (min-width: 768px) {
    .logo-item__placeholder {
        font-size: 13px;
    }
}

/* Hide placeholder if image loads */
.logo-item__img:not([src=""]):not([src*="undefined"]) + .logo-item__placeholder {
    display: none;
}

/* Show placeholder by default (image not yet loaded) */
.logo-item__img {
    display: none;
}

.logo-item__placeholder {
    display: block;
}

/* =====================================================
   LOGO TICKER SECTION
   ===================================================== */
.logos-ticker-section {
    background: var(--color-cream);
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.logos-ticker__header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.logos-ticker__label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-600);
    margin-bottom: var(--space-md);
}

.logos-ticker__regions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.region-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-900);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-default);
}

.region-tag:hover {
    border-color: var(--color-coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.region-tag--uk:hover { background: #f0f4ff; border-color: #1e3a8a; }
.region-tag--ie:hover { background: #f0fff4; border-color: #15803d; }
.region-tag--eu:hover { background: #fef3c7; border-color: #b45309; }
.region-tag--us:hover { background: #fef2f2; border-color: #b91c1c; }
.region-tag--za:hover { background: #f0fff4; border-color: #007749; }
.region-tag--global:hover { background: #f0fdfa; border-color: #0d9488; }

/* Logo Ticker */
.logos-ticker {
    position: relative;
    width: 100%;
    overflow: visible;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    padding: var(--space-md) 0;
}

.logos-ticker__track {
    display: flex;
    gap: var(--space-2xl);
    animation: ticker 40s linear infinite;
    width: max-content;
    padding: var(--space-sm) 0;
}

.logos-ticker:hover .logos-ticker__track {
    animation-play-state: paused;
}

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

.ticker-logo {
    flex-shrink: 0;
    height: 60px;
    min-width: 120px;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-default);
    position: relative;
}

.ticker-logo::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-default);
}

.ticker-logo:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--color-teal);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.ticker-logo:hover::before {
    opacity: 1;
}

.ticker-logo[data-region="uk"]::before { content: '🇬🇧'; opacity: 0; }
.ticker-logo[data-region="ie"]::before { content: '🇮🇪'; opacity: 0; }
.ticker-logo[data-region="eu"]::before { content: '🇪🇺'; opacity: 0; }
.ticker-logo[data-region="us"]::before { content: '🇺🇸'; opacity: 0; }
.ticker-logo[data-region="global"]::before { content: '🌍'; opacity: 0; }

.ticker-logo:hover[data-region="uk"]::before,
.ticker-logo:hover[data-region="ie"]::before,
.ticker-logo:hover[data-region="eu"]::before,
.ticker-logo:hover[data-region="us"]::before,
.ticker-logo:hover[data-region="global"]::before {
    opacity: 1;
}

.ticker-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-default);
}

.ticker-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive Logo Ticker */
@media (max-width: 768px) {
    .logos-ticker-section {
        padding: var(--space-xl) 0;
    }
    
    .logos-ticker__regions {
        gap: 6px;
    }
    
    .region-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .logos-ticker__track {
        gap: var(--space-lg);
        animation-duration: 30s;
    }
    
    .ticker-logo {
        height: 50px;
        min-width: 100px;
        max-width: 130px;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* =====================================================
   CTA BANNER (Legacy - kept for other pages)
   ===================================================== */
.cta-banner {
    background: var(--color-coral);
    padding: var(--space-lg) var(--space-xl);
}

.cta-banner__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-banner__container {
        flex-direction: row;
        text-align: left;
    }
}

.cta-banner__text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-900);
}

.cta-banner .btn--primary {
    background: var(--color-gray-900);
    color: var(--color-white);
}

.cta-banner .btn--primary:hover {
    background: var(--color-teal-dark);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-4xl) 0;
    }
}

.section--cream {
    background: var(--color-cream);
}

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

.section--teal {
    background: var(--color-teal);
    color: var(--color-white);
}

/* Direct children and specific elements in teal sections - NOT cards with white backgrounds */
.section--teal > .container > .section__header h1,
.section--teal > .container > .section__header h2,
.section--teal > .container > .section__header p,
.section--teal .section__title--light,
.section--teal .section__eyebrow--light,
.section--teal .cta-content h2,
.section--teal .cta-content p,
.section--teal .final-cta__title,
.section--teal .final-cta__description {
    color: var(--color-white);
}

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

.section--teal .btn--secondary:hover {
    background: transparent;
    color: var(--color-white);
}

/* Ensure cards inside teal sections keep their original colors */
.section--teal .testimonial-card,
.section--teal .blog-card,
.section--teal .feature-card {
    color: var(--color-text);
}

.section--teal .testimonial-card__quote {
    color: var(--color-gray-600);
}

.section--teal .testimonial-card__name {
    color: var(--color-gray-900);
}

.section--teal .testimonial-card__role {
    color: var(--color-gray-500);
}

/* CTA Content Block */
.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .cta-content {
        padding: var(--space-2xl) 0;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section__header--left {
    text-align: left;
    margin-left: 0;
}

.section__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin-bottom: var(--space-md);
}

.section__eyebrow--light {
    color: var(--color-coral);
}

.section__title {
    margin-bottom: var(--space-lg);
}

.section__title--light {
    color: var(--color-white);
}

.section__description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-gray-600);
}

/* =====================================================
   STATS GRID
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xl);
    }
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-card__prefix {
    color: var(--color-coral);
}

.stat-card__label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-600);
}

/* =====================================================
   SERVICES GRID
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-default);
    position: relative;
    display: block;
}

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

.service-card--featured {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__description {
    color: var(--color-white);
}

.service-card__badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-coral);
    color: var(--color-gray-900);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-card__icon svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.service-card--featured .service-card__icon svg {
    color: var(--color-white);
}

.service-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-900);
}

.service-card__description {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.service-card__arrow {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 36px;
    height: 36px;
    background: #14494f;
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-default);
}

.service-card:hover .service-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-card--featured .service-card__arrow {
    background: var(--color-coral);
    color: var(--color-white);
}

/* Platform Logo Icons */
.service-card__icon--logo {
    background: transparent;
}

.platform-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =====================================================
   TWO COLUMN LAYOUT
   ===================================================== */
.two-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .two-column {
        flex-direction: row;
        align-items: center;
        gap: var(--space-3xl);
    }
    
    .two-column--reverse {
        flex-direction: row-reverse;
    }
}

.two-column__content {
    flex: 1;
}

.two-column__visual {
    flex: 1;
}

/* Checklist */
.checklist {
    margin-top: var(--space-xl);
}

.checklist__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
    .checklist__row {
        flex-direction: row;
        gap: var(--space-xl);
    }
}

.checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 15px;
    flex: 1;
}

.checklist__item--old {
    color: var(--color-gray-600);
    text-decoration: line-through;
    opacity: 0.7;
}

.checklist__item--new {
    color: var(--color-gray-900);
    font-weight: 500;
}

.checklist__x {
    color: var(--color-gray-300);
    font-weight: 700;
}

.checklist__check {
    color: var(--color-coral);
    font-weight: 700;
}

/* =====================================================
   RESULTS GRID
   ===================================================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-card {
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
}

.result-card__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--color-coral);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.result-card__metric {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: var(--space-xs);
}

.result-card__company {
    display: block;
    font-size: 12px;
    color: var(--color-gray-300);
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.testimonial-card__quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-teal);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.testimonial-card__info {
    display: flex;
    flex-direction: column;
}

.testimonial-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-900);
}

.testimonial-card__role {
    font-size: 13px;
    color: var(--color-gray-300);
}

/* =====================================================
   VALUES LIST
   ===================================================== */
.values-list {
    margin-top: var(--space-xl);
}

.values-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-gray-100);
}

.values-list__item:last-child {
    border-bottom: none;
}

.values-list__icon {
    color: var(--color-coral);
    font-weight: 700;
    font-size: 18px;
}

.values-visual {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 64px;
}

/* Values Image */
.values-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.values-image__img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-default);
}

.values-image__img:hover {
    transform: scale(1.02);
}

/* Social Logos Grid */
.social-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    margin: 0 auto;
}

.social-logo-item {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(0);
    transition: all var(--transition-default);
    padding: var(--space-sm);
}

.social-logo-item:hover {
    transform: scale(1.1);
}

/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
    text-align: center;
}

.final-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta__title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.final-cta__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

/* Fix white text on white background for CTA */
.section--white .final-cta__title,
.final-cta.section--white .final-cta__title,
section.section--white.final-cta .final-cta__title {
    color: var(--color-text) !important;
}

.section--white .final-cta__description,
.final-cta.section--white .final-cta__description,
section.section--white.final-cta .final-cta__description {
    color: var(--color-text-light) !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-teal-dark);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 1024px) {
    .footer__main {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.footer__tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-default);
    padding: 8px;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all var(--transition-default);
}

/* LinkedIn - has blue background, show as-is */
.social-link[aria-label="LinkedIn"] .social-icon {
    filter: none;
}

.social-link[aria-label="LinkedIn"]:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Instagram - show white icon on dark, gradient on hover */
.social-link[aria-label="Instagram"] .social-icon {
    filter: brightness(0) invert(1);
}

.social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link[aria-label="Instagram"]:hover .social-icon {
    filter: brightness(0) invert(1);
}

/* Facebook/Meta - has blue background, show as-is */
.social-link[aria-label="Facebook"] .social-icon {
    filter: none;
}

.social-link[aria-label="Facebook"]:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__column {
    min-width: 0;
}

.footer__heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.footer__list li {
    margin-bottom: var(--space-sm);
}

.footer__list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-default);
}

.footer__list a:hover {
    color: var(--color-coral);
}

.footer__list--contact span {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-default);
}

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

/* =====================================================
   QUICK CONTACT SIDEBAR
   ===================================================== */
.quick-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

@media (min-width: 1024px) {
    .quick-contact {
        display: block;
    }
}

.quick-contact__btn {
    display: block;
    background: var(--color-coral);
    color: var(--color-gray-900);
    padding: var(--space-md) var(--space-sm);
    font-size: 13px;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: all var(--transition-default);
}

.quick-contact__btn:hover {
    background: var(--color-coral-hover);
    padding-right: var(--space-md);
}

/* =====================================================
   PAGE HEADER (for service pages)
   ===================================================== */
.page-header {
    background: var(--color-teal);
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M200 50 Q350 200 200 350 Q50 200 200 50' fill='none' stroke='rgba(42, 122, 104, 0.3)' stroke-width='100'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.page-header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.page-header__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin-bottom: var(--space-md);
}

.page-header__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.page-header__description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.page-header__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--color-white);
    margin-top: var(--space-xl);
}

.page-header__badge .badge__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* =====================================================
   FEATURE GRID
   ===================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-default);
}

.feature-card:hover {
    border-color: var(--color-coral);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-md);
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card__description {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -20px;
        top: 40px;
        font-size: 24px;
        color: var(--color-gray-300);
    }
}

.process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-coral);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-md);
}

.process-step__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.process-step__description {
    font-size: 14px;
    color: var(--color-gray-600);
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-900);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px var(--space-md);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    transition: all var(--transition-default);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(27, 94, 80, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   CONTACT INFO
   ===================================================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info__item {
    display: flex;
    gap: var(--space-md);
}

.contact-info__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-info__content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-info__content p,
.contact-info__content a {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.contact-info__content a:hover {
    color: var(--color-coral);
}

/* =====================================================
   CONTACT CARDS ROW
   ===================================================== */
.contact-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .contact-cards-row {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-default);
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-coral);
    transform: translateY(-2px);
}

.contact-card--static {
    cursor: default;
}

.contact-card--static:hover {
    transform: none;
    border-color: var(--color-gray-100);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
}

.contact-card__icon svg {
    width: 24px;
    height: 24px;
}

.contact-card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.contact-card__label {
    font-size: 13px;
    color: var(--color-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-900);
    word-break: break-word;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-form-container {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-sidebar {
    position: sticky;
    top: 120px;
}

.contact-sidebar__card {
    background-color: #155159;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    color: #ffffff;
}

.contact-sidebar__card h3 {
    color: #ffffff;
}

.contact-sidebar__card .timeline__content h4 {
    color: #ffffff;
}

.contact-sidebar__card .timeline__content p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-sidebar__card .timeline__number {
    color: #EB5A33;
    background: rgba(255, 255, 255, 0.15);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.timeline__item {
    display: flex;
    gap: var(--space-md);
}

.timeline__number {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--color-coral);
}

.timeline__content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-white);
}

.timeline__content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* =====================================================
   ABOUT US VIDEO SECTION (Homepage)
   ===================================================== */
.about-video-section {
    overflow: hidden;
    position: relative;
}

.about-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 97, 107, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.about-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-video-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
}

.about-video-content {
    position: relative;
    z-index: 1;
}

.about-video-lead {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    color: var(--color-coral);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.about-video-text {
    font-size: var(--font-size-body);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-video-text:last-of-type {
    margin-bottom: 0;
}

.about-video-player {
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--color-gray-900);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-default);
    cursor: pointer;
    pointer-events: none;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-play-icon {
    width: 80px;
    height: 80px;
    background: var(--color-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-white);
    padding-left: 5px;
    box-shadow: 0 10px 30px rgba(235, 90, 51, 0.4);
    transition: transform var(--transition-default);
}

.video-wrapper:hover .video-play-icon {
    transform: scale(1.1);
}

/* Decorative elements */
.about-video-player::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--color-coral);
    border-radius: var(--radius-xl);
    opacity: 0.3;
    z-index: -1;
}

.about-video-player::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: -1;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .about-video-player::before,
    .about-video-player::after {
        display: none;
    }
    
    .video-wrapper {
        border-radius: var(--radius-xl);
    }
}

/* Button variant for light backgrounds in dark sections */
.btn--secondary-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    padding: 14px 28px;
}

.btn--secondary-light:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-teal);
    transform: translateY(-2px);
}

/* =====================================================
   ABOUT PAGE - HERO CAROUSEL
   ===================================================== */
.page-header--about {
    background: var(--color-coral);
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: 0;
    position: relative;
    overflow: visible;
}

.page-header--about .page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 40%;
    background: var(--color-coral);
    z-index: 0;
}

.page-header--about .page-header__container {
    position: relative;
    z-index: 1;
    padding-bottom: var(--space-xl);
}

.page-header__title--large {
    font-size: clamp(48px, 10vw, 80px);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 0;
}

/* About Carousel - Hero */
.about-carousel {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.about-carousel__track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    padding: var(--space-lg) 0;
}

.about-carousel__slide {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.about-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-carousel__slide--side {
    width: 280px;
    height: 320px;
    opacity: 0.6;
    transform: scale(0.9);
}

.about-carousel__slide--center {
    width: 400px;
    height: 420px;
    z-index: 2;
}

.about-carousel__slide--center.active {
    opacity: 1;
    transform: scale(1);
}

.about-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.carousel-dot {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-default);
}

.carousel-dot:hover {
    border-color: var(--color-gray-400);
}

.carousel-dot.active {
    background: var(--color-gray-900);
    color: var(--color-white);
    border-color: var(--color-gray-900);
}

/* Mobile Carousel */
@media (max-width: 768px) {
    .about-carousel__slide--side {
        display: none;
    }
    
    .about-carousel__slide--center {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
}

/* =====================================================
   TEAM GRID SECTION
   ===================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.team-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.team-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card__image img {
    transform: scale(1.05);
}

.team-card__overlay {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 2;
}

.team-card__badge {
    display: inline-block;
    background: var(--color-coral);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card__badge--uk {
    background: var(--color-teal);
}

.team-card__info {
    padding: var(--space-lg);
    text-align: center;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: var(--space-xs);
}

.team-card__role {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.4;
}

/* Founder Cards - Slightly Larger */
.team-card--founder,
.team-card--uk {
    background: linear-gradient(135deg, var(--color-white) 0%, #f8f9fa 100%);
}

.team-card--founder::before,
.team-card--uk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 3;
}

.team-card--founder::before {
    background: var(--color-coral);
}

.team-card--uk::before {
    background: var(--color-teal);
}

/* Team Grid Responsive */
@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .team-card__info {
        padding: var(--space-md);
    }
    
    .team-card__name {
        font-size: 16px;
    }
    
    .team-card__role {
        font-size: 12px;
    }
}

/* Story Section Carousel */
.story-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.story-carousel__container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story-carousel__slide.active {
    opacity: 1;
}

.story-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-carousel__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-sm);
    pointer-events: none;
}

.story-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    font-size: 24px;
    color: var(--color-gray-700);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-default);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-carousel__btn:hover {
    background: var(--color-gray-100);
    transform: scale(1.1);
}

.story-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.story-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-default);
}

.story-dot.active {
    background: var(--color-coral);
    width: 24px;
    border-radius: 4px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-coral {
    color: var(--color-coral);
}

.text-teal {
    color: var(--color-teal);
}

.text-white {
    color: var(--color-white);
}

.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* =====================================================
   MOBILE OPTIMIZATION - APP-LIKE EXPERIENCE
   70% Brand Focus, 30% Lead Generation
   ===================================================== */

/* Global Mobile Overflow Prevention */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container, .section, main, header, footer {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* =====================================================
   MOBILE FLOATING FOOTER BAR
   ===================================================== */
.mobile-footer-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .mobile-footer-bar {
        display: flex;
        gap: 12px;
    }
}

.mobile-footer-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-footer-bar__btn--quote {
    background: var(--color-coral);
    color: var(--color-gray-900);
}

.mobile-footer-bar__btn--call {
    background: var(--color-teal);
    color: var(--color-white);
}

/* Breathing/Pulsing Border Effect */
.mobile-footer-bar__btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    background: linear-gradient(45deg, 
        var(--color-coral), 
        var(--color-teal), 
        var(--color-coral-light), 
        var(--color-teal-light),
        var(--color-coral)
    );
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.8;
    animation: breathingBorder 4s ease-in-out infinite;
}

.mobile-footer-bar__btn::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 13px;
    z-index: -1;
}

.mobile-footer-bar__btn--quote::after {
    background: var(--color-coral);
}

.mobile-footer-bar__btn--call::after {
    background: var(--color-teal);
}

/* Glow effect animation */
.mobile-footer-bar__btn--quote {
    box-shadow: 0 0 20px rgba(235, 90, 51, 0.3);
    animation: glowPulseOrange 3s ease-in-out infinite;
}

.mobile-footer-bar__btn--call {
    box-shadow: 0 0 20px rgba(21, 81, 89, 0.3);
    animation: glowPulseTeal 3s ease-in-out infinite 1.5s;
}

@keyframes breathingBorder {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

@keyframes glowPulseOrange {
    0%, 100% {
        box-shadow: 0 0 15px rgba(235, 90, 51, 0.3), 
                    0 0 30px rgba(235, 90, 51, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(235, 90, 51, 0.5), 
                    0 0 50px rgba(235, 90, 51, 0.2);
    }
}

@keyframes glowPulseTeal {
    0%, 100% {
        box-shadow: 0 0 15px rgba(21, 81, 89, 0.3), 
                    0 0 30px rgba(21, 81, 89, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(21, 81, 89, 0.5), 
                    0 0 50px rgba(21, 81, 89, 0.2);
    }
}

.mobile-footer-bar__btn:active {
    transform: scale(0.96);
}

.mobile-footer-bar__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =====================================================
   SWIPEABLE CARD SECTIONS
   ===================================================== */
@media (max-width: 767px) {
    /* Generic swipeable container */
    .swipeable-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 0 16px 20px;
        margin: 0 -16px;
    }
    
    .swipeable-container::-webkit-scrollbar {
        display: none;
    }
    
    .swipeable-container > * {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Services Grid - Swipeable */
    .services-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
    }
    
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .services-grid .service-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 280px;
        min-width: 280px;
    }
    
    /* Stats Grid - Swipeable */
    .stats-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px;
        padding: 8px 16px 20px;
        margin: 0 -16px;
    }
    
    .stats-grid::-webkit-scrollbar {
        display: none;
    }
    
    .stats-grid .stat-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 140px;
        min-width: 140px;
        padding: var(--space-lg);
    }
    
    .stats-grid .stat-card__number {
        font-size: 28px;
    }
    
    .stats-grid .stat-card__label {
        font-size: 11px;
    }
    
    /* Results Grid - Swipeable */
    .results-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px;
        padding: 8px 16px 20px;
        margin: 0 -16px;
    }
    
    .results-grid::-webkit-scrollbar {
        display: none;
    }
    
    .results-grid .result-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 160px;
        min-width: 160px;
        padding: var(--space-lg);
    }
    
    .results-grid .result-card__number {
        font-size: 24px;
    }
    
    /* Testimonials - Swipeable */
    .testimonials-slider {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
    }
    
    .testimonials-slider::-webkit-scrollbar {
        display: none;
    }
    
    .testimonials-slider .testimonial-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 300px;
        min-width: 300px;
    }
    
    /* Feature Grid - Swipeable */
    .feature-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
    }
    
    .feature-grid::-webkit-scrollbar {
        display: none;
    }
    
    .feature-grid .feature-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 280px;
        min-width: 280px;
    }
    
    /* Team Grid - Swipeable */
    .team-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
    }
    
    .team-grid::-webkit-scrollbar {
        display: none;
    }
    
    .team-grid .team-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 200px;
        min-width: 200px;
    }
    
    /* Process Grid - Swipeable */
    .process-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding: 8px 16px 24px;
        margin: 0 -16px;
    }
    
    .process-grid::-webkit-scrollbar {
        display: none;
    }
    
    .process-grid .process-step {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 200px;
        min-width: 200px;
    }
    
    .process-grid .process-step::after {
        display: none;
    }
}

/* Scroll Indicators for swipeable sections */
.scroll-indicator {
    display: none;
}

@media (max-width: 767px) {
    .scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }
    
    .scroll-indicator__dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--color-gray-300);
        transition: all 0.3s ease;
    }
    
    .scroll-indicator__dot.active {
        width: 20px;
        border-radius: 3px;
        background: var(--color-coral);
    }
}

/* =====================================================
   MOBILE HERO OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .hero {
        padding-bottom: var(--space-2xl);
        min-height: auto;
        overflow: hidden;
        width: 100%;
    }
    
    /* Hide decorative shapes that cause overflow on mobile */
    .hero__shape {
        display: none;
    }
    
    .hero__container {
        padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-xl);
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .hero__content {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero__title {
        font-size: 32px;
        margin-bottom: var(--space-md);
    }
    
    .hero__description {
        font-size: 16px;
        margin-bottom: var(--space-lg);
    }
    
    .hero__cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Partner Badges - Inline and Centered */
    .hero__badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        max-width: 100%;
    }
    
    .hero__badges .badge {
        padding: 6px 10px;
        font-size: 10px;
        flex-shrink: 0;
    }
    
    .hero__badges .badge__logo {
        width: 14px;
        height: 14px;
    }
    
    .hero__badges .badge span {
        white-space: nowrap;
    }
    
    .hero__eyebrow {
        font-size: 12px;
        margin-bottom: var(--space-md);
    }
    
    /* Hero Visual Section */
    .hero__visual {
        margin-top: var(--space-lg);
    }
    
    /* Hero Badges Label - Shown on mobile */
    .hero__badges-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.7);
        margin-top: var(--space-lg);
        margin-bottom: var(--space-sm);
    }
    
    /* Hero Badges Slider - Horizontal Swipeable */
    .hero__badges-slider {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 8px 0;
    }
    
    .hero__badges-slider::-webkit-scrollbar {
        display: none;
    }
    
    /* Reset ALL floating badge positions for mobile */
    .hero__showcase .floating-badge,
    .hero__showcase .floating-badge--1,
    .hero__showcase .floating-badge--2,
    .hero__showcase .floating-badge--3,
    .hero__showcase .floating-badge--4,
    .hero__showcase .floating-badge--5,
    .hero__showcase .floating-badge--6 {
        position: relative !important;
        animation: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        scroll-snap-align: start;
        flex-shrink: 0;
        height: 65px;
        width: auto !important;
        min-width: 110px;
        padding: var(--space-sm) var(--space-md);
        margin: 0;
    }
    
    .hero__showcase .floating-badge--1 {
        height: 80px !important;
        min-width: 140px;
    }
    
    .hero__showcase .floating-badge img {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

/* =====================================================
   MOBILE NAVIGATION OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .nav__container {
        padding: 0 var(--space-md);
    }
    
    .nav__actions {
        gap: 10px;
    }
    
    /* Show CTA button on mobile - Match menu button height */
    .nav__actions .nav__cta-btn {
        display: flex;
        align-items: center;
        height: 42px;
        padding: 0 16px;
        font-size: 13px;
        background: var(--color-coral);
        border-radius: var(--radius-md);
        line-height: 1;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    /* Menu button with text label - Match CTA button height */
    .nav__menu-btn {
        height: 42px;
        padding: 0 14px;
        gap: 8px;
        display: flex;
        align-items: center;
    }
    
    .nav__menu-btn-text {
        display: block;
        font-size: 13px;
    }
    
    .nav__menu-btn-icon {
        width: 18px;
        height: 12px;
        gap: 3px;
    }
}

/* =====================================================
   MOBILE SECTIONS OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .section {
        padding: var(--space-2xl) 0;
        /* Add bottom padding for mobile footer bar */
    }
    
    /* Last section before footer needs extra padding for mobile footer bar */
    .section:last-of-type,
    .final-cta {
        padding-bottom: calc(var(--space-2xl) + 80px);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .section__header {
        margin-bottom: var(--space-xl);
        text-align: left;
    }
    
    .section__title {
        font-size: 26px;
        margin-bottom: var(--space-sm);
    }
    
    .section__description {
        font-size: 15px;
    }
    
    .section__eyebrow {
        font-size: 11px;
    }
}

/* =====================================================
   MOBILE PAGE HEADER OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .page-header {
        padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
    }
    
    .page-header__container {
        padding: 0 var(--space-md);
    }
    
    .page-header__title {
        font-size: 28px;
        margin-bottom: var(--space-md);
    }
    
    .page-header__description {
        font-size: 15px;
    }
}

/* =====================================================
   MOBILE TWO COLUMN OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .two-column {
        gap: var(--space-xl);
    }
    
    .checklist__row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .checklist__item {
        font-size: 14px;
    }
}

/* =====================================================
   MOBILE ABOUT VIDEO SECTION
   ===================================================== */
@media (max-width: 767px) {
    .about-video-grid {
        gap: var(--space-xl);
    }
    
    .about-video-lead {
        font-size: 17px;
    }
    
    .about-video-text {
        font-size: 15px;
    }
    
    .video-wrapper {
        border-radius: var(--radius-lg);
    }
}

/* =====================================================
   MOBILE CONTACT PAGE OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .contact-cards-row {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 8px 16px 16px;
        margin: 0 -16px var(--space-xl);
    }
    
    .contact-cards-row::-webkit-scrollbar {
        display: none;
    }
    
    .contact-cards-row .contact-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 260px;
        min-width: 260px;
    }
    
    .contact-form-wrapper {
        gap: var(--space-xl);
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .contact-sidebar {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .form-group {
        margin-bottom: var(--space-md);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 12px var(--space-md);
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* =====================================================
   MOBILE FOOTER OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .footer {
        padding: var(--space-2xl) 0 calc(var(--space-xl) + 100px);
    }
    
    .footer__container {
        padding: 0 var(--space-md);
    }
    
    .footer__main {
        gap: var(--space-xl);
    }
    
    .footer__brand {
        max-width: 100%;
    }
    
    .footer__tagline {
        font-size: 14px;
    }
    
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer__heading {
        font-size: 13px;
        margin-bottom: var(--space-md);
    }
    
    .footer__list a,
    .footer__list span {
        font-size: 13px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer__legal {
        justify-content: center;
    }
}

/* =====================================================
   MOBILE LOGOS TICKER OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .logos-ticker-section {
        padding: var(--space-xl) 0;
    }
    
    .logos-ticker__header {
        margin-bottom: var(--space-lg);
    }
    
    .logos-ticker__label {
        font-size: 12px;
    }
    
    .region-tag {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .ticker-logo {
        height: 45px;
        min-width: 90px;
        max-width: 120px;
    }
}

/* =====================================================
   MOBILE FINAL CTA OPTIMIZATION
   ===================================================== */
@media (max-width: 767px) {
    .final-cta {
        text-align: center;
        padding: var(--space-2xl) 0 calc(var(--space-2xl) + 100px);
    }
    
    .final-cta__title {
        font-size: 26px;
    }
    
    .final-cta__description {
        font-size: 15px;
        margin-bottom: var(--space-lg);
    }
    
    .final-cta .btn--large {
        width: 100%;
        padding: 16px 24px;
    }
}

/* =====================================================
   MOBILE QUICK CONTACT SIDEBAR - HIDE ON MOBILE
   ===================================================== */
@media (max-width: 767px) {
    .quick-contact {
        display: none !important;
    }
}

/* =====================================================
   MOBILE TOUCH OPTIMIZATIONS
   ===================================================== */
@media (max-width: 767px) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }
    
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth momentum scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection during swipe */
    .swipeable-container,
    .services-grid,
    .stats-grid,
    .results-grid,
    .testimonials-slider,
    .feature-grid,
    .team-grid,
    .process-grid {
        user-select: none;
        -webkit-user-select: none;
    }
}

/* =====================================================
   MOBILE MENU OVERLAY - ENHANCED APP-LIKE EXPERIENCE
   ===================================================== */
@media (max-width: 767px) {
    .menu-overlay {
        background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    }
    
    .menu-overlay::before,
    .menu-overlay::after {
        display: none;
    }
    
    .menu-overlay__content {
        padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        justify-content: flex-start;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .menu-overlay__nav {
        flex: 0 0 auto;
        gap: 0;
    }
    
    .menu-overlay__link {
        font-size: 28px;
        font-weight: 600;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        color: var(--color-white);
        opacity: 0.95;
        letter-spacing: -0.5px;
    }
    
    .menu-overlay__link:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-overlay__link:hover,
    .menu-overlay__link.active {
        color: var(--color-coral);
        opacity: 1;
    }
    
    .menu-overlay__cta {
        margin-top: var(--space-2xl);
    }
    
    /* Simplified CTA Card - Clear Button Style */
    .cta-card {
        background: var(--color-white);
        border: none;
        border-radius: var(--radius-xl);
        padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all var(--transition-default);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .cta-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }
    
    .cta-card__header {
        display: none;
    }
    
    .cta-card__title {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-gray-900);
        margin: 0;
    }
    
    .cta-card__text {
        display: none;
    }
    
    .cta-card__arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--color-coral);
        color: var(--color-white);
        border-radius: 50%;
        font-size: 20px;
        font-weight: 600;
        text-decoration: none;
        flex-shrink: 0;
        margin-left: var(--space-md);
        transition: all var(--transition-default);
    }
    
    .cta-card:hover .cta-card__arrow {
        background: var(--color-coral-hover);
        transform: translateX(3px);
    }
    
    /* Contact Section */
    .menu-overlay__contact {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
    }
    
    .menu-overlay__contact h4 {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: var(--space-md);
    }
    
    .contact-item {
        font-size: 15px;
        margin-bottom: 12px;
        color: var(--color-white);
        opacity: 0.9;
        gap: 12px;
    }
    
    .contact-item a {
        color: var(--color-white);
    }
    
    .contact-icon {
        color: var(--color-coral);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(235, 90, 51, 0.15);
        border-radius: 6px;
        padding: 4px;
    }
    
    .contact-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* =====================================================
   SWIPE HINT ANIMATION
   ===================================================== */
@media (max-width: 767px) {
    .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
        color: var(--color-gray-500);
        margin-top: 8px;
        animation: swipeHintFade 3s ease-in-out;
        animation-fill-mode: forwards;
    }
    
    .swipe-hint__icon {
        animation: swipeHintMove 1.5s ease-in-out infinite;
    }
    
    @keyframes swipeHintMove {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(8px);
        }
    }
    
    @keyframes swipeHintFade {
        0%, 80% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
}

/* =====================================================
   iOS SAFE AREA SUPPORT
   ===================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-footer-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    @media (max-width: 767px) {
        .footer {
            padding-bottom: calc(var(--space-xl) + 100px + env(safe-area-inset-bottom));
        }
    }
}

/* =====================================================
   BLOG SECTION STYLES - SEO OPTIMIZED
   Mobile-First Approach
   ===================================================== */

/* Blog Hero Section - Mobile First */
.blog-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 100%);
    padding-top: calc(var(--space-xl) + 70px); /* Account for fixed nav */
}

.blog-hero__content {
    max-width: 100%;
    padding: 0 var(--space-md);
}

.blog-hero__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

.blog-hero__title .text-accent {
    color: var(--color-coral);
}

.blog-hero__description {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Blog Search - Mobile First */
.blog-search {
    max-width: 100%;
}

.blog-search__form {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.blog-search__input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}

.blog-search__input {
    flex: 1;
    min-width: 0; /* Fix flex overflow on mobile */
    border: none;
    padding: var(--space-md);
    padding-right: 36px;
    font-size: 16px; /* Prevent iOS zoom */
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

/* Hide native search clear button */
.blog-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.blog-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-gray-200);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gray-600);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.blog-search__clear:hover {
    background: var(--color-gray-300);
    color: var(--color-text);
}

.blog-search__input:focus {
    outline: none;
}

.blog-search__input::placeholder {
    color: var(--color-gray-400);
}

.blog-search__btn {
    background: var(--color-coral);
    color: white;
    border: none;
    padding: var(--space-md);
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.blog-search__btn:hover,
.blog-search__btn:active {
    background: #d14d2a;
}

/* Blog Search Auto-Suggest */
.blog-search__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    -webkit-overflow-scrolling: touch;
}

.blog-search__suggestion-item {
    border-bottom: 1px solid var(--color-gray-200);
}

.blog-search__suggestion-item:last-child {
    border-bottom: none;
}

.blog-search__suggestion-item--active {
    background: var(--color-gray-100);
}

.blog-search__suggestion-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.blog-search__suggestion-link:hover {
    background: var(--color-gray-50);
}

.blog-search__suggestion-item--active .blog-search__suggestion-link {
    background: var(--color-gray-100);
}

.blog-search__suggestion-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text);
    line-height: 1.3;
}

.blog-search__suggestion-title mark {
    background: var(--color-coral);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.blog-search__suggestion-excerpt {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: full-width suggestions - position below search */
@media (max-width: 767px) {
    .blog-search {
        position: relative;
    }
    
    .blog-search__suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-top: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    .blog-search__suggestion-link {
        padding: 14px 16px;
    }
    
    .blog-search__suggestion-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .blog-search__suggestion-excerpt {
        font-size: 13px;
    }
    
    /* Ensure suggestions are above other content */
    .blog-search__form {
        z-index: 100;
    }
}

/* Blog Categories - Mobile First with Swipeable Pills */
.blog-categories {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-white);
    position: sticky;
    top: 60px; /* Match mobile nav height */
    z-index: 50;
}

.blog-categories__wrapper {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding: var(--space-xs) var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.blog-categories__wrapper::-webkit-scrollbar {
    display: none;
}

.blog-category-btn {
    flex-shrink: 0;
    padding: var(--space-xs) var(--space-md);
    border: 2px solid var(--color-gray-200);
    border-radius: 100px;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}

.blog-category-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.blog-category-btn:active {
    transform: scale(0.96);
}

.blog-category-btn.active {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #FFFFFF;
}

/* Ensure active state isn't overridden by hover */
.blog-category-btn.active:hover {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #FFFFFF;
}

/* Tablet and Desktop Blog Hero */
@media (min-width: 768px) {
    .blog-hero {
        padding: var(--space-2xl) 0;
        padding-top: calc(var(--space-2xl) + 80px);
    }
    
    .blog-hero__content {
        max-width: 700px;
        padding: 0;
    }
    
    .blog-hero__title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        margin-bottom: var(--space-md);
    }
    
    .blog-hero__description {
        font-size: 1.125rem;
        margin-bottom: var(--space-xl);
    }
    
    .blog-search {
        max-width: 500px;
    }
    
    .blog-search__input {
        padding: var(--space-md) var(--space-lg);
    }
    
    .blog-search__btn {
        padding: var(--space-md) var(--space-lg);
    }
    
    .blog-categories {
        padding: var(--space-lg) 0;
        top: 70px;
    }
    
    .blog-categories__wrapper {
        gap: var(--space-sm);
        padding: 0;
        justify-content: flex-start;
    }
    
    .blog-category-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .blog-hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
        padding-top: calc(var(--space-3xl) + 80px);
    }
    
    .blog-hero__content {
        max-width: 800px;
    }
    
    .blog-hero__title {
        font-size: clamp(3rem, 5vw, 4rem);
    }
}

/* Featured Post - Mobile First */
.blog-featured {
    padding: var(--space-lg) 0;
    background: var(--color-white);
}

.featured-post {
    position: relative;
}

.featured-post__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
}

.featured-post__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-post__link:hover .featured-post__image img {
    transform: scale(1.05);
}

.featured-post__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-coral);
    color: white;
    padding: 4px var(--space-sm);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-post__content {
    padding: 0;
}

.featured-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
}

.featured-post__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
    transition: color 0.3s;
}

.featured-post__link:hover .featured-post__title {
    color: var(--color-coral);
}

.featured-post__excerpt {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.featured-post__author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Featured Post Tablet/Desktop */
@media (min-width: 768px) {
    .blog-featured {
        padding: var(--space-xl) 0;
    }
    
    .featured-post__link {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: center;
    }
    
    .featured-post__image {
        border-radius: var(--radius-xl);
        aspect-ratio: 16/10;
    }
    
    .featured-post__badge {
        top: var(--space-md);
        left: var(--space-md);
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8125rem;
    }
    
    .featured-post__content {
        padding: var(--space-md) 0;
    }
    
    .featured-post__meta {
        gap: var(--space-md);
        margin-bottom: var(--space-md);
        font-size: 0.9375rem;
    }
    
    .featured-post__title {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        margin-bottom: var(--space-md);
    }
    
    .featured-post__excerpt {
        font-size: 1.0625rem;
        line-height: 1.7;
        margin-bottom: var(--space-lg);
        -webkit-line-clamp: unset;
    }
    
    .featured-post__author {
        gap: var(--space-md);
    }
    
    .featured-post__author-image {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 1024px) {
    .blog-featured {
        padding: var(--space-2xl) 0;
    }
    
    .featured-post__link {
        gap: var(--space-2xl);
    }
}

/* Blog Tags - Mobile First */
.blog-tag {
    display: inline-block;
    padding: 3px var(--space-sm);
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-tag--seo { background: #dcfce7; color: #166534; }
.blog-tag--ppc { background: #dbeafe; color: #1e40af; }
.blog-tag--social, .blog-tag--social-media { background: #fce7f3; color: #9d174d; }
.blog-tag--amazon { background: #fef3c7; color: #92400e; }
.blog-tag--cro { background: #e0e7ff; color: #3730a3; }
.blog-tag--ai, .blog-tag--ai-marketing { background: #f3e8ff; color: #7c3aed; }
.blog-tag--web, .blog-tag--web-design { background: #ccfbf1; color: #0f766e; }
.blog-tag--analytics { background: #fee2e2; color: #991b1b; }
.blog-tag--ecommerce { background: #fef9c3; color: #854d0e; }

.reading-time {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

@media (min-width: 768px) {
    .blog-tag {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8125rem;
    }
    
    .reading-time {
        font-size: 0.875rem;
    }
}

/* Blog Grid - Mobile First */
.blog-posts__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.blog-posts__header .section__title {
    margin-bottom: 0;
}

.blog-sort-select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px; /* Prevent iOS zoom */
    background: var(--color-white);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .blog-posts__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-xl);
    }
    
    .blog-sort-select {
        font-size: 0.9375rem;
    }
}

/* Blog Grid - Mobile First (Swipeable Cards) */
.blog-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-xs) var(--space-sm);
    margin: 0 calc(var(--space-md) * -1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-md);
}

.blog-grid::-webkit-scrollbar {
    display: none;
}

.blog-grid .blog-card {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: start;
}

/* Tablet - 2 Column Grid */
@media (min-width: 640px) {
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        overflow-x: visible;
        padding: 0;
        margin: 0;
        scroll-snap-type: none;
    }
    
    .blog-grid .blog-card {
        flex: none;
        max-width: none;
    }
}

/* Desktop - 3 Column Grid */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.blog-grid--3 {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-xs) var(--space-sm);
    margin: 0 calc(var(--space-md) * -1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.blog-grid--3::-webkit-scrollbar {
    display: none;
}

.blog-grid--3 .blog-card {
    flex: 0 0 85%;
    max-width: 320px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .blog-grid--3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
        overflow-x: visible;
        padding: 0;
        margin: 0;
    }
    
    .blog-grid--3 .blog-card {
        flex: none;
        max-width: none;
    }
}

/* Blog Card - Mobile First */
.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.blog-card:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .blog-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }
    
    .blog-card:active {
        transform: translateY(-4px);
    }
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

@media (min-width: 768px) {
    .blog-card:hover .blog-card__image img {
        transform: scale(1.05);
    }
}

.blog-card__content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.blog-card__meta time {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-xs);
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-card:hover .blog-card__title {
        color: var(--color-coral);
    }
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-card__arrow {
    font-size: 1.125rem;
    color: var(--color-coral);
    transition: transform 0.3s;
}

@media (min-width: 768px) {
    .blog-card__content {
        padding: var(--space-lg);
    }
    
    .blog-card__meta {
        gap: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .blog-card__meta time {
        font-size: 0.875rem;
    }
    
    .blog-card__title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
        -webkit-line-clamp: unset;
    }
    
    .blog-card__excerpt {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: var(--space-md);
        -webkit-line-clamp: 3;
    }
    
    .blog-card__arrow {
        font-size: 1.25rem;
    }
    
    .blog-card:hover .blog-card__arrow {
        transform: translateX(4px);
    }
}

/* Blog Pagination - Mobile First */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    padding: 0 var(--space-md);
}

.blog-pagination__btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.blog-pagination__btn:active:not(:disabled) {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .blog-pagination__btn:hover:not(:disabled) {
        border-color: var(--color-teal);
        color: var(--color-teal);
    }
}

.blog-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination__numbers {
    display: flex;
    gap: 4px;
}

.blog-pagination__num {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.blog-pagination__num:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .blog-pagination {
        gap: var(--space-sm);
        margin-top: var(--space-2xl);
    }
    
    .blog-pagination__btn,
    .blog-pagination__num {
        width: 44px;
        height: 44px;
    }
    
    .blog-pagination__numbers {
        gap: var(--space-xs);
    }
    
    .blog-pagination__num {
        font-size: 0.9375rem;
    }
    
    .blog-pagination__num:hover {
        border-color: var(--color-teal);
    }
}

.blog-pagination__num.active {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: white;
}

.blog-pagination__ellipsis {
    display: flex;
    align-items: center;
    padding: 0 var(--space-xs);
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

/* Blog Newsletter - Mobile First */
.blog-newsletter__content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-sm);
}

.blog-newsletter__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.blog-newsletter__description {
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.blog-newsletter__form {
    max-width: 100%;
    margin: 0 auto;
}

.blog-newsletter__input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.blog-newsletter__input {
    width: 100%;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px; /* Prevent iOS zoom */
    -webkit-appearance: none;
    appearance: none;
}

.blog-newsletter__input:focus {
    outline: 2px solid var(--color-coral);
}

.blog-newsletter__input::placeholder {
    color: var(--color-gray-400);
}

.blog-newsletter__btn {
    width: 100%;
}

.blog-newsletter__privacy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-md);
}

.blog-newsletter__privacy a {
    color: var(--color-white);
    text-decoration: underline;
}

@media (min-width: 640px) {
    .blog-newsletter__content {
        max-width: 600px;
        padding: 0;
    }
    
    .blog-newsletter__title {
        font-size: clamp(1.75rem, 3vw, 2.5rem);
        margin-bottom: var(--space-md);
    }
    
    .blog-newsletter__description {
        font-size: 1.0625rem;
        margin-bottom: var(--space-xl);
    }
    
    .blog-newsletter__form {
        max-width: 450px;
    }
    
    .blog-newsletter__input-wrapper {
        flex-direction: row;
    }
    
    .blog-newsletter__input {
        padding: var(--space-md) var(--space-lg);
    }
    
    .blog-newsletter__btn {
        width: auto;
        flex-shrink: 0;
    }
    
    .blog-newsletter__privacy {
        font-size: 0.8125rem;
    }
}

/* Blog Tags Cloud - Mobile First */
.blog-tags-section .section__title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.blog-tag-link {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.blog-tag-link:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .blog-tags-cloud {
        gap: var(--space-sm);
    }
    
    .blog-tag-link {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9375rem;
    }
    
    .blog-tag-link:hover {
        background: var(--color-teal);
        border-color: var(--color-teal);
        color: var(--color-white);
    }
}

/* Blog No Results */
.blog-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--color-gray-500);
}

.blog-no-results strong {
    color: var(--color-teal);
}

.blog-no-results a {
    color: var(--color-coral);
}

/* =====================================================
   BLOG ARTICLE PAGE STYLES - Mobile First
   ===================================================== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gray-200);
    z-index: 1000;
}

.reading-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-coral), var(--color-teal));
    width: 0;
    transition: width 0.1s;
}

@media (min-width: 768px) {
    .reading-progress {
        height: 4px;
    }
}

/* Blog Article Header - Mobile First */
.blog-article__header {
    padding: var(--space-lg) 0;
    padding-top: calc(var(--space-lg) + 100px); /* Account for fixed nav */
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 100%);
}

.blog-article__meta-top {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.blog-article__reading-time {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.blog-article__title {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.blog-article__excerpt {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.blog-article__author-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.blog-article__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.blog-article__author-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-article__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-article__author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-dark);
}

.blog-article__date {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* Share Buttons - Mobile First */
.blog-article__share {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.blog-article__share-label {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

.blog-article__share-buttons {
    display: flex;
    gap: var(--space-xs);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn--twitter:active { background: #1da1f2; color: white; }
.share-btn--linkedin:active { background: #0077b5; color: white; }
.share-btn--facebook:active { background: #1877f2; color: white; }
.share-btn--copy:active { background: var(--color-teal); color: white; }
.share-btn--copy.copied { background: var(--color-success); color: white; }

.share-btn--large {
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
}

.share-btn--large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn--large.share-btn--twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn--large.share-btn--linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.share-btn--large svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .blog-article__header {
        padding: var(--space-xl) 0;
        padding-top: calc(var(--space-xl) + 100px);
    }
    
    .blog-article__meta-top {
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .blog-article__reading-time {
        font-size: 0.9375rem;
    }
    
    .blog-article__title {
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.15;
        margin-bottom: var(--space-lg);
        max-width: 900px;
    }
    
    .blog-article__excerpt {
        font-size: 1.125rem;
        line-height: 1.7;
        margin-bottom: var(--space-xl);
        max-width: 800px;
    }
    
    .blog-article__author-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .blog-article__author {
        gap: var(--space-md);
    }
    
    .blog-article__author-image {
        width: 56px;
        height: 56px;
    }
    
    .blog-article__author-name {
        font-size: 1rem;
    }
    
    .blog-article__date {
        font-size: 0.9375rem;
    }
    
    .blog-article__share {
        gap: var(--space-md);
    }
    
    .blog-article__share-label {
        font-size: 0.9375rem;
    }
    
    .blog-article__share-buttons {
        gap: var(--space-sm);
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .share-btn:hover {
        transform: translateY(-2px);
    }
    
    .share-btn--twitter:hover { background: #1da1f2; color: white; }
    .share-btn--linkedin:hover { background: #0077b5; color: white; }
    .share-btn--facebook:hover { background: #1877f2; color: white; }
    .share-btn--copy:hover { background: var(--color-teal); color: white; }
    
    .share-btn--large {
        padding: var(--space-sm) var(--space-lg);
        gap: var(--space-sm);
        font-size: 0.9375rem;
    }
    
    .blog-article__share-footer .blog-article__share-buttons {
        gap: var(--space-md);
    }
}

@media (min-width: 1024px) {
    .blog-article__header {
        padding: var(--space-2xl) 0 var(--space-xl);
        padding-top: calc(var(--space-2xl) + 100px);
    }
    
    .blog-article__excerpt {
        font-size: 1.25rem;
    }
}

/* Featured Image - Mobile First */
.blog-article__featured-image {
    margin: 0;
    padding: 0 var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 50%);
}

.blog-article__featured-image figure {
    margin: 0;
}

.blog-article__featured-image img,
figure.blog-article__featured-image img {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

figure.blog-article__featured-image {
    margin: 0;
    padding: 0 var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 50%);
}

.blog-article__image-caption {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .blog-article__featured-image,
    figure.blog-article__featured-image {
        padding: 0 var(--space-lg) var(--space-xl);
    }
    
    .blog-article__featured-image img,
    figure.blog-article__featured-image img {
        max-height: 500px;
        border-radius: var(--radius-xl);
    }
    
    .blog-article__image-caption {
        font-size: 0.875rem;
        margin-top: var(--space-md);
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .blog-article__featured-image,
    figure.blog-article__featured-image {
        padding: 0 var(--space-xl) var(--space-2xl);
    }
    
    .blog-article__featured-image img,
    figure.blog-article__featured-image img {
        max-height: 600px;
    }
}

/* Article Content Layout - Mobile First */
.blog-article__content-wrapper {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Layout grid for TOC + Content (when using .container > .blog-article__layout) */
.blog-article__layout {
    display: block;
}

/* Table of Contents - Hidden on Mobile */
.blog-toc {
    display: none;
}

.blog-toc__nav {
    display: none;
}

@media (min-width: 1024px) {
    .blog-article__content-wrapper {
        padding: var(--space-2xl) var(--space-lg);
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: var(--space-2xl);
    }
    
    /* When using nested structure with .container > .blog-article__layout */
    .blog-article__content-wrapper .container {
        display: contents;
    }
    
    .blog-article__layout {
        display: contents;
    }
    
    .blog-toc {
        display: block;
        position: relative;
    }
    
    .blog-toc__inner,
    .blog-toc__nav {
        display: block;
        position: sticky;
        top: 100px;
    }
    
    .blog-toc__title {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-gray-600);
        margin-bottom: var(--space-md);
    }
    
    .blog-toc__list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .blog-toc__item {
        margin-bottom: var(--space-xs);
    }
    
    .blog-toc__link {
        display: block;
        font-size: 0.875rem;
        color: var(--color-gray-500);
        text-decoration: none;
        padding: var(--space-xs) 0;
        padding-left: var(--space-md);
        border-left: 2px solid var(--color-gray-200);
        transition: all 0.2s;
    }
    
    .blog-toc__link:hover {
        color: var(--color-teal);
        border-left-color: var(--color-teal);
    }
    
    .blog-toc__link.active {
        color: var(--color-coral);
        border-left-color: var(--color-coral);
        font-weight: 500;
    }
}

@media (min-width: 1200px) {
    .blog-article__content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: var(--space-3xl);
    }
    
    .blog-toc__link {
        font-size: 0.9375rem;
    }
}

/* Article Content Typography - Mobile First */
.blog-article__content {
    max-width: 100%;
    width: 100%;
}

.blog-article__content h2 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: var(--space-xl) 0 var(--space-md);
    scroll-margin-top: 80px;
}

.blog-article__content h2:first-child {
    margin-top: 0;
}

.blog-article__content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: var(--space-lg) 0 var(--space-sm);
}

.blog-article__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: var(--space-md);
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
}

.blog-article__content li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .blog-article__content {
        max-width: 750px;
    }
    
    .blog-article__content h2 {
        font-size: 1.75rem;
        margin: var(--space-2xl) 0 var(--space-lg);
        scroll-margin-top: 100px;
    }
    
    .blog-article__content h3 {
        font-size: 1.375rem;
        margin: var(--space-xl) 0 var(--space-md);
    }
    
    .blog-article__content p {
        font-size: 1.0625rem;
        line-height: 1.8;
        margin-bottom: var(--space-lg);
    }
    
    .blog-article__content ul,
    .blog-article__content ol {
        margin: 0 0 var(--space-lg);
        padding-left: var(--space-xl);
    }
    
    .blog-article__content li {
        font-size: 1.0625rem;
        line-height: 1.8;
        margin-bottom: var(--space-sm);
    }
}

.blog-article__content a {
    color: var(--color-coral);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__content a:hover {
    color: var(--color-teal);
}

/* Ensure buttons keep their proper styling inside article content */
.blog-article__content a.btn {
    text-decoration: none !important;
}

.blog-article__content a.btn--primary {
    color: var(--color-gray-900) !important;
    background: var(--color-coral) !important;
}

.blog-article__content a.btn--primary:hover {
    color: var(--color-gray-900) !important;
    background: var(--color-coral-hover) !important;
}

/* Ensure tag links keep their styling inside article content */
.blog-article__content .blog-article__tags a.blog-tag-link,
.blog-article__tags a.blog-tag-link {
    color: var(--color-gray-600) !important;
    text-decoration: none !important;
    background: var(--color-white) !important;
    border: 1px solid var(--color-gray-200) !important;
}

.blog-article__content .blog-article__tags a.blog-tag-link:hover,
.blog-article__tags a.blog-tag-link:hover {
    color: var(--color-white) !important;
    background: var(--color-teal) !important;
    border-color: var(--color-teal) !important;
}

.blog-article__content strong {
    font-weight: 600;
    color: var(--color-dark);
}

.blog-article__content blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-cream);
    border-left: 4px solid var(--color-coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-article__content blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.blog-article__content blockquote cite {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    font-style: normal;
}

.blog-article__content figure {
    margin: var(--space-xl) 0;
}

.blog-article__content figure img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.blog-article__content figcaption {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

.blog-article__content code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.blog-article__content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-xl) 0;
}

.blog-article__content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* Blog Takeaways Box */
.blog-takeaways {
    background: linear-gradient(135deg, var(--color-teal) 0%, #153030 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.blog-takeaways h3 {
    color: white;
    margin: 0 0 var(--space-md);
}

.blog-takeaways ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.blog-takeaways li {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-sm);
}

.blog-takeaways li:last-child {
    margin-bottom: 0;
}

/* Blog FAQ */
.blog-faq__item {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.blog-faq__item h3 {
    margin: 0 0 var(--space-sm);
    font-size: 1.125rem;
}

.blog-faq__item p {
    margin: 0;
    font-size: 1rem;
}

/* Article Footer - Mobile First */
.blog-article__footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-white);
}

.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.blog-article__tags-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-right: var(--space-xs);
}

.blog-article__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .blog-article__footer {
        padding: var(--space-2xl) 0;
    }
    
    .blog-article__tags {
        gap: var(--space-md);
        margin-bottom: var(--space-2xl);
    }
    
    .blog-article__tags-label {
        font-size: 1rem;
    }
    
    .blog-article__tags-list {
        gap: var(--space-sm);
    }
}

/* Author Bio - Mobile First */
.blog-author-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.blog-author-bio__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author-bio__content {
    flex: 1;
}

.blog-author-bio__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 var(--space-xs);
}

.blog-author-bio__description {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0 0 var(--space-sm);
}

.blog-author-bio__social a {
    color: var(--color-coral);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.blog-author-bio__social a:hover,
.blog-author-bio__social a:active {
    text-decoration: underline;
}

@media (min-width: 640px) {
    .blog-author-bio {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--space-lg);
        padding: var(--space-xl);
        border-radius: var(--radius-xl);
        margin-bottom: var(--space-2xl);
    }
    
    .blog-author-bio__image {
        width: 100px;
        height: 100px;
    }
    
    .blog-author-bio__name {
        font-size: 1.25rem;
        margin: 0 0 var(--space-sm);
    }
    
    .blog-author-bio__description {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin: 0 0 var(--space-md);
    }
    
    .blog-author-bio__social a {
        font-size: 0.9375rem;
    }
}

/* Share Footer - Mobile First */
.blog-article__share-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-200);
}

.blog-article__share-footer p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-md);
}

.blog-article__share-footer .blog-article__share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .blog-article__share-footer p {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
}

/* Related Posts - Mobile First */
.blog-related {
    padding: var(--space-xl) 0;
}

.blog-related .section__title {
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .blog-related {
        padding: var(--space-2xl) 0;
    }
    
    .blog-related .section__title {
        margin-bottom: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .blog-related {
        padding: var(--space-3xl) 0;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: var(--space-xl);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.breadcrumb__item a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb__item a:hover {
    color: var(--color-coral);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    color: var(--color-gray-400);
    margin-left: var(--space-sm);
}

.breadcrumb__item--current {
    color: var(--color-teal);
    font-weight: 500;
}

/* Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

