/* PN HOMES - Main Frontend Styles */
:root {
    --gold: #D4AF37;
    --dark: #0a0a0a;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --grey-text: #666666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif; /* Modern sans-serif for body */
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Elegant serif for headings */
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: #c19b2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

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

/* Section styling */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--gold);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--grey-text);
    font-size: 1.1rem;
    margin-top: 25px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
}

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

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    letter-spacing: 2px;
}

.navbar.scrolled .navbar-brand {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.navbar.scrolled .nav-links li a {
    color: var(--dark);
}

.navbar.scrolled .nav-links li a:hover,
.nav-links li a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

/* Add Overlay to Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Search Bar on Hero (99acres style) */
.search-container {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    margin-top: 40px;
    box-shadow: var(--shadow-premium);
    color: var(--dark);
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.search-field input, .search-field select {
    border: none;
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    font-weight: 500;
}

/* Property Cards (99acres inspired) */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

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

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

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

.property-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-info {
    padding: 25px;
}

.property-info .cat {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.property-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.property-info p.location {
    color: var(--grey-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.property-meta span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--grey-text);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 15px;
    display: block;
}

/* Premium Projects (Block Style like 99acres) */
.project-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 80px 0;
    color: var(--white);
}

/* Footer Section */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #ccc;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .search-container {
        flex-direction: column;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}
