/*
Theme Name: WichitaHouse
Theme URI: https://wichitahouse.com
Author: Frank Priest III
Description: Modern Luxury Real Estate Theme
Version: 2.0.0
Text Domain: wichitahouse
*/

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #1A2A3A; /* Deep Navy */
    --color-primary-light: #2C3E50;
    --color-gold: #C5A059; /* Metallic Gold */
    --color-gold-dark: #A0803F;
    --color-gold-light: #E5C580;
    --color-white: #FFFFFF;
    --color-off-white: #F9F9F9;
    --color-text-body: #4A4A4A;
    --color-text-heading: #1A2A3A;
    --color-border: #E0E0E0;
    
    /* Status Colors */
    --color-status-active: #27AE60;
    --color-status-sold: #7F8C8D;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 90px;
    --radius-sm: 4px;
    --radius-md: 8px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-card: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-float: 0 20px 40px rgba(0,0,0,0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 500; }

a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: white !important; }

/* ==========================================================================
   2. Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--xl { padding: 1.2rem 3rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.5rem; font-size: 0.8rem; }

.btn--primary {
    background-color: var(--color-primary);
    color: white;
}
.btn--primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn--gold {
    background-color: var(--color-gold);
    color: white;
}
.btn--gold:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

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

.btn-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    position: relative;
}
.btn-text::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
}
.btn-text:hover::after { width: 100%; }

/* Badges */
.badge-pill {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98); /* Solid by default for readability, or use JS to make transparent at top */
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, padding 0.3s ease;
}

/* Optional: JS class to make transparent at top if desired */
.site-header.is-transparent {
    background: transparent;
    box-shadow: none;
}
.site-header.is-transparent .brand-title { color: white; }
.site-header.is-transparent .brand-tagline { color: rgba(255,255,255,0.8); }
.site-header.is-transparent .main-navigation a { color: white; }
.site-header.is-transparent .menu-toggle span { background: white; }

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a { text-decoration: none; display: flex; flex-direction: column; }
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}
.brand-highlight { color: var(--color-gold); }
.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-top: 4px;
}

.main-navigation { display: flex; align-items: center; gap: 2rem; }
.main-navigation ul { display: flex; gap: 2.5rem; margin: 0; }
.main-navigation a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-primary);
}
.header-cta { margin-left: 1rem; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger-box { width: 30px; height: 24px; display: block; position: relative; }
.hamburger-inner {
    display: block; width: 100%; height: 2px; background: var(--color-primary);
    position: absolute; top: 50%; transform: translateY(-50%);
    transition: all 0.3s ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: ''; display: block; width: 100%; height: 2px; background: var(--color-primary);
    position: absolute; transition: all 0.3s ease;
}
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { top: 8px; }

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-modern {
    position: relative;
    height: 90vh; /* Full viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    margin-top: calc(var(--header-height) * -1); /* Pull under header */
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(13,27,42,0.75) 0%, rgba(26,58,92,0.65) 50%, rgba(13,27,42,0.8) 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(13,27,42,0.6), transparent);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text { max-width: 600px; }
.hero-eyebrow {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}
.hero-modern h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}
.hero-sub {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; }

/* Hero Card (Floating Agent Profile) */
.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    animation: float 6s ease-in-out infinite;
}
.agent-mini-profile { display: flex; align-items: center; gap: 1.5rem; }
.agent-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    object-fit: cover;
}
.agent-info { color: white; }
.agent-name { display: block; font-family: var(--font-heading); font-size: 1.5rem; }
.agent-role { display: block; font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.5rem; }
.agent-contact a { color: var(--color-gold); font-weight: 600; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   5. Trust Bar
   ========================================================================== */
.trust-bar {
    background: var(--color-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 4;
    margin-top: -4rem; /* Overlap hero */
    box-shadow: var(--shadow-soft);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item { border-right: 1px solid var(--color-border); }
.trust-item:last-child { border-right: none; }

.trust-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.trust-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

/* ==========================================================================
   6. Sections General
   ========================================================================== */
.section { padding: 6rem 0; }
.section--dark { background-color: var(--color-primary); color: white; }
.section-header { margin-bottom: 4rem; position: relative; }
.section-subtitle {
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.section-divider {
    width: 60px; height: 3px;
    background: var(--color-gold);
    margin: 1.5rem auto 0;
}

/* ==========================================================================
   7. Listing Cards
   ========================================================================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.listing-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
}
.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
}

.listing-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.listing-card__image-wrapper {
    position: relative;
    padding-top: 66.67%; /* 3:2 Ratio */
    overflow: hidden;
}
.listing-card__img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.listing-card:hover .listing-card__img { transform: scale(1.1); }

.listing-card__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,42,58,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.listing-card:hover .listing-card__overlay { opacity: 1; }

.status-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 10;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.status-badge--active { background: var(--color-status-active); }
.status-badge--sold { background: var(--color-status-sold); }

.listing-card__content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.listing-card__header { margin-bottom: 1rem; }
.listing-card__price {
    color: var(--color-gold-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.listing-card__address { font-weight: 600; font-size: 1.1rem; line-height: 1.4; color: var(--color-primary); }

.listing-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-off-white);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1.25rem;
    color: #777;
    font-size: 0.9rem;
}

.meta-item {
    display: block;
    flex: 1 1 220px;
    line-height: 1.4;
}

/* ==========================================================================
   8. About Split Section
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.image-wrapper { position: relative; }
.image-wrapper img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.experience-badge {
    position: absolute;
    bottom: -1.5rem; 
    right: -1.5rem;
    background: var(--color-gold);
    color: white;
    width: 130px; 
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-float);
    border: 6px solid white;
    z-index: 5;
}
.experience-badge .years { 
    font-family: var(--font-heading); 
    font-size: 2.4rem; 
    font-weight: 700; 
    line-height: 1; 
    margin-bottom: 5px; /* Increased margin to push text down */
}
.experience-badge .text { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    text-align: center; 
    line-height: 1.3; /* Increased line-height for label breathing room */
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 2px;
}

.split-content .lead { font-size: 1.25rem; color: var(--color-primary-light); margin-bottom: 1.5rem; }
.about-badges { margin: 2rem 0; }

/* ==========================================================================
   9. Service Areas Grid
   ========================================================================== */
.areas-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.area-card-modern {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.area-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.area-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: opacity 0.3s ease;
}

.area-content { position: relative; z-index: 2; transform: translateY(0); transition: transform 0.3s ease; }
.area-content h3 { color: white; margin-bottom: 0.25rem; font-size: 1.4rem; }
.area-content p { font-size: 0.9rem; opacity: 0.9; margin: 0; }

.area-card-modern:hover .area-content { transform: translateY(-5px); }

/* ==========================================================================
   10. Footer Modern
   ========================================================================== */
.site-footer { background-color: #111; color: #aaa; font-size: 0.95rem; }
.footer-top { padding: 5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; }

.footer-brand h3 { color: white; margin-bottom: 0.5rem; }
.highlight { color: var(--color-gold); }
.agent-title { color: white; font-size: 1.1rem; margin-bottom: 0; }
.broker-name { font-size: 0.9rem; margin-bottom: 1.5rem; opacity: 0.7; }

.contact-link { color: #aaa; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.contact-link:hover { color: var(--color-gold); }
.icon { min-width: 20px; }

.footer-widget h4 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

.footer-menu li { margin-bottom: 0.75rem; }
.footer-menu a { color: #aaa; }
.footer-menu a:hover { color: white; padding-left: 5px; }

.credentials-list { font-size: 0.9rem; margin-bottom: 1.5rem; }
.badge-row { display: flex; gap: 1rem; opacity: 0.6; filter: grayscale(100%); transition: all 0.3s; }
.badge-row:hover { opacity: 1; filter: grayscale(0%); }
.badge-img { height: 40px; width: auto; }

.footer-bottom { padding: 2rem 0; text-align: center; font-size: 0.85rem; }
.sep { margin: 0 0.5rem; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .display-desktop-only { display: none; }
    
    .trust-bar { margin-top: 0; border-radius: 0; }
    .split-layout { grid-template-columns: 1fr; }
    .split-image { order: -1; text-align: center; }
    .experience-badge { right: 10%; }
    
    .areas-grid-modern { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-modern {
        height: auto;
        min-height: 0;
        padding-top: calc(var(--header-height) * 2 + 2rem);
        padding-bottom: 5rem;
        align-items: flex-start;
    }
    .hero-text { max-width: 100%; min-width: 0; }
    .hero-modern h1 { font-size: 2.2rem; word-break: break-word; }
    .header-container { padding: 0 1rem; }
    
    /* Mobile Menu */
    .menu-toggle { display: block; z-index: 1001; }
    .main-navigation {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
    }
    .main-navigation.toggled { right: 0; }
    .site-header .main-navigation.toggled a { color: var(--color-primary); }
    .main-navigation ul { flex-direction: column; text-align: center; gap: 1.5rem; width: 100%; }
    .main-navigation a { font-size: 1.2rem; color: var(--color-primary); }
    .header-cta { margin: 2rem 0 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trust-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trust-item { border: none; padding-bottom: 1rem; border-bottom: 1px solid #eee; }

    .listing-card__footer {
        gap: 0.45rem;
    }
    .meta-item {
        flex-basis: 100%;
    }

    .pagination .nav-links {
        gap: 0.35rem;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
        padding: 0 0.55rem;
    }
    .pagination .page-numbers:not(.prev):not(.next) {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }
}

/* ==========================================================================
   12. Archive & Filters
   ========================================================================== */
.archive-header {
    background-color: var(--color-off-white);
    padding: 8rem 0 4rem; /* More top padding for fixed header */
    margin-bottom: 4rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-tabs a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-body);
    background: white;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.sort-bar select {
    padding: 0.6rem 2rem 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    background-color: white;
}

/* ==========================================================================
   13. Pagination
   ========================================================================== */
.pagination {
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pagination .page-numbers:not(.prev):not(.next) {
    width: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
}

.pagination a:hover, .pagination .current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ==========================================================================
   14. Listing Card Placeholder
   ========================================================================== */
.listing-card__placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8e4df 0%, #d4cfc8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-gold);
    opacity: 0.5;
}

.listing-card__placeholder p {
    font-size: 0.875rem;
    font-family: var(--font-body);
    margin-top: 0.25rem;
    color: var(--color-text-body);
}

.listing-card__placeholder--large {
    position: relative;
    height: 400px;
    border-radius: var(--radius-md);
    font-size: 4rem;
    opacity: 0.6;
}

.listing-card__placeholder--large p {
    font-size: 1.125rem;
}

/* ==========================================================================
   15. Page Hero (About & Wichita Info)
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2d45 100%);
    color: white;
    padding: 8rem 0 3rem;
    text-align: center;
}
.about-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.about-hero p {
    font-size: 1.15rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   16. About Frank Page
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-photo {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    width: 100%;
    height: auto;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-text h3 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.designations-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 2rem;
}
.designations-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--color-off-white);
}
.designations-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
}

.credential-badges {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.credential-badges img {
    height: 55px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.credential-badges img:hover {
    opacity: 1;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1b2d45 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.cta-banner h2 {
    color: white;
    margin-bottom: 0.75rem;
}
.cta-banner p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   17. Contact Page
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s;
    background: var(--color-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: none;
}
.form-message--success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.form-message--error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-info-card {
    background: var(--color-off-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.contact-info-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gold);
}
.contact-info-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* ==========================================================================
   18. Wichita Info Page
   ========================================================================== */
.info-section {
    margin-bottom: 3.5rem;
}
.info-section h2 {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
    margin-bottom: 1.5rem;
}

.info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.info-links a {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
}
.info-links a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.school-item {
    padding: 1.25rem;
    background: var(--color-off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s, transform 0.3s;
}
.school-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}
.school-item a {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}
.school-item a:hover {
    color: var(--color-gold);
}
.school-address {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* ==========================================================================
   19. Inner Page Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-photo {
        max-width: 200px;
        margin: 0 auto;
    }
    .about-text { text-align: left; }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .schools-grid {
        grid-template-columns: 1fr;
    }

    .about-hero { padding: 7rem 0 2rem; }
    .about-hero h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   20. CTA Modern (Homepage bottom)
   ========================================================================== */
.cta-modern {
    background: var(--color-off-white);
    padding: 5rem 0;
    border-top: 1px solid var(--color-border);
}
.cta-modern h2 {
    margin-bottom: 0.75rem;
}
.cta-modern p {
    color: #777;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* White-outline buttons are designed for dark backgrounds; override in light CTA */
.cta-modern .btn--white-outline {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.cta-modern .btn--white-outline:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
}

/* Single Listing page top spacing */
.listing-detail {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.listing-detail__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.listing-detail__header h1 {
    margin-bottom: 0.5rem;
}

.listing-detail__area {
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.listing-detail__price {
    font-size: 2rem;
    color: var(--color-gold-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.listing-detail__photo {
    margin-bottom: 1.75rem;
}

.listing-gallery__stage {
    position: relative;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.listing-gallery__main-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
}

.listing-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(13, 27, 42, 0.82);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.listing-gallery__nav--prev {
    left: 0.9rem;
}

.listing-gallery__nav--next {
    right: 0.9rem;
}

.listing-gallery__counter {
    position: absolute;
    right: 0.9rem;
    bottom: 0.8rem;
    background: rgba(13, 27, 42, 0.85);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    z-index: 3;
}

.listing-gallery__thumbs {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    gap: 0.6rem;
}

.listing-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.listing-gallery__thumb.is-active {
    border-color: var(--color-gold);
}

.listing-gallery__thumb img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.listing-detail__rooms {
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.features-grid__item {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.listing-description {
    margin-bottom: 2rem;
    color: var(--color-text-body);
    line-height: 1.75;
}

.listing-detail__cta {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.listing-detail__cta h3 {
    margin-bottom: 0.5rem;
}

.listing-detail__cta p {
    margin-bottom: 0.75rem;
}

.listing-detail__cta .btn {
    margin-top: 0.5rem;
}

.listing-detail__disclaimer {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 2rem;
}

.listing-detail__back {
    margin-top: 1.5rem;
}

.listing-detail__back a {
    font-weight: 600;
}

@media (max-width: 768px) {
    .listing-detail__price {
        font-size: 1.65rem;
    }

    .listing-gallery__nav {
        width: 38px;
        height: 38px;
        font-size: 1.45rem;
    }

    .listing-gallery__nav--prev {
        left: 0.5rem;
    }

    .listing-gallery__nav--next {
        right: 0.5rem;
    }

    .listing-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .listing-gallery__thumb img {
        height: 58px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .listing-detail__cta {
        text-align: center;
    }
}
