@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* CSS Variables - Based on Style Guide */
:root {
    /* Primary Palette */
    --coral: #F16978;
    --sapphire: #2A50A3;
    --violet: #C8B6D9;
    --meadow: #A8C0A1;
    --butter: #FBEEB5;

    /* Complementary Palette */
    --muted-rose: #C0A7A1;
    --charcoal: #3D3D3D;
    --porcelain: #F4ECE6;

    /* Legacy/Alias variables for backward compatibility */
    --accent: #2A50A3;
    /* Sapphire Blue */
    --muted: #C0A7A1;
    /* Muted Rose */
    --life: #C8B6D9;
    /* Wistful Violet */
    --health: #F16978;
    /* Vibrant Coral */
    --career: #2A50A3;
    /* Sapphire Blue */
    --purple-light: #C8B6D9;
    /* Wistful Violet */
}

/* Base Styles */
html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--porcelain);
    color: var(--sapphire);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Layout */
header {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    max-width: 180px;
    height: auto;
}

/* Navigation */
nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    /* transition: color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease; */
}

nav a.active,
nav a:hover {
    color: color-mix(in srgb, var(--accent) 70%, black);
    /* text-decoration: underline; */
    border-bottom: 2px solid;
}

nav a.btn-primary {
    background: var(--coral);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

nav a.btn-primary:hover,
nav a.btn-primary.active {
    background-color: color-mix(in srgb, var(--coral) 95%, black);
    transform: translateY(-2px);
    box-shadow: none;
    text-decoration: none;
    border-bottom: none;
}

section,
footer {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    box-sizing: border-box;
}

footer {
    padding: 0 20px;
}

.site-content {
    flex: 1 1 auto;
}

/* Typography */
.hero {
    box-sizing: border-box;
}

.hero h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 46px;
    color: var(--accent);
    margin: 0 0 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-icon {
    font-size: 48px;
}

.lead {
    color: var(--accent);
    margin: 0 0 32px;
    max-width: 1100px;
    font-size: 18px;
}

/* Pillar Detail Pages Grid */
.pillars-grid.detail {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-left: 0;
    margin-right: 0;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pillar-item .pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pillar-item .pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pillar-item.life-color .pillar-icon {
    background-color: var(--life);
}

.pillar-item.health-color .pillar-icon {
    background-color: var(--health);
}

.pillar-item.career-color .pillar-icon {
    background-color: var(--career);
}

.pillar-item h2 {
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
}

.pillar-item p {
    font-size: 16px;
    color: var(--accent);
    line-height: 1.7;
    margin: 0;
}

.pillar-item-full {
    grid-column: 1 / -1;
    text-align: center;
}

/* Tone Section */
.tone-section {
    margin-top: 24px;
}

.tone-section h2 {
    font-size: 22px;
    color: var(--accent);
    margin: 0 0 12px;
    font-weight: 700;
}

.tone-section p {
    font-size: 16px;
    color: var(--accent);
    line-height: 1.7;
    margin: 0;
}

/* Content Boxes (for elevate-together page) */
.content-box {
    background: var(--purple-light);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 32px;
}

.content-box h2 {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: var(--accent);
    margin: 0 0 10px;
    font-weight: 700;
}

.box-icon {
    font-size: 28px;
}

.content-box p {
    font-size: 18px;
    color: var(--accent);
    line-height: 1.7;
    margin: 0;
}

.content-box strong {
    font-weight: 700;
}

.content-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.content-box li {
    font-size: 18px;
    color: var(--accent);
    line-height: 1.8;
    margin: 16px 0;
    padding-left: 24px;
    position: relative;
}

.content-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .pillars-grid.detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bottom-sections {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 16px;
    }

    .hero-image {
        flex-direction: column;
        gap: 16px;
    }

    .pillar-item-full {
        grid-column: 1;
    }

    .content-box h2 {
        font-size: 30px;
    }

    .content-box p,
    .content-box li {
        font-size: 16px;
    }
}

@media (max-width: 750px) {
    header {
        padding: 15px 20px 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    nav a:first-child {
        display: none;
    }
}

@media (max-width: 600px) {
    header {
        padding: 15px 20px 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        max-width: 140px;
    }

    nav {
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    nav a:first-child {
        display: none;
    }

    .hero h1 {
        font-size: 28px;
    }

    .lead {
        font-size: 15px;
    }

    .pillar-card {
        padding: 20px 16px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .pillar-item h2 {
        font-size: 24px;
    }

    .content-box {
        padding: 24px 20px;
    }

    .content-box h2 {
        font-size: 24px;
    }

    .content-box p,
    .content-box li {
        font-size: 15px;
    }
}