/* ============================================ */
/* CV PAGE STYLES                               */
/* /public_html/css/cv.css                      */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ── PAGE WRAPPER ── */
.cv-page {
    background-color: #faf9f6;
    min-height: 100vh;
    padding-top: 80px; /* clears the fixed navbar */
}

/* ── HERO / INTRO ── */
.cv-hero {
    background-color: #f5f1e8;
    border-bottom: 2px solid #cd853f;
    padding: 60px 20px 50px;
    text-align: center;
}

.cv-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #8b4513;
    margin: 0 0 6px 0;
    letter-spacing: 2px;
}

.cv-hero .cv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: #a0522d;
    margin: 0 0 6px 0;
}

.cv-hero .cv-location {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #6b5a4e;
    margin: 0 0 24px 0;
}

.cv-hero .cv-location i {
    color: #cd853f;
    margin-right: 5px;
}

/* Contact links row */
.cv-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.cv-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1.5px solid #8b4513;
    border-radius: 4px;
    color: #8b4513;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cv-contact-links a:hover {
    background-color: #8b4513;
    color: #faf9f6;
}

.cv-contact-links a i {
    font-size: 1rem;
}

/* ── SECTION WRAPPER ── */
.cv-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px;
    border-bottom: 1px solid #e0d5c5;
}

.cv-section:last-of-type {
    border-bottom: none;
}

/* ── SECTION HEADING ── */
.cv-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 24px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #cd853f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-section-title i {
    color: #cd853f;
    font-size: 1.2rem;
}

/* ── SUMMARY ── */
.cv-summary p {
    font-family: 'Crimson Text', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3a3028;
    margin: 0 0 14px 0;
}

.cv-summary p:last-child {
    margin-bottom: 0;
}

/* ── SKILLS ── */
.cv-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.cv-skill-group h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #a0522d;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.cv-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-skill-tags span {
    background-color: #f5f1e8;
    border: 1px solid #cd853f;
    color: #3a3028;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── CLIENTS / PROJECTS ── */
.cv-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cv-client-card {
    background-color: #f5f1e8;
    border: 1px solid #e0d5c5;
    border-left: 4px solid #8b4513;
    border-radius: 4px;
    padding: 18px 20px;
}

.cv-client-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 6px 0;
}

.cv-client-card .cv-client-type {
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: #a0522d;
    font-style: italic;
    margin: 0 0 10px 0;
}

.cv-client-card p {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #3a3028;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.cv-client-card a {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: #8b4513;
    text-decoration: none;
}

.cv-client-card a:hover {
    text-decoration: underline;
}

/* ── TIMELINE (experience / education) ── */
.cv-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0 24px;
    padding-bottom: 32px;
    position: relative;
}

/* Vertical line */
.cv-timeline-item::before {
    content: '';
    position: absolute;
    left: 151px;
    top: 8px;
    bottom: 0;
    width: 1px;
    background-color: #cd853f;
}

.cv-timeline-item:last-child::before {
    display: none;
}

/* Dot on the line */
.cv-timeline-item::after {
    content: '';
    position: absolute;
    left: 145px;
    top: 7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #8b4513;
    border: 2px solid #faf9f6;
}

.cv-timeline-date {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: #a0522d;
    text-align: right;
    padding-top: 3px;
    padding-right: 20px;
    font-style: italic;
}

.cv-timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #8b4513;
    margin: 0 0 4px 0;
}

.cv-timeline-content .cv-timeline-org {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    color: #a0522d;
    font-style: italic;
    margin: 0 0 8px 0;
}

.cv-timeline-content p {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #3a3028;
    line-height: 1.65;
    margin: 0;
}

/* ── DOWNLOAD BUTTON ── */
.cv-download-row {
    text-align: center;
    padding: 40px 20px 60px;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #8b4513;
    color: #faf9f6;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

.cv-download-btn:hover {
    background-color: #a0522d;
    transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .cv-hero h1 {
        font-size: 2.2rem;
    }

    .cv-timeline-item {
        grid-template-columns: 1fr;
    }

    .cv-timeline-item::before,
    .cv-timeline-item::after {
        display: none;
    }

    .cv-timeline-date {
        text-align: left;
        margin-bottom: 4px;
        color: #cd853f;
    }
}

/* ============================================
   PRINT STYLES — for "Download CV as PDF"
   ============================================ */
@media print {

    /* Hide nav, footer, and the button itself */
    .navbar,
    .footer,
    .cv-download-row {
        display: none !important;
    }

    /* White background, no extra padding */
    body {
        background: white !important;
    }

    /* Pull the hero section up since nav is gone */
    .cv-hero {
        padding-top: 1.5rem !important;
    }

    /* Make sure page breaks don't cut cards in half */
    .cv-client-card,
    .cv-timeline-item,
    .cv-skill-group {
        break-inside: avoid;
    }
}