/* ============================================================
   Verdi Consulting — main.css
   Single stylesheet for all pages (homepage + inner pages)
   ============================================================ */

/* --- Variables & Reset ------------------------------------ */
:root {
    --color-forest: #30B576;
    --color-forest-deep: #28a066;
    --color-forest-darker: #1e7a4d;
    --color-sage: #3dc882;
    --color-mint: #6ed9a3;
    --color-cream: #f8faf9;
    --color-warm-white: #ffffff;
    --color-gold: #c9a227;
    --color-gold-light: #e8d48a;
    --color-charcoal: #1a1a2e;
    --color-slate: #4a5568;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--color-warm-white); color: var(--color-charcoal); line-height: 1.7; font-size: 16px; overflow-x: hidden; }

/* --- Header & Navigation ---------------------------------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(48, 181, 118, 0.1); transition: all 0.4s var(--transition-smooth); }
header.scrolled { box-shadow: 0 4px 30px rgba(48, 181, 118, 0.1); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-forest); }
.logo-img { height: 50px; width: auto; }
.logo-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--color-charcoal); letter-spacing: -0.02em; white-space: nowrap; }
.footer-logo { height: 60px; filter: brightness(0) invert(1); }
.footer-title { color: white; }

/* Navigation */
#mainNav { display: flex; align-items: center; gap: 0.5rem; }
.nav-item { position: relative; }
#mainNav a, .nav-item > a { text-decoration: none; color: var(--color-charcoal); font-size: 0.9rem; font-weight: 500; padding: 0.6rem 1.1rem; border-radius: 8px; transition: all 0.3s var(--transition-smooth); position: relative; display: block; white-space: nowrap; }
#mainNav > a:hover, .nav-item > a:hover { color: var(--color-forest); background: rgba(48, 181, 118, 0.08); }
.nav-item.has-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 6px; vertical-align: middle; transition: transform 0.3s ease; }
.nav-item:hover > a::after { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; background: white; min-width: 320px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--transition-smooth); z-index: 100; padding: 0.5rem; border: 1px solid rgba(48, 181, 118, 0.1); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
#mainNav .dropdown a { display: block; padding: 0.75rem 1rem; color: var(--color-charcoal); text-decoration: none; font-size: 0.85rem; border-radius: 8px; transition: all 0.2s ease; }
#mainNav .dropdown a:hover { background: rgba(48, 181, 118, 0.08); color: var(--color-forest); }
#mainNav .dropdown a.dropdown-group { font-weight: 700; color: var(--color-forest); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; margin-top: 0.6rem; padding: 0.55rem 1rem 0.3rem; pointer-events: none; cursor: default; }
#mainNav .dropdown a.dropdown-group:hover { background: transparent; color: var(--color-forest); }
#mainNav .dropdown a.dropdown-sub { padding-left: 3rem; font-size: 0.84rem; color: var(--color-slate); }
#mainNav .dropdown a.dropdown-sub:hover { color: var(--color-forest); }
#mainNav .dropdown a.dropdown-sub + a:not(.dropdown-sub) { margin-top: 0.4rem; }
#mainNav a.cta { background: var(--color-forest); color: white; margin-left: 0.5rem; padding: 0.6rem 1.25rem; }
#mainNav a.cta:hover { background: var(--color-forest-deep); transform: translateY(-1px); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.menu-toggle span { width: 24px; height: 2px; background: var(--color-forest); border-radius: 2px; transition: all 0.3s var(--transition-smooth); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons ---------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s var(--transition-smooth); cursor: pointer; border: none; }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--transition-smooth); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--color-forest); color: white; box-shadow: 0 4px 20px rgba(48, 181, 118, 0.3); position: relative; z-index: 1; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent); transform: skewX(-20deg); transition: left 0s; }
.btn-primary:hover::after { left: 160%; transition: left 0.55s ease; }
.btn-primary:hover { background: var(--color-forest-deep); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(48, 181, 118, 0.35); }
.btn-secondary { background: transparent; color: var(--color-forest); border: 2px solid rgba(48, 181, 118, 0.3); }
.btn-secondary:hover { border-color: var(--color-forest); background: rgba(48, 181, 118, 0.08); }

/* ============================================================
   HOMEPAGE-SPECIFIC STYLES
   ============================================================ */

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-video-wrapper { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 10, 25, 0.82) 0%, rgba(15, 25, 45, 0.62) 100%); }
.hero-content { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
/* Homepage dark-hero text overrides */
.hero h1 { color: white; }
.hero h1 em { color: var(--color-mint); }
.hero .hero-description { color: rgba(255, 255, 255, 0.78); }
.hero .btn-secondary { color: white; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); color: white; }
.hero-card { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.13); }
.stat-item { background: rgba(255, 255, 255, 0.06); }
.stat-item:hover { background: rgba(255, 255, 255, 0.1); }
.stat-number { color: var(--color-mint); }
.stat-label { color: rgba(255, 255, 255, 0.65); }

.hero-text { opacity: 0; animation: fadeUp 0.8s var(--transition-smooth) 0.2s forwards; }

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

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-forest); color: white; padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.hero-badge svg { width: 16px; height: 16px; }

h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.1; color: var(--color-charcoal); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--color-forest); }

.hero-description { font-size: 1.15rem; color: var(--color-slate); margin-bottom: 2.5rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; opacity: 0; animation: fadeUp 0.8s var(--transition-smooth) 0.4s forwards; }
.hero-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 24px; padding: 2.5rem; box-shadow: 0 4px 6px rgba(48, 181, 118, 0.04), 0 12px 24px rgba(0, 0, 0, 0.1), 0 24px 48px rgba(0, 0, 0, 0.15); position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--color-forest) 0%, var(--color-sage) 50%, var(--color-mint) 100%); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 1rem; border-radius: 16px; background: var(--color-cream); transition: transform 0.3s var(--transition-smooth); }
.stat-item:hover { transform: scale(1.02); }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--color-forest); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--color-slate); font-weight: 500; }

/* Homepage Services Section */
.services { padding: 8rem 2rem; background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%); position: relative; overflow: hidden; }
.services::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 50% at 50% 100%, rgba(48, 181, 118, 0.2) 0%, transparent 60%); }
.section-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.section-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-mint); margin-bottom: 1rem; }
.services h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: white; font-weight: 400; max-width: 600px; margin: 0 auto; }
.services-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.service-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 2rem; transition: all 0.4s var(--transition-smooth); cursor: pointer; backdrop-filter: blur(10px); }
.service-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-mint) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: white; margin-bottom: 0.75rem; font-weight: 400; }
.service-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.service-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; color: var(--color-mint); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: gap 0.3s var(--transition-smooth); }
.service-link:hover { gap: 0.75rem; }

/* Homepage About Section */
.about { padding: 8rem 2rem; background: #f7faf8; }
.about-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; z-index: 0; }
.about-image-wrapper { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(48, 181, 118, 0.2); }
.about-image { width: 100%; height: 500px; background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-sage) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.about-image-content { text-align: center; color: white; padding: 2rem; }
.about-image-content svg { width: 80px; height: 80px; margin-bottom: 1.5rem; opacity: 0.9; }
.about-image-content p { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; max-width: 280px; }
.about-accent { position: absolute; bottom: -30px; right: -30px; width: 200px; height: 200px; background: var(--color-forest); border-radius: 20px; z-index: -1; opacity: 0.15; }
.about-text .section-label { color: var(--color-sage); text-align: left; }
.about-text h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--color-forest); font-weight: 400; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text p { color: var(--color-slate); margin-bottom: 1.5rem; font-size: 1.05rem; }
.certifications { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.cert-badge { display: flex; align-items: center; gap: 0.5rem; background: white; padding: 0.75rem 1.25rem; border-radius: 10px; font-size: 0.85rem; font-weight: 600; color: var(--color-forest); box-shadow: 0 2px 10px rgba(48, 181, 118, 0.12); }
.cert-badge svg { width: 18px; height: 18px; color: var(--color-forest); }

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */

/* Page Hero */
.page-hero { padding: 9rem 2rem 3.5rem; background: linear-gradient(135deg, #0d0d1e 0%, #1a2236 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: radial-gradient(ellipse at top right, rgba(48, 181, 118, 0.18) 0%, transparent 65%); z-index: 1; pointer-events: none; }
.page-hero-video-wrapper { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-hero-video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.page-hero-video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
.page-hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-video { pointer-events: none; }
.hero-video::-webkit-media-controls { display: none !important; -webkit-appearance: none; }
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.page-hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10, 10, 25, 0.88) 0%, rgba(15, 20, 40, 0.72) 60%, rgba(10, 15, 30, 0.82) 100%); }
.page-hero-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-content::before { content: ''; display: block; width: 48px; height: 2px; background: var(--color-forest); margin-bottom: 1.75rem; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); color: white; font-weight: 400; margin-bottom: 1.25rem; line-height: 1.08; letter-spacing: -0.02em; animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.page-hero h1 em { color: var(--color-mint); font-style: italic; }
.page-hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.72); max-width: 580px; line-height: 1.7; animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.page-hero-content::before { animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s both; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* Page Content & Sidebar */
.page-content { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; }
.main-content h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--color-charcoal); margin: 2rem 0 1rem; font-weight: 400; }
.main-content h2:first-child { margin-top: 0; }
.main-content p { color: var(--color-slate); margin-bottom: 1.25rem; font-size: 1.05rem; }
.main-content p strong { color: var(--color-charcoal); }
.main-content ul { margin: 1.25rem 0; padding-left: 1.5rem; }
.main-content li { color: var(--color-slate); margin-bottom: 0.5rem; font-size: 1rem; }
.main-content li::marker { color: var(--color-forest); }
.main-content a { color: var(--color-forest); text-decoration: none; }
.main-content a:hover { text-decoration: underline; }

.sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-card { background: var(--color-cream); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-charcoal); margin-bottom: 1rem; font-weight: 400; }
.sidebar-card h4 { font-size: 0.8rem; font-weight: 600; color: var(--color-forest); margin: 1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 0.25rem; }
.sidebar-card a { color: var(--color-slate); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; display: block; padding: 0.4rem 0; }
.sidebar-card a:hover { color: var(--color-forest); }
.sidebar-card h4 + ul { margin-left: 0.5rem; padding-left: 1rem; border-left: 2px solid rgba(48, 181, 118, 0.18); }

/* Section sub-navigation (used on About Us and Solutions pages) */
.subnav { background: var(--color-charcoal); border-bottom: 1px solid rgba(48, 181, 118, 0.35); position: sticky; top: 80px; z-index: 50; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.subnav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 0.25rem; overflow-x: auto; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-label { font-family: var(--font-display); font-size: 1rem; color: white; padding: 1.4rem 0.25rem 1.4rem 0; white-space: nowrap; }
.subnav-sep { color: var(--color-mint); font-size: 1.4rem; font-weight: 700; line-height: 1; padding: 0 0.75rem; user-select: none; }
.subnav a { position: relative; padding: 1.4rem 1.25rem; color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; transition: color 0.2s ease; }
.subnav a:hover { color: var(--color-mint); }
.subnav a.active { color: var(--color-mint); font-weight: 600; }
.subnav a.active::after { content: ''; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0.55rem; height: 3px; background: var(--color-mint); border-radius: 2px; }
@media (max-width: 1200px) {
    .subnav { top: 0; position: relative; }
    .subnav-inner { padding: 0 1.5rem; }
}

/* Engagement bullets with highlighted lead metric */
.engagement-lead { color: var(--color-forest); font-weight: 700; }

/* Full-width feature banner inside main-content */
.feature-banner { aspect-ratio: 16 / 6; border-radius: 24px; margin: 2.5rem 0; position: relative; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); background-size: cover; background-position: center; }
.feature-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 60%, var(--color-forest-darker) 100%); z-index: 0; }
.feature-banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, rgba(48, 181, 118, 0.35) 0%, transparent 60%), radial-gradient(circle at 75% 70%, rgba(110, 217, 163, 0.25) 0%, transparent 55%); z-index: 1; }
.feature-banner-finance { background-image: url('/images/afm/finance.jpg'); }
.feature-banner-finance::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-axis { background-image: url('/images/afm/axis.jpg'); }
.feature-banner-axis::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-it { background-image: url('/images/it/cybersecurity.jpg'); }
.feature-banner-it::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-data { background-image: url('/images/it/data-tools.jpg'); }
.feature-banner-data::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-ai-hero { background-image: url('/images/ai/automation.jpg'); }
.feature-banner-ai-hero::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-pm { background-image: url('/images/pm/project-management.jpg'); }
.feature-banner-pm::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-asset-sales { background-image: url('/images/asset-sales/asset-sales.jpg'); }
.feature-banner-asset-sales::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-due-diligence { background-image: url('/images/due-diligence/due-diligence.jpg'); }
.feature-banner-due-diligence::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-compliance { background-image: url('/images/compliance/compliance.jpg'); }
.feature-banner-compliance::before { mix-blend-mode: multiply; opacity: 0.55; }
.feature-banner-valuations { background-image: url('/images/valuations/valuations.jpg'); }
.feature-banner-valuations::before { mix-blend-mode: multiply; opacity: 0.55; }
@media (max-width: 768px) {
    .feature-banner { aspect-ratio: 4 / 3; margin: 2rem 0; }
}

/* About page enhancements */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0; padding: 2rem 1.5rem; background: linear-gradient(135deg, var(--color-cream) 0%, white 100%); border-radius: 20px; border: 1px solid rgba(48, 181, 118, 0.12); }
.about-stat { text-align: center; padding: 0.5rem; }
.about-stat-num { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--color-forest); line-height: 1; margin-bottom: 0.5rem; font-weight: 400; }
.about-stat-label { font-size: 0.78rem; font-weight: 600; color: var(--color-slate); text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; }

.about-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin: 3rem 0; }
.about-feature-text h2:first-child { margin-top: 0; }
.about-feature-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); background-size: cover; background-position: center; }
.about-feature-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 60%, var(--color-forest-darker) 100%); z-index: 0; }
.about-feature-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, rgba(48, 181, 118, 0.35) 0%, transparent 60%), radial-gradient(circle at 75% 70%, rgba(110, 217, 163, 0.25) 0%, transparent 55%); z-index: 1; }
.about-feature-team { background-image: url('/images/about/team.jpg'); }
.about-feature-team::before { mix-blend-mode: multiply; opacity: 0.55; }
.about-feature-ai { background-image: url('/images/about/ai.jpg'); }
.about-feature-ai::before { mix-blend-mode: multiply; opacity: 0.55; }
.about-feature-reverse > .about-feature-text { order: 2; }
.about-feature-reverse > .about-feature-visual { order: 1; }

@media (max-width: 768px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem 1rem; }
    .about-feature { grid-template-columns: 1fr; gap: 2rem; }
    .about-feature-reverse > .about-feature-text { order: 1; }
    .about-feature-reverse > .about-feature-visual { order: 2; }
}

/* Clients page */
.clients-page { max-width: 1200px; margin: 0 auto; }
.clients-intro { font-size: 1.1rem; color: var(--color-slate); text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.client-card { background: white; border: 1px solid rgba(48, 181, 118, 0.12); border-radius: 16px; padding: 1.5rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; min-height: 170px; transition: all 0.3s var(--transition-smooth); text-align: center; }
.client-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); border-color: rgba(48, 181, 118, 0.35); }
.client-card img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; transition: transform 0.3s var(--transition-smooth); }
.client-card:hover img { transform: scale(1.3); }
.client-card img[src$=".png"]:not([src*="/images/clients/"]) { display: none; }
.client-card span { font-size: 0.8rem; font-weight: 600; color: var(--color-slate); line-height: 1.35; }
@media (max-width: 1024px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* Client list (core_services page) */
.client-list { background: white; border-radius: 20px; padding: 2rem; box-shadow: 0 4px 20px rgba(48, 181, 118, 0.08); }
.client-list h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-charcoal); margin-bottom: 1.5rem; font-weight: 400; }
.client-list h4 { font-size: 0.8rem; font-weight: 600; color: var(--color-forest); margin: 1.25rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.client-list ul { list-style: none; }
.client-list li { color: var(--color-slate); font-size: 0.9rem; padding: 0.4rem 0 0.4rem 1rem; position: relative; }
.client-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--color-forest); border-radius: 50%; }

/* CTA Section */
.cta-section { padding: 4rem 2rem; background: var(--color-cream); }
.cta-card { max-width: 1000px; margin: 0 auto; background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%); border-radius: 32px; padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; right: -30%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(48, 181, 118, 0.3) 0%, transparent 60%); }
.cta-card::after { content: ''; position: absolute; bottom: -30%; left: -20%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(48, 181, 118, 0.15) 0%, transparent 60%); }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); color: white; font-weight: 400; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-card p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin-bottom: 2rem; position: relative; z-index: 1; }

/* Footer */
footer { background: #1a1a2e; color: white; padding: 4rem 2rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand .logo { color: white; margin-bottom: 1.5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 300px; margin-bottom: 1.5rem; }
.footer-contact-info { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-info a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s ease; }
.footer-contact-info a:hover { color: var(--color-mint); }
.footer-column h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1.25rem; font-weight: 400; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--color-mint); }
.footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.footer-address { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1440px), (max-height: 900px) {
    .hero-content { padding: 2.5rem 2rem; gap: 3rem; }
    .hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 1.25rem; }
    .hero-badge { margin-bottom: 1rem; }
    .hero-description { margin-bottom: 1.75rem; font-size: 1.05rem; }
    .hero-card { padding: 2rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 1024px) {
    /* Homepage */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-text .section-label { text-align: center; }
    .about-text h2, .about-text p { text-align: center; }
    .certifications { justify-content: center; }
    /* Inner pages */
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    /* Footer */
    .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
    .header-inner { padding: 0.75rem 1.5rem; }

    #mainNav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--color-warm-white); flex-direction: column; padding: 5rem 1.5rem 2rem; transition: right 0.4s var(--transition-smooth); box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1); align-items: stretch; gap: 0; overflow-y: auto; }
    #mainNav.active { right: 0; }
    #mainNav > a, .nav-item > a { width: 100%; padding: 1rem; font-size: 1rem; border-radius: 8px; }
    .nav-item { width: 100%; }
    .nav-item.has-dropdown > a::after { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
    .nav-item.active > a::after { transform: translateY(-50%) rotate(180deg); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: rgba(48, 181, 118, 0.05); border-radius: 8px; margin: 0.25rem 0; padding: 0.25rem; display: none; }
    .nav-item.active .dropdown { display: block; }
    #mainNav .dropdown a { padding: 0.75rem 1rem 0.75rem 1.5rem; font-size: 0.9rem; }
    #mainNav .dropdown a.dropdown-sub { padding-left: 3rem; }
    #mainNav a.cta { margin-left: 0; margin-top: 1rem; text-align: center; justify-content: center; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    /* Header on mobile: shrink logo so the burger fits */
    .logo-img { height: 38px; }
    .logo-title { font-size: 1rem; }

    /* Homepage */
    .hero { padding-top: 70px; }
    .hero-content { padding: 2rem 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { text-align: center; }
    .service-icon { margin: 0 auto 1.5rem; }

    /* Inner pages */
    .page-hero { padding: 7rem 1.5rem 2.5rem; }
    .page-content { padding: 2.5rem 1.5rem; }
    .cta-card { padding: 3rem 2rem; border-radius: 24px; }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { text-align: center; }
    .footer-contact-info { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .logo-title { display: none; }
    .hero-badge { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .hero-description { font-size: 1rem; }
    .btn { padding: 0.875rem 1.5rem; font-size: 0.9rem; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .stat-number { font-size: 2rem; }
    .services, .about, .cta-section { padding: 4rem 1.5rem; }
    .about-image { height: 350px; }
    .about-accent { width: 120px; height: 120px; bottom: -15px; right: -15px; }
}

/* ============================================================
   PREMIUM ANIMATION SYSTEM
   ============================================================ */

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-mint));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 9999;
    transition: transform 0.08s linear;
}

/* Scroll reveal base */
[data-reveal] {
    opacity: 0;
    transform: translateY(44px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* Enhanced service card hover */
.service-card:hover {
    box-shadow: 0 0 0 1px rgba(110, 217, 163, 0.3), 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Enhanced CTA card */
.cta-card .btn-primary {
    box-shadow: 0 8px 32px rgba(48, 181, 118, 0.45);
}

/* Smooth custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(48, 181, 118, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-forest); }
