/* Xassure Shared Styles - Standard CSS Version */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CSS Variables - Matching React Template Exactly */
:root {
    /* Light theme - Professional with improved contrast */
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 47% 11%;
    --primary: 217 91% 45%;
    --primary-foreground: 0 0% 100%;
    --secondary: 214 32% 93%;
    --secondary-foreground: 222 47% 15%;
    --muted: 214 25% 94%;
    --muted-foreground: 215 20% 40%;
    --accent: 217 91% 95%;
    --accent-foreground: 217 91% 35%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 100%;
    --success: 142 71% 35%;
    --success-foreground: 0 0% 100%;
    --warning: 38 92% 45%;
    --warning-foreground: 38 92% 10%;
    --border: 214 32% 86%;
    --input: 214 32% 88%;
    --ring: 217 91% 45%;
    --radius: 0.5rem;
    
    /* InsurAI specific tokens */
    --gradient-start: 217 91% 50%;
    --gradient-end: 262 83% 55%;
    --glow: 217 91% 50%;
    
    /* Glassmorphism tokens */
    --glass-bg: 0 0% 100% / 0.7;
    --glass-border: 0 0% 100% / 0.3;
    --glow-blue: 217 91% 60% / 0.4;
    
    /* Fallback colors for browsers that don't support HSL */
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --background-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --surface-color: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-hover: #475569;
    }
}

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

.hidden {
    display: none;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--glass-bg));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    width: 100%;
    flex: 1;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.025em;
}

.logo-x {
    color: #10b981;
}

.logo-assure {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-byline {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    margin-top: -0.125rem;
}

.logo-edesk {
    color: #10b981;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    margin-left: 3rem;
}

@media (min-width: 1280px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-dropdown {
    position: relative;
}

.nav-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-trigger:hover {
    color: var(--text-primary);
    background-color: rgba(100, 116, 139, 0.1);
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.nav-icon.ai-receptionist {
    color: #f59e0b;
}

.nav-icon.blog {
    color: #f97316;
}

.nav-chevron {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(100, 116, 139, 0.1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 0.75rem;
}

.dropdown-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.dropdown-header p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.dropdown-items {
    padding: 0.25rem;
    display: grid;
    gap: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: hsl(var(--accent));
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

.dropdown-item:hover .item-icon {
    transform: scale(1.1);
}

.item-icon.personal-lines {
    background-color: hsl(217 91% 45% / 0.1);
    color: hsl(217 91% 45%);
}

.item-icon.commercial-lines {
    background-color: hsl(262 83% 58% / 0.1);
    color: hsl(262 83% 58%);
}

.item-icon.employee-benefits {
    background-color: hsl(330 81% 60% / 0.1);
    color: hsl(330 81% 60%);
}

.item-icon.life-health {
    background-color: hsl(142 71% 35% / 0.1);
    color: hsl(142 71% 35%);
}

.item-icon.financial-advisors {
    background-color: hsl(262 83% 58% / 0.1);
    color: hsl(262 83% 58%);
}

.item-icon.bookkeeping {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.item-icon.marketing {
    background-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.item-icon.about {
    background-color: hsl(262 83% 58% / 0.1);
    color: hsl(262 83% 58%);
}

.item-icon.how-it-works {
    background-color: hsl(185 84% 45% / 0.1);
    color: hsl(185 84% 45%);
}

.item-icon.our-people {
    background-color: hsl(217 91% 45% / 0.1);
    color: hsl(217 91% 45%);
}

.item-icon.contact {
    background-color: hsl(142 71% 35% / 0.1);
    color: hsl(142 71% 35%);
}

.item-icon.security {
    background-color: hsl(142 71% 35% / 0.1);
    color: hsl(142 71% 35%);
}

.item-icon.reviews {
    background-color: hsl(38 92% 50% / 0.1);
    color: hsl(38 92% 50%);
}

.item-icon.checklists {
    background-color: hsl(142 71% 35% / 0.1);
    color: hsl(142 71% 35%);
}

.item-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-footer {
    padding: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 0.75rem;
}

.learn-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: linear-gradient(to right, hsl(217 91% 45% / 0.1), hsl(262 83% 58% / 0.1));
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: linear-gradient(to right, hsl(217 91% 45% / 0.2), hsl(262 83% 58% / 0.2));
}

.learn-more svg {
    width: 1rem;
    height: 1rem;
    stroke: hsl(var(--primary));
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.learn-more:hover svg {
    transform: translateX(0.25rem);
}

/* Dropdown Variants */
.services-dropdown {
    width: 26.25rem; /* 420px matching React's w-[420px] */
}

.about-dropdown {
    width: 20rem; /* 320px matching React's w-[320px] */
}

/* Desktop CTAs */
.desktop-ctas {
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .desktop-ctas {
        display: flex;
    }
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #10b981;
    background: transparent;
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: #059669;
    background-color: rgba(16, 185, 129, 0.1);
}

.btn-secondary svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    margin-left: 0.5rem;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .mobile-header {
        display: none;
    }
}

.mobile-try-free {
    display: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #10b981;
    background: transparent;
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .mobile-try-free {
        display: inline-flex;
    }
}

.mobile-try-free:hover {
    color: #059669;
    background-color: rgba(16, 185, 129, 0.1);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(100, 116, 139, 0.1);
}

.mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;

    /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

/* When menu opens */
.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

}


@media (max-width: 1279px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

@media (min-width: 640px) {
    .mobile-menu-panel {
        width: 20rem;
    }
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.mobile-menu-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close-btn:hover {
    background-color: rgba(100, 116, 139, 0.1);
}

.mobile-menu-close-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

.mobile-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.5rem;
    flex: 1;
}

.mobile-nav-section {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-trigger:hover {
    background-color: rgba(100, 116, 139, 0.1);
}

.mobile-nav-chevron {
    width: 1rem;
    height: 1rem;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.mobile-nav-content {
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-content:not(.hidden) {
    max-height: 500px;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    flex: 1;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(100, 116, 139, 0.1);
}

.mobile-nav-item svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(100, 116, 139, 0.1);
}

.mobile-ctas {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mobile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.btn-primary.mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg,#3b82f6,#8b5cf6);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary.mobile-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Footer Styles */
.footer {
    padding: 3rem 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid hsl(var(--border));
    background-color: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .footer {
        padding: 4rem 1.5rem;
        padding-top: 3rem;
    }
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    flex: 1;
}

@media (min-width: 1024px) {
    .footer-main {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 3rem;
        align-items: flex-start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: rgba(100, 116, 139, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

@media (min-width: 1024px) {
    .link-row {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.services-links {
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link:hover::after {
    width: 100%;
}

.link-separator {
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

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

.copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .copyright {
        font-size: 1rem;
    }
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 640px) {
    .legal-links {
        justify-content: flex-end;
    }
}

.legal-links .footer-link {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .legal-links .footer-link {
        font-size: 1rem;
    }
}

/* Service Slideshow */
.service-slideshow {
    padding: 2.5rem 1rem;
}

@media (min-width: 640px) {
    .service-slideshow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .service-slideshow {
        padding: 3.5rem 1.5rem;
    }
}

.slideshow-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .slideshow-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .slideshow-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .slideshow-title {
        font-size: 3.75rem;
    }
}

.title-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-normal {
    color: var(--text-primary);
}

.service-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .service-card {
        border-radius: var(--radius-3xl);
    }
}

.glow-left,
.glow-right {
    position: absolute;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    filter: blur(3rem);
    transition: background-color 0.7s ease;
}

.glow-left {
    top: -5rem;
    right: -5rem;
}

.glow-right {
    bottom: -5rem;
    left: -5rem;
    opacity: 0.5;
}

.glow-emerald {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2), transparent 70%);
}

.glow-blue {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%);
}

.glow-violet {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2), transparent 70%);
}

.glow-pink {
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.2), transparent 70%);
}

.service-content {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .service-content {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .service-content {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .service-content {
        padding: 4rem;
    }
}

.service-slideshow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

@media (min-width: 1024px) {
    .service-slideshow-content {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
    }
}

.service-main {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .service-main {
        text-align: left;
    }
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .service-header {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.service-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.emerald-gradient {
    background: linear-gradient(to bottom right, #10b981, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-gradient {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.violet-gradient {
    background: linear-gradient(to bottom right, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pink-gradient {
    background: linear-gradient(to bottom right, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .service-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .service-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .service-title {
        font-size: 2.25rem;
    }
}

.service-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

@media (min-width: 640px) {
    .service-description {
        font-size: 1.125rem;
    }
}

.service-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .service-highlights {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.highlight {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
}

.service-ctas {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 640px) {
    .service-ctas {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .service-ctas {
        justify-content: flex-start;
        align-items: flex-start;
    }
}

.service-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.service-visual {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16rem;
    height: 16rem;
    position: relative;
}

@media (min-width: 1024px) {
    .service-visual {
        display: flex;
    }
}

.visual-back {
    position: absolute;
    width: 13rem;
    height: 13rem;
    border-radius: var(--radius-3xl);
    opacity: 0.08;
}

.visual-mid {
    position: absolute;
    width: 9rem;
    height: 9rem;
    border-radius: var(--radius-2xl);
    opacity: 0.12;
    transform: rotate(12deg);
}

.visual-front {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.visual-front svg {
    width: 3rem;
    height: 3rem;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.service-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

.service-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: hsl(var(--muted-foreground) / 0.3);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot:hover {
    background-color: hsl(var(--muted-foreground) / 0.5);
}

.dot.active {
    width: 2rem;
}

.dot.active.emerald-active {
    background: linear-gradient(to right, #10b981, #14b8a6);
}

.dot.active.blue-active {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.dot.active.violet-active {
    background: linear-gradient(to right, #8b5cf6, #a855f7);
}

.dot.active.pink-active {
    background: linear-gradient(to right, #ec4899, #f43f5e);
}

.service-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.arrow-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: hsl(var(--muted-foreground));
    fill: none;
    stroke-width: 2;
}

/* Service Slide Animations */
.service-slide {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.4s ease-in-out;
}

.service-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.service-slide.exit {
    opacity: 0;
    transform: translateX(-80px);
}

/* Additional styles to match React template */
.service-card {
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.service-icon {
    box-shadow: var(--shadow-lg);
}

.service-visual {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16rem;
    height: 16rem;
    position: relative;
}

@media (min-width: 1024px) {
    .service-visual {
        display: flex;
    }
}

.visual-back {
    position: absolute;
    width: 13rem;
    height: 13rem;
    border-radius: var(--radius-3xl);
    opacity: 0.08;
}

.visual-mid {
    position: absolute;
    width: 9rem;
    height: 9rem;
    border-radius: var(--radius-2xl);
    opacity: 0.12;
    transform: rotate(12deg);
}

.visual-front {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.visual-front svg {
    width: 3rem;
    height: 3rem;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* Responsive Utilities */
@media (max-width: 767px) {
    button, a, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    nav a, .nav-link {
        min-height: 40px;
        min-width: auto;
    }
}

/* Touch-friendly interactions */
@media (hover: hover) {
    .touch-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2);
    }
}

.touch-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Safe area insets for notched devices */
.safe-top {
    padding-top: env(safe-area-inset-top);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Focus styles */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .mobile-menu,
    .service-slideshow {
        display: none;
    }
    
    .footer {
        background: white;
        color: black;
    }
}
