/* =========================================
   GLOBAL & BASE STYLES
   ========================================= */
   :root {
    --primary-blue: #163654;
    --accent-gold: #d8b688;
    --input-bg-blue: #A8C8D9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    background-color: #faf8f5;
    color: #333333;
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); }

.section-header { font-size: 3rem; }

.text-primary-blue { color: var(--primary-blue, #163654) !important; }
.text-gold         { color: var(--accent-gold, #d8b688) !important; }

/* =========================================
   HEADER, NAVIGATION & BUTTONS
   ========================================= */
#mainNav {
    background-color: transparent !important;
    padding: 25px 0;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease-in-out;
}

.navbar-brand {
    position: relative;
    height: 40px;
    width: 200px;
    border: none !important;
    outline: none !important;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-logo {
    position: absolute;
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
    height: 300px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    filter: brightness(0) invert(1);
}

#mainNav.scrolled {
    background-color: #ffffff !important;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #d8b688 !important;
}

#mainNav.scrolled .nav-logo {
    height: 230px;
    filter: none;
}

#mainNav .navbar-nav { transform: translateX(50px); }

#mainNav .nav-link,
#mainNav .nav-icon-btn {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

#mainNav .nav-link {
    font-size: 1.4rem;
    padding: 0.5rem 1rem !important;
}

#mainNav .nav-icon-btn {
    font-size: 1.7rem;
    background: transparent;
    border: none;
}

#mainNav.scrolled .nav-link,
#mainNav.scrolled .nav-icon-btn { color: var(--primary-blue, #163654) !important; }

.header-right-actions { transform: translateX(80px); }

.btn-header-book {
    background-color: #d8b688;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-header-book:hover {
    background-color: #c4a173;
    color: #ffffff;
    transform: translateY(-2px);
}

#mainNav .nav-link.active {
    color: #d8b688 !important;
    text-shadow: 0 0 10px rgba(216, 182, 136, 0.3);
}

#mainNav.scrolled .nav-link.active { color: #d8b688 !important; }

#mainNav .nav-link:hover,
#mainNav .nav-icon-btn:hover { transform: translateY(-2px); }

/* =========================================
   TOP HERO SECTION
   ========================================= */
.hero-section {
    height: 70vh;
    min-height: 350px;
    width: 100%;
    background-image:
        linear-gradient(to bottom, rgba(250, 248, 245, 0) 60%, rgba(250, 248, 245, 1) 100%),
        url('../images/bg-about.jpg');
    background-size: cover !important;
    background-position: center 60%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .7) 0%,
        rgba(0, 0, 0, .4) 100%,
        rgba(250, 248, 245, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #d8b688;
    border-radius: 2px;
    animation: swipeUnderline 1s ease-in-out forwards;
}

@keyframes swipeUnderline {
    0%   { transform: scaleX(0); transform-origin: left; }
    40%  { transform: scaleX(1); transform-origin: left; }
    60%  { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* =========================================
   PRE-FOOTER CTA SECTION
   ========================================= */
.cta-floating-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    width: 100%;
    background-image: url('../images/main-bg.jpg');
    background-size: cover !important;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 245, .5) 0%,
        rgba(250, 248, 245, .2) 10%,
        rgba(0, 0, 0, .8) 100%
    );
    z-index: 1;
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.90);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-floating-heading {
    color: var(--primary-blue, #163654);
    font-size: 2.8rem;
    line-height: 1.2;
}

.cta-floating-subtext {
    color: #444444;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .2s; }
.delay-2 { transition-delay: .4s; }

/* =========================================
   PREMIUM SERVICE CARDS
   ========================================= */
.service-card-premium {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--accent-gold);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 54, 84, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    background: rgba(216, 182, 136, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.service-card-premium:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.card-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 70px;
}

.service-sub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-sub-list li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-sub-list li i {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-top: 4px;
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.service-card-premium:hover .btn-outline-gold,
.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
}

/* =========================================
   IMAGE SERVICE CARDS
   ========================================= */
.service-card-image {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    border-top: 5px solid var(--accent-gold);
}

.service-card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 54, 84, 0.15);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-image:hover .card-img-wrapper img { transform: scale(1.08); }

.card-content-wrap {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-action-link {
    margin-top: auto;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-card-image:hover .card-action-link { gap: 15px; }

/* =========================================
   SERVICE MODAL (POPUP)
   ========================================= */
.modal-content-premium {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1055;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.btn-close-custom:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #ff4d4d;
}

#modalCarousel {
    width: 100%;
    height: 350px;
    background: #000;
}

#modalCarousel img {
    width: 100%;
    height: 350px;
    object-fit: contain;
}

.carousel-item {
    background: #000;
    height: 350px;
}

.sub-service-item h5 {
    font-size: 1.15rem;
    font-weight: 700;
}

.sub-service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQs Accordion */
.premium-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary-blue);
    background-color: transparent;
    padding: 1.2rem 0;
    box-shadow: none !important;
}

.premium-accordion .accordion-button:not(.collapsed) { color: var(--accent-gold); }

.premium-accordion .accordion-button::after {
    filter: invert(34%) sepia(31%) saturate(543%) hue-rotate(170deg) brightness(92%) contrast(87%);
}

.premium-accordion .accordion-body {
    padding: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   AUTH MODALS & PROFILE MENU
   ========================================= */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.custom-modal-content { background-color: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 500px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease-out; max-height: 90vh; overflow-y: auto; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; font-weight: bold; cursor: pointer; color: #555; z-index: 10; }
.custom-modal-content h2 { color: var(--primary-blue, #163654); text-align: center; margin-bottom: 25px; font-size: 2rem; }
.custom-input-group label { display: block; color: var(--primary-blue, #163654); font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.custom-input-group input { width: 100%; padding: 12px; margin-bottom: 15px; border: none; background-color: var(--input-bg-blue); color: #000; font-family: var(--font-body); font-size: 1rem; border-radius: 0; }
.custom-input-group input:focus { outline: 2px solid var(--accent-gold); }
.form-row-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.modal-submit-btn { display: block; width: 150px; margin: 20px auto; padding: 10px; background: transparent; border: 2px solid var(--accent-gold); color: var(--accent-gold); font-weight: bold; border-radius: 25px; cursor: pointer; font-size: 1rem; transition: 0.3s; text-transform: uppercase; }
.modal-submit-btn:hover { background-color: var(--accent-gold); color: white; }
.captcha-box { border: 1px solid var(--accent-gold); padding: 10px; text-align: center; color: var(--primary-blue, #163654); margin-bottom: 15px; display: flex; justify-content: center; }
.switch-text { text-align: center; font-size: 0.85rem; margin-top: 10px; color: #666; }
.switch-text a { color: var(--primary-blue, #163654); font-weight: bold; text-decoration: none; }

.profile-menu { display: none; position: fixed; top: 70px; right: 50px; background-color: white; width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 10px; border-top: 4px solid var(--accent-gold); z-index: 2001; padding: 20px; text-align: center; animation: fadeIn 0.2s ease-out; }
.profile-menu h5 { color: var(--primary-blue, #163654); margin-bottom: 5px; font-size: 1.1rem; }
.profile-menu span { color: #666; font-size: 0.9rem; display: block; margin-bottom: 20px; }
.btn-logout { border: 1px solid #ff4d4d; color: #ff4d4d; background: white; padding: 8px 30px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; transition: 0.3s; width: 100%; }
.btn-logout:hover { background-color: #ff4d4d; color: white; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   GLOBAL FOOTER SECTION
   ========================================= */
.site-footer {
    background-color: #163654;
    color: #ffffff;
    border-top: 3px solid #d8b688;
    padding: 0;
}

/* Logo & Brand Column */
.footer-col-brand { padding-right: 70px; }

.footer-logo {
    width: 350px;
    height: 270px;
    object-fit: contain;
    display: block;
    margin: -25px auto -50px auto !important;
}

.footer-brand-text {
    margin-left: 0 !important;
    margin-top: 10px;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    position: relative;
    z-index: 50;
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover { transform: translateY(-5px); }

/* Common Text & Heading Styles */
.footer-heading {
    color: #d8b688;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subheading {
    color: #d8b688;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover { color: #d8b688; }

/* Navigation Links */
.footer-links {
    list-style: none;
    padding: 10px;
    line-height: 40px;
    font-size: 1.2rem;
    margin-left: -15px;
    margin-top: -13px;
}

.footer-links li { margin-bottom: 0.8rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-links a.active { color: #d8b688; }

.footer-links a:hover {
    transform: translateY(-5px) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Column Structure & Spacing */
.footer-col-pages,
.footer-col-eastwood,
.footer-col-stamesa { margin-top: 50px; }

.footer-col-pages {
    padding-left: 40px;
    padding-right: 30px;
}

.footer-col-eastwood {
    margin-left: -30px;
    padding-left: 40px;
    border-left: 1px solid rgba(216, 182, 136, 0.2);
}

.footer-col-stamesa { padding-left: 90px; }

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .cta-floating-heading { font-size: 2.2rem; }
    .cta-floating-section { min-height: 500px; }

    .footer-col-pages,
    .footer-col-eastwood,
    .footer-col-stamesa {
        padding-left: 15px;
        text-align: center;
        margin-bottom: 30px;
        margin-left: 0;
        border-left: none;
    }
    .footer-col-brand { padding-right: 0; }
    .footer-links a:hover { padding-left: 0; }
    .profile-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(280px, calc(100vw - 24px));
        box-sizing: border-box;
    }
}   