
/* =========================================
   SAMRUDDHI HOMES
   PREMIUM RESPONSIVE HEADER
   GREEN & GOLD THEME
========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* HEADER VARIABLES */
:root {
    --header-green: #315C49;
    --header-dark: #1D3C30;
    --header-gold: #B99A62;
    --header-cream: #E5F0E7;
    --header-text: #263F32;
    --header-white: #FFFFFF;
    --header-border: #CEDFCF;
    --nav-highlight: #4a4105;
}

/* RESET */
.site-header,
.site-header * {
    box-sizing: border-box;
}

/* MAIN HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--header-cream);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 18px rgba(35, 70, 48, 0.07);
    font-family: 'DM Sans', sans-serif;
}

/* HEADER CONTAINER */
.header-container {
    width: 90%;
    max-width: 1400px;
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* LOGO */
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    height: 75px;
    width: auto;
    max-width: 250px;
    display: block;
    object-fit: contain;
}

/* DESKTOP NAVIGATION */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 29px;
    margin-left: auto;
}

/* NAVIGATION LINKS */
.site-header .main-nav a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: var(--header-text);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* UNDERLINE - HIDDEN BY DEFAULT */
.site-header .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background-color: var(--nav-highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
    color: var(--nav-highlight) !important;
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* ACTIVE PAGE - REMAINS HIGHLIGHTED */
.site-header .main-nav a.active {
    color: var(--nav-highlight) !important;
}

.site-header .main-nav a.active::after {
    transform: scaleX(1);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* SOCIAL ICONS */
.header-social {
    display: flex;
    align-items: center;
    gap: 9px;
}

.header-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-green);
    background: transparent;
    border: 1px solid rgba(49, 92, 73, 0.25);
    border-radius: 50%;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-header .header-social a:hover,
.site-header .header-social a:focus-visible {
    color: var(--header-white);
    background: var(--nav-highlight);
    border-color: var(--nav-highlight);
    transform: translateY(-3px);
}

/* LIST YOUR PROPERTY BUTTON */
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 19px;
    background: var(--header-green);
    color: var(--header-white);
    border: 1px solid var(--header-green);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-cta span {
    color: var(--header-gold);
    font-size: 17px;
    transition: color 0.3s ease;
}

.site-header .header-cta:hover,
.site-header .header-cta:focus-visible {
    background: var(--nav-highlight);
    color: var(--header-white);
    border-color: var(--nav-highlight);
    transform: translateY(-3px);
}

.site-header .header-cta:hover span {
    color: var(--header-white);
}

/* MOBILE MENU BUTTON */
.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    border: 1px solid #B7CDBB;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    display: block;
    background: var(--header-green);
    transition: all 0.3s ease;
}

/* HAMBURGER TO X */
.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE LIST BUTTON */
.mobile-list-btn {
    display: none;
    transition: all 0.3s ease;
}

/* BODY SPACING */
body {
    padding-top: 88px;
}

/* TABLET RESPONSIVE */
@media (max-width: 1100px) {
    .header-container {
        width: 94%;
        gap: 15px;
    }

    .main-nav {
        gap: 17px;
    }

    .site-header .main-nav a {
        font-size: 13px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-cta {
        padding: 12px 13px;
        font-size: 12px;
    }

    .brand img {
        height: 58px;
        max-width: 170px;
    }

    .header-social {
        gap: 6px;
    }

    .header-social a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* MOBILE NAVIGATION */
@media (max-width: 850px) {
    .header-container {
        width: 92%;
        min-height: 75px;
        gap: 12px;
    }

    .brand img {
        height: 55px;
        max-width: 175px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 10001;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 12px 6% 25px;
        background-color: var(--header-cream);
        border-top: 1px solid var(--header-border);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease,
                    transform 0.3s ease,
                    visibility 0.3s ease;
    }

    .main-nav.nav-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header .main-nav a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        font-size: 15px;
        border-bottom: 1px solid rgba(24, 61, 50, 0.08);
    }

    /* MOBILE HOVER AND ACTIVE UNDERLINE */
    .site-header .main-nav a::after {
        left: 10px;
        bottom: 7px;
        width: calc(100% - 20px);
    }

    .site-header .main-nav a:hover,
    .site-header .main-nav a:focus-visible,
    .site-header .main-nav a.active {
        color: var(--nav-highlight) !important;
        background-color: rgba(74, 65, 5, 0.06);
    }

    .site-header .main-nav a:hover::after,
    .site-header .main-nav a:focus-visible::after,
    .site-header .main-nav a.active::after {
        transform: scaleX(1);
    }

    .mobile-list-btn {
        display: block !important;
        margin-top: 15px;
        padding: 14px 18px !important;
        background: var(--header-green);
        color: var(--header-white) !important;
        text-align: center;
        border: 1px solid var(--header-green) !important;
        border-radius: 3px;
    }

    .site-header .mobile-list-btn:hover,
    .site-header .mobile-list-btn:focus-visible {
        background: var(--nav-highlight);
        border-color: var(--nav-highlight) !important;
    }

    body.menu-open {
        overflow: hidden;
    }

    body {
        padding-top: 75px;
    }
}

/* SMALL MOBILE */
@media (max-width: 380px) {
    .header-container {
        min-height: 68px;
    }

    .brand img {
        height: 47px;
        max-width: 145px;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    body {
        padding-top: 68px;
    }
}

/* ACCESSIBILITY */
.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid var(--header-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-header *,
    .site-header *::before,
    .site-header *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* =========================================
   MOBILE LIST YOUR PROPERTY
========================================= */

/* Hide mobile CTA on desktop */
.mobile-list-property {
    display: none;
}

@media (max-width: 768px) {

    /* Show CTA only when mobile menu is open */
    .main-nav.nav-open .mobile-list-property {
        display: flex !important;

        align-items: center;
        justify-content: center;
        gap: 10px;

        width: 85%;
        margin: 20px auto;

        padding: 14px 20px;

        background: #315C49;
        color: #FFFFFF !important;

        font-size: 14px;
        font-weight: 700;

        text-decoration: none;
        border-radius: 4px;
    }

    .main-nav.nav-open .mobile-list-property:hover {
        background: #1D3C30;
        color: #FFFFFF !important;
    }

    .mobile-list-property span {
        font-size: 17px;
    }
}