:root {
    --brand-teal: #076b6b;
    --brand-blue: #1f5b8b;
}

/* Custom styles */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../images/brand-background.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: -1;
}

/* Add a nice gradient overlay for images */
.image-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}


.expanded {
    -webkit-line-clamp: unset; /* Remove the clamp */
    display: block; /* Ensure the text expands fully */
}

/* Custom animations */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Add brand color transitions */
.brand-hover {
    transition: color 0.3s ease;
}

.brand-hover:hover {
    color: var(--brand-teal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Swiper custom styles */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--brand-teal);
}

/* Fade effect for slider */
.hero-swiper .swiper-slide img {
    transition: transform 1.5s ease;
}

.hero-swiper .swiper-slide-active img {
    transform: scale(1.1);
}

/* Ensure slider text is above the overlay */
.swiper-slide .text-white {
    position: relative;
    z-index: 2;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-teal), var(--brand-blue));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--brand-teal);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--brand-blue);
    transform: translateX(0.75rem);
}

.timeline-content {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(0.5rem);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--brand-blue);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Navigation styles */
nav.main-nav {
    position: relative;
    z-index: 100;
}

/* Active page indicator on desktop nav — bright teal for contrast against brand-blue background */
nav.main-nav .hidden.md\:flex a.active-link {
    color: #5ce0d6;
    font-weight: 600;
}

nav.main-nav .hidden.md\:flex a.active-link:hover {
    color: #5ce0d6;
}

/* Hamburger button */
.mobile-menu-button {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.mobile-menu-button:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hamburger bars */
.hamburger-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-button.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #1f5b8b;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 50;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
}

.mobile-menu.is-open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:active,
.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.mobile-menu a.active-link {
    background-color: rgba(7, 107, 107, 0.3);
    color: #5ce0d6;
}

.mobile-menu svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Menu backdrop overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -2rem;
        width: 1.25rem;
        height: 1.25rem;
        transform: translateX(0.5rem);
    }
}