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

body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #ded9cc;
}

.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Smith-Rock.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.70); /* Lightened to let the image show */
    z-index: 2;
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}

.content {
    padding: 2rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 140px; 
    height: auto;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4rem;
    font-weight: 500; 
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    color: #ded9cc;
    line-height: 1;
}

h2 {
    font-size: 2.2rem;
    font-weight: 500; 
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #ded9cc;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400; 
    letter-spacing: 4px;
    margin-bottom: 3.5rem;
    color: #888;
    text-transform: uppercase;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 4rem;
}

.contact-info a {
    color: #ded9cc;
    background-color: transparent; 
    border: 2px solid #ded9cc; 
    text-decoration: none;
    font-weight: 500;
    padding: 16px 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; 
}

.icon {
    width: 20px;
    height: 20px;
}

.contact-info a:hover {
    background-color: #ded9cc;
    color: #000;
    transform: scale(1.02);
}

.footer-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.pellego {
    font-size: 0.75rem;
    color: #444;
}

.menu-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    cursor: pointer;
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.menu-btn svg {
    stroke: #ded9cc; /* Forces the exact color palette */
}

.menu-btn:hover {
    transform: scale(1.1);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98); 
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease; 
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.close-btn svg {
    stroke: #ded9cc; /* Forces the exact color palette */
}

.close-btn:hover {
    transform: rotate(90deg); 
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 2rem 0;
}

.nav-links a {
    color: #ded9cc;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #888;
}

.page-container {
    position: relative;
    z-index: 3;
    padding: 6rem 1.5rem 4rem 1.5rem; 
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.about-box {
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid #333;
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ccc;
}

.about-box p {
    margin-bottom: 1.5rem;
}

.listing-card {
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid #333;
    overflow: hidden;
}

.listing-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    background-color: #222;
    display: block;
}

.listing-body {
    padding: 2.5rem;
}

.listing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #ded9cc;
    margin-bottom: 0.5rem;
}

.listing-address {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.listing-stats {
    display: flex;
    gap: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ded9cc;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.listing-desc {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.btn-solid {
    display: inline-block;
    color: #000;
    background-color: #ded9cc;
    text-decoration: none;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-solid:hover {
    background-color: #fff;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #ded9cc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-control {
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ded9cc;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }
    .subtitle { font-size: 0.85rem; letter-spacing: 2px; }
    .logo { width: 100px; }
    .contact-info a { width: 100%; max-width: 320px; }
    .page-title h1 { font-size: 2.5rem; }
    .about-box, .listing-body { padding: 1.5rem; }
    .listing-img { height: 250px; }
    .listing-stats { gap: 1.5rem; flex-wrap: wrap; }
}
