/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.home-body, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f9fc;
    color: #333;
    padding-top: 90px; /* navbar height */
    min-height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* --- Animated Header Navbar --- */
.modern-navbar, .top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    z-index: 100;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.navbar-container, .header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.navbar-logo-group, .logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 0 0 auto;
}
.navbar-logo-group img, .logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    vertical-align: middle;
}
.navbar-title, .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #005028;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* --- Navigation --- */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.navbar-links, .nav-links {
    display: flex;
    gap: 2.2rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-link, .nav-links a {
    color: #231F20;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.nav-link.active, .nav-links a.active,
.nav-link:hover, .nav-links a:hover {
    color: #D12027;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Auth & Action Buttons --- */
.navbar-actions {
    display: flex;
    gap: 1.3rem;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 2.5rem;
}
.navbar-btn {
    border-radius: 9999px;
    padding: 0.6rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    outline: none;
    border: none;
    background: #005028;
    color: #fff;
    cursor: pointer;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: none;
}
.navbar-btn.enquire-btn,
.navbar-btn.login-btn,
.navbar-btn.signup-btn {
    background: #005028;
}
.navbar-btn.enquire-btn:hover,
.navbar-btn.login-btn:hover,
.navbar-btn.signup-btn:hover {
    background: #D12027;
}
.navbar-btn i {
    font-size: 1.1em;
}

/* --- Dropdown Styles --- */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.2rem 0;
    background: none;
    border: none;
}
.dropdown-toggle i {
    margin-left: 7px;
    font-size: 0.9rem;
    transition: transform 0.18s;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: flex;
}
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #fff;
    box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    min-width: 370px;
    z-index: 999;
    gap: 2rem;
    flex-direction: row;
    transition: box-shadow 0.22s;
}
.dropdown-column {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.dropdown-column h4 {
    font-size: 1rem;
    color: #005028;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.dropdown-column a {
    color: #231F20;
    text-decoration: none;
    font-size: 1.01rem;
    margin: 0.2rem 0;
    transition: color 0.16s;
    padding: 0.1rem 0;
}
.dropdown-column a:hover {
    color: #D12027;
}

/* --- Hamburger Styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
    margin-right: 12px;
}
.hamburger .bar {
    height: 4px;
    width: 28px;
    margin: 4px auto;
    background: #231F20;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hide nav, show hamburger on screens smaller than a tablet --- */
@media (max-width: 900px) {
    .navbar-container, .header-top-content {
        flex-wrap: wrap;
        padding: 0 1rem;
        gap: 1rem;
    }
    .navbar-logo-group img, .logo img { height: 50px; width: 50px;}
    .navbar-title, .logo span { font-size: 1.3rem; }
    .navbar-links, .nav-links { gap: 1.5rem; }
    .navbar-btn { padding: 0.6rem 1.2rem; }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 4000;
    }
    .main-nav {
        position: fixed;
        top: 80px; /* below header */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
        z-index: 3000;
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        padding: 2.5rem 0 2rem 0;
        min-height: 50vh;
        max-height: 90vh;
        overflow-y: auto;
    }
    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .navbar-links, .nav-links {
        flex-direction: column;
        gap: 1.8rem;
        width: 100%;
        align-items: center;
        background: #f1f1f1;
        border-radius: 36px;
        padding: 1.2rem 0.6rem;
        box-shadow: 0 8px 36px rgba(0,80,40,0.07);
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: none;
        border-radius: 0;
        padding: 0.6rem 0;
        min-width: unset;
        width: 100%;
        gap: 1.4rem;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
    }
    .modern-navbar, .top-header {
        position: fixed !important;
        box-shadow: none !important;
        border-bottom: none !important;
        z-index: 2000;
    }
    body, .home-body {
        padding-top: 5 !important;
    }
}
@media (max-width: 700px) {
    .navbar-container, .header-top-content {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .main-nav {
        top: 65px;
    }
    .navbar-logo-group img, .logo img { height: 100px; width: 100px;}
    .navbar-title, .logo span { font-size: 1.5rem; }
    .navbar-btn { padding: 0.1rem 1rem; font-size: 0.8rem; }
}

/* Ensure nav is visible on desktop/tablet and hamburger hidden */
@media (min-width: 769px) {
    .main-nav {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 !important;
        min-height: unset !important;
        max-height: unset !important;
        overflow-y: visible !important;
        display: flex !important;
    }
    .hamburger {
        display: none !important;
    }
}

/* --- Desktop & Mobile Actions --- */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; justify-content: center; margin-top: 1.5rem; gap: 1rem; }
}
@media (min-width: 769px) {
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
}

/* --- Enquire Button Mobile --- */
.enquire-btn-mobile {
    display: none;
}
@media (max-width: 950px) {
    .navbar-logo-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .enquire-btn-header {
        display: none !important;
    }
    .enquire-btn-mobile {
        display: inline-flex;
        margin-top: 8px;
        background: #005028;
        color: #fff;
        padding: 0.6rem 1.4rem;
        border-radius: 9999px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        text-decoration: none;
        align-items: center;
        gap: 0.5rem;
        transition: background 0.2s, color 0.2s;
        outline: none;
        cursor: pointer;
    }
    .enquire-btn-mobile:hover {
        background: #D12027;
        color: #fff;
    }
}
@media (min-width: 951px) {
    .enquire-btn-mobile {
        display: none !important;
    }
}

/* --- Footer Styles (copy from careers for consistency) --- */
.modern-footer {
    background: linear-gradient(90deg, #F1F1F1 0%, #fff 100%);
    color: #231F20;
    text-align: center;
    padding: 2.5rem 0 1rem 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.1rem;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-col {
    text-align: center;
}
.footer-heading {
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 0.5rem;
}
.footer-social a {
    color: #231F20;
    font-size: 1.5rem;
    transition: color 0.18s, transform 0.18s, text-shadow 0.18s;
    will-change: transform, color, text-shadow;
    text-shadow: 0 0 0px #D12027, 0 0 0px #ffb200;
}
.footer-social a:hover {
    color: #D12027;
    transform: scale(1.18) translateY(-4px);
    text-shadow: 0 0 8px #D12027, 0 0 16px #ffb200, 0 0 4px #fff;
}
.footer-social a:active {
    animation: bounce 0.35s;
}
@keyframes bounce {
    0% { transform: scale(1.18) translateY(-4px);}
    40% { transform: scale(0.93) translateY(2px);}
    100% { transform: scale(1.18) translateY(-4px);}
}
.footer-bottom {
    color: #58595B;
    font-size: 1rem;
    margin-top: 1.2rem;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
}

/* --- Responsive Cards and Grid --- */
@media (max-width: 768px) {
    .section {
        padding-top: 1.5rem;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 90px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
    z-index: 1;
}
.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 3.2rem 1rem 2rem;
}
.hero-content-modern h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
}
#typed-text {
    font-size: 2.3rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.02em;
    display: inline-block;
}
.hero-sub {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.2rem;
    color: #f5f5f5;
}
.hero-searchbar {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.12);
    padding: 0.3rem 0.6rem;
    margin-bottom: 1.7rem;
    gap: 0.6rem;
}
.hero-search-input {
    flex: 1;
    border: none;
    font-size: 1.13rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    outline: none;
    color: #231F20;
    background: transparent;
}
.hero-search-input::placeholder {
    color: #A5A5A5;
    font-size: 1rem;
}
.hero-search-btn {
    background: #005028;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.7rem 2rem;
    cursor: pointer;
    transition: background 0.18s;
}
.hero-search-btn:hover {
    background: #D12027;
}
.hero-discover-link {
    display: inline-block;
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 1.2rem;
    transition: color 0.2s;
}
.hero-discover-link:hover {
    color: #D12027;
}

/* --- ABOUT SECTION (Why Choose Cactus Properties) --- */
.modern-about-section {
    background: #F8F8F8;
    padding: 4.5rem 0 3.2rem;
}
.about-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}
.about-title {
    font-size: 2.1rem;
    color: #231F20;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.highlight {
    color: #D12027;
}
.about-desc {
    color: #58595B;
    font-size: 1.13rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2.2rem auto;
    line-height: 1.7;
}
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.6rem;
}
.about-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.09);
    transition: box-shadow 0.25s, transform 0.24s;
    padding: 2rem 1.2rem 1.3rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-card:hover {
    box-shadow: 0 8px 24px 0 rgba(209,32,39,.08), 0 1.5px 6px 0 rgba(0,0,0,0.07);
    transform: translateY(-5px) scale(1.03);
}
.about-card-title {
    font-size: 1.18rem;
    color: #005028;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.about-card p {
    color: #58595B;
    font-size: 1.01rem;
    margin: 0;
    font-weight: 400;
}

/* --- Icons Section (About Stats) --- */
.icons-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 2.5rem auto 0;
}
.icon-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 200px;
    text-align: center;
}
.icon-box h3 {
    margin: 10px 0 5px;
    font-size: 20px;
}
.icon-box p {
    margin: 0;
    color: #777;
}

/* --- CTA SECTION --- */
.modern-cta-section {
    background: #231F20;
    color: #fff;
    text-align: center;
    padding: 3.5rem 1rem 3.5rem 1rem;
}
.modern-cta-section h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.modern-cta-section p {
    font-size: 1.12rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #eee;
}
.cta-btn {
    background: #D12027;
    color: #fff;
    padding: 0.9rem 2.6rem;
    font-size: 1.15rem;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.09);
    text-decoration: none;
    display: inline-block;
}
.cta-btn:hover {
    background: #005028;
    color: #fff;
}

/* --- Featured Properties --- */
.featured-properties {
    padding: 50px 20px;
    background-color: white;
}
.featured-properties h2 {
    text-align: center;
    margin-bottom: 30px;
}
.properties-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.property-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.property-card .details {
    padding: 15px;
}
.property-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.property-card p {
    margin: 0;
}
.property-card a {
    display: inline-block;
    margin-top: 10px;
    background: #27ae60;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.property-card a:hover {
    background: #D12027;
}

/* --- Call To Action --- */
.cta-section {
    padding: 50px 20px;
    text-align: center;
    background: #27ae60;
    color: white;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.cta-buttons a {
    display: inline-block;
    margin: 10px;
    background: white;
    color: #27ae60;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.cta-buttons a.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.cta-buttons a:hover {
    background: #D12027;
    color: #fff;
}

/* --- Responsive Tweaks & Hamburger Menu for Mobile --- */
@media (max-width: 768px) {
    .section {
        padding-top: 1.5rem;
    }
    .hero-section { min-height: 65vh; margin-top: 0; }
    .hero-content-modern { padding: 1.5rem 0.5rem; }
    .hero-content-modern h1, #typed-text { font-size: 1.5rem; }
    .about-title { font-size: 1.1rem; }
    .modern-about-section { padding: 2.2rem 0 2rem; }
    .icons-container { gap: 10px; }
    .icon-box { width: 100px; padding: 5px; font-size: 0.85rem; }
    .about-cards { grid-template-columns: 1fr; gap: 1rem; }
    .about-card { padding: 1.2rem 0.7rem 1rem; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .enquire-btn-header {
    display: block;
    width: 90%;
    max-width: 320px;
    margin: 0.5rem auto 0 auto;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    background: #005028;
    color: #fff;
    border-radius: 9999px;
    text-align: center;
    font-weight: 600;
  }
}
@media (min-width: 769px) {
  .enquire-btn-header {
    display: none !important;
  }
}