@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Updated to match the new elegant Gold/Bronze & Dark theme */
    --primary-color: #A87C38;
    --dark-color: #1A1814;
    --text-dark: #333333;
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --navbar-glass: rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
}

/* =========================
   Navbar
========================= */

/* Navbar should never inherit AOS hidden states */
.navbar,
.navbar .container,
.navbar .navbar-brand,
.navbar .navbar-toggler,
.navbar .navbar-toggler-icon,
.navbar .navbar-toggler-icon::before,
.navbar .navbar-toggler-icon::after,
.navbar .navbar-collapse {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

.navbar {
    --nav-color: #ffffff;
    --toggler-color: #ffffff;
    padding: 1.5rem 0;
    background: transparent;
    transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.home-page .navbar.scrolled,
body:not(.home-page) .navbar {
    --nav-color: var(--dark-color);
    --toggler-color: var(--dark-color);
    background: var(--navbar-glass);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    padding: 0.85rem 0;
}

.navbar-brand img {
    height: 50px;
    /* We added 'filter' to the transition so the color fade is smooth */
    transition: height 0.35s ease, filter 0.35s ease;
}

/* 1. Make the logo pure white ONLY on the home page BEFORE scrolling */
.home-page .navbar:not(.scrolled) .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* 2. Shrink the logo and remove the white filter when scrolled or on internal pages */
.home-page .navbar.scrolled .navbar-brand img,
body:not(.home-page) .navbar .navbar-brand img {
    height: 40px;
    filter: none; /* Reverts to your original dark gold logo */
}

.navbar-brand,
.nav-link {
    color: var(--nav-color) !important;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -0.15rem;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

/* =========================
   Pure CSS Hamburger
========================= */
.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    padding: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    position: relative;
    background-image: none !important;
    background-color: var(--toggler-color);
    border-radius: 999px;
}

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 24px;
        height: 2px;
        background-color: var(--toggler-color);
        border-radius: 999px;
    }

    .navbar-toggler-icon::before {
        top: -8px;
    }

    .navbar-toggler-icon::after {
        top: 8px;
    }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

/* =========================
   Mobile Menu
========================= */
@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 1.25rem;
        border-radius: 14px;
        margin-top: 0.85rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    }

        .navbar-collapse.show .nav-link,
        .navbar-collapse.collapsing .nav-link {
            color: var(--dark-color) !important;
            padding: 0.75rem 0;
        }

            .navbar-collapse.show .nav-link::after,
            .navbar-collapse.collapsing .nav-link::after {
                bottom: 0.35rem;
            }

        .navbar-collapse.show .btn,
        .navbar-collapse.collapsing .btn {
            width: 100%;
        }
}

/* =========================
   Hero
========================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden; /* Keeps the video contained within the section */
    background-color: var(--dark-color); /* Fallback color while video loads */
}

/* Make the video cover the entire section */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

/* Elegant dark tint over the video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 24, 20, 0.70); /* Maintains your new dark tone */
    z-index: 1;
}

/* Ensure the text sits on top of the video and overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.hero-text {
    max-width: 700px;
}

/* =========================
   Buttons
========================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white); /* White text looks better on the bronze button */
    font-weight: 600;
    border-radius: 0;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--dark-color);
        border-color: var(--dark-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
    }

.btn-outline-light {
    border-radius: 0;
    padding: 12px 30px;
}

.page-header {
    background: var(--light-bg);
    padding: 150px 0 80px;
    text-align: center;
}

/* =========================
   Sections / Cards
========================= */
.section-padding {
    padding: 100px 0;
}

.feature-card {
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

.icon-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pricing-card {
    border: 1px solid #eeeeee;
    padding: 3rem 2rem;
    text-align: center;
}

    .pricing-card h2 {
        color: var(--primary-color);
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }

    .pricing-card ul li {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

.vendor-logo {
    max-height: 80px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.service-card {
    border-radius: 0;
}

.service-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-note {
    background: #ffffff;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

/* =========================
   About Page
========================= */
.about-highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.about-legacy-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.vendor-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

    .vendor-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transform: translateY(-5px);
    }

.vendor-icon {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* =========================
   Shared Utilities
========================= */
.footer-logo-invert {
    height: 40px;
    /* Optional: Since the new logo has dark text, you might want it to remain white on the dark footer. The invert filter will still work beautifully. */
    filter: brightness(0) invert(1);
}

/* =========================
   Contact Page
========================= */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-info-content h5 {
    margin-bottom: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 300px;
    margin-top: 2rem;
}

.map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-card {
    border-radius: 0;
}

/* =========================
   Blog & Article Pages
========================= */
.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

.blog-card-img-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--dark-color);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

    .blog-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .blog-title a:hover {
            color: var(--primary-color);
        }

/* Article Page Specifics */
.article-header {
    background: var(--light-bg);
    padding: 150px 0 60px;
    text-align: center;
}

.article-hero-img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: var(--dark-color);
        margin-top: 2.5rem;
        margin-bottom: 1.2rem;
        font-family: 'Playfair Display', serif;
    }

    .article-content blockquote {
        border-left: 4px solid var(--primary-color);
        padding-left: 1.5rem;
        font-style: italic;
        margin: 2.5rem 0;
        color: var(--dark-color);
        font-size: 1.25rem;
        background: var(--light-bg);
        padding: 1.5rem;
        border-radius: 0 8px 8px 0;
    }

.author-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    border: 1px solid #eeeeee;
}

    .author-box img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }

@media (max-width: 575.98px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Reading Progress Bar (For Article Page) */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0%;
}

/* =========================
   Small screens
========================= */
@media (max-width: 767.98px) {
    .navbar {
        padding: 1rem 0;
    }

    .section-padding {
        padding: 70px 0;
    }

    .hero-section .btn {
        width: 100%;
    }
}
