:root {
    --bs-heritage-burgundy: #8B2635;
    --bs-warm-gold: #D4860A;
    --bs-cream-white: #F9F7F4;
    --bs-charcoal: #333333;
    --bs-light-gray: #EAEAEA;
    --bs-font-serif: 'Lora', serif;
    --bs-font-sans-serif: 'Inter', sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    line-height: 1.7;
    color: var(--bs-charcoal);
    background-color: var(--bs-cream-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--bs-font-serif);
    font-weight: 700;
}

.section-padding {
    padding: 100px 0;
}

.section-bg-light {
    background-color: #fff;
}

.section-bg-dark {
    background-color: var(--bs-charcoal);
    color: #fff;
}

.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark p {
    color: #fff;
}

.btn-primary {
    background-color: var(--bs-heritage-burgundy);
    border-color: var(--bs-heritage-burgundy);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6e1e2a;
    border-color: #6e1e2a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--bs-warm-gold);
    border-color: var(--bs-warm-gold);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #b8750a;
    border-color: #b8750a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: var(--bs-font-serif);
    font-weight: 700;
    color: var(--bs-heritage-burgundy) !important;
}

/* Navbar Active State */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
    color: var(--bs-heritage-burgundy) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--bs-heritage-burgundy);
    border-radius: 1px;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-heritage-burgundy) !important;
}

/* Navbar Button Styling */
.navbar-nav .btn-primary {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Remove active state styling from button */
.navbar-nav .btn.active::after {
    display: none;
}

.brand-accent {
    color: var(--bs-warm-gold);
}

#hero {
    position: relative;
    background-image: linear-gradient(to right top, var(--bs-warm-gold) 2%, #FAD7A0 15%, var(--bs-cream-white) 35%, transparent), url('../assets/images/boston-city-aerial-view.jpg');
    background-size: cover;
    background-position: center;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

#hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--bs-heritage-burgundy);
    line-height: 1.2;
}

.image-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.image-card img {
    transition: transform 0.4s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.story-feature {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--bs-light-gray);
    height: 100%;
}

.story-feature .icon {
    font-size: 2.5rem;
    color: var(--bs-heritage-burgundy);
    margin-bottom: 1rem;
}

#mission {
    background-image: linear-gradient(rgba(45, 45, 45, 0.7), rgba(45, 45, 45, 0.7)), url('https://i.imgur.com/gYq8S7a.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

#mission blockquote {
    font-family: var(--bs-font-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.5;
    color: #fff;
    border-left: 5px solid var(--bs-warm-gold);
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.value-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--bs-light-gray);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--bs-heritage-burgundy);
    margin-bottom: 1rem;
}

.service-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--bs-light-gray);
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--bs-heritage-burgundy);
    margin-bottom: 1rem;
}

#advantage-sticky-parent {
    position: relative;
}

.advantage-sticky-visual {
    position: sticky;
    top: 120px;
    height: 70vh;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.advantage-sticky-visual .advantage-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    opacity: 0;
    transform: scale(1.05);
}

.advantage-sticky-visual .advantage-image.active {
    opacity: 1;
    transform: scale(1);
}

.advantage-text-step {
    padding: 3rem 0;
    min-height: 400px;
}

.advantage-text-step h3 {
    color: var(--bs-heritage-burgundy);
}

@media (max-width: 991.98px) {
    .advantage-sticky-visual {
        position: relative;
        top: auto;
        height: 300px;
        margin-bottom: 2rem;
    }

    .advantage-text-step {
        padding: 0;
        min-height: auto;
        margin-bottom: 4rem;
    }
}

#testimonials {
    background-color: #fff;
}

.testimonial-container {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
}

.testimonial-content.active {
    opacity: 1;
}

.testimonial-quote {
    font-family: var(--bs-font-serif);
    font-size: 1.75rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--bs-charcoal);
    border-left: 4px solid var(--bs-warm-gold);
    padding-left: 2rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-nav {
    margin-top: 2rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#testimonial-column:hover .testimonial-nav {
    opacity: 1;
}

.testimonial-nav button {
    background: none;
    border: 1px solid var(--bs-light-gray);
    color: var(--bs-charcoal);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonial-nav button:hover {
    background-color: var(--bs-heritage-burgundy);
    border-color: var(--bs-heritage-burgundy);
    color: #fff;
}

.comparison-table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background-color: var(--bs-charcoal);
    color: #fff;
}

.comparison-table .highlight {
    background-color: rgba(212, 134, 10, 0.05);
}

#final-cta {
    background-image: linear-gradient(rgba(45, 45, 45, 0.8), rgba(45, 45, 45, 0.8)), url('https://i.imgur.com/w4p8c2v.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#final-cta h2, #final-cta p {
    color: #fff;
}

.contact-form {
    background: #444;
    padding: 2.5rem;
    border-radius: 1rem;
}

.form-control {
    background-color: #555;
    border: 1px solid #666;
    color: #fff;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #555;
    border-color: var(--bs-warm-gold);
    box-shadow: none;
    color: #fff;
}

.form-control::placeholder {
    color: #aaa;
}

footer {
    background-color: #222;
    color: #aaa;
    padding: 4rem 0 2rem;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

footer .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Community Section H3 Styling */
#community h3 {
    font-size: 1.75rem; /* Increased size */
    font-family: var(--bs-font-serif);
    font-weight: 700;
    color: var(--bs-heritage-burgundy);
}

#community h3 span {
    color: var(--bs-warm-gold); /* Highlighted text */
}

/* Remove vertical scroll on mobile */
html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    footer .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }

    footer .footer-bottom {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .footer-bottom p {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    #story .container,
    #community .container {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
}
