/* ===== COMMUNITY PAGE STYLES ===== */

/* Hero Section */
.community-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('/wp-content/uploads/kimberly-assets/areas/dunedin.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}
.community-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(27,27,30,0.85) 100%);
}
.community-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    width: 100%;
}
.community-hero__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #B9A38B;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}
.community-hero__title {
    font-family: 'Italiana', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.community-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Sticky Navigation */
.community-nav {
    background: #1B1B1E;
    border-bottom: 1px solid rgba(185,163,139,0.2);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0;
}
.community-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.community-nav__list::-webkit-scrollbar { display: none; }
.community-nav__link {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent;
}
.community-nav__link:hover,
.community-nav__link.active {
    color: #B9A38B;
    border-bottom-color: #B9A38B;
    text-decoration: none;
}

/* Section Styles */
.community-section {
    padding: 5rem 0;
}
.community-section--dark {
    background: #1B1B1E;
    color: #fff;
}
.community-section--light {
    background: #fff;
    color: #1B1B1E;
}
.community-section--cream {
    background: #F5F0EB;
    color: #1B1B1E;
}
.community-section__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B9A38B;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}
.community-section__title {
    font-family: 'Italiana', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.community-section__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}
.community-section--light .community-section__text,
.community-section--cream .community-section__text {
    color: #555;
}

/* Market Stats Grid */
.market-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.market-stat {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(185,163,139,0.3);
}
.market-stat__value {
    font-family: 'Italiana', serif;
    font-size: 2rem;
    color: #B9A38B;
    display: block;
    margin-bottom: 0.25rem;
}
.market-stat__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.highlight-card {
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(185,163,139,0.15);
    transition: border-color 0.3s;
}
.highlight-card:hover {
    border-color: #B9A38B;
}
.community-section--light .highlight-card,
.community-section--cream .highlight-card {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
.highlight-card__icon {
    font-size: 1.5rem;
    color: #B9A38B;
    margin-bottom: 1rem;
}
.highlight-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.highlight-card__text {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.75;
}

/* Schools Table */
.schools-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
}
.schools-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B9A38B;
    border-bottom: 1px solid rgba(185,163,139,0.3);
}
.schools-table td {
    padding: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.community-section--light .schools-table td,
.community-section--cream .schools-table td {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.schools-table .rating {
    color: #B9A38B;
    font-weight: 600;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.business-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(185,163,139,0.1);
    border-radius: 4px;
    transition: border-color 0.3s;
}
.business-card:hover {
    border-color: #B9A38B;
}
.community-section--light .business-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}
.business-card__icon {
    font-size: 1.25rem;
    color: #B9A38B;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}
.business-card__name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.business-card__desc {
    font-size: 0.85rem;
    opacity: 0.65;
    line-height: 1.5;
}

/* CTA Section */
.community-cta {
    text-align: center;
    padding: 6rem 0;
    background: #1B1B1E;
    position: relative;
}
.community-cta__title {
    font-family: 'Italiana', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 1rem;
}
.community-cta__text {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.community-cta .btn-spark {
    margin: 0 0.5rem;
}

/* Image + Text Split */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}
.split-section__image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
.split-section__content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .community-hero { height: 50vh; min-height: 400px; }
    .community-section { padding: 3.5rem 0; }
    .market-stats { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1fr; }
    .split-section__content { padding: 2.5rem 1.5rem; }
}
@media (max-width: 575px) {
    .community-hero { height: 45vh; min-height: 350px; }
    .community-section { padding: 3rem 0; }
    .market-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .market-stat { padding: 1rem; }
    .market-stat__value { font-size: 1.5rem; }
}
