﻿ 
:root {
    --primary: #0B5D42;
    --primary-dark: #063B2D;
    --secondary: #C89B3C;
    --secondary-light: #EFD7A5;
    --bg: #F8F9FA;
    --white: #ffffff;
    --text: #2B2B2B;
    --muted: #6C757D;
    --radius: 20px;
    --shadow: 0 15px 45px rgba(0,0,0,.08);
    --transition: .35s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display',serif;
    font-weight: 700;
}

section {
    padding: 90px 0;
}

/*------------------------------------
                Buttons
        -------------------------------------*/

.btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-success:hover {
        background: var(--primary-dark);
    }

.btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #222;
}

/*------------------------------------
                Cards
        -------------------------------------*/

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(0,0,0,.12);
    }

/*------------------------------------
                Timeline
        -------------------------------------*/

.timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
    border-left: 4px solid var(--primary);
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
}

.timeline-icon {
    position: absolute;
    left: -58px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.timeline-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .timeline-card:hover {
        transform: translateY(-6px);
    }

/*------------------------------------
            Mini Timeline
        -------------------------------------*/

.timeline-simple .item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 28px;
    border-left: 3px solid var(--primary);
}

    .timeline-simple .item::before {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--secondary);
        left: -8px;
        top: 4px;
    }

.timeline-simple .year {
    display: block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
 

.section-title {
    position: relative;
    margin-bottom: 50px;
}

    .section-title::after {
        content: "";
        width: 80px;
        height: 4px;
        background: var(--secondary);
        display: block;
        margin: 20px auto 0;
        border-radius: 5px;
    }
      
/* -------------------- NAVIGATION -------------------- */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    padding: 0.75rem 2rem;
}

.nav-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.seal {
    width: 48px;
    height: 48px;
}

.wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

    .wordmark small {
        display: block;
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        font-size: 0.65rem;
        color: var(--muted);
        letter-spacing: 1px;
    }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
}

    .nav-toggle span {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--primary-dark);
        margin: 6px 0;
        transition: 0.3s;
    }

.links {
    display: flex;
    gap: 2rem;
}

    .links a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
    }

        .links a:hover {
            color: var(--secondary);
        }

/* -------------------- CAROUSEL -------------------- */
.portrait-carousel {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
}

.carousel-track-wrap {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

    .carousel-track img {
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;
        aspect-ratio: 4/5;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: 0.2s;
    z-index: 10;
}

    .carousel-arrow:hover {
        background: #fff;
    }

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: 0.2s;
}

    .carousel-dot.active {
        background: var(--primary);
        width: 28px;
        border-radius: 6px;
    }

.carousel-caption {
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--muted);
    padding-bottom: 12px;
}

/* -------------------- REVEAL (SCROLL ANIMATION) -------------------- */
.reveal {
    /*opacity: 0;*/
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

/* -------------------- REMINISCENCE TOGGLE -------------------- */
#reminText {
    display: none;
}

    #reminText.show,
    #reminText.expanded {
        display: block !important;
    }

/* -------------------- CONTACT FORM NOTE -------------------- */
#formNote {
    display: none;
}

    #formNote.show {
        display: block;
    }

/* -------------------- FOOTER -------------------- */
footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 3rem 2rem;
}

.wrap {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

    .footer-row .wordmark {
        color: #fff;
        font-size: 1.4rem;
    }

    .footer-row nav {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

        .footer-row nav a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.2s;
        }

            .footer-row nav a:hover {
                color: #fff;
            }

.footer-fine {
    margin-top: 2rem;
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: center;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    .site-nav {
        padding: 0.75rem 1rem;
    }

    .wordmark {
        font-size: 1rem;
    }

        .wordmark small {
            font-size: 0.55rem;
        }

    .nav-toggle {
        display: block;
    }

    .links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5rem 2rem;
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
        gap: 1rem;
    }

        .links.open {
            display: flex;
        }

    .portrait-carousel {
        max-width: 100%;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

        .footer-row nav {
            justify-content: center;
        }
    /* Fix floating cards on mobile */
    .position-absolute {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 1rem auto !important;
    }

    .hero-section .position-relative .card.position-absolute {
        max-width: 100% !important;
        width: 100%;
    }

    .hero-section .position-relative {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-section .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hero-section .display-2 {
        font-size: 2.2rem;
    }
}

/* Tablets: the two floating cards were only unstacked below 768px,
           which left them overlapping the carousel between 769–991px. */
@media (max-width: 991px) {
    .hero-section .card.position-absolute {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 1rem auto !important;
        max-width: 100% !important;
        width: 100%;
    }

    .hero-section .col-lg-6 > .position-relative {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
 
