/* InternPortal.net — Homepage (adapted from CVtoWebsite/css/home.css) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white:   #ffffff;
    --surface: #f8fafc;
    --border:  #e2e8f0;
    --text:    #0f172a;
    --muted:   #64748b;
    --accent:  #2563eb;
    --nav-h:   64px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--white);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: sticky;
    top: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-logo {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
}

.nav-cta {
    background: var(--text) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    margin-left: 8px;
    font-weight: 600 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 7px 10px;
}

.nav-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.nav-drawer.open { display: block; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }

.drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-brand { font-family: "DM Serif Display", Georgia, serif; }
.drawer-close { background: none; border: none; cursor: pointer; }

.drawer-panel a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 500;
}

.drawer-cta {
    margin-top: 12px;
    background: var(--text) !important;
    color: var(--white) !important;
    text-align: center;
    font-weight: 600 !important;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 24px 72px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.hero-inner { max-width: 680px; text-align: center; }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.975rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-primary { background: var(--text); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-primary:hover, .btn-secondary:hover { opacity: 0.85; }

.home-section-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-section-inner--narrow { max-width: 640px; }

.home-features {
    padding: 8px 0 56px;
}

.home-section-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 28px;
}

.home-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.home-feature-list li {
    background: var(--white);
    padding: 20px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.01em;
}

.home-statement {
    padding: 8px 0 56px;
}

.home-statement p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.home-programme {
    padding: 0 24px 72px;
}

.home-programme .home-section-inner {
    text-align: center;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.home-programme-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.home-programme-text {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 18px;
    line-height: 1.55;
}

.btn-programme {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    transition: opacity 0.15s;
}

.btn-programme:hover { opacity: 0.85; }

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }

@media (max-width: 768px) {
    .nav { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 48px 16px 40px; }
    .home-section-inner { padding: 0 16px; }
    .home-features { padding: 0 0 40px; }
    .home-feature-list { grid-template-columns: 1fr 1fr; }
    .home-statement { padding: 0 0 40px; }
    .home-programme { padding: 0 16px 48px; }
    .footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .home-feature-list { grid-template-columns: 1fr; }
}
