/* ========================================= */
/* --- 1. GLOBAL VARIABLES & RESETS -------- */
/* ========================================= */
:root {
    --brand-blue: #0A3B66; 
    --brand-gold: #C49A6C; 
    --text-dark: #222222;
    --text-gray: #777777;
    --bg-light: #F8F9FA;
}

*, *::before, *::after {
    box-sizing: border-box; /* Prevents padding from breaking width and causing horizontal scroll */
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
    width: 100%;
    overflow: hidden; /* Hides horizontal overflow safely without causing double scrollbars */
    margin: 0;
    padding: 0;
    position: relative;
}

/* ========================================= */
/* --- 2. TYPOGRAPHY ----------------------- */
/* ========================================= */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-blue);
}

.subtitle-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--brand-gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* ========================================= */
/* --- 3. NAVBAR --------------------------- */
/* ========================================= */
.glass-nav {
    background: rgba(10, 59, 102, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: background 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 59, 102, 0.9);
}

.navbar-brand img {
    height: 80px; 
    width: auto;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active { 
    color: var(--brand-gold) !important; 
}

/* ========================================= */
/* --- 4. BUTTONS -------------------------- */
/* ========================================= */
.btn-gold-solid {
    font-family: 'Montserrat', sans-serif;
    background: var(--brand-gold);
    color: #fff;
    border: 1px solid var(--brand-gold);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold-solid:hover { 
    background: transparent; 
    color: var(--brand-gold); 
}

.btn-outline-white {
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    margin-top: 10px;
}

.btn-outline-white:hover { 
    background: #fff; 
    color: var(--brand-blue); 
}

/* ========================================= */
/* --- 5. HERO & CAROUSEL ------------------ */
/* ========================================= */
.hero-section {
    height: 68vh; /* Default Home Page Height */
    background: linear-gradient(rgba(10, 59, 102, 0.5), rgba(10, 59, 102, 0.8)), url('assets/images/hero-bg.jpg') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}
.hero-section.home {
    height: 100vh; /* Default Home Page Height */}

/* Inner pages (About, Services, Gallery, etc.) */
.hero-section:not(:first-of-type), .hero-inner {
    height: 60vh; 
    min-height: 500px;
}

.hero-text { margin-top: 60px; }
.hero-text h1 {
    color: #fff;
    font-size: 3.5rem;
    letter-spacing: 4px;
    margin: 15px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.hero-text p {
    color: #f8f9fa;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}
.hero-text .subtitle-serif { color: var(--brand-gold); font-size: 1.5rem; }

.hero-contact {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero-contact i { color: var(--brand-gold); margin-right: 5px; }

/* Bootstrap Carousel Hero Additions */
.hero-carousel, .hero-carousel .carousel-inner, .hero-carousel .carousel-item {
    height: 100%;
    width: 100%;
}
.hero-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(10, 59, 102, 0.5), rgba(10, 59, 102, 0.8));
    z-index: 1;
}
.hero-carousel .carousel-caption {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0 15px;
}

/* ========================================= */
/* --- 6. WAVY SEPARATORS ------------------ */
/* ========================================= */
.cloud-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 1;
    background: url('assets/images/wave-bottom.png') no-repeat bottom center;
    background-size: 100% 100%;
    z-index: 10;
}

.cloud-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 1;
    background: url('assets/images/wave-top.png') no-repeat top center;
    background-size: 100% 100%;
    z-index: 10;
}

/* ========================================= */
/* --- 7. GENERAL SECTIONS & TITLES -------- */
/* ========================================= */
.section-padding { padding: 100px 0; }

.bg-custom-pattern {
    background: url('assets/images/bg-01.png') center/cover no-repeat;
    position: relative;
}

.title-group { margin-bottom: 30px; }
.title-group h2 { font-size: 2.8rem; position: relative; display: inline-block; }
.title-group h2::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 40px;
    height: 2px;
    background-color: var(--brand-blue);
}
.title-group.no-line h2::after { display: none; }

/* ========================================= */
/* --- 8. CARDS, LISTS & COMPONENTS -------- */
/* ========================================= */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}
.feature-list li i { color: var(--brand-gold); margin-right: 15px; font-size: 1.2rem; }

.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
.contact-info-list li i { 
    color: var(--brand-gold); 
    margin-right: 20px; 
    font-size: 1.5rem; 
    margin-top: 3px;
}
.contact-info-list li span {
    display: block;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 5px;
}

.story-overlap {
    background: #F4F4F4;
    padding: 60px;
    max-width: 85%;
    margin: -100px auto 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid var(--brand-gold);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.service-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 4px 4px 0 0;
    border: 1px solid #eee;
}

/* --- OWL CAROUSEL STYLES --- */
.carousel-area {
    background-color: var(--brand-blue);
    padding: 100px 0 120px;
    color: #fff;
}
.carousel-area h2 { color: #fff; text-align: center; margin-bottom: 20px;}
.carousel-area h2::after { display: none; }

.owl-carousel .item { background: #fff; transition: 0.4s; height: 100%; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.owl-carousel .item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.owl-carousel .item img { width: 100%; height: 250px; object-fit: cover; }
.owl-carousel .item-content { padding: 25px; flex-grow: 1; text-align: center; }
.owl-carousel .item h5 { color: var(--brand-blue); font-size: 1.3rem; margin-bottom: 15px; }
.owl-carousel .item p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; }

.owl-nav button {
    background: transparent !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 3rem !important;
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    transition: 0.3s;
}
.owl-nav button:hover { color: var(--brand-gold) !important; }
.owl-prev { left: -50px; }
.owl-next { right: -50px; }

/* ========================================= */
/* --- 9. FORMS ---------------------------- */
/* ========================================= */
.enquiry-form .form-control, .enquiry-form .form-select {
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: none;
}

/* ========================================= */
/* --- 10. ADVANCED GALLERY ---------------- */
/* ========================================= */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--brand-gold);
    color: var(--brand-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--brand-gold);
    color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, opacity 0.4s;
    display: block; 
}
.gallery-item.hide { display: none; }
.gallery-item:hover { transform: translateY(-5px); }

/* Landscape 16:9 Aspect Ratio */
.landscape-media-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
}
.landscape-media-wrapper video, .landscape-media-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* Legacy Reels / Portrait Video Player */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.reel-player {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; 
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--brand-gold);
}
.reel-player:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(196, 154, 108, 0.3);
}
.reel-player video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 12px;
}

/* Portrait Modal Wrapper */
.modal-dialog-portrait {
    max-width: 400px;
    margin: 1.75rem auto;
}
.portrait-video-wrapper {
    position: relative;
    padding-bottom: 177.77%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.portrait-video-wrapper video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* ========================================= */
/* --- 11. CTA & FOOTER -------------------- */
/* ========================================= */
.cta-section {
    background: linear-gradient(rgba(10, 59, 102, 0.9), rgba(10, 59, 102, 0.95)), url('assets/images/hero-bg.jpg') center/cover fixed;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 5;
}
.cta-section h2 { color: #fff; font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.1rem; margin-bottom: 30px; color: rgba(255, 255, 255, 0.8); }

.btn-call-large {
    background: #fff;
    color: var(--brand-blue);
    border: 2px solid #fff;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-call-large:hover {
    background: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
}

.footer-banner {
    background: url('assets/images/footer-bg.png') center/cover;
    padding: 150px 0 50px;
    position: relative;
}
.footer-card { 
    background: rgba(255, 255, 255, 0.95); 
    padding: 50px; 
    border-top: 4px solid var(--brand-gold); 
    border-radius: 8px;
}
.footer-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 900; 
    color: var(--brand-blue); 
    margin-bottom: 20px; 
}

/* ========================================= */
/* --- 12. FLOATING BUTTONS ---------------- */
/* ========================================= */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}
.float-wa:hover { background-color: #128C7E; color: #fff; transform: scale(1.1); }

.float-call {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 115px; 
    right: 40px;
    background-color: var(--brand-blue);
    color: var(--brand-gold);
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
    border: 2px solid var(--brand-gold);
}
.float-call:hover { background-color: var(--brand-gold); color: #fff; transform: scale(1.1); }


/* ========================================= */
/* --- 13. RESPONSIVE & MOBILE FIXES ------- */
/* ========================================= */

/* Global text wrapping to prevent overflow */
h1, h2, h3, h4, h5, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar-brand img { height: 50px !important; } 

    /* Heading Resizing */
    h1 { font-size: 2.2rem; letter-spacing: 1px; }
    h2 { font-size: 1.8rem; letter-spacing: 1px; }
    h3 { font-size: 1.5rem; letter-spacing: 1px; }
    h4 { font-size: 1.3rem; }
    h5 { font-size: 1.1rem; }

    .hero-text h1 { font-size: 2.2rem !important; letter-spacing: 2px !important; }
    .hero-text .subtitle-serif { font-size: 1.2rem !important; }
    .title-group h2 { font-size: 1.8rem !important; }
    .title-group { margin-bottom: 20px !important; }

    /* Pull back the decorative blue line */
    .title-group h2::after { right: -20px; width: 15px; }

    /* Reduce Huge Section Gaps */
    .section-padding { padding: 50px 0 !important; }
    .carousel-area { padding: 60px 0 80px !important; }
    .footer-banner { padding: 100px 0 40px !important; }

    /* Fix Custom Cards & Lists */
    .card.p-4 { padding: 1.25rem !important; } 
    .owl-carousel .item-content { padding: 15px !important; } 
    .feature-list li { margin-bottom: 8px !important; font-size: 0.95rem; }
    .contact-info-list li { margin-bottom: 15px !important; }

    /* Fix the Overlapping Text Box */
    .story-overlap {
        max-width: 95% !important;
        padding: 30px 20px !important;
        margin-top: -30px !important;
    }

    /* Override Bootstrap Heavy Utilities */
    .p-5 { padding: 1.5rem !important; } 
    .pb-5 { padding-bottom: 1.5rem !important; } 
    .mb-5 { margin-bottom: 2rem !important; } 
    .mt-5 { margin-top: 2rem !important; } 
    .g-5, .gy-5 { --bs-gutter-y: 1.5rem !important; } 

    /* Adjust specific components */
    .hero-text { margin-top: 30px !important; }
    .btn-gold-solid, .btn-outline-white { padding: 10px 20px; font-size: 0.8rem; }
    .footer-card { padding: 30px 20px !important; }

    /* Adjust CTA and Floating Buttons */
    .cta-section h2 { font-size: 1.8rem !important; }
    .btn-call-large { font-size: 0.9rem; padding: 12px 30px; }
    .float-call { right: 20px; bottom: 100px; width: 50px; height: 50px; font-size: 20px; }
    .float-wa { right: 20px; bottom: 35px; width: 50px; height: 50px; font-size: 26px; }

    /* Legacy Reels gallery fix */
    .video-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .reel-player { border-width: 2px; border-radius: 12px; }
    .reel-player video { border-radius: 10px; }
}

@media (max-width: 480px) {
    /* Specific overrides for very small phones */
    .video-gallery-grid {
        grid-template-columns: 1fr; 
        max-width: 320px;
        margin: 0 auto;
    }
}