/* Centralised design tokens (colors, type scale) used by all pages */
:root{
  /* Colors (shared between community & contact pages) */
  --navy: #071633;
  --navy-light: #0b2540;
  --navy-lighter: #12324a;
  --cold: #8ec7ff;
  --brand: #0b7cff;
  --white: #ffffff;
  --gray-light: #b9b9b9;
  --muted: #3b5598;

  /* Layout tokens */
  --max-width: 1200px;
  --container-padding: 16px;

  /* Header & ticker sizes (adjust if header height changes) */
  --header-height: 70px;
  --ticker-height: 36px;

  /* Typography */
  --base-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --base-font-size: 16px;
  --line-height: 1.6;

} 

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--navy);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--navy-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: var(--ticker-height);
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
} 

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Stack the title + subtitle vertically inside the logo */
.logo-text {
    display: flex;
    flex-direction: column;
}

/* Fixed-size logo boxes (image shown before text) */
header .logo img {
    width: 60px;
    height: 60px; 
    object-fit: contain; /* keep aspect ratio, no cropping */
    display: block;
}

/* Footer logo image - match header logo size for visual consistency */
footer .logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    font-size: 1.5rem; /* increased to match requested size */
    margin: 0; /* reset previous negative margin */
    line-height: 1;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--cold);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    margin: 3px 0;
    transition: 0.3s;
}



/* News Ticker */
.news-ticker { position: fixed; top: 0; left: 0; width: 100%; z-index: 1002; background: linear-gradient(90deg, var(--brand), rgba(11,124,255,0.04)); color: var(--white); border-bottom:1px solid rgba(255,255,255,0.06); padding:8px 0; }
.news-ticker .container { display:flex; align-items:center; position:relative; }
.news-ticker__viewport { overflow:hidden; white-space:nowrap; flex:1; }
.news-ticker__strip { display:flex; align-items:center; min-width:200%; will-change: transform; animation: ticker 18s linear infinite; }
.news-ticker__strip.paused { animation-play-state: paused; }
.news-item { flex: 0 0 auto; padding:0 1.5rem; font-weight:700; color:var(--white); font-size:0.95rem; }
.ticker-pause { background:transparent; border:none; color:var(--white); font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; margin-left:12px; padding:6px; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width:820px) {
  .news-ticker__strip { animation-duration: 28s; }
  .news-item { padding: 0 1rem; font-size: 0.92rem; }
}

@media (max-width:480px) {
  /* On small screens, stop automatic animation and allow horizontal swiping */
  :root { --ticker-height: 32px; }
  .news-ticker__strip { animation: none; transform: none; display:flex; }
  .news-ticker__viewport { overflow-x:auto; -webkit-overflow-scrolling: touch; }
  .news-ticker__viewport::-webkit-scrollbar { display: none; }
  .news-item { flex: 0 0 auto; padding: 0 .9rem; font-size: 0.95rem; }
  .ticker-pause { display: inline-flex; }
}

/* Hero Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) + var(--ticker-height));
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

/* Hero slide image: fixed display box, centered and cropped consistently */
.slide-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;      /* target display width */
    max-width: 100%;    /* responsive down from target */
    height: 600px;      /* fixed display height */
    max-height: 80vh;   /* prevents overflow on small viewports */
    object-fit: cover;  /* crop to fill the box without distortion */
    pointer-events: none;
}

/* dark overlay for readable text */
.slide::before {
    /* unchanged overlay but keeps full slide coverage */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8));
    pointer-events: none;
}

/* ensure content sits above image + overlay */
.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.slide:nth-child(1) {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8));
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8));
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8));
}

.slide-content h2 {
    background-color: var(--navy-lighter);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.slide-content p {
    background-color: var(--navy-lighter);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.btn {
    display: inline-block;
    background-color: var(--cold);
    color: var(--navy);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--cold);
}

/* Introduction Section */
.intro {
    padding: 100px 0;
    background-color: var(--navy-light);
}

.intro h2 {
    text-align: center;
    font-size: 1.5rem; /* updated to 1.5rem */
}

.intro > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--navy-lighter);
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cold);
}

.feature p {
    color: var(--gray-light);
}

/* Properties Section */
.properties {
    padding: 100px 0;
    background-color: var(--navy);
}

.properties h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.properties > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--gray-light);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.property-card {
    background-color: var(--navy-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

.property-image img {
    /* keep property cards consistent (already constrained by .property-image height) */
    width: 100%;
    height: 200px;      /* fixed display height */
    object-fit: cover;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--cold);
}

.property-type {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-desc {
    margin-bottom: 1.5rem;
    color: var(--gray-light);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.property-features span {
    background-color: var(--navy-lighter);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-light);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--cold);
    color: var(--cold);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.properties-cta {
    text-align: center;
    background-color: var(--navy-light);
    padding: 3rem;
    border-radius: 8px;
}

.properties-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--gray-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Phases Section */
.phases {
    padding: 100px 0;
    /*background-color: var(--navy-light);*/
}

.phases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--white);
}

.phase-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.phase {
    display: flex;
    margin-bottom: 3rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.phase.active {
    opacity: 1;
}

/* Phase number: rectangular label that adapts to content */
.phase-number {
    background-color: var(--cold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 8px;
    margin-right: 1.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 90px;
}

.phase-content {
    background-color: var(--navy-lighter);
    padding: 1.5rem;
    border-radius: 8px;
    flex-grow: 1;
}

.phase-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--cold);
}

.phase-content p {
    color: var(--gray-light);
}

/* Footer */
footer {
    background-color: var(--black);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--cold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--cold);
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ensure inline SVGs fill the social icon box */
.social-link svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--white);
}
.social-link:hover svg {
    filter: brightness(0.9);
}

/* subtle hover effect */
.social-link:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--navy-lighter);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== LIGHTBOX / IMAGE MODAL ===== */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
}

#lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#lightbox-image {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

#lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    max-width: 80vw;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(212, 175, 55, 0.8);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 3;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    #lightbox-image {
        max-width: 95vw;
        max-height: 60vh;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    #lightbox-caption {
        max-width: 95vw;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--navy-light);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--navy-lighter);
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-nav {
        display: none;
    }
    
    .phase {
        flex-direction: column;
        text-align: center;
    }
    
    .phase-number {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn, .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Keep placeholders readable but within allowed palette (white with opacity) */
::placeholder { color: rgba(255,255,255,0.6) !important; }

/* ======= BaoSen Chinatown: forced branding overrides (place at EOF) ======= */
:root {
    --gold: #d4af37;
    --white: #ffffff;
}

/* Force all headings to gold (highest specificity + !important) */
body h1, body h2, body h3, body h4, body h5, body h6 {
    color: var(--gold) !important;
}

/* Make primary headings match the logo title size */
body h1, body h2 {
    font-size: 1.5rem !important; /* updated to 1.5rem */
}

/* Make homepage h3 match the logo size */
.home h3 {
    font-size: 1.5rem !important; /* updated to 1.5rem */
}

/* Force navigation links and visible header texts to gold */
body header nav a,
body header .nav a,
body nav a,
body .navbar a,
body .menu a,
body .site-title,
body .logo,
body header *[role="navigation"] a {
    color: var(--gold) !important;
}

/* Force subtexts (small, .subtext, p.subtext) to white */
small,
body h1 small, body h2 small, body h3 small, body h4 small, body h5 small, body h6 small,
body .subtext, body p.subtext, body span.subtext,
body header nav a small, body nav a small {
    color: var(--white) !important;
}

/* Ensure footer headings also use gold */
body footer h1, body footer h2, body footer h3, body footer h4, body footer h5, body footer h6 {
    color: var(--gold) !important;
}

/* Prevent hover from changing brand color for nav items */
body header nav a:hover,
body nav a:hover,
body .navbar a:hover {
    color: var(--gold) !important;
}