/* ======================================= */
/* 1. Global & Typography Styles */
/* ======================================= */

body {
    margin: 0;
    padding: 0;
    /* Using Times New Roman as requested */
    font-family: 'Times New Roman', Times, serif; 
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400; 
}

a {
    text-decoration: none;
    color: #333;
}

/* --- Top Banner --- */
.promo-banner {
    background-color: black;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8em;
}

/* --- Header & Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: black;
    font-size: 0.9em;
    text-transform: uppercase;
}


/* ======================================= */
/* 2. Hero Section */
/* ======================================= */

.hero-section {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtext {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.hero-headline {
    font-size: 4em; 
    margin: 0.1em 0;
    line-height: 1.1;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Button Styles */
.btn {
    text-decoration: none;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid transparent;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #C35639; /* The burnt orange color from the mockup */
    color: white;
    font-weight: bold;
}

.btn-secondary {
    background: none;
    color: #333;
    border: none;
    font-size: 0.9em;
}

.hero-graphic {
    width: 100px; /* Sizing for the cactus placeholder */
    margin-top: 20px;
}

/* ======================================= */
/* 3. Image Gallery Showcase */
/* ======================================= */

.image-showcase {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.full-image {
    width: 100%; 
    height: auto;
    display: block;
}

.property-details {
    text-align: right; /* Aligned to the right in the mockup */
    padding: 10px 0;
    font-size: 0.8em;
}

/* --- CSS GRID for the Five-Image Gallery --- */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns of equal size */
    gap: 15px; 
    padding: 20px 0;
}

.thumbnail {
    margin: 0; 
    padding: 0;
    text-align: center;
}

.thumbnail img {
    width: 100%; 
    height: auto;
    display: block;
}

.thumbnail figcaption {
    font-size: 0.7em;
    padding-top: 5px;
}


/* ======================================= */
/* 4. Mission Section */
/* ======================================= */

.mission-section {
    background-color: #222; 
    color: white;
    padding: 80px 15%; 
    text-align: center;
}

.mission-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.signature-image {
    width: 200px; 
    height: auto;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ribbon-graphic {
    width: 50px;
    height: auto;
    margin-top: 15px;
}

/* --- Rainbow Separator --- */
.rule-line {
    height: 10px;
    background: linear-gradient(to right, #E94E77, #F9A74E, #FFD93E, #4CAF50, #3498DB);
    margin: 0;
}


/* ======================================= */
/* 5. Pricing and Membership (SF Table) */
/* ======================================= */

.pricing-sf-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-sf-section .section-title,
.comparison-heading {
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
    padding-top: 20px;
}

.pricing-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 0.9em;
}

.membership-graphic-top {
    float: right;
    width: 100px;
}

.sf-table-wrapper {
    display: flex; 
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    /* Allows horizontal scroll on small screens */
    overflow-x: auto; 
}

.sf-pricing-table {
    width: 700px; /* Fixed width for better control on desktop */
    min-width: 450px; /* Ensure table doesn't get too small */
    border-collapse: collapse; 
    font-size: 0.95em;
    border: 1px solid black; 
}

.sf-pricing-table th, 
.sf-pricing-table td {
    border: 1px solid black; 
    padding: 12px 15px;
}

.sf-pricing-table th {
    background-color: #f7f7f7; 
    font-weight: bold;
    text-align: center;
}

.sf-pricing-table td:nth-child(1),
.sf-pricing-table td:nth-child(3) {
    text-align: left;
    font-weight: 500; 
    width: 30%; 
}

.sf-pricing-table td:nth-child(2),
.sf-pricing-table td:nth-child(4) {
    text-align: right;
    font-weight: bold; 
    width: 20%;
}

.deer-graphic {
    width: 150px; 
    height: auto;
    margin-top: 50px;
}


/* ======================================= */
/* 6. Membership Comparison Grid */
/* ======================================= */

.comparison-section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- Brokerage Plan Styling --- */
.brokerage-plan {
    border: 1px solid black;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.brokerage-plan h3 {
    font-size: 1.8em;
    color: #007bff; /* Using a blue placeholder for emphasis */
    margin: 0;
}

.brokerage-plan .price {
    font-size: 1.2em;
    margin-top: 5px;
    font-weight: bold;
}

.brokerage-features {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    margin: 20px 0;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}


/* --- BASE/PRO/ELITE Grid Layout --- */
.membership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns for the plans */
    gap: 20px;
    margin-top: 20px;
}

.membership-plan {
    border: 1px solid black;
    padding: 20px;
    text-align: left;
}

.membership-plan h3 {
    font-size: 2em;
    margin-bottom: 0;
}

.membership-plan .price {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0 20px 0;
}

.pricing-detail {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Feature and Cost split */
    gap: 5px 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.pricing-detail p,
.pricing-detail .cost {
    margin: 0;
    padding: 5px 0;
}

.pricing-detail .cost {
    text-align: right;
    font-weight: bold;
}

.total {
    display: grid;
    grid-template-columns: 2fr 1fr;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid black;
}

.inflation-note {
    font-size: 0.8em;
    margin-top: 30px;
    color: #555;
}


/* ======================================= */
/* 7. Mobile Responsiveness (Media Queries) */
/* ======================================= */

@media (max-width: 1000px) {
    /* Adjust for medium-sized screens (like tablets) */
    .membership-grid {
        /* Drop from 3 columns to 2 */
        grid-template-columns: 1fr 1fr; 
    }
    .membership-plan:nth-child(3) {
        /* Center the 3rd column if only 2 are displayed per row */
        grid-column: 1 / span 2; 
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Adjust for small screens (phones) */
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .main-nav ul {
        margin-top: 15px;
        gap: 15px;
    }
    .hero-headline {
        font-size: 2.5em; 
    }
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    }
    .membership-grid {
        /* Stack plans into a single column */
        grid-template-columns: 1fr; 
    }
    .membership-plan:nth-child(3) {
        /* Reset centering for single column */
        grid-column: auto;
        max-width: 100%;
    }
    .brokerage-features {
        /* Stack the brokerage features vertically */
        grid-template-columns: 1fr; 
    }
}