/* ===========================
   PropEdge Realty – style.css
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0f1c3f;
    --blue: #1a3a8f;
    --gold: #c8972b;
    --light: #f5f7fb;
    --white: #ffffff;
    --grey: #6b7280;
    --border: #e2e8f0;
    --card-shadow: 0 4px 24px rgba(15, 28, 63, 0.10);
    --ff-display: 'Playfair Display', serif;
    --ff-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--gold);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.35s, box-shadow 0.35s;
}

.navbar.scrolled {
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.logo-icon.small {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    color: var(--white);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1e45 0%, #1a3a8f 60%, #0f1c3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 50, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 18px;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.08rem;
    margin-bottom: 44px;
}

/* ---- SEARCH BOX ---- */
.search-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    text-align: left;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.stab {
    flex: 1;
    padding: 14px 10px;
    background: none;
    border: none;
    font-family: var(--ff-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--grey);
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.stab.active,
.stab:hover {
    color: var(--blue);
    border-bottom-color: var(--gold);
}

.search-inputs {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.sinput {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-right: 1px solid var(--border);
}

.sinput:last-of-type {
    border-right: none;
}

.sinput i {
    color: var(--grey);
    font-size: 0.95rem;
}

.sinput input,
.sinput select {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--ff-body);
    font-size: 0.9rem;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
}

.sinput select {
    cursor: pointer;
}

.search-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 16px 28px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #b3821e;
}

/* ---- SEARCH RESULTS ---- */
.search-results-section {
    padding: 60px 0;
    background: #f0f4ff;
}

/* ---- PROPERTIES GRID ---- */
.featured-section {
    padding: 90px 0;
    background: var(--light);
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
    line-height: 1.2;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background: var(--white);
    font-family: var(--ff-body);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--grey);
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.prop-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(15, 28, 63, 0.16);
}

.prop-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a8f, #0f1c3f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-img i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.prop-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.prop-badge.rent {
    background: #10b981;
}

.prop-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.prop-wishlist:hover {
    background: var(--gold);
    color: var(--white);
}

.prop-wishlist i {
    color: #e74c3c;
}

.prop-body {
    padding: 18px 20px 20px;
}

.prop-price {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.prop-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.prop-loc {
    font-size: 0.84rem;
    color: var(--grey);
    margin-bottom: 14px;
}

.prop-loc i {
    margin-right: 4px;
    color: var(--blue);
}

.prop-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pmeta {
    font-size: 0.8rem;
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pmeta i {
    color: var(--blue);
    font-size: 0.82rem;
}

/* ---- SERVICES ---- */
.services-section {
    padding: 90px 0;
    background: var(--navy);
}

.services-section .section-eyebrow {
    color: var(--gold);
}

.services-section .section-title {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    transition: background 0.3s, transform 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.4rem;
    color: var(--white);
}

.service-card h3 {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-list {
    list-style: none;
    margin-bottom: 22px;
}

.service-list li {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
}

.service-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 10px;
}

/* ---- ABOUT ---- */
.about-section {
    padding: 90px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-placeholder {
    height: 420px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a3a8f, #0f1c3f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--white);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(200, 151, 43, 0.4);
}

.badge-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 2.2rem;
    font-weight: 700;
}

.badge-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.about-text {
    color: var(--grey);
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.stat-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--grey);
    font-weight: 500;
}

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
    background: #b3821e;
    transform: translateY(-2px);
}

.cta-btn.full-btn {
    width: 100%;
    text-align: center;
}

/* ---- MODAL ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    background: var(--light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-prop-header {
    background: linear-gradient(135deg, #1a3a8f, #0f1c3f);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
    border-radius: 18px 18px 0 0;
}

.modal-body {
    padding: 28px;
}

.modal-price {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 4px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-loc {
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.mdetail {
    background: var(--light);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--grey);
}

.mdetail strong {
    display: block;
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.modal-desc {
    font-size: 0.92rem;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--ff-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.modal-btn.primary {
    background: var(--gold);
    color: var(--white);
    border: none;
}

.modal-btn.primary:hover {
    background: #b3821e;
}

.modal-btn.outline {
    background: none;
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.modal-btn.outline:hover {
    border-color: var(--navy);
}

/* ---- CONTACT ---- */
.contact-section {
    padding: 90px 0;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.cinfo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--grey);
}

.cinfo-item i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 20px;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.soc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.soc:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--ff-body);
    font-size: 0.9rem;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-top: 12px;
    font-size: 0.84rem;
    color: #10b981;
    font-weight: 500;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding: 60px 0 40px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 14px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 9px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge {
        right: 10px;
        bottom: -10px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 20px 24px;
        gap: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .search-inputs {
        flex-direction: column;
    }

    .sinput {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .search-btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal-details {
        grid-template-columns: 1fr 1fr;
    }
}