:root {
    --text-dark: #16222d;
    --text-muted: #4a545c;
    --gold: #b88a44;
    --border-color: rgba(22, 34, 45, 0.1);
    --bg-fallback: #e9dac9;
    --bg-dark: #0d131a;
    --text-white: #ffffff;
    --text-light-gray: #9ba3af;
    --border-light: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    -webkit-font-smoothing: antialiased; 
    background-color: var(--bg-fallback);
    overflow-x: clip; 
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 60px; width: 100%; }

/* Page Transition Overlay */
.page-transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-fallback); z-index: 9999; opacity: 1; visibility: visible; transition: opacity 0.4s ease-in-out, visibility 0.4s; pointer-events: none; }
.page-transition-overlay.hidden { opacity: 0; visibility: hidden; }

/* HERO BACKGROUND WRAPPER (Image moved to Blade file) */
.hero-bg-wrapper {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* HEADER & NAVIGATION */
.header { 
    padding: 40px 0; 
    width: 100%; 
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 9998;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-fallback);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    z-index: 2;
}

.nav-container::before {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -100vw;
    width: calc(100vw + 320px);
    background: linear-gradient(90deg, rgba(232, 226, 213, 0.96) 0%, rgba(232, 226, 213, 0.96) calc(100% - 120px), rgba(232, 226, 213, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.logo { position: relative; z-index: 10; }
.logo img { 
    height: 80px; 
    width: auto; 
    display: block; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-links { display: flex; gap: 40px; align-items: center; position: relative; z-index: 10; }
.nav-links a { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dark); position: relative; padding-bottom: 6px; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 25px; height: 1.5px; background-color: var(--gold); }

.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; cursor: pointer; position: relative; z-index: 10; }
.menu-toggle span { display: block; height: 2px; width: 100%; background-color: var(--text-dark); transition: all 0.3s ease; }

/* HERO CONTENT */
.hero-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-bottom: 80px;
    padding-top: 200px; 
}

.hero-text-box {
    max-width: 650px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.2rem;
    line-height: 1.05;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -1.5px;
    transition: font-size 0.3s ease;
}

h1 .gold-text {
    color: var(--gold);
}

.hero-paragraphs p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 95%;
    font-weight: 400;
    transition: font-size 0.3s ease;
}

.hero-paragraphs p:last-child {
    margin-bottom: 0;
}

/* SINGAPORE FEATURES & BANNER */
.sg-content-section {
    background-color: var(--bg-fallback);
    padding: 80px 0 100px 0;
    position: relative;
    z-index: 2;
}

.sg-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 120px;
}

.sg-intro {
    border-left: 2px solid var(--gold);
    padding-left: 25px;
    margin-right: 20px;
}

.sg-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.25;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.sg-intro p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.sg-card {
    display: flex;
    flex-direction: column;
}

.sg-icon {
    width: 45px;
    height: 45px;
    color: var(--gold);
    margin-bottom: 25px;
}

.sg-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.35;
}

.sg-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.sg-card p:last-child {
    margin-bottom: 0;
}

.sg-banner {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    align-items: center;
}

.sg-banner-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    line-height: 1.15;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: -0.5px;
}

.sg-banner-right {
    border-left: 1.5px solid var(--gold);
    padding-left: 40px;
}

.sg-banner-right p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 20px;
}

.sg-banner-right p:last-child {
    margin-bottom: 0;
}

/* BOTTOM STATS BAR */
.stats-bar {
    width: 100%;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0;
}

.stat-item {
    padding: 0 40px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 500;
    transition: font-size 0.3s ease;
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-white);
    line-height: 1.6;
}

.stat-text span.light {
    color: var(--text-light-gray);
    display: block;
}

/* FOOTER */
footer { background-color: transparent; color: var(--text-muted); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.7fr 1fr; gap: 60px; margin-bottom: 60px; }

.footer-logo img { 
    height: 60px; 
    width: auto; 
    margin-bottom: 25px; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer-logo p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; max-width: 340px; }
.footer-col h4 { font-size: 11px; color: var(--text-dark); letter-spacing: 1.5px; margin-bottom: 30px; font-weight: 600; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.footer-links a, .footer-contact p, .footer-contact a { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; display: block; }
.footer-disclaimer { padding: 40px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.footer-disclaimer h4 { font-size: 11px; color: var(--text-dark); letter-spacing: 1.5px; margin-bottom: 20px; font-weight: 600; text-transform: uppercase; }
.footer-disclaimer p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.9; text-align: justify; }
.footer-bottom { padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom .dev-credit span { color: var(--gold); font-weight: 500; }

/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1200px) {
    h1 { font-size: 4.5rem; }
    .sg-banner-left h2 { font-size: 2.2rem; }
    .stats-grid { gap: 40px 0; }
}

@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .sg-grid { grid-template-columns: 1fr 1fr; }
    .sg-intro { grid-column: span 2; margin-bottom: 30px; margin-right: 0; }
}

@media (max-width: 992px) {
    h1 { font-size: 3.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-fallback);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    }
    .nav-links.nav-active { right: 0; }
    .nav-links a { font-size: 12px; }
    
    .menu-toggle.toggle-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.toggle-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.toggle-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .sg-banner { grid-template-columns: 1fr; gap: 40px; }
    .sg-banner-right { border-left: none; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 30px; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
    .stat-item { padding: 0 30px; border-right: none;}
    .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: 1px solid var(--border-light); }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .header { padding: 25px 0; }
    .hero-main { padding-top: 170px; } 
    
    .nav-container::before {
        top: -25px;
        bottom: -25px;
        width: calc(100vw + 240px);
    }

    .hero-bg-wrapper { min-height: 65vh; }
    .hero-text-box { margin-top: 20px; }
    
    h1 { font-size: 2.2rem; margin-bottom: 25px; letter-spacing: -0.5px; line-height: 1.15; }
    .eyebrow { font-size: 8.5px; margin-bottom: 20px; }
    .hero-paragraphs p { font-size: 0.8rem; line-height: 1.6; max-width: 100%; }

    .sg-content-section { padding: 50px 0 60px 0; }
    .sg-grid { grid-template-columns: 1fr; margin-bottom: 60px; gap: 30px;}
    .sg-intro { grid-column: span 1; padding-left: 15px; margin-bottom: 10px; }
    
    .sg-intro h2 { font-size: 1.4rem; margin-bottom: 15px; }
    .sg-intro p { font-size: 0.8rem; }
    
    .sg-card h3 { font-size: 1rem; margin-bottom: 10px; }
    .sg-card p { font-size: 0.75rem; }
    
    .sg-banner-left h2 { font-size: 1.6rem; }
    .sg-banner-right p { font-size: 0.8rem; line-height: 1.6; }

    .stats-grid { grid-template-columns: 1fr; gap: 30px 0; padding: 30px 0; }
    .stat-item, .stat-item:nth-child(1), .stat-item:nth-child(3) { border-right: none; border-bottom: 1px solid var(--border-light); padding: 0 0 25px 0; align-items: center; text-align: center; }
    .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
    
    .stat-number { font-size: 1.4rem; }
    .stat-text { font-size: 0.75rem; }
    
    .footer-links { grid-template-columns: 1fr; }
    .footer-logo p, .footer-links a, .footer-contact p, .footer-contact a { font-size: 0.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; font-size: 0.75rem; }
    .footer-logo p { max-width: 100%; }
    .footer-disclaimer p { font-size: 0.65rem; line-height: 1.7; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; margin-bottom: 20px; line-height: 1.25; letter-spacing: 0; }
    .hero-main { padding-top: 150px; } 
    .eyebrow { font-size: 8px; margin-bottom: 20px; }
    .hero-paragraphs p { font-size: 0.75rem; }
    
    .sg-intro h2 { font-size: 1.25rem; }
    .sg-card h3 { font-size: 0.95rem; }
    .sg-card p { font-size: 0.7rem; }
    
    .sg-banner-left h2 { font-size: 1.4rem; }
    .sg-banner-right p { font-size: 0.75rem; }
    
    .stat-number { font-size: 1.25rem; }

    .logo img { height: 60px; }
    footer { padding: 60px 0 30px; }
    .footer-grid { gap: 40px; margin-bottom: 40px; }
    .footer-disclaimer p { font-size: 0.6rem; }
    .footer-logo p, .footer-links a, .footer-contact p, .footer-contact a { font-size: 0.75rem; }
}