/* Marycarmen Moras Real Estate - Global Styles */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Brand Tokens */
:root {
    /* Colors */
    --ivory-pearl: #F6F4EF;
    --imperial-garnet: #8B0000;
    --imperial-garnet-rgb: 139, 0, 0;
    --obsidian-slate: #1A1A1A;
    --warm-taupe: #D9CFC1;
    --rustic-copper: #A0522D;
    --burgundy-velvet: #660000;
    --graphite-mist: #2E2E2E;
    --success-sage: #6B8E23;
    --warning-amber: #FFB300;
    --error-crimson: #B22222;
    
    /* Gradients */
    --elegant-warmth: linear-gradient(135deg, var(--imperial-garnet) 0%, var(--ivory-pearl) 100%);
    --urban-luxury: linear-gradient(135deg, var(--obsidian-slate) 0%, var(--imperial-garnet) 100%);
    --refined-contrast: linear-gradient(135deg, var(--ivory-pearl) 0%, var(--obsidian-slate) 100%);
    
    /* Typography */
    --font-heading: 'Futura', 'Avenir Next', Arial, sans-serif;
    --font-body: 'Avenir', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing Scale - 8px steps */
    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 32px;
    --s5: 40px;
    --s6: 56px;
    --s7: 72px;
    
    /* Border Radius */
    --radius-card: 12px;
    --radius-pill: 9999px;
    
    /* Shadows */
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
    
    /* Grid */
    --content-max-width: 1200px;
    --grid-gutter-desktop: 80px;
    --grid-gutter-tablet: 48px;
    --grid-gutter-mobile: 24px;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--obsidian-slate);
    background-color: var(--ivory-pearl);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--s2);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--s2);
    line-height: 1.7;
}

/* Grid System */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter-mobile);
}

.grid {
    display: grid;
    gap: var(--grid-gutter-mobile);
}

/* Responsive Grid */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--grid-gutter-tablet);
    }
    .grid {
        gap: var(--grid-gutter-tablet);
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--grid-gutter-desktop);
    }
    .grid {
        gap: var(--grid-gutter-desktop);
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Premium Landing Page Styles */
.premium-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.spanish-hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    min-height: 60vh;
}

.hero-main {
    text-align: center;
    padding: var(--s6) var(--s4);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-card);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

.hero-main h1 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s4);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.hero-main .hero-subtitle {
    color: var(--ivory-pearl);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: var(--s5);
    opacity: 0.9;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-main {
        padding: var(--s7) var(--s6);
    }
    
    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

/* Spanish Content Layout */
.spanish-content-layout {
    max-width: 100%;
    margin: 0 auto;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    align-items: center;
    text-align: center;
}

.profile-content {
    max-width: 100%;
}

@media (min-width: 768px) {
    .profile-section {
        grid-template-columns: 300px 1fr;
        gap: var(--s7);
        text-align: left;
    }
    
    .profile-image {
        margin: 0;
    }
}

/* Premium About Section */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--s4) auto;
    display: block;
    border: 6px solid var(--imperial-garnet);
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .profile-image {
        width: 250px;
        height: 250px;
    }
}

.credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: var(--s4);
}

.credential-item {
    text-align: center;
    padding: var(--s3);
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.credential-item strong {
    display: block;
    color: var(--imperial-garnet);
    font-size: 1.25rem;
    margin-bottom: var(--s1);
}

@media (min-width: 768px) {
    .credentials {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

.service-card {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s4);
    border-radius: var(--radius-card);
    text-align: center;
    backdrop-filter: blur(8px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--s3) auto;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ivory-pearl);
}

.service-card h3 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s2);
}

.service-card p {
    color: var(--ivory-pearl);
    opacity: 0.9;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4);
    margin: var(--s5) 0;
    padding: var(--s4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    backdrop-filter: blur(5px);
}

.hero-stat {
    text-align: center;
    color: var(--ivory-pearl);
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ivory-pearl);
    margin-bottom: var(--s1);
}

.hero-stat span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* About Section Enhancements */
.about-story {
    margin: var(--s4) 0;
}

.about-approach {
    list-style: none;
    margin: var(--s3) 0;
}

.about-approach li {
    margin-bottom: var(--s2);
    padding-left: var(--s3);
    position: relative;
}

.about-approach li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--imperial-garnet);
    font-weight: bold;
}

.certifications {
    margin-top: var(--s5);
    padding: var(--s4);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.certifications h4 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s3);
}

.certifications ul {
    list-style: none;
    columns: 1;
}

.certifications li {
    margin-bottom: var(--s2);
    padding-left: var(--s3);
    position: relative;
}

.certifications li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--imperial-garnet);
}

@media (min-width: 768px) {
    .certifications ul {
        columns: 2;
    }
}

/* Enhanced Services Section */
.service-card.featured {
    background: rgba(246, 244, 239, 0.15);
    border: 2px solid rgba(246, 244, 239, 0.3);
}

.service-details {
    margin-top: var(--s4);
    text-align: left;
}

.service-details h4 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s3);
}

.service-details ul {
    list-style: none;
}

.service-details li {
    margin-bottom: var(--s2);
    padding-left: var(--s3);
    position: relative;
    color: var(--ivory-pearl);
    opacity: 0.9;
    font-size: 0.95rem;
}

.service-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ivory-pearl);
}

.service-lead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--s3);
    line-height: 1.4;
}

.additional-services {
    margin-top: var(--s7);
}

.additional-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

.additional-service {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s4);
    border-radius: var(--radius-card);
    text-align: center;
}

.additional-service h4 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s2);
}

.additional-service p {
    color: var(--ivory-pearl);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .additional-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .additional-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Properties Section */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    margin-top: var(--s4);
}

.property-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.property-card:hover {
    box-shadow: var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: var(--s2);
    left: var(--s2);
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: var(--s1) var(--s2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.property-info {
    padding: var(--s4);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--imperial-garnet);
    margin-bottom: var(--s2);
}

.property-title {
    margin-bottom: var(--s1);
}

.property-address {
    color: var(--graphite-mist);
    margin-bottom: var(--s3);
    font-size: 0.95rem;
}

.property-features {
    display: flex;
    gap: var(--s2);
    margin-bottom: var(--s3);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--s1);
    font-size: 0.875rem;
    color: var(--graphite-mist);
}

.feature .icon {
    width: 16px;
    height: 16px;
    fill: var(--imperial-garnet);
}

.property-description {
    margin-bottom: var(--s3);
    font-size: 0.95rem;
    line-height: 1.6;
}

.property-highlights ul {
    list-style: none;
    margin-bottom: var(--s4);
}

.property-highlights li {
    margin-bottom: var(--s1);
    padding-left: var(--s3);
    position: relative;
    font-size: 0.9rem;
    color: var(--graphite-mist);
}

.property-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--imperial-garnet);
    font-weight: bold;
}

.property-cta {
    width: 100%;
    justify-content: center;
}

.property-status.sold {
    display: flex;
    align-items: center;
    gap: var(--s1);
    background: var(--success-sage);
    color: white;
    padding: var(--s2);
    border-radius: var(--radius-card);
    font-weight: 600;
    justify-content: center;
}

.properties-cta {
    text-align: center;
    margin-top: var(--s7);
    padding: var(--s6);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.property-search-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin: var(--s5) 0;
}

.search-option {
    background: white;
    padding: var(--s3);
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-search-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-search-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Neighborhoods Section */
.neighborhoods-detailed {
    margin-top: var(--s4);
}

.neighborhood-detailed {
    margin-bottom: var(--s7);
}

.neighborhood-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    align-items: center;
}

.neighborhood-content.reverse {
    direction: rtl;
}

.neighborhood-content.reverse > * {
    direction: ltr;
}

.neighborhood-text {
    color: var(--ivory-pearl);
}

.neighborhood-lead {
    font-size: 1.2rem;
    margin-bottom: var(--s4);
    line-height: 1.5;
}

.detail-section {
    margin-bottom: var(--s4);
}

.detail-section h4 {
    margin-bottom: var(--s3);
    color: var(--ivory-pearl);
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    margin-bottom: var(--s2);
    padding-left: var(--s3);
    position: relative;
}

.detail-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ivory-pearl);
}

.price-ranges {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.price-range {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s2);
    border-radius: var(--radius-card);
    font-weight: 600;
}

.sub-neighborhoods {
    display: grid;
    gap: var(--s3);
}

.sub-neighborhood {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s3);
    border-radius: var(--radius-card);
}

.neighborhood-image {
    height: 300px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neighborhoods-grid-additional {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    margin-top: var(--s6);
}

.neighborhood-card-detailed {
    background: rgba(246, 244, 239, 0.1);
    border-radius: var(--radius-card);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.neighborhood-info {
    padding: var(--s4);
    color: var(--ivory-pearl);
}

.key-features h4 {
    margin: var(--s3) 0 var(--s2) 0;
}

.lifestyle-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s3);
}

.highlight {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: var(--s1) var(--s2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.neighborhood-selector {
    margin-top: var(--s7);
    text-align: center;
}

.lifestyle-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: var(--s4);
}

.lifestyle-option {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s4);
    border-radius: var(--radius-card);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.lifestyle-option:hover {
    background: rgba(246, 244, 239, 0.2);
    transform: translateY(-2px);
}

.lifestyle-option h4 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s2);
}

.lifestyle-option p {
    color: var(--ivory-pearl);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .neighborhood-content {
        grid-template-columns: 1fr 400px;
    }
    
    .neighborhood-content.reverse {
        grid-template-columns: 400px 1fr;
    }
    
    .neighborhoods-grid-additional {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lifestyle-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lifestyle-filters {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Testimonials Section */
.featured-success-story {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--s5);
    margin-bottom: var(--s6);
    box-shadow: var(--shadow-card);
}

.success-story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    align-items: center;
}

.story-details {
    margin: var(--s4) 0;
    padding: var(--s3);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.story-details p {
    margin-bottom: var(--s2);
    font-size: 0.95rem;
}

.story-image {
    height: 250px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

.testimonial-card-detailed {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--s4);
    box-shadow: var(--shadow-card);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s3);
}

.testimonial-type {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: var(--s1) var(--s2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.stars {
    color: #FFB300;
    font-size: 1.1rem;
}

.client-info {
    margin-top: var(--s3);
    padding-top: var(--s3);
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.location {
    display: block;
    color: var(--graphite-mist);
    margin-top: var(--s1);
    font-size: 0.95rem;
}

.transaction-details {
    display: block;
    color: var(--imperial-garnet);
    font-weight: 600;
    margin-top: var(--s1);
    font-size: 0.9rem;
}

.achievements-section {
    margin-top: var(--s7);
    text-align: center;
    padding: var(--s6);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
    margin: var(--s5) 0;
}

.achievement-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--imperial-garnet);
    display: block;
    margin-bottom: var(--s1);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--graphite-mist);
}

.certifications-awards {
    margin-top: var(--s5);
}

.awards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s2);
    margin-top: var(--s3);
}

.award {
    background: white;
    padding: var(--s2);
    border-radius: var(--radius-card);
    font-weight: 600;
}

@media (min-width: 768px) {
    .success-story-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .testimonials-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .awards-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Resources Section */
.resources-grid-primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
    margin-top: var(--s4);
}

.resource-card-primary {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--s5);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--s3) auto;
}

.resource-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--imperial-garnet);
}

.resource-description {
    font-size: 1.1rem;
    margin-bottom: var(--s4);
    line-height: 1.6;
}

.resource-contents {
    text-align: left;
    margin-bottom: var(--s4);
    padding: var(--s3);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.resource-contents h4 {
    margin-bottom: var(--s3);
    color: var(--imperial-garnet);
}

.resource-contents ul {
    list-style: none;
}

.resource-contents li {
    margin-bottom: var(--s2);
    padding-left: var(--s3);
    position: relative;
    font-size: 0.95rem;
}

.resource-contents li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--imperial-garnet);
}

.resource-cta {
    width: 100%;
    justify-content: center;
}

.interactive-tools {
    margin-top: var(--s7);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

.tool-card {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--s4);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.tool-preview {
    margin: var(--s4) 0;
    padding: var(--s3);
    background: rgba(139, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

.calculator-sample {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.calc-input {
    padding: var(--s2);
    border: 1px solid #ddd;
    border-radius: var(--radius-card);
    font-size: 0.95rem;
}

.calc-result {
    font-weight: 700;
    color: var(--imperial-garnet);
    font-size: 1.1rem;
    margin-top: var(--s2);
}

.neighborhood-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s2);
    background: white;
    border-radius: var(--radius-card);
}

.score {
    font-weight: 700;
    color: var(--imperial-garnet);
}

.market-alerts {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.alert-item {
    padding: var(--s2);
    background: white;
    border-radius: var(--radius-card);
    font-size: 0.9rem;
}

.educational-content {
    margin-top: var(--s7);
}

.educational-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

.education-item {
    background: white;
    border-radius: var(--radius-card);
    padding: var(--s4);
    box-shadow: var(--shadow-card);
}

.education-item h4 {
    margin-bottom: var(--s3);
    color: var(--imperial-garnet);
}

.education-item ul {
    list-style: none;
}

.education-item li {
    margin-bottom: var(--s2);
}

.education-item a {
    color: var(--obsidian-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.education-item a:hover {
    color: var(--imperial-garnet);
}

@media (min-width: 768px) {
    .resources-grid-primary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .educational-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Section */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s6);
    margin-top: var(--s4);
}

.contact-form-section {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s5);
    border-radius: var(--radius-card);
    backdrop-filter: blur(8px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--s3);
    border: 2px solid rgba(246, 244, 239, 0.3);
    border-radius: var(--radius-card);
    font-size: 1rem;
    background: rgba(246, 244, 239, 0.9);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ivory-pearl);
    background: var(--ivory-pearl);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--s2);
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--ivory-pearl);
}

.form-submit-btn {
    background: var(--ivory-pearl);
    color: var(--imperial-garnet);
    border: none;
    padding: var(--s3) var(--s4);
    border-radius: var(--radius-card);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
}

.form-submit-btn:hover {
    background: rgba(246, 244, 239, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-info-section {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s5);
    border-radius: var(--radius-card);
    backdrop-filter: blur(8px);
}

.contact-methods {
    margin-bottom: var(--s5);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-bottom: var(--s4);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(246, 244, 239, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.response-guarantee {
    margin-bottom: var(--s5);
}

.guarantee-items {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.guarantee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s2);
    background: rgba(246, 244, 239, 0.1);
    border-radius: var(--radius-card);
}

.guarantee-time {
    font-weight: 700;
    font-size: 1.1rem;
}

.social-connect {
    margin-bottom: var(--s5);
}

.social-links {
    display: flex;
    gap: var(--s3);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--s2);
    color: var(--ivory-pearl);
    text-decoration: none;
    padding: var(--s2);
    border-radius: var(--radius-card);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: rgba(246, 244, 239, 0.1);
}

.icon-social {
    width: 20px;
    height: 20px;
}

.quick-actions-section {
    margin-top: var(--s6);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: var(--s4);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--s3);
    background: rgba(246, 244, 239, 0.1);
    color: var(--ivory-pearl);
    text-decoration: none;
    padding: var(--s4);
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.quick-action-btn:hover {
    background: rgba(246, 244, 239, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn .icon {
    width: 24px;
    height: 24px;
    fill: var(--ivory-pearl);
}

.quick-action-btn strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: var(--s1);
}

.quick-action-btn span {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content-grid {
        grid-template-columns: 3fr 2fr;
    }
    
    .checkbox-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer Enhancements */
.footer-credentials {
    margin-top: var(--s3);
}

.footer-credentials p {
    font-size: 0.9rem;
    margin-bottom: var(--s1);
    opacity: 0.8;
}

.footer-resources {
    margin-top: var(--s3);
}

.footer-newsletter {
    margin: var(--s6) 0;
    padding: var(--s5);
    background: rgba(139, 0, 0, 0.1);
    border-radius: var(--radius-card);
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: var(--s2);
    margin-top: var(--s3);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--s2);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: var(--radius-card);
    background: var(--ivory-pearl);
}

.newsletter-btn {
    padding: var(--s2) var(--s3);
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    border: none;
    border-radius: var(--radius-card);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.footer-legal-left,
.footer-legal-right {
    margin-top: var(--s4);
}

@media (max-width: 767px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* Component Base Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--s2) var(--s4);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--imperial-garnet);
    color: var(--ivory-pearl);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(0);
}

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

.btn-primary:focus {
    outline: 2px solid var(--imperial-garnet);
    outline-offset: 2px;
}

.btn-large {
    padding: var(--s3) var(--s5);
    font-size: 1.2rem;
}

/* Neighborhoods Section */
.neighborhoods-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s5);
}

@media (min-width: 768px) {
    .neighborhoods-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .neighborhoods-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

.neighborhood-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.neighborhood-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.neighborhood-info {
    padding: var(--s3);
}

.neighborhood-info h3 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s2);
}

.neighborhood-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
    margin-top: var(--s2);
}

.feature-tag {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: var(--s1) var(--s2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.quick-links {
    margin-top: var(--s5);
    text-align: center;
}

.city-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s2);
    margin-top: var(--s3);
}

.city-link {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: var(--s2) var(--s3);
    border-radius: var(--radius-card);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.city-link:hover {
    background: var(--burgundy-velvet);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s4);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: var(--s4);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: var(--s2);
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--s3);
    color: var(--obsidian-slate);
}

.testimonial-card cite {
    color: var(--imperial-garnet);
    font-weight: 600;
    font-style: normal;
}

.resources-section {
    margin-top: var(--s6);
}

.resource-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: var(--s4);
}

@media (min-width: 768px) {
    .resource-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-item {
    background: white;
    padding: var(--s3);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.resource-item h4 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s2);
}

/* Contact Section */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-top: var(--s5);
}

@media (min-width: 768px) {
    .contact-methods {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--s3);
    text-align: left;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(246, 244, 239, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-method h3 {
    color: var(--ivory-pearl);
    margin-bottom: var(--s1);
}

.contact-method p {
    color: var(--ivory-pearl);
    opacity: 0.9;
}

.trust-signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    margin-top: var(--s5);
}

@media (min-width: 768px) {
    .trust-signals {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust-signal {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s3);
    border-radius: var(--radius-card);
    text-align: center;
    backdrop-filter: blur(8px);
}

.trust-signal strong {
    display: block;
    color: var(--ivory-pearl);
    font-size: 1.1rem;
    margin-bottom: var(--s1);
}

.trust-signal span {
    color: var(--ivory-pearl);
    opacity: 0.8;
}

/* Premium Form Styles */
.premium-form {
    background: rgba(246, 244, 239, 0.1);
    padding: var(--s5);
    border-radius: var(--radius-card);
    backdrop-filter: blur(8px);
    margin-top: var(--s4);
}

.form-group {
    margin-bottom: var(--s3);
}

.form-input {
    width: 100%;
    padding: var(--s3);
    border: 2px solid rgba(246, 244, 239, 0.3);
    border-radius: var(--radius-card);
    background: rgba(246, 244, 239, 0.9);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--obsidian-slate);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--ivory-pearl);
    box-shadow: 0 0 0 2px rgba(246, 244, 239, 0.3);
}

.form-input::placeholder {
    color: rgba(26, 26, 26, 0.6);
}

.form-submit {
    width: 100%;
    background: var(--ivory-pearl);
    color: var(--imperial-garnet);
    border: 2px solid var(--ivory-pearl);
    font-weight: 700;
    font-size: 1.1rem;
}

.form-submit:hover {
    background: transparent;
    color: var(--ivory-pearl);
    border-color: var(--ivory-pearl);
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--s3);
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        text-align: left;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--s4);
    text-align: center;
}

@media (min-width: 768px) {
    .section-subtitle {
        text-align: left;
    }
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--imperial-garnet);
    line-height: 1.5;
    margin-bottom: var(--s3);
}

.card {
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--s4);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--s1) var(--s2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-sage);
    color: var(--obsidian-slate);
}

.input {
    width: 100%;
    padding: var(--s2) var(--s3);
    border: 2px solid var(--graphite-mist);
    border-radius: var(--radius-card);
    background-color: var(--ivory-pearl);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input:focus {
    outline: none;
    border-color: var(--imperial-garnet);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 244, 239, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 42, 0.1);
    padding: var(--s2) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter-mobile);
}

.logo {
    height: 48px;
    width: auto;
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--s4);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--obsidian-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--imperial-garnet);
}

.language-toggle {
    display: flex;
    gap: var(--s1);
    font-weight: 600;
}

.language-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--s1);
    color: var(--obsidian-slate);
    transition: color 0.3s ease;
}

.language-toggle button.active {
    color: var(--imperial-garnet);
}

@media (min-width: 768px) {
    .header-content {
        padding: 0 var(--grid-gutter-tablet);
    }
    .nav {
        display: block;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0 var(--grid-gutter-desktop);
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--urban-luxury);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--ivory-pearl);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    margin-bottom: var(--s3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--s5);
    opacity: 0.95;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Video Overlay for Text Readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.85) 0%,
        rgba(139, 0, 0, 0.6) 50%,
        rgba(26, 26, 26, 0.4) 100%
    );
    z-index: 2;
}

/* Mobile Video Optimization */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, show poster image instead of video for performance */
        display: none;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('../assets/Headshot/2e431e2a-82a6-11ee-84d1-0242ac110002-jpg-hero_image.png') center/cover;
        z-index: 1;
    }
    
    .hero-content {
        z-index: 3;
    }
}

/* Ensure video doesn't affect text layout */
@media (min-width: 769px) {
    .hero::before {
        display: none;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--obsidian-slate);
    color: var(--ivory-pearl);
    padding: var(--s7) 0 var(--s4);
    margin-top: var(--s7);
}

.footer-tier-1 {
    display: grid;
    gap: var(--s5);
    margin-bottom: var(--s6);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--s2);
}

.footer-tagline {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: var(--s3);
    color: var(--ivory-pearl);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--s1);
}

.footer-links a {
    color: rgba(246, 244, 239, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-tier-2 {
    padding-top: var(--s4);
    border-top: 1px solid rgba(246, 244, 239, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: var(--s3);
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-tier-1 {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--s1); }
.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }

/* Language Toggle */
.lang-content {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.lang-content.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Inline language content (spans within text) */
span.lang-content.active {
    display: inline;
}

/* Language toggle buttons accessibility */
.language-toggle button:focus {
    outline: 2px solid var(--imperial-garnet);
    outline-offset: 2px;
}

.language-toggle button:hover {
    color: var(--imperial-garnet);
    background-color: rgba(var(--imperial-garnet-rgb), 0.1);
    border-radius: 4px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus management */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* SVG Icon System */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.icon-social {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.icon-social:hover {
    transform: scale(1.1);
}

.icon-feature {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
    margin: 0 auto;
}

/* Social media icon links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory-pearl);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--imperial-garnet);
    background-color: var(--ivory-pearl);
    transform: translateY(-2px);
}

.social-link:focus {
    outline: 2px solid var(--imperial-garnet);
    outline-offset: 2px;
}

/* Feature icon containers */
.feature-icon-container {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s3);
    transition: all 0.3s ease;
}

.feature-icon-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Contact page social icons */
.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--imperial-garnet);
    color: var(--ivory-pearl);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: var(--s2);
}

.contact-social-link:hover {
    background-color: var(--burgundy-velvet);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.contact-social-link:focus {
    outline: 2px solid var(--imperial-garnet);
    outline-offset: 2px;
}

/* Contact Page Enhanced Styles */

/* Trust Signals */
.trust-signal {
    padding: var(--s4);
    text-align: center;
}

.trust-icon {
    margin: 0 auto var(--s3);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
}

.trust-signal h3 {
    font-size: 1.25rem;
    margin-bottom: var(--s2);
    color: var(--imperial-garnet);
}

.trust-signal p {
    color: var(--graphite-mist);
    margin-bottom: 0;
}

/* Contact Form Styles */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    padding: var(--s6);
    box-shadow: var(--shadow-card);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: var(--s1);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--obsidian-slate);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: var(--s3);
    border: 2px solid var(--warm-taupe);
    border-radius: var(--radius-card);
    background-color: var(--ivory-pearl);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--imperial-garnet);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--graphite-mist);
    opacity: 0.7;
}

.form-input.error {
    border-color: var(--error-crimson);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.field-error {
    color: var(--error-crimson);
    font-size: 0.875rem;
    margin-top: var(--s1);
    font-weight: 500;
}

/* Enhanced Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: var(--s3) var(--s4);
    background: linear-gradient(135deg, var(--imperial-garnet), var(--burgundy-velvet));
    color: var(--ivory-pearl);
    border: none;
    border-radius: var(--radius-card);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    min-height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: flex;
    align-items: center;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.form-disclaimer {
    margin-top: var(--s2);
    text-align: center;
    font-size: 0.875rem;
    color: var(--graphite-mist);
    margin-bottom: 0;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: var(--s4);
    border-radius: var(--radius-card);
    margin-top: var(--s4);
}

.form-success {
    background: rgba(107, 142, 35, 0.1);
    border: 2px solid var(--success-sage);
    color: var(--success-sage);
}

.form-error {
    background: rgba(178, 34, 34, 0.1);
    border: 2px solid var(--error-crimson);
    color: var(--error-crimson);
}

.message-icon {
    margin: 0 auto var(--s2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message h3 {
    margin-bottom: var(--s2);
    font-size: 1.25rem;
}

.form-message p {
    margin-bottom: 0;
}

/* Contact Information Cards */
.contact-info-section {
    margin-top: var(--s6);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    padding: var(--s5);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-card-primary {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
}

.contact-card-secondary {
    border-color: var(--imperial-garnet);
}

.contact-card-social {
    background: var(--warm-taupe);
}

.contact-card-icon {
    margin: 0 auto var(--s3);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.1);
}

.contact-card-primary .contact-card-icon {
    background: rgba(246, 244, 239, 0.2);
    color: var(--ivory-pearl);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--s3);
    color: inherit;
}

.contact-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    margin-bottom: var(--s2);
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: scale(1.05);
}

.contact-phone {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.contact-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--s2);
    margin: var(--s3) 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* Social Proof Section */
.social-proof-content h2 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s4);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--imperial-garnet);
    margin-bottom: var(--s1);
    line-height: 1;
}

.stat-item p {
    font-weight: 600;
    color: var(--obsidian-slate);
    margin-bottom: 0;
}

.featured-testimonial {
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    padding: var(--s5);
    margin: var(--s5) 0 0;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--imperial-garnet);
}

.featured-testimonial p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--s3);
    color: var(--obsidian-slate);
    line-height: 1.6;
}

.featured-testimonial cite {
    font-weight: 600;
    font-style: normal;
    color: var(--imperial-garnet);
}

/* Enhanced Button Styles */
.btn-secondary {
    background-color: transparent;
    color: var(--ivory-pearl);
    border: 2px solid var(--ivory-pearl);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--ivory-pearl);
    color: var(--imperial-garnet);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--s3) var(--s6);
    font-size: 1.25rem;
    min-height: 56px;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--s6) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-cta-group {
    display: flex;
    gap: var(--s3);
    margin-top: var(--s5);
    flex-wrap: wrap;
}

/* Features Section Enhancement */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--s5);
    margin-top: var(--s5);
}

.feature-card {
    text-align: center;
    padding: var(--s5);
    transition: all 0.3s ease;
    border: none;
    background: var(--ivory-pearl);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Mobile Menu Enhancement */
.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--obsidian-slate);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 244, 239, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: var(--s4) 0;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--obsidian-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--imperial-garnet);
}

/* Enhanced Mobile Responsiveness & Touch Targets */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: var(--s4) 0;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-main {
        padding: var(--s5) var(--s3);
        margin: 0 var(--s2);
    }
    
    .hero-main h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: var(--s4);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: var(--s6);
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s3);
    }
    
    .hero-cta-group .btn {
        text-align: center;
        justify-content: center;
        min-height: 56px;
        font-size: 1.1rem;
        padding: var(--s3) var(--s4);
    }
    
    /* Touch-friendly navigation */
    .nav-link, .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: var(--s2) var(--s3);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Enhanced mobile sections */
    .spanish-content-layout {
        padding: 0 var(--s2);
    }
    
    .profile-section {
        gap: var(--s4);
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }
    
    .service-card {
        padding: var(--s5);
        margin-bottom: var(--s3);
    }
    
    .neighborhoods-showcase {
        grid-template-columns: 1fr !important;
        gap: var(--s5);
    }
    
    .neighborhood-card {
        margin-bottom: var(--s4);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }
    
    .testimonial-card {
        padding: var(--s4);
        margin-bottom: var(--s3);
    }
    
    .city-links {
        grid-template-columns: 1fr;
        gap: var(--s3);
    }
    
    .city-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--s3);
        font-size: 1.1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn {
        min-height: 48px;
        padding: var(--s3) var(--s4);
        font-size: 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-large {
        min-height: 56px;
        padding: var(--s4) var(--s5);
        font-size: 1.2rem;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: var(--s2);
        min-height: 48px;
        min-width: 48px;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    /* Enhanced spacing for mobile */
    .section {
        padding: var(--s6) 0;
    }
    
    .container {
        padding: 0 var(--s3);
    }
    
    /* Better mobile typography */
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: var(--s4);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
        line-height: 1.5;
        margin-bottom: var(--s4);
    }
    
    .lead {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    /* Improved credential cards for mobile */
    .credentials {
        grid-template-columns: 1fr;
        gap: var(--s3);
        margin-top: var(--s5);
    }
    
    .credential-item {
        padding: var(--s4);
        text-align: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Desktop optimizations */
    .spanish-content-layout {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s5);
    }
    
    .neighborhoods-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s5);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s5);
    }
    
    .resource-links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s4);
    }
}

/* Neighborhoods Page Specific Styles */
.neighborhoods-grid {
    margin-top: var(--s5);
}

.neighborhood-card {
    position: relative;
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.neighborhood-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--imperial-garnet);
}

.neighborhood-card img {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transition: all 0.4s ease;
}

.neighborhood-card:hover img {
    transform: scale(1.02);
}

.neighborhood-card h2 {
    color: var(--imperial-garnet);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: var(--s3);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.neighborhood-card ul li {
    position: relative;
    padding-left: var(--s4);
    margin-bottom: var(--s2);
    color: var(--obsidian-slate);
    font-weight: 500;
}

.neighborhood-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--imperial-garnet);
    font-weight: bold;
    font-size: 1.1em;
}

.neighborhood-card .btn {
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: none;
    border: 2px solid var(--imperial-garnet);
    transition: all 0.3s ease;
}

.neighborhood-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.neighborhood-card .btn:hover::before {
    left: 100%;
}

.neighborhood-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

/* Mobile Enhancements for Neighborhoods */
@media (max-width: 768px) {
    .neighborhoods-grid {
        grid-template-columns: 1fr !important;
        gap: var(--s4) !important;
    }
    
    .neighborhood-card {
        margin-bottom: var(--s3);
    }
    
    .neighborhood-card img {
        height: 200px;
    }
    
    .neighborhood-card h2 {
        font-size: 1.5rem;
    }
    
    .neighborhood-card ul {
        margin: var(--s2) 0;
    }
    
    .neighborhood-card ul li {
        font-size: 0.95rem;
        padding-left: var(--s3);
        margin-bottom: var(--s1);
    }
    
    .neighborhood-card .btn {
        font-size: 1rem;
        padding: var(--s2) var(--s3);
    }
}

/* Enhanced CTA Section for Neighborhoods */
.neighborhoods-cta {
    background: var(--imperial-garnet);
    background: linear-gradient(135deg, var(--imperial-garnet) 0%, var(--burgundy-velvet) 100%);
    position: relative;
    overflow: hidden;
}

.neighborhoods-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.neighborhoods-cta .container {
    position: relative;
    z-index: 2;
}

.neighborhoods-cta .btn {
    background: var(--ivory-pearl);
    color: var(--imperial-garnet);
    border: 3px solid var(--ivory-pearl);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.neighborhoods-cta .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.neighborhoods-cta .btn:hover::after {
    width: 300px;
    height: 300px;
}

.neighborhoods-cta .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: var(--warm-taupe);
}

/* Resource Page Styles */
.feature-icon-container {
    background: var(--imperial-garnet);
    color: var(--ivory-pearl);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s3);
    transition: all 0.3s ease;
}

.feature-icon-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.icon-feature {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Resource Download Button Styles */
.resource-download,
.calculator-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-download:hover,
.calculator-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.resource-download:active,
.calculator-btn:active {
    transform: translateY(0);
}

/* Loading state for buttons */
.resource-download.loading,
.calculator-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.resource-download.loading::after,
.calculator-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calculator Modal Styles */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calculator-modal.active {
    opacity: 1;
    visibility: visible;
}

.calculator-content {
    background: var(--ivory-pearl);
    border-radius: var(--radius-card);
    padding: var(--s5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.calculator-close {
    position: absolute;
    top: var(--s2);
    right: var(--s2);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--obsidian-slate);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calculator-close:hover {
    background: var(--warm-taupe);
}

.calculator-form {
    display: grid;
    gap: var(--s3);
}

.calculator-field {
    display: grid;
    gap: var(--s1);
}

.calculator-field label {
    font-weight: 600;
    color: var(--obsidian-slate);
}

.calculator-field input {
    padding: var(--s2);
    border: 1px solid var(--warm-taupe);
    border-radius: var(--radius-card);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calculator-field input:focus {
    outline: none;
    border-color: var(--imperial-garnet);
}

.calculator-result {
    background: var(--warm-taupe);
    padding: var(--s3);
    border-radius: var(--radius-card);
    text-align: center;
    margin-top: var(--s3);
}

.calculator-result h4 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s1);
}

.calculator-result .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--obsidian-slate);
}

/* Newsletter Form Styles */
.newsletter-form .input {
    padding: var(--s2);
    border: 1px solid var(--imperial-garnet);
    border-radius: var(--radius-card);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .input:focus {
    outline: none;
    border-color: var(--imperial-garnet);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.newsletter-form .btn {
    padding: var(--s3) var(--s4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Resource Grid Mobile Responsiveness */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
        gap: var(--s4) !important;
    }
    
    .feature-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .icon-feature {
        width: 24px;
        height: 24px;
    }
    
    .calculator-content {
        width: 95%;
        padding: var(--s3);
    }
    
    .calculator-result .amount {
        font-size: 1.5rem;
    }
    
    /* Newsletter form mobile */
    .newsletter-form div {
        grid-template-columns: 1fr !important;
    }
    
    /* Resource cards mobile */
    .card {
        margin-bottom: var(--s3);
    }
    
    .card h3 {
        font-size: 1.25rem;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Blog Page Specific Styles */
.blog-header {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.05) 0%, rgba(246, 244, 239, 1) 100%);
    padding: var(--s5);
    border-radius: var(--radius-card);
    margin-bottom: var(--s6);
}

.blog-post-modal .blog-post-content {
    color: var(--obsidian-slate);
    line-height: 1.6;
}

.blog-post-modal .blog-post-content h2 {
    color: var(--imperial-garnet);
    margin-bottom: var(--s3);
    border-bottom: 2px solid var(--warm-taupe);
    padding-bottom: var(--s2);
}

.blog-post-modal .blog-post-content h3 {
    color: var(--imperial-garnet);
    margin-top: var(--s4);
    margin-bottom: var(--s2);
}

.blog-post-modal .blog-post-content ul {
    margin: var(--s2) 0;
    padding-left: var(--s4);
}

.blog-post-modal .blog-post-content li {
    margin-bottom: var(--s1);
}

.blog-post-modal .blog-post-content a {
    color: var(--imperial-garnet);
    text-decoration: none;
    font-weight: 600;
}

.blog-post-modal .blog-post-content a:hover {
    text-decoration: underline;
}

/* Enhanced Newsletter Form Styles */
.newsletter-form {
    border: 2px solid rgba(246, 244, 239, 0.3);
    border-radius: var(--radius-card);
    padding: var(--s4);
    background: rgba(246, 244, 239, 0.1);
}

.newsletter-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.newsletter-form label {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form label:hover {
    opacity: 0.8;
}

/* Mobile Blog Improvements */
@media (max-width: 768px) {
    .blog-header {
        padding: var(--s3);
        text-align: center !important;
    }
    
    .blog-header h2 {
        font-size: 1.5rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .newsletter-form {
        padding: var(--s3);
    }
    
    .newsletter-form > div:first-child {
        grid-template-columns: 1fr !important;
        gap: var(--s2) !important;
    }
    
    .newsletter-form .btn {
        padding: var(--s2) var(--s3) !important;
        font-size: 0.95rem;
    }
    
    .newsletter-form > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: var(--s2) !important;
        text-align: left;
    }
    
    .newsletter-form label {
        font-size: 0.9rem;
    }
    
    .blog-post-modal {
        padding: 10px !important;
    }
    
    .blog-post-modal > div {
        max-height: 90vh !important;
        padding: var(--s3) !important;
    }
    
    .blog-post-modal .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-modal .blog-post-content h3 {
        font-size: 1.25rem;
    }
    
    /* Blog card enhancements for mobile */
    .card {
        margin-bottom: var(--s3);
    }
    
    .card img {
        height: 180px !important;
    }
    
    .card h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .card .badge {
        font-size: 0.8rem;
        padding: 4px var(--s1);
    }
    
    .card .badge svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .card > div:last-child > div {
        flex-direction: column !important;
        gap: var(--s2) !important;
    }
    
    .card > div:last-child > div .btn:first-child {
        flex: none !important;
    }
    
    .card > div:last-child > div .btn:last-child {
        align-self: center;
        width: auto;
        padding: var(--s1) var(--s2);
    }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .newsletter-form > div:nth-child(2) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .blog-header {
        padding: var(--s4);
    }
}

/* Enhanced card hover effects */
.card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    border-color: var(--imperial-garnet);
    transform: translateY(-4px);
}

.card .badge {
    background: linear-gradient(135deg, var(--success-sage), #7ba428);
    color: white;
    font-weight: 600;
    border: none;
}