/* --- Core Global Configuration Layout --- */
:root {
    --primary-color: #D62828;
    --primary-dark: #A81F1F;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-primary: #222222;
    --text-secondary: #666666;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grouping html and body to strictly lock the screen width on all mobile browsers */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; 
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

body {
    line-height: 1.6;
    position: relative; /* Helps keep the mobile dropdown menu contained */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* --- Common Text Styling Blocks --- */
.section-tagline {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    font-weight: 800;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- Button Systems --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-card {
    background: transparent;
    color: var(--primary-color);
    padding: 8px 0;
    font-size: 0.95rem;
}

.btn-card:hover {
    color: var(--primary-dark);
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Navigation Module Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.logo-text-fallback {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}


/* --- Professional Navbar Alignment --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Zone 1: Left (Logo) */
.logo-container {
    flex: 1; /* Assigns equal width to the left side */
    display: flex;
    justify-content: flex-start; /* Pins logo to the far left edge */
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    max-height: 65px; /* Increased size to make it pop more */
    width: 100%;
    max-width: 250px;
    object-fit: contain;
    /* This is the magic line. It forces the image to stick to the left edge of its box, ignoring transparent space */
    object-position: left center; 
}

/* Zone 2: Center (Menu Links) */
.nav-menu {
    flex: 2; /* Gives the menu the most space in the center */
    display: flex;
    justify-content: center; /* Perfectly centers the text */
    list-style: none;
    gap: 30px;
}

/* Zone 3: Right (Contact Button) */
.nav-actions {
    flex: 1; /* Assigns equal width to the right side to balance the logo */
    display: flex;
    justify-content: flex-end; /* Pins the button to the far right edge */
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- Hero Section Panel Layout --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111 url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--bg-white);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(214,40,40,0.2) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Partner Ticker Logo Marquee --- */
.marquee-section {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 25px 0;
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 60px;
    animation: scrollMarquee 25s linear infinite;
}


.marquee-item {
    display: flex;
    align-items: center; 
    gap: 15px; 
}

.marquee-item img {
    height: 75px; 
    width: auto; 
    object-fit: contain;
    border-radius: 8px; 
}
/* The Text next to the icon-only logos */
.marquee-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222c27; 
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; 
}

/* Zooms in the wide logos to bypass the Canva white space */
.marquee-item img.zoom-logo {
    transform: scale(1.5); 
}

.marquee-item i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- About & Counter System Matrix --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}


.about-image {
    width: 100%;
    height: 100%;
    min-height: 400px; 
    object-fit: cover; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-subtle);
    display: block;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Leadership Subsection Cards Layout --- */
.team-subsection {
    margin-top: 100px;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subsection-desc {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-light);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Service Panel Grids --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    background: var(--bg-white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.disabled-card {
    opacity: 0.7;
    background: #fafafa;
}

.disabled-card:hover {
    transform: none;
    box-shadow: var(--shadow-subtle);
}

.badge {
    position: absolute;
    top: 15px; right: 15px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* --- Why Choose Us Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(214, 40, 40, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Contact & Operations Hotlines --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-item h5 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-secondary);
}

.action-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 35px 0;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.call-btn { background-color: #2b6cb0; }
.call-btn:hover { background-color: #1a365d; }
.whatsapp-btn { background-color: #2f855a; }
.whatsapp-btn:hover { background-color: #22543d; }
.email-btn { background-color: var(--primary-color); }
.email-btn:hover { background-color: var(--primary-dark); }

.social-links-row {
    display: flex;
    gap: 15px;
}

.social-links-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links-row a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #eef1f4;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #a0aec0;
    padding: 20px;
    text-align: center;
}

/* --- Universal Corporate Footers --- */
.main-footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-links h5, .footer-services h5 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-links ul, .footer-services ul {
    list-style: none;
}

.footer-links li, .footer-services li {
    margin-bottom: 12px;
}

.footer-links a, .footer-services a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Back to Top System Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    right: 30px;
}

/* --- Subpages Specific Modular Assets --- */
.subpage-hero {
    position: relative;
    padding: 120px 0 60px 0;
    background: #2d3748;
    color: var(--bg-white);
    text-align: center;
}

.real-estate-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=1200&q=80'); background-size: cover; }
.travel-hero { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1200&q=80'); background-size: cover; }

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.property-img-box {
    position: relative;
    height: 220px;
    background: #eef1f4;
}

/* --- Refined Society Logo Cards --- */
.property-img-box.society-logo-box {
    background-color: #FFFFFF; /* Pure white melts the logo background seamlessly */
    height: 220px; /* Gives the logo plenty of breathing room */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Adds a subtle premium divider line */
}

.society-logo {
    max-width: 90%; /* Allows wide logos to take up most of the card width */
    max-height: 130px; /* Prevents tall logos from breaking the box */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Forces the fallback icons to be massive and dead-center */
.society-logo-box .img-fallback-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem; 
    color: #e2e8f0;
}

.img-fallback-box {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #cbd5e0;
}

.property-tag {
    position: absolute; top: 15px; left: 15px; background: var(--primary-color); color: var(--bg-white); font-size: 0.8rem; padding: 4px 12px; border-radius: 4px; font-weight: 600;
}

.property-card-body {
    padding: 25px;
}

.location-tag {
    font-size: 0.85rem; color: var(--primary-color); margin: 8px 0 12px 0; font-weight: 600;
}

.property-text-desc {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px;
}

.travel-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.travel-item-card {
    background: var(--bg-white); padding: 40px 30px; border-radius: var(--border-radius); box-shadow: var(--shadow-subtle); text-align: center; border-top: 3px solid transparent; transition: var(--transition-smooth);
}

.travel-item-card:hover {
    border-top-color: var(--primary-color); transform: translateY(-5px); box-shadow: var(--shadow-card);
}

.travel-icon-header {
    font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px;
}

/* --- Scroll Revelations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Viewport Layout Breaks --- */
/* --- Premium Responsive Mobile & Tablet Adjustments --- */

@media (max-width: 1024px) {
    .services-grid, .property-grid { grid-template-columns: 1fr 1fr; }
    .team-grid, .travel-services-grid { grid-template-columns: 1fr 1fr; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 768px) {
    /* Navbar Mobile Polish */
    .hamburger { display: block; }
    .nav-logo { max-width: 180px; max-height: 50px; } /* Shrinks logo to fit safely */
    
    .nav-menu {
        position: absolute; 
        top: 80px; 
        left: -100%; 
        width: 100%; 
        height: 100vh; /* Full screen menu */
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        justify-content: flex-start;
        padding-top: 40px; 
        gap: 30px; 
        text-align: center; 
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .nav-menu.open { left: 0; }
    .nav-btn { display: none; }
    
    /* Typography Scaling */
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    
    /* Grid Stacking */
    .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    
    /* Layout Adjustments */
    .marquee-item img { height: 50px; } /* Slightly smaller partner logos on mobile */
    .map-wrapper iframe { min-height: 250px; }
    .action-buttons-group { flex-direction: column; width: 100%; }
    .btn-action { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
    /* Small Phone Ultimate Polish */
    .services-grid, .property-grid, .travel-services-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; padding: 0 20px; }
    .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-section { padding-top: 100px; }
    .about-image { min-height: 250px; }
}