/* ==========================================
   Jeffrey Seligson Realtor Website Styles
   Modern Professional Theme - Mobile First Responsive
   ========================================== */

/* ==========================================
   CSS Variables - Modern Blue & Gray Palette
   ========================================== */
:root {
    /* Primary Colors */
    --forest-green: #1e3a5f;      /* Navy blue - primary brand color */
    --sage-green: #3b82f6;        /* Bright blue - accents & CTAs */
    --warm-brown: #475569;        /* Slate gray - secondary elements */

    /* Accent Colors */
    --dark-olive: #1e293b;        /* Charcoal - dark backgrounds */
    --light-sage: #e0f2fe;        /* Light blue - subtle backgrounds */
    --cream: #f8fafc;             /* Off-white - main backgrounds */

    /* Neutrals */
    --dark-text: #1e293b;         /* Charcoal - headings & primary text */
    --light-text: #ffffff;        /* White - text on dark backgrounds */
    --gray-text: #64748b;         /* Slate - body text & muted content */
    --border-color: #e2e8f0;      /* Light gray - borders & dividers */

    /* Spacing */
    --section-padding: 4rem 2rem;
    --container-max-width: 1200px;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================
   Container & Layout
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   Navigation Header
   ========================================== */
.main-header {
    background-color: var(--light-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
    line-height: 1.3;
}

/* Legacy support */
.logo-text {
    height: 50px;
    width: auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: none; /* Hidden on mobile, shown on tablet+ */
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--forest-green);
    border-bottom-color: var(--sage-green);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-text);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--dark-text);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/background-landscape.jpg') center/cover no-repeat;
    color: var(--light-text);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 80, 22, 0.6); /* Forest green overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-sage);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--warm-brown);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--dark-olive);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Section Styles
   ========================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--forest-green);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--sage-green);
    margin: 1rem auto 0;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--light-text);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--gray-text);
    font-size: 1.05rem;
}

.about-intro {
    font-size: 1.15rem !important;
    color: var(--dark-text) !important;
    font-weight: 500;
}

.credentials {
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background-color: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--forest-green);
}

.credentials h3 {
    font-size: 1.4rem;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    font-size: 1rem;
}

.credentials-list strong {
    color: var(--dark-text);
}

/* Expertise Badges */
.expertise-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--light-sage);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-4px);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.badge-text {
    font-weight: 600;
    color: var(--dark-olive);
    font-size: 0.95rem;
}

/* ==========================================
   Reviews Section
   ========================================== */
.reviews-section {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars {
    color: #f5a623;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-platform {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-text {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.reviews-cta {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-sage);
    border-radius: 8px;
}

.reviews-cta p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 500;
}

.review-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--forest-green);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.review-link:hover {
    background-color: var(--dark-olive);
}

.review-icon {
    height: 20px;
    width: auto;
}

/* ==========================================
   Listings Section
   ========================================== */
.listings-section {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.listings-subsection {
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 2rem;
    color: var(--dark-olive);
    margin-bottom: 1rem;
}

.subsection-description {
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Placeholder Card */
.placeholder-card {
    background-color: var(--light-text);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.placeholder-content h4 {
    font-size: 1.8rem;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.placeholder-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--forest-green);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.placeholder-cta:hover {
    background-color: var(--dark-olive);
}

/* Listing Cards */
.listing-card {
    position: relative;
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.sold-badge {
    background-color: var(--warm-brown);
    color: var(--light-text);
}

.listing-image {
    height: 250px;
    background-color: var(--light-sage);
    position: relative;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-olive);
    font-weight: 600;
    font-size: 1.1rem;
}

.listing-details {
    padding: 1.5rem;
}

.listing-address {
    font-size: 1.3rem;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

.listing-features {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.listing-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0.5rem 0;
}

.listing-date {
    font-size: 0.9rem;
    color: var(--warm-brown);
    font-style: italic;
    margin-top: 0.5rem;
}

/* IDX Embed Styles */
.idx-embed-container {
    background-color: var(--light-text);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.idx-notice {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--light-text);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    background-color: var(--cream);
    border-radius: 4px;
    border-left: 3px solid var(--sage-green);
}

.contact-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-right: 0.5rem;
}

.contact-link {
    color: var(--forest-green);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--dark-olive);
    text-decoration: underline;
}

/* Contact Form (prepared for future) */
.contact-form-container {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 8px;
}

.form-notice {
    text-align: center;
    color: var(--gray-text);
    font-style: italic;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-section-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: var(--dark-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: var(--forest-green);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--forest-green);
}

.checkbox-label span {
    user-select: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--forest-green);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--dark-olive);
}

.submit-button:disabled {
    background-color: var(--gray-text);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Messages */
.form-messages {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background-color: var(--forest-green);
    color: var(--light-text);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--light-sage);
    margin-top: 1rem;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design - Mobile (max 767px)
   ========================================== */
@media (max-width: 767px) {
    .logo-image {
        height: 40px;
    }

    .logo-tagline {
        display: none; /* Hide tagline on mobile to save space */
    }

    /* Legacy support */
    .logo-text {
        height: 40px;
    }
}

/* ==========================================
   Responsive Design - Tablet (768px+)
   ========================================== */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: row;
        gap: 3rem;
    }

    .about-image {
        flex: 0 0 300px;
    }

    .about-text {
        flex: 1;
    }

    .expertise-badges {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info,
    .contact-form-container {
        flex: 1;
    }
}

/* ==========================================
   Responsive Design - Desktop (1024px+)
   ========================================== */
@media (min-width: 1024px) {
    .hero-section {
        height: 80vh;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .expertise-badges {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .placeholder-card {
        grid-column: 1 / -1;
        padding: 4rem 3rem;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .main-header,
    .hero-section,
    .cta-button,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
