/* 
   540 Atlantic Avenue - Main Stylesheet
   A luxury real estate development in Boerum Hill, Brooklyn
*/

/* ===== Base Styles ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0a080;
    --accent-color: #e67e22;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #4a4a4a;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--dark-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.column {
    flex: 1;
    min-width: 300px;
}

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.inputcreativestudio.com/uploads/2024/08/22b84e0004a9cace9f647151463fbdc3_dac842ae694a95769f2821a391bbd715_projectdetailretina.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ===== Property Overview ===== */
.property-overview {
    padding: 100px 0;
    background-color: var(--light-color);
}

.property-highlights {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.property-highlights h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.property-highlights ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-highlights ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ===== Residences ===== */
.residences {
    padding: 100px 0;
}

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

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

.unit-types {
    text-align: center;
}

.unit-types h3 {
    margin-bottom: 30px;
}

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

.unit {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.unit:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.unit h4 {
    color: white;
    margin-bottom: 10px;
}

.note {
    font-style: italic;
    color: var(--dark-color);
}

/* ===== Amenities ===== */
.amenities {
    padding: 100px 0;
    background-color: var(--light-color);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.amenity {
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.amenity:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 20px;
}

.amenity-content h3 {
    margin-bottom: 10px;
}

/* ===== Neighborhood ===== */
.neighborhood {
    padding: 100px 0;
}

.neighborhood-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.neighborhood-feature {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.neighborhood-feature h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.neighborhood-feature ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.neighborhood-feature ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* ===== Developer ===== */
.developer {
    padding: 100px 0;
    background-color: var(--light-color);
}

.developer h3 {
    color: var(--secondary-color);
    margin-top: 20px;
}

.developer ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.developer ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.vision-statement {
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 8px;
    height: 100%;
}

.vision-statement h3 {
    color: white;
}

.vision-statement p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-item h3 {
    margin-bottom: 5px;
}

.visit-info {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.visit-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-container {
    position: relative;
    height: 500px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.gallery-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
}

.gallery-caption h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.gallery-caption p {
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.gallery-prev,
.gallery-next {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .gallery-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        height: 300px;
    }
    
    .gallery-caption h3 {
        font-size: 1.2rem;
    }
    
    .gallery-caption p {
        font-size: 0.8rem;
    }
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-social h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: white;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .two-column {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}
