/* 
   Nile University CallAI - Enterprise Styles
   Design Philosophy: Institutional, Clean, Technology-Enabler
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --nile-blue: #1C4DA1;
    --nile-blue-hover: #153a7a;
    --muted-green: #69BF51;
    /* Official Nile Green roughly */

    /* Neutral Scale */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-border: #E5E7EB;

    /* Text Colors */
    --text-primary: #1F2937;
    /* Dark Grey */
    --text-secondary: #4B5563;
    /* Medium Grey */
    --text-tertiary: #9CA3AF;
    /* Light Grey */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 120px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --border-subtle: 1px solid var(--bg-border);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h2 {
    font-size: 1.875rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--nile-blue);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-nile {
    color: var(--nile-blue) !important;
}

.text-sm {
    font-size: 0.875rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--nile-blue);
    color: white;
    border: 1px solid var(--nile-blue);
}

.btn-primary:hover {
    background-color: var(--nile-blue-hover);
    border-color: var(--nile-blue-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--nile-blue);
    border: 1px solid var(--nile-blue);
}

.btn-outline:hover {
    background-color: #f0f4ff;
    color: var(--nile-blue-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--nile-blue);
    background: var(--bg-light);
    border-color: var(--bg-border);
}

/* Header */
header {
    height: var(--header-height);
    background: white;
    border-bottom: var(--border-subtle);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-main {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-item:hover {
    color: var(--nile-blue);
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 3rem 0;
    /* Reduced from 6rem to close gap */
    min-height: 60vh;
    /* Reduced from 85vh */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-abstract {
    /* Faint campus background */
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 45%;
    /* Covers right side only, approx 45% as requested */
    height: 100%;
    background-image: url('assets/nile_hero_updated.jpg');
    /* Assuming file exists based on previous index.html */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    mask-image: linear-gradient(to right, transparent, black 15%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%);
}

.hero-grid {
    display: flex;
    /* Changed to flex to allow full width text with background behind */
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    /* Give text more room */
}

.hero-sub {
    font-size: 1.25rem;
    /* Slightly larger as per mock */
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* New Button Style for "Access Dashboard" */
.btn-outline-neutral {
    background: white;
    color: var(--text-primary);
    border: 1px solid #D1D5DB;
    /* Neutral grey border */
    font-weight: 500;
}

.btn-outline-neutral:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}


/* Trust Strip */
.trust-strip {
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    padding: 0.75rem 0;
    /* Tighter trust strip */
    background: var(--bg-light);
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.callai-logo-sm {
    height: 50px;
    opacity: 0.8;
    filter: grayscale(100%);
    /* Monochrome */
}

/* Features Section (3 Cards) */
.section-features {
    padding: 1.5rem 0 3rem 0;
    /* Considerably reduced top/bottom padding */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    background: white;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--nile-blue);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nile-blue);
    margin-bottom: 0.5rem;
    display: block;
}

/* Departments Supported */


/* How It Works */


/* Access & Governance */
.section-access {
    padding: 3rem 0;
    /* Reduced from 5rem */
    text-align: center;
    background: var(--bg-light);
    border-top: var(--border-subtle);
}

.access-box {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 2rem 0;
    /* Reduced from 3rem */
    background: white;
    border-top: var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left h5 {
    font-weight: 700;
    color: var(--nile-blue);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    margin-bottom: 0.2rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        /* Smaller header on mobile */
    }

    .logo-main {
        height: 50px;
        /* Smaller logo on mobile */
    }

    h1 {
        font-size: 2rem;
        /* Smaller heading */
    }

    .hero {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: left;
        /* Keep left alignment as per institutional style */
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-features {
        padding: 1.5rem 0 3rem 0;
    }

    .nav-menu {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-right {
        text-align: left;
    }

    .trust-strip {
        font-size: 0.8rem;
        padding: 0.75rem 0;
    }

    .trust-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Request Access Form Styles */
.access-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--nile-blue);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-header p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.small-col {
    flex: 0 0 80px;
}

.access-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--nile-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(28, 77, 161, 0.1);
}

.w-full {
    width: 100%;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 1rem;
}