/* ============================================================
   Kora Innovations — Main Stylesheet
   Palette:
     --crimson:      #A63446
     --off-white:    #FBFEF9
     --deep-blue:    #0C6291
     --near-black:   #000004
     --dark-magenta: #7E1946
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
    --crimson: #A63446;
    --off-white: #FBFEF9;
    --deep-blue: #0C6291;
    --near-black: #000004;
    --dark-magenta: #7E1946;

    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

    --nav-height: 70px;
    --container-max: 1120px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--near-black);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ----- Utility ----- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 0.4em;
}

.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.85em 2.4em;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary {
    background-color: var(--crimson);
    color: var(--off-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--dark-magenta);
    transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--near-black);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Brand / Wordmark */
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--off-white);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-brand span {
    font-weight: 400;
    color: var(--crimson);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--off-white);
    padding: 0.3em 0;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--crimson);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--crimson);
}

/* Hamburger toggle (CSS-only) */
.nav-toggle {
    display: none; /* hidden checkbox */
}

.nav-toggle-label {
    display: none; /* hidden on desktop */
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 20px;
    z-index: 10;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background: var(--off-white);
    height: 3px;
    width: 28px;
    border-radius: 2px;
    position: absolute;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--deep-blue) 0%, #094d73 100%);
    color: var(--off-white);
    padding: calc(var(--nav-height) + 40px) 5% 60px;
}

.hero-content {
    max-width: 780px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.2rem;
    opacity: 0.92;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
    background-color: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid transparent;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
    border-top-color: var(--deep-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-blue), var(--dark-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar i {
    font-size: 2rem;
    color: var(--off-white);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 0.3em;
}

.team-role {
    font-size: 0.92rem;
    color: #666;
    font-weight: 400;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    background-color: #f3f5f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

.contact-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.contact-item > i {
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-top: 0.15em;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--near-black);
    margin-bottom: 0.25em;
}

.contact-item a {
    color: var(--crimson);
    font-weight: 600;
    transition: color var(--transition);
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: var(--dark-magenta);
    text-decoration: underline;
}

.contact-item p {
    color: #555;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--dark-magenta);
    color: var(--off-white);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(251, 254, 249, 0.3);
    color: var(--off-white);
    font-size: 1rem;
    transition: background var(--transition), border-color var(--transition);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background-color: rgba(251, 254, 249, 0.15);
    border-color: var(--off-white);
}

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Show hamburger */
    .nav-toggle-label {
        display: block;
    }

    /* Hide links by default */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--near-black);
        padding: 1.5rem 0;
        gap: 0;
        text-align: center;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links li {
        padding: 0.8rem 0;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    /* Open state */
    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
    }

    /* Animate hamburger to X */
    .nav-toggle:checked ~ .nav-toggle-label .hamburger {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-label .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Sections */
    .section {
        padding: 70px 0;
    }
}

/* ============================================================
   RESPONSIVE — Small (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.75em 1.8em;
        font-size: 0.95rem;
    }
}
