/* Core Reset & Fix for Horizontal Scroll Issue */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

:root {
    --black: #0f1012;
    --beige: #bd8139;
    --red: #780709;
    --brown: #3f2107;
}

body {
    background-color: var(--black) !important;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0f1012; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.bottle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Bottle Body */
.bottle {
    width: 44px;
    height: 75px;
    border: 3px solid #bd8139;
    border-radius: 14px 14px 6px 6px; /* Smooth rounded shoulders and subtle base curve */
    position: relative;
    margin-top: 40px; /* Space for the neck to sit above */
}

/* Bottle Neck */
.bottle::after {
    content: "";
    position: absolute;
    top: -33px; /* Sits directly on top of the body */
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 33px;
    border: 3px solid #bd8139;
    border-bottom: none; /* Blends cleanly into the body */
    border-radius: 3px 3px 0 0;
}

/* Bottle Cap / Lip */
.bottle::before {
    content: "";
    position: absolute;
    top: -36px; /* Positions right at the top edge of the neck */
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 6px;
    background-color: #bd8139;
    border-radius: 2px;
    z-index: 2; /* Ensures the cap sits firmly on top */
}

/* Liquid Animation */
.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #bd8139;
    border-radius: 0 0 2px 2px; /* Fits the liquid into the inner bottom corners */
    animation: fillLiquid 2.5s infinite ease-in-out;
}

/* Filling Keyframes */
@keyframes fillLiquid {
    0% { height: 0%; opacity: 1; }
    80% { height: 100%; opacity: 1; }
    100% { height: 100%; opacity: 0; }
}

.loading-text {
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Navbar */
.navbar { background: rgba(15, 16, 18, 0.9); border-bottom: 1px solid var(--brown); }
.nav-link { color: var(--beige) !important; font-weight: bold; }
.nav-link:hover { color: var(--red) !important; }

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Custom Hamburger Icon (Making it visible on dark theme) */
.custom-toggler {
    border-color: var(--beige);
    background-color: var(--black);
}
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(189, 129, 57, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Navbar Collapse Styling - Updated for fitted width */
.navbar-collapse {
    background: rgba(15, 16, 18, 0.98);
    border-radius: 8px;
    margin-top: 10px;
    position: absolute;
    right: 15px; /* Aligns with the right edge */
    top: 55px; /* Positions it below the hamburger icon */
    width: max-content; /* Shrinks the dark background to fit the text width */
    padding: 15px 30px;
    border: 1px solid var(--brown);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    position: relative;
    padding-top: 60px; /* Offset for the fixed navbar */
    overflow: hidden; /* Prevents scrolling issues with absolute positioning */
}

.hero-logo {
    max-height: 90vh; /* Increased slightly to fill the screen better */
    width: auto;
    position: relative;
    /* Removed previous border-radius and box-shadow to allow the gradient to blend seamlessly into the image edges */
}

/* Responsive gradient adjustment for mobile devices */
@media (max-width: 768px) {
    .hero-section::after {
        background: linear-gradient(
            to right,
            var(--black) 0%,
            var(--black) 5%,
            rgba(15, 16, 18, 0) 25%,
            rgba(15, 16, 18, 0) 75%,
            var(--black) 95%,
            var(--black) 100%
        );
    }
    .hero-logo {
        max-height: 60vh;
        max-width: 150%; /* Allows image to stretch past screen bounds underneath the gradient mask */
    }
}

/* Gradient Overlay for Left and Right Shadow Effect */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        var(--black) 0%,
        var(--black) 25%, /* Wider solid black zone on desktop */
        rgba(15, 16, 18, 0) 45%, /* Smoother, wider transition */
        rgba(15, 16, 18, 0) 55%,
        var(--black) 75%,
        var(--black) 100%
    );
    pointer-events: none;
}

/* Responsive gradient adjustment for mobile devices */
@media (max-width: 768px) {
    .hero-section::after {
        /* On mobile, set to transparent so the logo is not cut off by side gradients */
        background: transparent; 
    }
    
    .hero-logo {
        max-height: 50vh; /* Slightly smaller to ensure it opens fully without clipping */
        max-width: 90%;   /* Ensures it stays within screen bounds */
    }
}

/* Screen Opening Animation Curtains */
.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--black);
    z-index: 10; /* Sits above the logo, but below the gradient mask */
    animation: openCurtain 2s ease-in-out forwards;
    animation-delay: 5s; /* Wait for preloader to finish */
}

.curtain-left {
    left: 0;
}

.curtain-right {
    right: 0;
}

@keyframes openCurtain {
    0% { width: 50%; }
    100% { width: 0%; }
}

/* Scroll Arrow Animation */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--beige);
    z-index: 20;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-arrow:hover {
    color: var(--red);
}

.content-section .scroll-arrow {
    position: relative;
    display: block;
    text-align: center;
    bottom: -30px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* General Layout for Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--brown);
    position: relative;
}

.content-section h2 {
    color: var(--beige);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.content-section h3 {
    color: var(--red);
    margin-top: 20px;
}

.content-section p, .content-section ul {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Table styling for dark theme */
.table-dark {
    --bs-table-bg: #1a1a1a;
    border-color: var(--brown);
}

/* About Section - Light Theme Override */
#about {
    background-color: #fbf7ec;
    color: var(--black);
}

#about h2 {
    color: var(--red); /* Using your brand red for the heading */
}

#about p.lead {
    color: var(--black); /* Forces the paragraph text to be dark */
}

/* Arrow override for light backgrounds (Shared class) */
.section-arrow-dark {
    color: var(--black) !important;
}

.section-arrow-dark:hover {
    color: var(--red) !important;
}

/* About Section Logo Styling */
.about-logo {
    max-width: 85%;
    opacity: 0.9;
    /* Adds a subtle dark shadow since the background is now light */
    filter: drop-shadow(0 10px 20px rgba(15, 16, 18, 0.2)); 
    transition: all 0.5s ease;
}

.about-logo:hover {
    opacity: 1;
    transform: scale(1.03); 
    filter: drop-shadow(0 15px 25px rgba(15, 16, 18, 0.3));
}

/* Partner's Background Cards */
.partner-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(189, 129, 57, 0.15); /* Faint beige border */
    border-radius: 8px;
    padding: 40px 35px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.partner-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--beige);
    transform: translateY(-5px); /* Soft lift effect on hover */
}

.partner-name {
    color: var(--beige);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.partner-divider {
    width: 60px;
    height: 3px;
    background-color: var(--red);
    margin-bottom: 25px;
}

.partner-card p {
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Fix for Partner Names to override the global red h3 styling */
.content-section h3.partner-name {
    color: var(--beige);
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 0; /* Overrides the global h3 margin-top */
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Dual Arrow Group Styling */
.arrow-group {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px; /* Spacing between the up and down arrows */
    z-index: 20;
}

.arrow-group .inline-arrow {
    position: static; /* Removes the absolute positioning from the base .scroll-arrow class */
    transform: none;
    animation: bounce-inline 2s infinite;
}

/* Custom bounce keyframe without the negative X translation */
@keyframes bounce-inline {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Executive Summary - Light Theme Override */
#executive {
    background-color: #fbf7ec;
    color: var(--black);
    padding: 60px 0 30px 0; /* Reduced top and bottom padding to pull content up */
}

#executive h2 {
    color: var(--red);
}

/* Override Bootstrap gap for this specific row to make it tighter */
#executive .row.g-5 {
    --bs-gutter-y: 1.5rem; /* Tighter vertical spacing between the two rows of icons */
    --bs-gutter-x: 1.5rem; 
}

/* Executive Summary Circular Features */
.exec-feature {
    padding: 0 10px; /* Removed vertical padding */
    transition: all 0.3s ease;
}

.exec-feature .icon-circle {
    width: 90px; /* Shrunk from 120px */
    height: 90px; /* Shrunk from 120px */
    background-color: var(--black);
    border: 3px solid var(--beige); /* Slightly thinner border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* Shrink the SVG icons to fit the new smaller circles */
.exec-feature .icon-circle svg {
    color: var(--beige);
    width: 35px; /* Shrunk from 45px */
    height: 35px;
    transition: all 0.4s ease;
}

/* Stunning Hover Effect */
.exec-feature:hover .icon-circle {
    background-color: var(--red);
    border-color: var(--red);
    transform: translateY(-8px); /* Reduced lift distance */
    box-shadow: 0 12px 25px rgba(120, 7, 9, 0.25);
}

.exec-feature:hover .icon-circle svg {
    color: #ffffff;
    transform: scale(1.1);
}

.exec-feature h5 {
    color: var(--black);
    font-size: 1rem; /* Slightly smaller text */
    line-height: 1.4;
    padding: 0 5px;
    margin-top: 15px !important; /* Forces the text closer to the circle */
}

/* Business Model - 3D Neumorphic Blocks (No Flat Cards or Circles) */
.model-3d-block {
    background: linear-gradient(145deg, #131417, #0d0d0f);
    box-shadow: 12px 12px 24px #08080a, -12px -12px 24px #16181a; /* Creates physical depth */
    border-radius: 0px; /* Sharp professional edges */
    border: 1px solid rgba(189, 129, 57, 0.15);
    border-top: 4px solid var(--beige); 
    padding: 50px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

/* Red loading bar effect on hover */
.model-3d-block::before {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 0%; 
    height: 4px;
    background-color: var(--red);
    transition: width 0.4s ease;
}

.model-3d-block:hover {
    transform: translateY(-8px);
    box-shadow: 15px 15px 30px #060608, -15px -15px 30px #181a1c;
    border-color: rgba(189, 129, 57, 0.4);
}

.model-3d-block:hover::before {
    width: 100%;
}

/* Faint Watermark Numbers */
.bg-number {
    font-size: 7rem;
    font-weight: 900;
    font-family: Arial, sans-serif;
    position: absolute;
    top: -20px;
    right: -10px;
    color: rgba(255, 255, 255, 0.03); 
    z-index: -1;
    transition: all 0.4s ease;
    line-height: 1;
    pointer-events: none;
}

.model-3d-block:hover .bg-number {
    color: rgba(189, 129, 57, 0.08); /* Pulses to a faint beige glow */
    transform: scale(1.1);
}

.model-title {
    color: var(--beige);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-desc {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Product Portfolio - Light Theme Override */
#portfolio {
    background-color: #fbf7ec;
    color: var(--black);
}

#portfolio h2 {
    color: var(--red);
}

/* Product Portfolio - Structured Tile Layout (Light Theme) */
.portfolio-tile {
    display: flex;
    align-items: center;
    background-color: #ffffff; /* Solid white background for contrast against the beige */
    border: 1px solid rgba(189, 129, 57, 0.3); /* Stronger beige border */
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Soft dark shadow */
}

.portfolio-tile:hover {
    border-color: var(--beige);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(189, 129, 57, 0.2); /* Beige glow shadow on hover */
}

.portfolio-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid var(--beige); /* Switched to beige border for the light theme */
}

.portfolio-text {
    color: var(--black); /* Dark text for readability */
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.portfolio-tile:hover .portfolio-text {
    color: var(--red); /* Highlights to red on hover for maximum impact on light bg */
}

/* Operational Flow - Single Row Columns */
.flow-image-wrapper {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(189, 129, 57, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    background-color: var(--black);
}

.flow-image-wrapper:hover {
    border-color: var(--beige);
    transform: translateY(-8px); /* slightly higher lift for vertical cards */
    box-shadow: 0 12px 25px rgba(189, 129, 57, 0.3);
}

.flow-img {
    width: 100%;
    height: 250px; /* Taller default height for mobile/tablets */
    object-fit: cover; 
    display: block;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.7; 
}

.flow-image-wrapper:hover .flow-img {
    transform: scale(1.05); /* Smooth zoom effect */
    opacity: 1; 
}

/* Make them even taller on large desktop screens */
@media (min-width: 992px) {
    .flow-img {
        height: 400px; 
    }
}

/* Operational Flow - Image Captions */
.flow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Creates a dark fade from the bottom up so white/beige text is always readable */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 10px 15px;
    text-align: center;
    z-index: 2;
    transition: padding-bottom 0.4s ease;
}

.flow-caption h4 {
    color: var(--beige);
    margin: 0;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.4s ease;
}

/* Enhancing the hover effect to lift the text slightly */
.flow-image-wrapper:hover .flow-caption {
    padding-bottom: 20px;
}

.flow-image-wrapper:hover .flow-caption h4 {
    color: #ffffff;
}

/* Ensure the image stays behind the caption */
.flow-img {
    position: relative;
    z-index: 1;
}

/* Compliance & HMRC Section - Light Theme */
#compliance {
    background-color: #fbf7ec;
    color: var(--black);
}

#compliance h2 {
    color: var(--red);
}

/* Compliance Cards */
.compliance-card {
    background-color: #ffffff;
    border: 1px solid rgba(189, 129, 57, 0.3); /* Beige border */
    border-radius: 10px;
    padding: 18px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Soft shadow */
    display: flex;
    flex-direction: column;
}

.compliance-card:hover {
    border-color: var(--beige);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(189, 129, 57, 0.2);
}

.compliance-img {
    width: 100%;
    height: 160px; /* Fixed height so all cards align perfectly */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.compliance-title {
    color: var(--black);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.compliance-card:hover .compliance-title {
    color: var(--red);
}

.compliance-desc {
    color: #444444; /* Dark gray for highly readable body text */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Market Opportunity Section */
.market-image-wrapper {
    border: 2px solid rgba(189, 129, 57, 0.2); /* Subtle beige border */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.market-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.market-image-wrapper:hover .market-img {
    transform: scale(1.03); /* Smooth subtle zoom on hover */
}

/* Right Column Content Cards */
.market-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(189, 129, 57, 0.15); /* Faint beige border */
    padding: 22px 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.market-item:last-child {
    margin-bottom: 0;
}

.market-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--beige);
    transform: translateX(-5px); /* Glides to the left slightly on hover */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.market-icon {
    color: var(--beige);
    margin-right: 18px;
    display: flex;
    align-items: center;
}

.market-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.market-item:hover .market-text {
    color: #ffffff;
}

/* Project Investment Plan Section - Light Theme */
#investment {
    background-color: #fbf7ec;
    color: var(--black);
}

#investment h2 {
    color: var(--red);
}

/* Left Side Image */
.investment-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
}

.investment-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.investment-image-wrapper:hover .investment-img {
    transform: scale(1.04);
}

/* Right Side Colorful Table */
/* Right Side Colorful Table */
.custom-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(189, 129, 57, 0.3);
}

.custom-investment-table {
    margin: 0;
    border-collapse: collapse;
    width: 100%; /* Removed min-width to allow natural shrinking */
}

/* Standard Header & Body Padding (Desktop) */
.custom-investment-table tbody td {
    padding: 16px 20px;
    color: #444444;
    vertical-align: middle;
    border: none;
}

/* Tablet and Mobile Responsive Adjustments */
@media (max-width: 767.98px) {
    /* Summary Header (Top Row) */
    .custom-investment-table thead th.summary-header {
        font-size: 1rem !important;
        padding: 14px 12px;
    }
    
    /* Column Headers */
    .custom-investment-table thead tr.column-headers th {
        font-size: 0.95rem !important;
        padding: 12px 10px;
    }
    
    /* Body Rows */
    .custom-investment-table tbody td {
        font-size: 0.9rem !important;
        padding: 12px 10px;
    }
    
    /* Footer Total Row */
    .custom-investment-table tfoot td {
        font-size: 1rem !important; /* Scaled down from fs-5 */
        padding: 15px 12px !important;
    }
}

/* Extremely Small Mobile Screens (Under 400px) */
@media (max-width: 400px) {
    /* Summary Header (Top Row) */
    .custom-investment-table thead th.summary-header {
        font-size: 0.8rem !important;
        padding: 10px 6px;
    }
    
    /* Column Headers */
    .custom-investment-table thead tr.column-headers th {
        font-size: 0.75rem !important;
        padding: 8px 6px;
    }
    
    /* Body Rows */
    .custom-investment-table tbody td {
        font-size: 0.75rem !important; /* Forces text to fit */
        padding: 8px 6px;
    }

    /* Footer Total Row */
    .custom-investment-table tfoot td {
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }
}

/* Summary Header (Top Row - Dark/Beige) */
.custom-investment-table thead th.summary-header {
    background-color: var(--black) !important;
    color: var(--beige) !important;
    padding: 16px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    border-bottom: none;
    letter-spacing: 0.5px;
}

/* Column Headers (Bottom Row - Brand Red) */
.custom-investment-table thead tr.column-headers th {
    background-color: var(--red) !important;
    color: #ffffff !important;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    letter-spacing: 0.5px;
}

/* Body Rows */
.custom-investment-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.custom-investment-table tbody tr:last-child {
    border-bottom: none;
}

.custom-investment-table tbody tr:hover {
    background-color: rgba(189, 129, 57, 0.08) !important; /* Soft beige hover highlight */
}

.custom-investment-table tbody td {
    padding: 16px 20px;
    color: #444444;
    vertical-align: middle;
    border: none;
}

.custom-investment-table tbody td strong {
    color: var(--black);
    font-weight: 700;
}

/* Footer Total Row (Brand Beige) */
.custom-investment-table tfoot td {
    background-color: var(--beige) !important;
    color: var(--black) !important;
    padding: 20px;
    border: none;
    border-top: 3px solid var(--black) !important;
}

/* Financial Overview Section (Dark Theme) */

/* Left Side: Custom Data List */
.financial-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--red); /* Brand Red Accent */
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0; /* Rounds the right side only */
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.financial-item:last-child {
    margin-bottom: 0;
}

.financial-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: var(--beige); /* Shifts to beige on hover */
    transform: translateX(8px); /* Smooth glide to the right */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.financial-label {
    color: var(--beige);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.financial-desc {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

/* Right Side: Image Framing */
.financial-image-wrapper {
    border: 2px solid rgba(189, 129, 57, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.financial-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.financial-image-wrapper:hover .financial-img {
    transform: scale(1.03); /* Subtle zoom */
}

/* Conclusion Section - Light Theme */
#conclusion {
    background-color: #fbf7ec;
    color: var(--black);
}

#conclusion h2 {
    color: var(--red);
}

/* Left Side Image Frame */
.conclusion-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
}

.conclusion-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.conclusion-image-wrapper:hover .conclusion-img {
    transform: scale(1.03); /* Subtle zoom */
}

/* Right Side Content Items */
.conclusion-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(189, 129, 57, 0.3); /* Soft beige border */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.conclusion-item:last-child {
    margin-bottom: 0;
}

.conclusion-item:hover {
    border-color: var(--beige);
    transform: translateY(-3px); /* Gentle lift */
    box-shadow: 0 8px 20px rgba(189, 129, 57, 0.15); /* Warmer beige shadow */
}

.conclusion-icon {
    color: var(--red); /* Pop of brand red for the icons */
    margin-right: 18px;
    display: flex;
    align-items: center;
}

.conclusion-text {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Contact Us Section - Dark Theme Enhancements */
.text-beige {
    color: var(--beige) !important;
}

.text-light-gray {
    color: #cccccc;
    line-height: 1.6;
}

.tracking-wide {
    letter-spacing: 1px;
}

.contact-email {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid var(--beige);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.contact-email:hover {
    color: var(--beige);
    border-color: var(--red);
}

/* Contact Form Styling - Explicit Dark Theme */
.contact-form-wrapper {
    background-color: #161719; /* Explicit dark color overriding Bootstrap defaults */
    border: 1px solid rgba(189, 129, 57, 0.15); /* Faint beige border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-input {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(189, 129, 57, 0.3) !important; 
    color: #ffffff !important;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--beige) !important;
    box-shadow: 0 0 0 0.25rem rgba(189, 129, 57, 0.25) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Custom Submit Button */
.btn-custom {
    background-color: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    transition: all 0.4s ease;
}

.btn-custom:hover {
    background-color: var(--beige);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 129, 57, 0.3);
}

/* Inline Footer Links */
.footer-link {
    color: #888888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--beige);
    text-decoration: underline;
}