/* ============================================
   INTELIUM CONSULTING — Main Stylesheet
   ============================================ */

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

:root {
    --navy:     #0b1d3a;
    --navy-mid: #132d54;
    --blue:     #1a6dd4;
    --blue-light: #e8f1fc;
    --accent:   #2b8cff;
    --gold:     #d4a24a;
    --white:    #ffffff;
    --gray-50:  #f8f9fb;
    --gray-100: #f0f2f5;
    --gray-200: #dde1e8;
    --gray-400: #9aa3b2;
    --gray-600: #5a6375;
    --gray-800: #2d3345;
    --text:     #1e2534;
    --radius:   8px;
    --radius-lg: 16px;
    --shadow:   0 1px 3px rgba(11,29,58,.06), 0 8px 24px rgba(11,29,58,.06);
    --shadow-lg: 0 4px 12px rgba(11,29,58,.08), 0 16px 48px rgba(11,29,58,.08);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; }
h4 { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; color: var(--navy); }

.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--blue);
    margin-bottom: .75rem;
}

.section-intro {
    max-width: 640px;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .85em 2em;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,109,212,.3);
}

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

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-200);
    padding: .75rem 0;
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 40px; width: auto; }
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
}
.scrolled .logo-text { color: var(--navy); }

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.main-nav a {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    font-size: .95rem;
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--white); }

.scrolled .main-nav a { color: var(--gray-600); }
.scrolled .main-nav a:hover { color: var(--navy); }

.btn-nav {
    padding: .55em 1.4em !important;
    border: 2px solid rgba(255,255,255,.4) !important;
    border-radius: var(--radius) !important;
    color: var(--white) !important;
}
.btn-nav:hover {
    background: var(--white) !important;
    color: var(--navy) !important;
    border-color: var(--white) !important;
}
.scrolled .btn-nav {
    border-color: var(--blue) !important;
    color: var(--blue) !important;
}
.scrolled .btn-nav:hover {
    background: var(--blue) !important;
    color: var(--white) !important;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.scrolled .menu-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1a4a7a 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,109,212,.15), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,162,74,.08), transparent);
    pointer-events: none;
}
.hero-content {
    position: relative;
    max-width: 720px;
    padding: 8rem 0 6rem;
}
.hero-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Pillars ---------- */
.pillars {
    padding: 5rem 0;
    background: var(--white);
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pillars-4 {
    grid-template-columns: repeat(4, 1fr);
}
.pillar {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.pillar.visible {
    opacity: 1;
    transform: translateY(0);
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--blue);
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--gray-600); font-size: .95rem; }

/* ---------- Services ---------- */
.services {
    padding: 6rem 0;
    background: var(--gray-50);
}

/* AI highlight card */
.service-highlight {
    margin-bottom: 2rem;
}
.service-highlight-inner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.service-highlight-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43,140,255,.15), transparent 70%);
    pointer-events: none;
}
.service-highlight-text {
    position: relative;
}
.service-highlight-text .service-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: .5rem;
}
.service-highlight-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: .75rem;
}
.service-highlight-text p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 800px;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin-top: 1.5rem;
}
.service-tags li {
    padding: .4em 1em;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-light);
    display: block;
    margin-bottom: .75rem;
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--gray-600); font-size: .93rem; line-height: 1.7; }

/* ---------- Customers ---------- */
.customers {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}
.customers .section-intro { margin-left: auto; margin-right: auto; }

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3.5rem;
    margin-top: 2rem;
}
.logo-item {
    opacity: 0;
    transform: translateY(12px);
}
.logo-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(.55);
    transition: filter var(--transition);
}
.logo-item img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ---------- About ---------- */
.about {
    padding: 6rem 0;
    background: var(--gray-50);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.about-text {
    opacity: 0;
    transform: translateY(20px);
}
.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}
.about-text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}
.about-values { display: flex; flex-direction: column; gap: 1.25rem; }
.value-card {
    padding: 1.75rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--blue);
    opacity: 0;
    transform: translateY(20px);
}
.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.value-card p { color: var(--gray-600); font-size: .93rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact {
    padding: 6rem 0;
    background: var(--navy);
    color: var(--white);
}
.contact h2 { color: var(--white); margin-bottom: 1rem; }
.contact p { color: rgba(255,255,255,.7); }
.contact .section-label { color: var(--gold); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-info {
    opacity: 0;
    transform: translateY(20px);
}
.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}
.contact-info > p { font-size: 1.05rem; line-height: 1.7; }
.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.contact-detail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold);
}
.contact-detail a { color: rgba(255,255,255,.85); }
.contact-detail a:hover { color: var(--white); }
.contact-detail span { color: rgba(255,255,255,.7); font-size: .95rem; }

.contact-form-wrap {
    opacity: 0;
    transform: translateY(20px);
}
.contact-form-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    color: var(--white);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,.12);
}
.form-group textarea { resize: vertical; }

.contact-form .btn-primary {
    margin-top: .5rem;
    padding: 1em 2em;
    font-size: 1rem;
}

.form-success {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}
.form-success p { color: var(--white); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #071222;
    padding: 4rem 0 2rem;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.3rem;
    display: block;
    margin-bottom: .75rem;
}
.footer-brand p { max-width: 280px; line-height: 1.6; }

.site-footer h4 {
    color: var(--white);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--white); }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* ---------- Page content (for sub-pages) ---------- */
.page-content {
    padding: 8rem 0 4rem;
    min-height: 60vh;
}
.page-content h1 { margin-bottom: 1.5rem; }
.entry-content p { margin-bottom: 1rem; color: var(--gray-600); line-height: 1.75; }

/* ---------- Reveal animation timing ---------- */
.service-card,
.value-card,
.pillar,
.logo-item,
.about-text,
.contact-info,
.contact-form-wrap {
    transition: opacity .6s ease, transform .6s ease;
}
.service-card:nth-child(2),
.value-card:nth-child(2),
.pillar:nth-child(2),
.logo-item:nth-child(2) { transition-delay: .1s; }
.service-card:nth-child(3),
.value-card:nth-child(3),
.pillar:nth-child(3),
.logo-item:nth-child(3) { transition-delay: .2s; }
.service-card:nth-child(4),
.logo-item:nth-child(4) { transition-delay: .15s; }
.service-card:nth-child(5),
.logo-item:nth-child(5) { transition-delay: .2s; }
.service-card:nth-child(6),
.logo-item:nth-child(6) { transition-delay: .25s; }
.logo-item:nth-child(7) { transition-delay: .3s; }
.logo-item:nth-child(8) { transition-delay: .35s; }
.logo-item:nth-child(9) { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pillars-4 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-highlight-inner { padding: 2rem; }
}

@media (max-width: 768px) {
    .pillars-grid, .pillars-4 { grid-template-columns: 1fr; gap: 1.25rem; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Mobile nav */
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        box-shadow: -4px 0 24px rgba(0,0,0,.2);
    }
    .menu-open .main-nav { right: 0; }
    .main-nav ul {
        flex-direction: column;
        gap: 1.25rem;
    }
    .main-nav a,
    .scrolled .main-nav a { color: rgba(255,255,255,.85); }
    .main-nav a:hover,
    .scrolled .main-nav a:hover { color: var(--white); }

    .btn-nav,
    .scrolled .btn-nav {
        border-color: rgba(255,255,255,.4) !important;
        color: var(--white) !important;
    }

    .hero-content { padding: 7rem 0 4rem; }

    .logo-grid { gap: 2rem; }
    .logo-item img { height: 32px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}
