/* components.css – reusable components */

/* Global top navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 1000;
}

.site-header.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f0f0f;
    text-decoration: none;
}

.site-brand img {
    width: 28px;
    height: 28px;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #0f0f0f;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

.has-fixed-header {
    padding-top: 72px;
}

@media (max-width: 640px) {
    .site-header {
        padding: 10px 16px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn {
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.btn-outline {
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Simple pill tag (for later use) */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.04);
}

/* Card component (for services later) */
.card {
    border-radius: var(--radius-lg);
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

/* ------------------------- */
/* Service page shared styles */
/* ------------------------- */

.service-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.service-wrapper {
    max-width: 900px;
    width: 100%;
}

.service-header {
    margin-bottom: 28px;
}

.service-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.6;
    margin-bottom: 6px;
}

.service-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.service-subtitle {
    opacity: 0.8;
    max-width: 620px;
    line-height: 1.6;
}

.service-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
}

/* Add spacing between stacked service sections */
.service-body:not(:first-of-type) {
    margin-top: 60px;
}

@media (max-width: 800px) {
    .service-body {
        grid-template-columns: 1fr;
    }
}

.service-card-detail {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 24px 26px;
}

.service-card-detail h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.service-card-detail ul {
    padding-left: 18px;
    margin: 0;
    line-height: 1.6;
}

.service-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.service-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.75;
    text-decoration: none;
    margin-top: 20px;
}

.back-link:hover {
    opacity: 1;
}

/* Simple modal for inline notices */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    width: min(520px, 100%);
    padding: 20px;
}

.edu-modal {
    width: min(420px, 90%);
}

/* -------------------------------------- */
/* Local M1 – Timeline Layout (Option B) */
/* -------------------------------------- */

.lm1-timeline {
    position: relative;
    margin-top: 100px;
    margin-bottom: 80px;
}

.lm1-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

.lm1-timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin: 60px 0;
    position: relative;
}

.lm1-timeline-card {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 26px 28px;
}

.lm1-timeline-item.lm1-left .lm1-timeline-card {
    grid-column: 1;
}

.lm1-timeline-item.lm1-right .lm1-timeline-card {
    grid-column: 3;
}

.lm1-timeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    grid-column: 2;
    z-index: 5;
}

@media (max-width: 850px) {
    .lm1-timeline {
        margin-top: 60px;
    }

    .lm1-timeline::before {
        display: none;
    }

    .lm1-timeline-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .lm1-timeline-icon {
        margin: 0 auto 18px auto;
    }

    .lm1-timeline-item.lm1-left .lm1-timeline-card,
    .lm1-timeline-item.lm1-right .lm1-timeline-card {
        grid-column: 1;
    }
}
