:root {
    --text: #1f2937;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8fafc;

    /* Tuition-provider sector palette: deep teal + warm amber -- distinct
       from Alfera's own navy/teal corporate palette, chosen to feel warm,
       approachable, and education-appropriate rather than corporate. */
    --deep: #123a3a;
    --deep-dark: #0a2323;
    --amber: #d99a44;
    --amber-dark: #c07f2a;

    --accent: var(--deep);
    --accent-bright: var(--amber-dark);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.brand span {
    color: var(--accent-bright);
    font-weight: 500;
}

.brand:hover {
    text-decoration: none;
}

.site-header nav a {
    margin-left: 28px;
    color: var(--text-muted);
    font-size: 15px;
}

.site-header nav a:hover {
    color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 24px 80px;
    text-align: center;
    background-color: var(--deep-dark);
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 40px;
    margin: 0 0 16px;
    line-height: 1.2;
    color: #ffffff;
}

.hero p.subhead {
    font-size: 18px;
    color: #dce7e7;
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-bright);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--amber);
}

/* ---------- Sections ---------- */

section.page-section {
    padding: 72px 24px;
}

section.page-section.alt {
    background: var(--bg-soft);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: 28px;
    margin: 0 0 12px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* ---------- Service / subject cards ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    background: var(--bg);
}

.service-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--text);
}

.service-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- About (photo + bio) ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.profile-photo img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.about-content p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 16px;
}

.about-content .section-head {
    text-align: left;
    margin: 0 0 20px;
    max-width: none;
}

@media (max-width: 720px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .profile-photo {
        max-width: 220px;
        margin: 0 auto;
    }
    .about-content .section-head {
        text-align: center;
    }
}

/* ---------- Contact / closing CTA ---------- */

.contact-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
}

.site-footer p {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.site-footer nav a {
    margin: 0 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
    }
    .site-header nav a {
        margin-left: 16px;
        font-size: 14px;
    }
}
