/* ============================================
   Johnny Ronca — Real Estate Site
   Fonts: Oswald (headings) + Inter (body)
   Colors: Black, White, #F5F5F5
   ============================================ */

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

:root {
    --black: #000;
    --white: #fff;
    --gray: #F5F5F5;
    --dark-gray: #999;
    --light-gray: #CCC;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 40px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
}

.btn-primary:hover {
    color: var(--black);
    background: var(--white);
}

.btn-dark {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
}

.btn-dark:hover {
    color: var(--black);
    background: transparent;
}

.btn-full {
    width: 100%;
}

/* ---- Navigation ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 24px 0;
}

nav.scrolled {
    background: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

nav.scrolled .logo,
nav.scrolled .nav-links a {
    color: var(--black);
}

nav.scrolled .hamburger span {
    background: var(--black);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    transition: color 0.3s, opacity 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80&fit=crop') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-pretitle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.8;
}

.hero h1 {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ---- Stats ---- */
.stats {
    background: var(--gray);
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--dark-gray);
    text-transform: uppercase;
}

/* ---- About ---- */
.about {
    padding: 96px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image picture {
    display: block;
    width: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 16px;
    color: #333;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 16px;
}

/* ---- Listings ---- */
.listings {
    padding: 96px 0;
}

.listings h2 {
    font-size: 40px;
    margin-bottom: 8px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.listing-card {
    display: block;
    overflow: hidden;
    transition: transform 0.3s;
}

.listing-card:hover {
    transform: translateY(-4px);
}

.listing-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
}

.listing-info {
    padding: 20px 16px;
    background: var(--white);
    box-shadow: 0 4px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-status {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--black);
    color: var(--white);
    padding: 4px 8px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 4px;
}

.listing-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
}

.listing-address {
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 4px;
    color: #333;
}

.listing-details {
    font-size: 13px;
    color: var(--dark-gray);
}

/* ---- Neighborhoods ---- */
.neighborhoods {
    padding: 96px 0;
    background: var(--gray);
}

.neighborhoods h2 {
    font-size: 40px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--dark-gray);
    margin-bottom: 48px;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.neighborhood-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.neighborhood-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.neighborhood-card:hover .neighborhood-image {
    transform: scale(1.05);
}

.neighborhood-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.neighborhood-info h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.neighborhood-link {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
}

.neighborhood-card:hover .neighborhood-link {
    opacity: 1;
}

/* ---- Testimonials ---- */
.testimonials {
    padding: 96px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 40px;
    margin-bottom: 48px;
}

.zillow-link {
    display: inline-block;
    font-weight: 600;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s;
}

.zillow-link:hover {
    opacity: 0.7;
}

.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stars {
    font-size: 24px;
    color: #000;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonial-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.dot.active {
    background: var(--black);
}

/* ---- Contact ---- */
.contact {
    position: relative;
    padding: 96px 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80&fit=crop') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact .section-subtitle {
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form select {
    color: rgba(255,255,255,0.5);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form select option {
    color: var(--black);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--white);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    margin-top: 8px;
    font-size: 16px;
    padding: 18px;
    border: 2px solid var(--white);
}

.contact-info {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 1;
}

/* ---- Footer ---- */
footer {
    background: var(--white);
    padding: 64px 0 32px;
    border-top: 1px solid #eee;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-social a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--black);
}

.footer-disclaimer {
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--dark-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.footer-disclaimer p + p {
    margin-top: 8px;
}

/* ---- Valuation ---- */
.valuation {
    padding: 80px 0;
    background: var(--gray);
    text-align: center;
}

.valuation h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.valuation p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: #555;
    line-height: 1.8;
}

/* ---- FAQ ---- */
.faq {
    padding: 96px 0;
}

.faq h2 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: #555;
    line-height: 1.8;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .neighborhoods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 99;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links a {
        font-size: 24px;
        color: var(--white) !important;
    }
    
    .hamburger {
        display: flex;
        z-index: 101;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact h2 {
        font-size: 36px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .hero h1 {
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}
