/* ============================================
   Stratford College of Management — design tokens
   ============================================ */
:root {
    --ink-navy: #1B1A5E;
    --deep-slate: #24236E;
    --brass: #F2B705;
    --scm-red: #D2202E;
    --parchment: #F7F5F0;
    --charcoal: #23262B;
    --slate-teal: #6B2530;
    --hairline: rgba(27, 26, 94, 0.14);
}

body {
    background: var(--parchment);
    color: var(--charcoal);
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, .display-serif {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--ink-navy);
    font-weight: 600;
    line-height: 1.2;
}

a { color: var(--slate-teal); }
a:hover { color: var(--ink-navy); }

/* ---------- Site header ---------- */
.site-header {
    background: var(--parchment);
    border-bottom: 1px solid var(--hairline);
    padding: 18px 0;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.site-header .brand img { height: 56px; width: auto; }
.site-header .brand-text {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.15;
}
.site-header .brand-text .name {
    display: block;
    font-size: 1.15rem;
    color: var(--ink-navy);
    font-weight: 600;
}
.site-header .brand-text .tag {
    display: block;
    font-size: 0.72rem;
    color: var(--slate-teal);
    letter-spacing: 0.5px;
}
.site-header nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 28px;
}
.site-header nav a:hover { color: var(--ink-navy); }
.site-header nav a.btn-apply {
    background: var(--ink-navy);
    color: var(--parchment);
    padding: 8px 20px;
    border-radius: 2px;
}
.site-header nav a.btn-apply:hover { background: var(--deep-slate); }

/* Navy nav bar with white bold links and a gold pill on hover (desktop).
   The mobile dropdown gets the same colours in the block at the end of this file. */
@media (min-width: 1281px) {
    .site-header nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 2px 4px;
        background: var(--ink-navy);
        border-radius: 8px;
        padding: 6px 12px;
    }
    .site-header nav a {
        color: #fff;
        font-weight: 700;
        margin-left: 2px;
        padding: 8px 12px;
        border-radius: 999px;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .site-header nav a:hover {
        background: var(--brass);
        color: var(--ink-navy);
        opacity: 1 !important;
    }
    .site-header nav a.btn-apply {
        background: var(--scm-red);
        color: #fff;
        border-radius: 999px;
        padding: 8px 18px;
    }
    .site-header nav a.btn-apply:hover {
        background: var(--brass);
        color: var(--ink-navy);
    }
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink-navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) {
    .nav-toggle { display: flex; }
    .site-header nav {
        display: none;
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        position: absolute;
        top: 100%; left: 0;
        background: var(--parchment);
        border-bottom: 1px solid var(--hairline);
        padding: 8px 20px 16px;
        z-index: 50;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .site-header nav.nav-open { display: flex; }
    .site-header { position: relative; }
    .site-header nav a { margin-left: 0; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
    .site-header nav a:last-child { border-bottom: none; }
    .site-header nav a.btn-apply { text-align: center; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--hairline);
}
.hero h1 {
    font-size: 2.6rem;
    max-width: 14ch;
}
.hero p.lead {
    max-width: 52ch;
    font-size: 1.1rem;
    color: var(--charcoal);
}
.hero .crest-wrap { text-align: center; }
.hero .crest-wrap img { max-width: 300px; width: 100%; }

.btn-primary-navy {
    background: var(--ink-navy);
    border: 1px solid var(--ink-navy);
    color: var(--parchment);
    padding: 12px 26px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}
.btn-primary-navy:hover { background: var(--deep-slate); color: var(--parchment); }

.btn-outline-navy {
    border: 1px solid var(--ink-navy);
    color: var(--ink-navy);
    padding: 12px 26px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}
.btn-outline-navy:hover { background: var(--ink-navy); color: var(--parchment); }

/* ---------- Section rule ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.section-kicker {
    color: var(--brass);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* ---------- Program panels ---------- */
.program-panel {
    border: 1px solid var(--hairline);
    padding: 26px;
    height: 100%;
}
.program-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.program-panel .duration {
    color: var(--slate-teal);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.program-panel p { font-size: 0.95rem; color: var(--charcoal); }

/* ---------- Admissions steps (genuine sequence) ---------- */
.steps { counter-reset: step; }
.step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--hairline);
}
.step:first-child { border-top: none; }
.step .num {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.4rem;
    color: var(--brass);
    min-width: 34px;
}
.step h4 { margin-bottom: 4px; font-size: 1.05rem; }
.step p { font-size: 0.92rem; color: var(--charcoal); margin: 0; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 2px;
    border: 1px solid var(--hairline);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ink-navy);
    box-shadow: 0 0 0 3px rgba(18,35,63,0.1);
}
.form-label { font-size: 0.92rem; color: var(--ink-navy); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-navy);
    color: rgba(247,245,240,0.82);
    padding: 48px 0 28px;
    margin-top: 40px;
}
.site-footer h5 {
    color: var(--parchment);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
}
.site-footer a {
    color: rgba(247,245,240,0.82);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.site-footer a:hover { color: var(--brass); }
.site-footer .crest-mini { height: 46px; width: auto; margin-bottom: 12px; }
.site-footer .fine-print {
    border-top: 1px solid rgba(247,245,240,0.15);
    margin-top: 32px;
    padding-top: 20px;
    font-size: 0.82rem;
    color: rgba(247,245,240,0.55);
}

@media (max-width: 767px) {
    .hero h1 { font-size: 2rem; }
    .hero .crest-wrap { margin-top: 32px; }
}

/* ---------- Curriculum tables ---------- */
.pretty-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ink-navy);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}
.pretty-table thead th {
    background: var(--ink-navy);
    color: var(--parchment);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    border: none;
    padding: 10px 12px;
}
.pretty-table tbody td {
    border-bottom: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    padding: 9px 12px;
    font-size: 0.92rem;
}
.pretty-table tbody td:last-child,
.pretty-table thead th:last-child { border-right: none; }
.pretty-table tbody tr:last-child td { border-bottom: none; }
.pretty-table tbody tr:nth-child(even) { background: rgba(27, 26, 94, 0.03); }
.pretty-table tfoot th {
    background: var(--parchment);
    border-top: 2px solid var(--brass);
    color: var(--ink-navy);
    font-size: 0.88rem;
    padding: 9px 12px;
}

/* ---------- Contact page: "Send us a message" panel and form-label pills ---------- */
.program-panel.contact-message-panel {
    background: #111184; /* dark blue */
    border-color: #1E90FF;
}

/* Make supporting text clearly visible */
.contact-message-panel .text-muted {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* Form-label pills */
.contact-message-panel .form-label {
    display: inline-block;
    background: var(--ink-navy);
    color: #FFFFFF;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 999px;
    cursor: default;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-message-panel .form-label:hover,
.contact-message-panel .mb-3:focus-within .form-label {
    background: var(--scm-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* ---------- Mobile dropdown menu: navy with white bold links ---------- */
@media (max-width: 1280px) {
    .site-header nav {
        background: var(--ink-navy);
        border-bottom: 3px solid var(--brass);
    }
    .site-header nav a {
        color: #fff;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .site-header nav a:hover { color: var(--brass); }
    .site-header nav a.btn-apply {
        background: var(--scm-red);
        color: #fff;
        border-radius: 999px;
    }
    .site-header nav a.btn-apply:hover {
        background: var(--brass);
        color: var(--ink-navy);
    }
}
/* Make the Contact page heading visible */
.contact-message-panel h1,
.contact-message-panel h2,
.contact-message-panel h3 {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
