/* ==========================================================================
   ET Consulting - Premium Bain-Inspired Consulting Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Modern Normalized Design Tokens (2026 Standard) --- */
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-frosted: rgba(255, 255, 255, 0.85);
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-subtle: #94a3b8;
    --accent-primary: #2563eb;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --border-light: rgba(226, 232, 240, 0.8);
    --border-dark: rgba(15, 23, 42, 0.08);

    /* --- Backward Compatibility Aliases --- */
    --bg-dark: var(--bg-primary);
    --text-light: var(--text-primary);
    --accent: var(--accent-primary);
    --accent-secondary: var(--accent-emerald);
    --accent-bain: #d946ef;
    --card-bg: var(--bg-surface-frosted);
    --card-border: var(--border-light);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 70, 239, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(56, 180, 230, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* --- Hero Background --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* Light gradient overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    text-align: left;
}

.badge {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.hero h1 {
    font-size: 3.25rem; /* Balanced desktop hero size */
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.25; /* Enhanced readability spacing */
    font-weight: 800;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: 999px; /* Modern premium pill buttons */
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    margin-left: 20px;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Prevents squishing */
}

.logo img {
    height: 54px; /* Substantial & professional size */
    width: auto;
}

.logo-text {
    font-size: 1.85rem; /* Larger company name */
    font-weight: 800; /* Bold typography */
    color: var(--text-light);
    letter-spacing: -0.5px;
    white-space: nowrap; /* Prevents text wrapping */
}

.nav-links {
    display: flex;
    gap: clamp(10px, 1.4vw, 18px);
    align-items: center;
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}

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

.nav-links a.btn-primary {
    padding: 10px 22px;
    font-size: 0.95rem;
    color: #fff; /* Ensures button text remains white */
}

.nav-links a.btn-primary:hover {
    color: var(--accent);
}

/* --- Sections --- */
section {
    padding: 120px 0;
    position: relative;
    background: transparent;
    backdrop-filter: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* --- Methodology --- */
.methodology {
    background: rgba(241, 245, 249, 0.5);
}

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

.method-list {
    list-style: none;
}

.method-list li {
    margin-bottom: 40px;
    position: relative;
    padding-left: 50px;
}

.method-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
}

.method-list li h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-list li p {
    color: var(--text-muted);
}

.glass-panel {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    padding: 60px;
    color: #fff;
    border-radius: 24px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    display: block;
}

/* --- Newsletter & Contact --- */
.footer-content {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.newsletter-form input {
    width: 100%;
    padding: 16px 28px;
    background: #fff;
    border: 1px solid var(--card-border);
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    border-radius: 999px; /* Matches modern button styling */
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--card-border);
}

/* --- Responsive --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-light);
    background: transparent;
    border: none;
    padding: 0;
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        padding: 20px 5%;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem; /* Balanced tablet hero size */
    }

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

@media (max-width: 768px) {
    .hero-wrapper {
        align-items: flex-start;
        padding-top: 100px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 2.25rem; /* Balanced mobile hero size */
    }

    .services-grid,
    .methodology-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .btn-secondary {
        margin: 20px 0 0 0;
        display: block;
    }
}

/* Force trust bar on homepage to be dark black-blue even if HTML is cached */
.hero > div:nth-child(2),
.hero > div:last-child,
.trust-bar {
    background: #050a18 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
