/* =====================================================
   NAPOLI SEO - Kolibri-Inspired Design System
   Color Palette: #41A67E (Green), #05339C (Deep Blue),
                  #1055C9 (Bright Blue), #E5C95F (Yellow)
   ===================================================== */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors */
    --green: #41A67E;
    --green-light: #5bb894;
    --green-dark: #358a68;
    --deep-blue: #05339C;
    --bright-blue: #1055C9;
    --yellow: #E5C95F;
    --yellow-light: #f0d87a;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-50: #F7F8F9;
    --gray-100: #EEF0F2;
    --gray-200: #DDE1E6;
    --gray-300: #C1C7CD;
    --gray-400: #A2A9B0;
    --gray-500: #697077;
    --gray-600: #4D5358;
    --gray-700: #343A3F;
    --gray-800: #21272A;
    --gray-900: #121619;
    --black: #0A0A0A;

    /* Semantic */
    --primary: var(--green);
    --secondary: var(--deep-blue);
    --accent: var(--yellow);
    --text: var(--gray-900);
    --text-muted: var(--gray-500);
    --background: var(--white);
    --surface: var(--gray-50);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 3.5rem);
    --text-5xl: clamp(3rem, 1.8rem + 6vw, 5rem);
    --text-6xl: clamp(3.5rem, 2rem + 7.5vw, 6rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-wide: 1600px;

    /* Effects */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background-color: var(--yellow);
    color: var(--deep-blue);
}

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

svg {
    display: block;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.5;
    color: var(--gray-600);
}

.eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

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

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-24) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

.section-alt {
    background-color: var(--gray-50);
}

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-5) 0;
    transition: all var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: var(--space-4) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--deep-blue);
    z-index: var(--z-fixed);
}

.logo img,
.logo svg {
    height: 40px;
    width: auto;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    position: relative;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--deep-blue);
    background: var(--gray-50);
}

.nav-link.active {
    color: var(--primary);
}

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

/* Desktop: dropdown header shows link + arrow inline */
.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-dropdown-header .nav-link {
    padding-right: var(--space-2);
}

/* Desktop: hide separate toggle button, show hover behavior */
.dropdown-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    -webkit-tap-highlight-color: transparent;
}

.dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

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

/* Desktop: show arrow inline with nav-link */
.nav-dropdown-header::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' stroke='%234A5568' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-left: var(--space-1);
    margin-right: var(--space-3);
    transition: transform var(--transition-fast);
}

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

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: var(--space-2);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

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

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--gray-700);
}

.lang-btn.active {
    background: var(--white);
    color: var(--deep-blue);
    box-shadow: var(--shadow-sm);
}

/* Language switch inside nav - hidden on desktop */
.nav-lang-switch {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    z-index: var(--z-fixed);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(65, 166, 126, 0.5);
}

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

.btn-secondary:hover {
    background: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(5, 51, 156, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    box-shadow: inset 0 0 0 2px var(--gray-200);
}

.btn-outline:hover {
    box-shadow: inset 0 0 0 2px var(--gray-800);
}

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

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-32) 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: rgba(65, 166, 126, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
}

.hero-title {
    margin-bottom: var(--space-6);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-title .highlight-blue {
    color: var(--bright-blue);
}

.hero-description {
    max-width: 600px;
    margin-bottom: var(--space-8);
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--gray-600);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.hero-shape-1 {
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
}

.hero-shape-2 {
    top: 50%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--bright-blue) 0%, var(--deep-blue) 100%);
}

.hero-shape-3 {
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: var(--yellow);
}

/* Page Hero */
.page-hero {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.page-hero h1 {
    margin-bottom: var(--space-4);
}

.page-hero .lead {
    max-width: 700px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.breadcrumbs a {
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

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

/* ==================== Section Headers ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header .eyebrow {
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--gray-500);
}

/* ==================== Service Cards ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.service-card {
    position: relative;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

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

.service-card-link {
    display: block;
    text-decoration: none;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: var(--radius-lg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.service-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    color: var(--gray-900);
}

.service-card p {
    margin-bottom: var(--space-4);
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
    gap: var(--space-3);
}

.service-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Alternate icon colors */
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(5) .service-icon {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
}

.service-card:nth-child(3) .service-icon,
.service-card:nth-child(6) .service-icon {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
}

.service-card:nth-child(3) .service-icon svg,
.service-card:nth-child(6) .service-icon svg {
    stroke: var(--deep-blue);
}

/* ==================== Services Listing Grid (Services Page) ==================== */
.services-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.service-listing-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all var(--transition);
}

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

.service-listing-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: var(--radius-lg);
}

.service-listing-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.service-listing-content {
    flex: 1;
}

.service-listing-content h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.service-listing-card:hover .service-listing-content h3 {
    color: var(--primary);
}

.service-listing-content p {
    margin-bottom: var(--space-4);
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.service-listing-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}

.service-listing-card:hover .service-listing-link {
    gap: var(--space-3);
}

.service-listing-link svg {
    width: 16px;
    height: 16px;
}

/* Alternate icon colors for listing cards */
.service-listing-card:nth-child(2) .service-listing-icon,
.service-listing-card:nth-child(5) .service-listing-icon {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
}

.service-listing-card:nth-child(3) .service-listing-icon,
.service-listing-card:nth-child(6) .service-listing-icon {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
}

.service-listing-card:nth-child(3) .service-listing-icon svg,
.service-listing-card:nth-child(6) .service-listing-icon svg {
    stroke: var(--deep-blue);
}

/* ==================== Stats Section ==================== */
.stats-section {
    padding: var(--space-16) 0;
    background: var(--deep-blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-number .accent {
    color: var(--yellow);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== Process/Timeline ==================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.process-card {
    position: relative;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    background: var(--gray-900);
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.process-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.process-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    padding-bottom: var(--space-10);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
    border-radius: var(--radius-full);
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.timeline-content p {
    color: var(--gray-600);
}

.timeline-deliverable {
    display: inline-block;
    margin-top: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
}

/* ==================== Features Grid ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.feature-item {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-full);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.feature-item h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.feature-item p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ==================== Values Grid ==================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

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

.value-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    background: rgba(65, 166, 126, 0.1);
    border-radius: var(--radius-lg);
}

.value-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.value-card h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.value-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ==================== Mission Vision ==================== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.mv-card {
    padding: var(--space-10);
    border-radius: var(--radius-xl);
}

.mv-card.mission {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
}

.mv-card.vision {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
    color: var(--white);
}

.mv-card h3 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.mv-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ==================== About Grid ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    align-items: center;
}

.about-content h2 {
    margin-bottom: var(--space-6);
}

.about-content p {
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

/* ==================== CTA Section ==================== */
.cta-section {
    position: relative;
    padding: var(--space-24) 0;
    background: var(--deep-blue);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--bright-blue);
    border-radius: 50%;
    opacity: 0.3;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==================== Footer ==================== */
.footer {
    padding: var(--space-20) 0 var(--space-8);
    background: var(--gray-900);
    color: var(--gray-400);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-nav h4 {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    font-size: var(--text-sm);
}

.footer-bottom a {
    color: var(--gray-400);
}

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

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(65, 166, 126, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

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

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

/* ==================== Cards ==================== */
.card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.card-highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* ==================== FAQ Accordion ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform var(--transition);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

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

.faq-answer-content {
    padding-bottom: var(--space-5);
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== Contact ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info-card {
    padding: var(--space-8);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.contact-info-card h3 {
    margin-bottom: var(--space-6);
    font-size: var(--text-xl);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-info-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--primary);
}

.contact-info-list strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.contact-info-list span {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ==================== Service Page Layouts ==================== */
/* Layout A: Hero Left */
.service-hero-split {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.service-hero-content .eyebrow {
    margin-bottom: var(--space-4);
}

.service-hero-content h1 {
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

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

.service-hero-visual svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Layout B: Hero Right (reversed) */
.service-hero-reverse .service-hero-grid {
    direction: rtl;
}

.service-hero-reverse .service-hero-grid > * {
    direction: ltr;
}

/* Layout C: Full Width Hero */
.service-hero-full {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
    color: var(--white);
    text-align: center;
}

.service-hero-full h1 {
    color: var(--white);
}

.service-hero-full .hero-subtitle {
    color: var(--yellow);
}

.service-hero-full .breadcrumbs,
.service-hero-full .breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
}

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

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.hero-visual-full {
    max-width: 900px;
    margin: 0 auto;
}

/* Layout D: Split Hero Wide */
.service-hero-split-wide {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: var(--gray-50);
}

.service-hero-grid-wide {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--space-12);
    align-items: center;
}

.service-hero-content-wide h1 {
    margin-bottom: var(--space-4);
}

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

.hero-stats-inline {
    display: flex;
    gap: var(--space-8);
    margin: var(--space-8) 0;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stat-inline {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-desc {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Layout E: Animated Hero */
.service-hero-animated {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: var(--white);
}

.hero-animated-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-text-animated h1 {
    margin-bottom: var(--space-4);
}

.hero-animated-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout F: Minimal Hero */
.service-hero-minimal {
    padding: calc(var(--space-32) + 80px) 0 var(--space-16);
    background: var(--white);
    text-align: center;
}

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

.hero-label {
    display: inline-block;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.hero-minimal-cta {
    margin-top: var(--space-8);
}

/* ==================== Service Page Content ==================== */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-bottom: var(--space-6);
}

.content-block p {
    margin-bottom: var(--space-4);
    line-height: 1.8;
}

.methodology-steps {
    margin-top: var(--space-8);
}

.method-step {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--gray-200);
}

.method-step:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.step-content p {
    margin-bottom: 0;
    color: var(--gray-600);
}

/* Service Process Grid */
.service-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.service-process-item {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.service-process-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--green-light) 100%);
    color: var(--white);
    font-size: var(--text-xl);
    font-weight: 700;
    border-radius: var(--radius-lg);
}

.service-process-content h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
    color: var(--gray-900);
}

.service-process-content p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

/* Alternate process number colors */
.service-process-item:nth-child(2) .service-process-number {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--bright-blue) 100%);
}

.service-process-item:nth-child(3) .service-process-number {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
    color: var(--deep-blue);
}

.service-process-item:nth-child(4) .service-process-number {
    background: linear-gradient(135deg, #E86A33 0%, #F4A261 100%);
}

/* Deliverables Grid */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.deliverable-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.deliverable-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: rgba(65, 166, 126, 0.1);
    border-radius: var(--radius-lg);
}

.deliverable-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.deliverable-card h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.deliverable-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Two Column Content */
.two-column-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--gray-700);
}

.benefits-list svg {
    flex-shrink: 0;
}

.stat-highlight-card {
    padding: var(--space-8);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.stat-highlight {
    text-align: center;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--gray-200);
}

.stat-highlight:last-child {
    border-bottom: none;
}

.stat-highlight .stat-number {
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-highlight .stat-label {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* Process Horizontal */
.process-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    max-width: 180px;
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--primary);
    border-radius: var(--radius-full);
}

.process-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.process-step h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.process-step p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.process-arrow {
    display: flex;
    align-items: center;
    padding-top: var(--space-6);
}

.process-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--gray-300);
}

/* Optimization Grid */
.optimization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.optimization-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.opt-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.opt-header svg {
    stroke: var(--primary);
}

.opt-header h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.optimization-card p {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.opt-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.opt-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.opt-checklist li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Strategy Cards */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.strategy-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.strategy-number {
    display: inline-block;
    margin-bottom: var(--space-3);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-200);
}

.strategy-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.strategy-card p {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.strategy-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.strategy-card li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-4);
    position: relative;
}

.strategy-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Quality Checklist */
.quality-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.quality-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.quality-item.quality-good {
    background: rgba(65, 166, 126, 0.1);
}

.quality-item.quality-bad {
    background: rgba(229, 62, 62, 0.1);
}

/* Info Card */
.info-card {
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.info-card h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.deliverables-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.deliverables-list li {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.deliverables-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.deliverables-list strong {
    display: block;
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.deliverables-list p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Local SEO Specific */
.local-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.local-service-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.local-service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
}

.local-service-card.featured h3 {
    color: var(--white);
}

.local-service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.local-service-card.featured ul li {
    color: rgba(255, 255, 255, 0.8);
}

.local-service-card.featured .local-service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.local-service-card.featured .local-service-icon svg {
    stroke: var(--white);
}

.local-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    background: rgba(65, 166, 126, 0.1);
    border-radius: var(--radius-lg);
}

.local-service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.local-service-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.local-service-card p {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.local-service-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.local-service-card li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-4);
    position: relative;
}

.local-service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Factors Visual */
.factors-visual {
    max-width: 600px;
    margin: 0 auto;
}

.factor-bar {
    margin-bottom: var(--space-4);
}

.factor-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.factor-label span:first-child {
    color: var(--gray-700);
    font-weight: 500;
}

.factor-percent {
    color: var(--primary);
    font-weight: 600;
}

.factor-progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.factor-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: var(--radius-full);
}

.factors-source {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* Business Types Grid */
.business-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.business-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition);
}

.business-type:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.business-type svg {
    stroke: var(--primary);
}

.business-type span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
}

/* Content Service Cards */
.content-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.content-service-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.content-service-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.content-service-header svg {
    stroke: var(--primary);
}

.content-service-header h3 {
    font-size: var(--text-lg);
    margin: 0;
}

.content-service-card p {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.service-features li {
    padding: var(--space-1) var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--gray-600);
}

/* Process Steps Vertical */
.process-steps-vertical {
    max-width: 700px;
    margin: 0 auto;
}

.process-step-v {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-5) 0;
}

.step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.step-marker span {
    color: var(--white);
    font-weight: 700;
}

/* Content Stats Card */
.content-stats-card {
    padding: var(--space-6);
    background: var(--deep-blue);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.content-stats-card h3 {
    color: var(--white);
    margin-bottom: var(--space-6);
}

.content-stats-card .stat-item {
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-stats-card .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-big {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.benefits-list-detailed {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.benefits-list-detailed li {
    padding-left: var(--space-5);
    border-left: 3px solid var(--primary);
}

.benefits-list-detailed strong {
    display: block;
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.benefits-list-detailed p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.tech-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: var(--radius-lg);
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.tech-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.tech-card p {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tech-list li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-4);
    position: relative;
}

.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* CWV Section */
.cwv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.cwv-card {
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    text-align: center;
}

.cwv-metric {
    margin-bottom: var(--space-4);
}

.cwv-name {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
}

.cwv-full {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.cwv-card p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.cwv-target {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.cwv-target span {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: 600;
}

.target-good {
    background: rgba(65, 166, 126, 0.1);
    color: var(--green);
}

.target-mid {
    background: rgba(229, 201, 95, 0.2);
    color: #B5942B;
}

.target-bad {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
}

/* Audit Preview */
.audit-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.audit-cat h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.audit-cat ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.audit-cat li {
    font-size: var(--text-sm);
    color: var(--gray-600);
    padding-left: var(--space-4);
    position: relative;
}

.audit-cat li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Audit Report Preview */
.audit-report-preview {
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.report-title {
    font-weight: 600;
    color: var(--gray-900);
}

.report-badge {
    padding: var(--space-1) var(--space-3);
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.report-scores {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.score-item {
    text-align: center;
}

.score-circle {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: var(--space-2);
}

.score-circle span {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
}

.score-good {
    background: var(--green);
}

.score-mid {
    background: var(--yellow);
}

.score-mid span {
    color: var(--gray-800);
}

.score-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.report-issues {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.issue {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius);
}

.issue.critical {
    background: rgba(229, 62, 62, 0.1);
}

.issue.warning {
    background: rgba(229, 201, 95, 0.1);
}

.issue.info {
    background: rgba(65, 166, 126, 0.1);
}

.issue-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 700;
}

.issue.critical .issue-count {
    background: #E53E3E;
    color: var(--white);
}

.issue.warning .issue-count {
    background: var(--yellow);
    color: var(--gray-800);
}

.issue.info .issue-count {
    background: var(--green);
    color: var(--white);
}

.issue-type {
    font-size: var(--text-sm);
    color: var(--gray-700);
}

/* Importance Grid */
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.importance-card {
    text-align: center;
    padding: var(--space-6);
}

.importance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: rgba(65, 166, 126, 0.1);
    border-radius: var(--radius-full);
}

.importance-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.importance-card h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.importance-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

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

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =====================================================
   COSA FACCIAMO - Keyword Carousel Section
   ===================================================== */

.cosa-facciamo-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    overflow: hidden;
    position: relative;
}

.cosa-facciamo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.cosa-facciamo-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.cosa-facciamo-section .section-header {
    margin-bottom: var(--space-12);
}

/* Carousel Container */
.keyword-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-4) 0;
}

/* Gradient fade edges */
.keyword-carousel-container::before,
.keyword-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.keyword-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--gray-50) 0%, transparent 100%);
}

.keyword-carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--gray-50) 0%, transparent 100%);
}

/* Single Carousel Row */
.keyword-carousel-row {
    display: flex;
    width: max-content;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.keyword-carousel-row:hover {
    animation-play-state: paused !important;
}

/* Row 1 - slower animation */
.keyword-carousel-row.row-1 {
    animation: scroll-left 30s linear infinite;
}

/* Row 2 - medium animation (reverse direction) */
.keyword-carousel-row.row-2 {
    animation: scroll-right 35s linear infinite;
}

/* Row 3 - faster animation */
.keyword-carousel-row.row-3 {
    animation: scroll-left 40s linear infinite;
}

/* Disable animation for few keywords */
.keyword-carousel-row.no-animation {
    animation: none;
    width: 100%;
    justify-content: center;
}

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

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

/* Keyword Tag Style */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-transform: capitalize;
}

.keyword-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.keyword-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transition: background var(--transition);
}

.keyword-tag:hover::before {
    background: var(--white);
}

/* =====================================================
   POPUP / MODAL STYLES
   ===================================================== */

.article-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition);
}

.article-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.article-popup {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-smooth);
}

.article-popup-overlay.active .article-popup {
    transform: scale(1) translateY(0);
}

.article-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.article-popup-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    text-transform: capitalize;
}

.article-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-500);
    transition: all var(--transition);
}

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

.article-popup-close svg {
    width: 20px;
    height: 20px;
}

.article-popup-content {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.article-popup-content h1,
.article-popup-content h2,
.article-popup-content h3,
.article-popup-content h4 {
    color: var(--gray-800);
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
}

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

.article-popup-content p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

.article-popup-content ul,
.article-popup-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.article-popup-content li {
    margin-bottom: var(--space-2);
    color: var(--gray-600);
}

.article-popup-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: var(--space-4) 0;
}

/* Hidden article content containers */
.hidden-articles {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cosa-facciamo-section {
        padding: var(--space-12) 0;
    }

    .keyword-carousel-container::before,
    .keyword-carousel-container::after {
        width: 40px;
    }

    .keyword-tag {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    .article-popup {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .article-popup-header {
        padding: var(--space-4);
    }

    .article-popup-content {
        padding: var(--space-4);
    }

    .article-popup-title {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .keyword-carousel-row {
        gap: var(--space-3);
    }

    .keyword-tag {
        padding: var(--space-2) var(--space-3);
    }
}
