/* ============================================
   AVENTIQ - EQUIEM-INSPIRED DESIGN SYSTEM
   ============================================ */

:root {
    /* === COLORS === */
    /* Primary Action (Orange) */
    --color-primary: #ea8150;
    --color-primary-dark: #d67040;
    /* For hover states */

    /* Brand Colors */
    --color-dark-navy: #1d648c;
    /* Brand Dark Blue */
    --color-dark-navy-light: #2a7ca8;
    --color-dark-navy-lighter: #3895c4;
    --color-navy: #1d648c;

    /* Accents (Mapped to Legacy Names) */
    --color-lavender: #22a7f1;
    /* Brand Bright Blue */
    --color-lavender-light: #6bcdfa;
    --color-mint: #d3e2e9;
    /* Brand Light Blue/Gray */
    --color-mint-light: #eef6f9;

    /* Neutral */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-light-bg: #f8fbfd;
    /* Very subtle blue tint */
    --color-light-gray: #F0F4F8;
    --color-border: #E5E7EB;

    /* Text */
    --color-text-dark: #000000;
    /* Strict Black */
    --color-text-muted: #1d648c;
    /* Dark Blue for muted text? Or standard gray? Let's use Dark Navy for a "tinted" look */
    --color-text-light: #9CA3AF;

    /* === TYPOGRAPHY === */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* === SPACING === */
    --section-padding: 80px;
    --section-padding-sm: 60px;
    --container-max: 1280px;

    /* === RADIUS === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 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-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
    list-style: none;
}

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

h1 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(20px, 2.5vw, 28px);
}

h4 {
    font-size: 20px;
}

p {
    color: var(--color-text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-lavender), var(--color-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--color-lavender);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-head p {
    font-size: 18px;
    margin-top: 16px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-lavender);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    /* Hidden on desktop */
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-lavender);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-lavender);
    transition: var(--transition-base);
}

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

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

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

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

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text-dark) !important;
    /* Force dark text */
}

.mobile-nav-cta {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--color-light-bg);
    color: var(--color-lavender) !important;
}

/* Active State for Top Level Links */
.nav-links>a.active,
.dropdown>a.active {
    color: var(--color-lavender);
}

.nav-links>a.active::after,
.dropdown>a.active::after {
    width: 100%;
}

/* Ensure navbar dark mode active state works */
.navbar-dark .nav-links>a.active {
    color: var(--color-mint);
}

.navbar-dark .nav-links>a.active::after {
    background: var(--color-mint);
}

/* Scrolled state active overrides */
.navbar-dark.scrolled .nav-links>a.active {
    color: var(--color-lavender);
}

.navbar-dark.scrolled .nav-links>a.active::after {
    background: var(--color-lavender);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dark navbar for dark hero */
.navbar-dark .nav-links a {
    color: var(--color-white);
}

.navbar-dark .nav-links a:hover {
    color: var(--color-mint);
}

.navbar-dark.scrolled .nav-links a {
    color: var(--color-text-dark);
}

.navbar-dark.scrolled .nav-links a:hover {
    color: var(--color-lavender);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 129, 80, 0.3);
    /* Orange shadow */
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-lavender);
    color: var(--color-lavender);
}

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

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

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-arrow::after {
    content: '→';
    transition: var(--transition-base);
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================
   HERO SECTION (DARK)
   ============================================ */
.hero-dark {
    position: relative;
    background: var(--color-dark-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay (Near Black) + Abstract Tech background */
    background: linear-gradient(135deg, rgba(5, 12, 25, 0.95), rgba(5, 12, 25, 0.85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-dark::after {
    /* Optional: Subtle second layer for depth/gradient pop */
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(34, 167, 241, 0.15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-image-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-card:first-child {
    margin-top: 40px;
}

.hero-image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Light Hero */
.hero-light {
    padding: 180px 0 100px;
    background: var(--color-white);
}

.hero-light .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-light h1 {
    color: var(--color-text-dark);
}

.hero-light p {
    color: var(--color-text-muted);
}

.hero-light .hero-buttons {
    justify-content: center;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--color-light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    text-align: left;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

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

.stat-card h3 {
    font-size: 48px;
    color: var(--color-lavender);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-card p {
    font-size: 16px;
    color: var(--color-text-muted);
}

.stat-card .stat-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 12px;
    line-height: 1.5;
}

/* ============================================
   FEATURE CARDS / WHY CHOOSE US
   ============================================ */
.features-section {
    background: var(--color-white);
}

/* ============================================
   SERVICE HERO (Contact, Resources, etc.)
   ============================================ */
.service-hero {
    position: relative;
    padding: 180px 0 100px;
    background: var(--color-dark-navy);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 12, 25, 0.95), rgba(5, 12, 25, 0.85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.service-hero h1 {
    color: var(--color-white);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.service-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.service-hero .section-label {
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.feature-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.feature-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.feature-tab:hover {
    color: var(--color-text-dark);
    background: var(--color-light-bg);
}

.feature-tab.active {
    color: var(--color-lavender);
    background: rgba(124, 92, 255, 0.1);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.feature-item:hover,
.feature-item.active {
    background: var(--color-light-bg);
    border-color: var(--color-border);
}

.feature-item h4 {
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 15px;
    color: var(--color-text-muted);
}

.feature-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Feature Grid (Alternative) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   CASE STUDIES / WORK SECTION
   ============================================ */
.case-studies-section {
    background: var(--color-light-bg);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-study-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.case-study-image {
    height: 240px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-lavender);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.case-study-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.case-study-content p {
    font-size: 15px;
    margin-bottom: 24px;
    flex: 1;
}

.case-study-stats {
    display: flex;
    gap: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.case-study-stat h4 {
    font-size: 24px;
    color: var(--color-lavender);
    margin-bottom: 4px;
}

.case-study-stat span {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================
   SPECIALTIES / SERVICES GRID
   ============================================ */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.specialty-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition-base);
}

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

.specialty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light-bg);
    border-radius: var(--radius-lg);
    font-size: 28px;
}

.specialty-card h4 {
    margin-bottom: 12px;
}

.specialty-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   BRANDS / PARTNERS
   ============================================ */
.brands-section {
    padding: 60px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.brands-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.brand-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition-base);
}

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

.brand-logo img {
    height: 40px;
    width: auto;
}

.brand-placeholder {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-light);
    opacity: 0.5;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
    background: var(--color-light-bg);
}

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

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.faq-question {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-base);
}

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

.faq-question h4 {
    font-size: 17px;
    font-weight: 600;
}

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light-bg);
    border-radius: 50%;
    font-size: 20px;
    color: var(--color-lavender);
    transition: var(--transition-base);
}

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

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

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

.faq-answer p {
    padding: 0 32px 24px;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--color-dark-navy);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.2), transparent 70%);
}

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

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

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark-navy);
    padding: 48px 0 16px;
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 24px;
}

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

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition-base);
}

.footer-links p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.footer-links p strong {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: var(--color-mint);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 15px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-lavender);
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--color-lavender);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--color-lavender-light);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 16px;
}

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

.social-link:hover {
    background: var(--color-lavender);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    background: var(--color-light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-lavender);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.contact-card h4 {
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

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

.founder-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.founder-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: auto;
}

.founder-info h3 {
    color: var(--color-white);
    font-size: 32px;
    margin-bottom: 8px;
}

.founder-title {
    color: var(--color-lavender);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.founder-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.founder-traits {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.founder-trait {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 14px;
}

/* Process/Timeline */
/* Process/Timeline */
.process-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Central Line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-lavender);
    transform: translateX(-50%);
}

.process-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    position: relative;
    width: calc(50% - 40px);
    transition: all 0.3s ease;
}

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

/* Connecting Dot */
.process-card::after {
    content: '';
    position: absolute;
    top: 32px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-lavender);
    z-index: 2;
}

/* Alternating Layout */
.process-card:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
}

.process-card:nth-child(even) {
    align-self: flex-end;
    text-align: left;
}

.process-card:nth-child(odd)::after {
    right: -51px;
    /* 40px gap + 10px half dot + 1px overlap */
}

.process-card:nth-child(even)::after {
    left: -51px;
}

.process-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-lavender);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    /* Align number with text alignment */
    margin-left: 0;
    margin-right: auto;
}

.process-card:nth-child(odd) .process-number {
    margin-left: auto;
    margin-right: 0;
}

.process-card h4 {
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
}

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-border);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-card span {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   SERVICE PAGE TEMPLATE
   ============================================ */
.service-hero {
    position: relative;
    background: var(--color-dark-navy);
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay (Near Black) + Abstract Network background */
    background: linear-gradient(135deg, rgba(5, 12, 25, 0.95), rgba(5, 12, 25, 0.85)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 10;
    /* Boosted to ensure visibility over overlay */
}

.service-hero h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.benefit-card h4 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-card p {
    font-size: 15px;
}

.outcomes-list {
    background: var(--color-dark-navy);
    padding: 80px;
    border-radius: var(--radius-xl);
}

.outcomes-list h3 {
    color: var(--color-white);
    margin-bottom: 32px;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.outcome-item {
    display: flex;
    align-items: start;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.outcome-item::before {
    content: '✓';
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint);
    color: var(--color-dark-navy);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* =========================================
   Homepage Expansion (Equiem Style)
   ========================================= */

/* Typography & Spacing Updates */
:root {
    --section-gap: 120px;
    /* Airier spacing */
}

h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: 16px;
}

/* Partners Slider */
.partners-section {
    padding: 60px 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 10px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assuming duplicated content for infinite loop */
}

/* Interactive Feature Accordion (Equiem Style) */
.feature-accordion-section {
    padding: var(--section-gap) 0;
    background: var(--color-light-bg);
}

.accordion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Connected look */
}

.accordion-item {
    padding: 32px;
    border-left: 3px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--color-white);
    /* Optional for cards, or transparent */
}

.accordion-item.active {
    border-left-color: var(--color-primary);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--color-text-dark);
}

.accordion-body {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-body {
    height: auto;
    opacity: 1;
    margin-top: 16px;
}

.accordion-visuals {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--color-white);
}

/* Values Section Redesign */
.values-section-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: var(--color-white);
    padding: 40px 24px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card h4 {
    margin: 0;
    font-size: 20px;
    color: var(--color-text-dark);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .values-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-section-grid {
        grid-template-columns: 1fr;
    }
}

.visual-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    /* Keep flex for alignment if content is not full image */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transform: translateY(100%);
    /* Start from bottom */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.visual-item.active {
    opacity: 1;
    z-index: 2;
    transform: translateY(0);
}

.visual-item.slide-back {
    z-index: 1;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

/* Testimonials */
.testimonials-section {
    padding: var(--section-gap) 0;
    overflow: hidden;
    /* Ensure ticker doesn't cause overflow */
}

.ticker-container-v2 {
    width: 100%;
    padding: 20px 0;
}

.ticker-track-v2 {
    display: flex !important;
    gap: 32px;
    width: max-content;
    animation: scroll-testimonials 80s linear infinite;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.ticker-track-v2:hover {
    animation-play-state: paused;
}

.ticker-card-v2 {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    width: 450px !important;
    /* Fixed width for ticker items */
    flex-shrink: 0 !important;
    /* Prevent squeezing */
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

.quote-icon {
    font-size: 48px;
    color: var(--color-lavender);
    line-height: 1;
    margin-bottom: 24px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.ticker-card-v2 p {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    margin-bottom: 20px;
    line-height: 1.6;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    /* Placeholder */
}

/* FAQ Section */
.faq-section {
    padding: var(--section-gap) 0;
    background: var(--color-dark-bg);
    color: var(--color-white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    height: 0;
    padding: 0 24px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.faq-item.active .faq-answer {
    height: auto;
    padding-bottom: 24px;
    opacity: 1;
}

/* Contact Strip */
.home-contact-section {
    padding: var(--section-gap) 0;
    background: linear-gradient(135deg, #FFF 0%, #F8F9FA 100%);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-form-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

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

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

@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }

    @media (max-width: 768px) {
        :root {
            --section-padding: 40px;
            --section-padding-sm: 30px;
        }
    }

    /* Navbar Mobile */
    .nav-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        padding: 8px;
        z-index: 2002;
        /* Above nav-links */
        color: var(--color-dark-navy);
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    /* Active X button inside a square box (EQUIEM style) */
    .nav-links.active~.nav-toggle,
    .nav-toggle.active {
        color: #4338ca !important;
        /* Purple/Navy X */
        background: #f1f3f5;
        border-radius: 8px;
        width: 44px;
        height: 44px;
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 0;
        /* Hide the JS textContent ✕ */
    }

    /* Force the X using pseudo-element for perfect centering in the box */
    .nav-links.active~.nav-toggle::before,
    .nav-toggle.active::before {
        content: '✕';
        font-size: 24px;
        display: block;
    }

    .navbar-dark .nav-toggle {
        color: var(--color-white);
    }

    .navbar.scrolled .nav-toggle,
    .navbar-dark.scrolled .nav-toggle {
        color: var(--color-text-dark);
    }

    /* Hide Desktop CTA */
    .nav-cta {
        display: none;
    }

    /* Logo fixes */
    .nav-logo {
        flex-shrink: 0;
        z-index: 1002;
    }

    .nav-logo img {
        height: 32px;
        width: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 24px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 2000;
        /* Above everything */
    }

    /* Disable hover underline decoration for mobile - except for dropdown chevrons */
    .nav-links a::after {
        display: none !important;
    }

    .nav-links.active {
        right: 0;
    }

    /* Card style only for top-level links and dropdown triggers */
    .nav-links>a,
    .nav-links>.dropdown>a {
        color: var(--color-dark-navy) !important;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        padding: 18px 20px;
        margin-bottom: 12px;
        border-radius: 8px;
        background: #f7f8f9;
        display: block;
        border-bottom: none;
        box-sizing: border-box;
    }

    /* Reset for sub-menu links to prevent card leakage */
    .dropdown-menu a {
        background: transparent !important;
        padding: 12px 16px 12px 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        color: #4a5568 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        position: relative !important;
        left: 0 !important;
    }

    .nav-links>a.active,
    .dropdown.active>a {
        color: var(--color-lavender) !important;
        background: #f3f7ff;
    }

    .nav-links>a:last-child {
        border-bottom: none;
        margin-bottom: 30px;
    }

    .mobile-nav-cta {
        width: 100%;
        margin-top: 40px;
        padding-bottom: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-nav-cta .btn {
        width: 100% !important;
        justify-content: space-between !important;
        display: flex !important;
        align-items: center !important;
        padding: 18px 24px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        border: none !important;
    }

    .mobile-nav-cta .btn::after {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
        display: block;
        line-height: 1;
    }

    .mobile-nav-cta .btn-outline-primary {
        background: #1a202c !important;
        /* Dark Slate/Navy */
        color: white !important;
    }

    .mobile-nav-cta .btn-primary {
        background: #ced4ff !important;
        /* Light Purple/Mint */
        color: #4338ca !important;
        /* Darker Purple text */
    }

    /* Mobile Dropdown - Complete Rewrite for Proper Containment */

    /* Disable desktop hover behavior on mobile */
    .dropdown:hover .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        overflow: visible !important;
    }

    .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        padding: 8px 0 12px 24px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Override the hover rule for active dropdowns */
    .dropdown.active:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown>a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Override the nav-links a::after rule for dropdown chevrons */
    .dropdown>a::after {
        content: '' !important;
        display: inline-block !important;
        width: 8px !important;
        height: 8px !important;
        border-right: 2px solid var(--color-lavender) !important;
        border-bottom: 2px solid var(--color-lavender) !important;
        transform: rotate(-45deg) !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        transition: transform 0.3s ease !important;
    }

    .dropdown.active>a::after {
        transform: rotate(45deg) !important;
    }

    /* Hero & Layouts */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-images {
        display: none;
        /* Hide hero collage on mobile for cleaner look, or verify if user wants stack */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Solutions Accordion Mobile */
    .solutions-accordion {
        grid-template-columns: 1fr;
    }

    .accordion-visual {
        position: static;
        height: 250px;
        margin-top: 24px;
        order: -1;
        /* Show image above list on mobile? or keep below? */
    }

    .accordion-visual img {
        height: 100%;
    }

    /* Single Column Grids */
    .feature-content,
    .case-studies-grid,
    .specialties-grid,
    .contact-grid,
    .about-intro,
    .founder-content,
    .process-grid,
    .team-grid,
    .footer-grid,
    .feature-cards-grid,
    .outcome-cards {
        grid-template-columns: 1fr !important;
    }

    .feature-card,
    .outcome-card {
        padding: 24px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .process-steps::before {
        width: 3px;
        height: 100%;
        left: 40px;
        /* Align with icon center if icon is left, or center if centered */
        top: 0;
        background: linear-gradient(180deg, var(--color-lavender) 0%, var(--color-mint) 100%);
        display: none;
        /* Hide horizontal line on mobile */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    /* Industry Hero Mobile */
    .industry-hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
        text-align: center;
    }

    .industry-hero-text {
        padding: 40px 24px;
    }

    .industry-hero-images {
        display: none;
    }

    .industry-hero-text h1 {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .stat-card {
        text-align: center;
        padding: 24px;
    }

    .stat-card h3 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        left: 30px;
    }

    .process-card {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 80px;
        /* Space for line/dot */
        text-align: left !important;
    }

    .process-card:nth-child(odd),
    .process-card:nth-child(even) {
        align-self: flex-start;
    }

    .process-card::after {
        left: 21px !important;
        /* Center on line at 30px */
        right: auto !important;
    }

    .process-number,
    .process-card:nth-child(odd) .process-number {
        margin-left: 0;
        margin-right: auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .case-study-stats {
        flex-direction: column;
        gap: 16px;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .service-benefits {
        grid-template-columns: 1fr;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* --- Service Page Expansions (Equiem Style) --- */

/* Feature Rows (Z-Pattern) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse .feature-text {
    order: 2;
}

.feature-row.reverse .feature-image-wrapper {
    order: 1;
}

.feature-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.feature-text p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.feature-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.feature-image-wrapper:hover img {
    transform: translateY(-5px);
}

/* Feature Lists */
.feature-list-check {
    list-style: none;
    padding: 0;
}

.feature-list-check li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--color-text-dark);
}

.feature-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--color-mint);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.feature-list-sm li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list-sm li::before {
    content: "•";
    color: var(--color-mint);
    font-size: 20px;
}

/* Highlight Card */
.feature-card.highlight-card {
    border: 2px solid var(--color-primary);
    background: #fdfdfd;
    transform: scale(1.05);
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-light-bg);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.duration {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

/* Dark Outcomes Grid */
.outcomes-grid-dark {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.outcome-item-dark {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.outcome-item-dark h4 {
    color: var(--color-mint);
    font-size: 20px;
    margin-bottom: 12px;
}

.outcome-item-dark p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

/* Large CTA */
.cta-section-lg {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a72 100%);
    text-align: center;
    color: white;
}

/* CTA with Background Image */
.cta-section-lg.cta-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-section-lg.cta-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cta-section-lg.cta-bg-image .container {
    position: relative;
    z-index: 1;
}

.cta-section-lg.cta-bg-image h2,
.cta-section-lg.cta-bg-image p {
    color: white !important;
}

.cta-section-lg.cta-bg-image .cta-content-lg p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.cta-content-lg h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* CTA with Image Layout */
.cta-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-with-image .cta-content-lg {
    text-align: left;
}

.cta-with-image .cta-buttons {
    justify-content: flex-start;
}

.cta-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 991px) {
    .cta-with-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-with-image .cta-content-lg {
        text-align: center;
    }

    .cta-with-image .cta-buttons {
        justify-content: center;
    }

    .cta-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Responsive Service Pages */
@media (max-width: 991px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-row.reverse .feature-text {
        order: 1;
        /* Reset order for stacking */
    }

    .feature-list-check {
        text-align: left;
        display: inline-block;
    }

    .outcomes-grid-dark {
        grid-template-columns: 1fr;
    }

    .cta-content-lg h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* --- ADDED FOR MOBILE OPTIMIZATION --- */

    /* Holistic Transformation (Capabilities) */
    .accordion-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .accordion-visuals {
        height: 300px;
        /* Reduced height for mobile */
        order: -1;
        /* Show image above text */
        margin-bottom: 24px;
    }

    /* Ready to Transform (Contact) */
    .contact-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-text {
        text-align: center;
    }

    .contact-benefits {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 auto;
    }

    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Grid (Ensure it stacks) */
    .footer-grid {
        grid-template-columns: 1fr !important;
        /* Override the 1200px media query */
        gap: 40px;
    }

    /* --- About Page Mobile Optimization --- */

    /* About Intro Section */
    .about-intro {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        order: -1;
        /* Image on top */
        max-height: 300px;
        overflow: hidden;
    }

    /* Brands/Partners */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on mobile for logos */
        gap: 24px;
    }

    /* Mission & Vision (Feature Grid) */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .feature-card {
        width: 100%;
        max-width: none;
    }

    /* Founder Section */
    .founder-content {
        grid-template-columns: 1fr !important;
        /* Force stack */
        gap: 40px;
        text-align: center;
    }

    .founder-image {
        margin: 0 auto;
        order: -1;
    }

    .founder-text {
        padding-left: 0;
        /* Reset padding */
    }

    /* Values Section */
    .values-section-grid {
        grid-template-columns: 1fr !important;
        /* Stack values */
        gap: 24px;
    }

    /* Process Section */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .process-card {
        text-align: center;
    }

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Navbar Mobile Fix */
    .nav-links {
        z-index: 1001;
        /* Ensure above hero content */
        background-color: var(--color-white);
        /* Ensure opacity */
    }

    /* Fix Bottom Space on Mobile */
    html {
        background: var(--color-dark-navy);
    }

    body {
        padding-bottom: 0;
        margin-bottom: 0;
        min-height: 100vh;
        background: var(--color-white);
    }

    .footer {
        margin-bottom: 0;
    }

    /* --- Services Page Mobile Optimization --- */

    /* Ensure Engagement Models Stack */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ensure Benefits Section Stacks */
    .service-benefits {
        grid-template-columns: 1fr !important;
        display: grid;
        gap: 24px;
    }

    .benefit-card {
        width: 100%;
    }

    /* --- Industry Page Mobile Overrides (High Specificity Fixes) --- */

    /* 1. Fix Hamburger Visibility */
    .navbar {
        background-color: var(--color-white) !important;
    }

    .nav-toggle {
        color: var(--color-dark-navy) !important;
    }

    /* 2. Fix Hero Layout */
    body .industry-hero {
        grid-template-columns: 1fr !important;
        padding-top: 100px !important;
        /* Space for fixed navbar */
        height: auto !important;
        min-height: auto !important;
    }

    body .industry-hero-text {
        padding: 40px 24px !important;
    }

    body .industry-hero-images {
        display: none !important;
    }

    /* 3. Fix Stats Grid Squishing */
    body .stats-banner .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }

    body .stats-banner .stat-item {
        width: 100% !important;
    }

    /* 4. Fix Solutions Accordion Split */
    body .solutions-accordion {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    body .accordion-visual {
        position: relative !important;
        width: 100% !important;
        top: 0 !important;
        order: -1 !important;
        /* Image on top */
        margin-bottom: 24px !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    body .accordion-visual img {
        height: 250px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    /* 5. Fix Outcomes & Process Grids */
    body .outcome-cards {
        grid-template-columns: 1fr !important;
    }

    body .outcome-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body .process-steps {
        grid-template-columns: 1fr !important;
        margin-top: 40px !important;
    }

    body .feature-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 991px) {
    /* --- Product Pages Mobile Overrides (High Specificity) --- */

    /* Orchestrate Page Overrides */
    body .product-hero {
        padding: 80px 20px !important;
        height: auto !important;
        min-height: auto !important;
    }

    body .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    body .btn-orange,
    body .btn-ghost {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    body .metrics-grid {
        grid-template-columns: 1fr !important;
        /* Stack metrics */
        gap: 24px !important;
    }

    body .tabs-container {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    body .tab-nav {
        position: static !important;
        top: auto !important;
        margin-bottom: 24px !important;
    }

    body .feature-list {
        grid-template-columns: 1fr !important;
    }

    body .comparison-grid {
        grid-template-columns: 1fr !important;
    }

    body .integrations-logos {
        flex-direction: column !important;
        gap: 32px !important;
    }

    /* DMS Page Overrides */
    body .dms-hero {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 80px !important;
    }

    body .dms-hero-content {
        padding: 40px 20px !important;
    }

    body .dms-hero-visual {
        padding: 20px !important;
        width: 100% !important;
        height: 300px !important;
        /* Constrain height */
        overflow: hidden !important;
    }

    body .floating-docs {
        transform: scale(0.7) !important;
        transform-origin: center !important;
    }

    body .steps-grid {
        grid-template-columns: 1fr !important;
    }

    body .bento-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        /* Default auto rows */
        display: flex !important;
        flex-direction: column !important;
    }

    body .bento-card.large,
    body .bento-card.tall {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        min-height: auto !important;
    }

    body .search-demo {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    body .compliance-grid {
        grid-template-columns: 1fr !important;
    }

    body .security-badges {
        flex-wrap: wrap !important;
        gap: 40px !important;
    }

    /* CCQA Page Overrides */
    body .ccqa-hero {
        padding: 100px 20px 40px !important;
    }

    body .ccqa-hero h1 {
        font-size: 36px !important;
    }

    body .metrics-cards {
        grid-template-columns: 1fr !important;
    }

    /* Convert horizontal scroll feature features to stack */
    body .features-scroll {
        flex-direction: column !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body .feature-card-large {
        flex: none !important;
        width: 100% !important;
    }

    body .sentiment-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    body .sentiment-content h2 {
        font-size: 32px !important;
    }
}

/* Fix Excessive Footer Spacing and Visibility on Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px !important;
    }

    .footer-grid {
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .footer h4 {
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }

    .footer-brand p {
        margin-bottom: 12px !important;
        font-size: 14px !important;
    }

    /* Fix invisible/spaced out contact info */
    .footer-links {
        gap: 8px !important;
    }

    .footer-links p {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }

    /* Tighter mobile menu spacing */
    .nav-links {
        padding-top: 80px !important;
        justify-content: flex-start !important;
    }

    .nav-links>a {
        padding: 12px 20px !important;
        margin-bottom: 8px !important;
    }

    .mobile-nav-cta {
        margin-top: 24px !important;
    }
}

/* Partners Section Resize */
.partners-section {
    padding: 60px 0;
}

.partners-track {
    display: flex;
    gap: 80px;
    /* Wider gap for larger logos */
    width: max-content;
    animation: scroll-partners 40s linear infinite;
    align-items: center;
    /* Center vertically */
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.partner-logo img {
    height: 80px;
    /* Increased size (was likely smaller or default) */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* TCS-Inspired Blog Layout */
.tcs-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.tcs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.tcs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.tcs-breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 600;
}

.tcs-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.tcs-sticky-nav {
    position: sticky;
    top: 80px;
    /* Adjust based on main navbar height */
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    z-index: 90;
    margin-bottom: 60px;
}

.tcs-nav-links {
    display: flex;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.tcs-nav-link {
    color: var(--color-text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.tcs-nav-link.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.tcs-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.tcs-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.tcs-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e1e1e;
    margin-top: 50px;
    margin-bottom: 24px;
}

.tcs-highlight-box {
    background: #f4f4f4;
    padding: 40px;
    margin: 40px 0;
    border-left: 5px solid var(--color-primary);
}

.tcs-highlight-box h3 {
    margin-top: 0;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.tcs-highlight-box p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
}

/* Mobile Optimization for Resource/Blog Pages */
@media (max-width: 768px) {
    .tcs-hero {
        height: 50vh;
        min-height: 300px;
    }

    .tcs-hero-content {
        padding: 0 16px;
    }

    .tcs-title {
        font-size: 28px;
        /* Reduced from 48px */
        line-height: 1.3;
    }

    .tcs-breadcrumbs {
        font-size: 12px;
        margin-bottom: 12px;
    }

    /* Sticky Nav - Horizontal Scroll */
    .tcs-nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        gap: 20px;
    }

    .tcs-nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .tcs-nav-link {
        font-size: 12px;
        flex-shrink: 0;
    }

    .tcs-content-wrapper {
        padding: 0 16px 40px;
    }

    .tcs-content p {
        font-size: 16px;
    }

    .tcs-content h2 {
        font-size: 24px;
        margin-top: 32px;
    }

    .tcs-highlight-box {
        padding: 24px;
        margin: 24px 0;
    }

    .tcs-highlight-box h3 {
        font-size: 18px;
    }

    .tcs-highlight-box p {
        font-size: 18px;
    }
}

/* --- Mobile Spacing Fixes --- */
@media (max-width: 768px) {
    .stats-section {
        padding: 40px 0;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .feature-accordion-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .stats-grid {
        gap: 16px;
    }

    .accordion-container {
        gap: 32px;
    }
}