/* 
   ==========================================================================
   IPCL REAL ESTATE - CUSTOM STYLESHEET
   Brand Colors: Forest Green & Warm Gold
   Theme: Luxury, Modern, Glassmorphism, Highly Responsive (Mobile-First)
   ========================================================================== 
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- Root Variables (Custom Properties) --- */
:root {
    /* Color Palette */
    --primary-hsl: 154, 69%, 14%;      /* Forest Green (#0B3C26) */
    --accent-hsl: 40, 47%, 56%;         /* Luxury Gold (#C5A059) */
    --accent-gold-light: #dfc28b;
    --bg-dark-hsl: 150, 17%, 8%;       /* Forest-Grey Dark (#0E1411) */
    --bg-light-hsl: 150, 8%, 97%;      /* Soft Cream-Grey Light (#F3F5F4) */
    
    --primary: hsl(var(--primary-hsl));
    --accent: hsl(var(--accent-hsl));
    --bg-dark: hsl(var(--bg-dark-hsl));
    --bg-light: hsl(var(--bg-light-hsl));
    
    --text-dark: #1A221E;
    --text-muted: #5C6761;
    --text-light: #F3F5F4;
    --white: #FFFFFF;
    
    /* Layout Tokens */
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-round: 50%;
    
    /* Animation & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
    --shadow-premium: 0 15px 35px rgba(11, 60, 38, 0.08);
    --shadow-gold-glow: 0 10px 30px rgba(197, 160, 89, 0.25);
    --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(197, 160, 89, 0.15);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* --- Reusable Components & Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-dark .section-header h2 {
    color: var(--accent);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-dark .section-header p {
    color: rgba(243, 245, 244, 0.7);
}

.accent-text {
    color: var(--accent);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(11, 60, 38, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #B38E46);
    color: var(--white);
    box-shadow: var(--shadow-gold-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline-gold:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
}

/* --- Header & Sticky Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(14, 20, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding: 0.5rem 0;
}

header:not(.scrolled) {
    background: transparent;
    padding: 1.25rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: var(--border-radius-round);
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.logo-brand-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-main-title {
    font-family: var(--font-headings);
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.logo-main-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo-subtitle {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 1px;
    transition: var(--transition-fast);
}

@media screen and (max-width: 480px) {
    .logo-main-title {
        font-size: 1.05rem;
    }
    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

@media screen and (min-width: 1200px) {
    .nav-menu {
        gap: 2rem;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Burger active state */
.burger-menu.open .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent);
}

.burger-menu.open .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 7.5rem 0 3rem 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 20, 17, 0.9) 30%, rgba(14, 20, 17, 0.4) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 4rem;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .hero-grid-layout {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 4rem;
    }
}

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

.hero-tagline {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-brand-title {
    font-size: clamp(2.25rem, 8vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--white);
    font-family: var(--font-headings);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-brand-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-brand-suffix {
    font-family: var(--font-headings);
    font-size: clamp(1rem, 3.5vw, 1.45rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-brand-suffix span {
    color: var(--accent);
}

.hero-slogan {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-family: var(--font-headings);
}

.hero p.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.hero-actions .btn {
    width: 100%;
    margin-left: 0 !important;
}

/* Hero Logo Column & Floating Visuals */
.hero-logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 250px;
    max-width: 100%;
}

.hero-large-logo {
    max-width: 200px;
    width: 100%;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.25);
    animation: floatLogo 6s ease-in-out infinite;
    z-index: 2;
    background-color: var(--bg-dark);
}

.logo-gold-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, rgba(11, 60, 38, 0.1) 50%, transparent 70%);
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Hero Search Bar Overlay */
.search-filter-overlay {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(14, 20, 17, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}

.form-group select, .form-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--white);
    transition: var(--transition-fast);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--white);
}

.form-group select:focus, .form-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.search-btn-container {
    display: flex;
    align-items: flex-end;
}

.search-btn-container .btn {
    width: 100%;
    padding: 0.95rem;
}

/* --- About & Slogan Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--border-radius-md);
    transform: translate(15px, 15px);
    z-index: -1;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow-premium);
    text-align: center;
}

.about-experience-badge h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

.about-experience-badge p {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-text h3 {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pillar-icon {
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}

.pillar-content h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.pillar-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Organizational Structure & Team Section --- */
.team-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(11, 60, 38, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(11, 60, 38, 0.12);
    border-color: rgba(197, 160, 89, 0.3);
}

.team-photo-container {
    height: 320px;
    position: relative;
    overflow: hidden;
    background-color: #e8edea;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-photo {
    transform: scale(1.08);
}

.team-social-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(14, 20, 17, 0.8), transparent);
    transition: var(--transition-smooth);
}

.team-card:hover .team-social-overlay {
    bottom: 0;
}

.social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-round);
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-circle-btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

.team-details {
    padding: 1.5rem;
    text-align: center;
}

.team-details h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Hierarchy & Corporate Tiers --- */
.team-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3.5rem;
}

.tier-executive {
    max-width: 380px;
    margin: 0 auto;
}

.tier-management {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.tier-management .team-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.level-title {
    font-size: 1.75rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-headings);
    position: relative;
    padding-bottom: 0.75rem;
}

.level-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.tier-board {
    margin-top: 2rem;
}

.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.board-grid .team-card {
    width: 100%;
    max-width: 380px;
}

.tier-founding {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4rem;
}

.founding-search-container {
    max-width: 400px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.founding-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 30px;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.founding-search-input:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.founding-search-container i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.founding-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

@media screen and (min-width: 768px) {
    .founding-grid {
        gap: 1.5rem;
    }
}

.founding-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.75rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px; /* default compact width */
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .founding-card {
        width: 185px; /* slightly wider on larger viewports */
    }
}

.founding-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.founding-avatar-container {
    width: 105px;
    height: 105px;
    border-radius: var(--border-radius-round);
    margin-bottom: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 3px;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.founding-card:hover .founding-avatar-container {
    border-color: var(--accent);
    transform: scale(1.05);
}

.founding-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-round);
    object-fit: cover;
}

.founding-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.founding-role {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.founding-actions {
    text-align: center;
    margin-top: 3rem;
}

/* --- Featured Properties Section --- */
.properties-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background-color: var(--white);
    color: var(--text-muted);
    border: 1px solid rgba(11, 60, 38, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.filter-btn.active {
    box-shadow: 0 5px 15px rgba(11, 60, 38, 0.15);
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.property-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(11, 60, 38, 0.04);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(11, 60, 38, 0.12);
}

.property-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.property-card:hover .property-img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-badge.featured {
    background-color: var(--accent);
}

.property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(14, 20, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-family: var(--font-headings);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.property-info {
    padding: 1.5rem;
}

.property-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.property-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 60, 38, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.feature-item i {
    color: var(--accent);
}

/* Property Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 20, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(197, 160, 89, 0.2);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(14, 20, 17, 0.7);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.modal-hero-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-title-row h2 {
    font-size: 1.75rem;
    color: var(--primary);
}

.modal-title-row .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-headings);
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent);
}

.detail-point {
    font-size: 0.9rem;
}

.detail-point strong {
    color: var(--primary);
}

/* --- Interactive Mortgage Calculator Section --- */
.calculator-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.15);
    display: grid;
    grid-template-columns: 1fr;
}

.calc-inputs-pane {
    padding: 1.5rem;
    background-color: var(--white);
}

.calc-inputs-pane h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.calc-inputs-pane h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.calc-slider-group {
    margin-bottom: 2rem;
}

.calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calc-slider-header label {
    font-weight: 600;
    color: var(--primary);
}

.calc-val-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(11, 60, 38, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e6e2;
    outline: none;
    transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-round);
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--primary);
    box-shadow: 0 0 10px rgba(11, 60, 38, 0.5);
}

.calc-results-pane {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--bg-dark));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.calc-results-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.15), transparent 70%);
    pointer-events: none;
}

.calc-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calc-results-header p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.monthly-payment-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-headings);
    line-height: 1;
}

.monthly-payment-amount span {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.calc-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.calc-breakdown-row span:first-child {
    color: rgba(255, 255, 255, 0.75);
}

.calc-breakdown-row span:last-child {
    font-weight: 700;
    color: var(--accent);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(11, 60, 38, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
    background-color: var(--accent);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(11, 60, 38, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Testimonials Section --- */
.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    padding: 1rem 0 3rem 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: var(--transition-smooth);
}

.testimonial-card {
    min-width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-round);
    border: 2px solid var(--accent);
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-round);
    border: 2px solid var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 1.05rem;
    color: var(--accent);
}

.user-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-round);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--accent);
    width: 25px;
    border-radius: 5px;
}

/* --- Contact & Location Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(11, 60, 38, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Mobile Quick Actions Buttons */
.mobile-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background-color: var(--white);
    border: 1px solid rgba(11, 60, 38, 0.08);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.action-btn i {
    font-size: 1.35rem;
}

.action-btn.whatsapp-btn i {
    color: #25D366;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(11, 60, 38, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

/* Styled Map Placeholder */
.map-container {
    height: 300px;
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 1; /* avoid overlapping navbar */
}

/* Contact Form */
.contact-form-column {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(11, 60, 38, 0.05);
}

.contact-form-column h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-control-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(11, 60, 38, 0.12);
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-input::placeholder {
    color: #A0ABA4;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(243, 245, 244, 0.7);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-round);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.footer-social-btn:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links-col h4 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links-list a {
    color: rgba(243, 245, 244, 0.7);
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: rgba(243, 245, 244, 0.45);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* --- Scroll Entrance Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Delay modifiers for stagger animation */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   MEDIA QUERIES (Responsive Adjustments)
   ========================================================================== */

/* Tablet Viewports (768px and up) */
@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    /* Responsive Restore Overrides */
    .calc-inputs-pane {
        padding: 2.5rem;
    }
    
    .calc-results-pane {
        padding: 2.5rem;
    }
    
    .monthly-payment-amount {
        font-size: 3.25rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .contact-form-column {
        padding: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.75rem;
    }
    
    /* Hero */
    .hero-brand-title {
        font-size: 3.75rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-actions .btn {
        width: auto;
    }
    
    .hero-logo-visual {
        width: 300px;
        height: 300px;
    }
    
    .hero-large-logo {
        max-width: 250px;
    }
    
    .logo-gold-glow {
        width: 280px;
        height: 280px;
    }
    
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tier-management {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Properties */
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonial-card {
        min-width: calc(50% - 1rem); /* Show 2 cards at a time on desktop track layout */
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .map-container {
        height: 350px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop Viewports (1024px and up) */
@media screen and (min-width: 1024px) {
    .hero {
        height: 100vh;
        min-height: 700px;
        padding: 0;
        align-items: center;
    }
    
    .hero-brand-title {
        font-size: 4.5rem;
    }
    
    /* Navbar */
    .burger-menu {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        transform: none;
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        box-shadow: none;
        width: auto;
    }
    
    /* Hero Search */
    .search-form {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Properties */
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Mortgage Calculator Split Screen */
    .calculator-card {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Testimonials */
    .testimonial-card {
        min-width: calc(33.333% - 1.333rem); /* Show 3 cards at a time */
    }
    
    .map-container {
        height: 100%;
        min-height: 300px;
    }
}

/* Custom adjustment for Mobile Overlay Navigation when active */
@media screen and (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-dark);
        border-left: 2px solid var(--accent);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 999;
        transition: var(--transition-smooth);
        box-shadow: -15px 0 35px rgba(0,0,0,0.5);
        padding: 2rem;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
}
