/*
Theme Name: Amy Lassen Real Estate
Theme URI: https://searchcoloradospringsrealestate.com
Author: Scott Cheng Team
Author URI: https://scottchengteam.com
Description: Elegant, minimalist real estate theme for Amy Lassen - RE/MAX Properties, Colorado Springs. Inspired by Graceful Delight blog aesthetic with clean lines, ample whitespace, and refined typography.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amy-lassen
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, featured-images, theme-options, real-estate
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #1e81b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #78b3d2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; letter-spacing: 2px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5em;
    color: #555555;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.site-wrapper {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: #1e81b5;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    z-index: 9999;
}

.top-bar .site-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ffffff;
    opacity: 0.9;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar-contact span {
    margin-right: 20px;
}

.top-bar-social a {
    margin-left: 8px; display: inline-block; padding: 4px 8px; cursor: pointer; text-decoration: none; position: relative; z-index: 10;
    font-size: 1.1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #ffffff;
    text-align: center;
    padding: 40px 0 0;
    border-bottom: 1px solid #e8e8e8;
}

.site-branding {
    margin-bottom: 25px;
}

.site-logo img { max-width: 130px !important; width: 130px !important; height: auto !important; margin: 0 auto; }
.custom-logo { width: 130px !important; height: auto !important; max-width: 130px !important; }

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1e81b5;
    margin-bottom: 5px;
}

.site-title a {
    color: #1e81b5;
}

.site-title a:hover {
    color: #78b3d2;
}

.site-tagline {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999999;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #f1f1f1;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333333;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #1e81b5;
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 999;
    flex-direction: column;
    border-top: 2px solid #1e81b5;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 10px 20px;
    font-size: 0.7rem;
    border-bottom: 1px solid #f1f1f1;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 700px;
    padding: 0 30px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 40px;
    background: #1e81b5;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: background 0.3s ease;
}

.hero-cta:hover {
    background: #78b3d2;
    color: #ffffff;
}

/* ============================================
   SECTIONS - GENERAL
   ============================================ */
.section {
    padding: 80px 0;
}

.section-light {
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #1e81b5;
}

.section-header p {
    font-size: 1rem;
    color: #888;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {    width: 100%;    height: 350px;    object-fit: cover;    border: 6px solid #ffffff;    box-shadow: 0 10px 40px rgba(0,0,0,0.08);    border-radius: 8px;}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border-right: 3px solid #1e81b5;
    border-bottom: 3px solid #1e81b5;
    z-index: -1;
}

.about-text h3 {
    font-size: 1.3rem;
    color: #1e81b5;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.about-text .credentials {
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

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

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e81b5;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-top: 5px;
    display: block;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 2.5rem;
    color: #1e81b5;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   COMMUNITIES SECTION
   ============================================ */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.community-card {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover img {
    transform: scale(1.05);
}

.community-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #ffffff;
}

.community-overlay h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.community-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full Communities List */
.communities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.community-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f6f8fa;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.community-tag:hover {
    background: #1e81b5;
    color: #ffffff;
    border-color: #1e81b5;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: #1e81b5;
    color: #ffffff;
    text-align: center;
}

.testimonials-section .section-header h2 {
    color: #ffffff;
}

.testimonials-section .section-header h2::after {
    background: rgba(255,255,255,0.5);
}

.testimonial-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.9;
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
}

.testimonial-card blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    line-height: 0;
    display: block;
    margin-bottom: 10px;
}

.testimonial-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 550px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #1e81b5;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #155d85;
    color: #ffffff;
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: #1e81b5;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #1e81b5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1e81b5;
    color: #ffffff;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    width: 45px;
    height: 45px;
    background: #f0f7fb;
    color: #1e81b5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.contact-info-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e81b5;
    background: #ffffff;
}

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

/* ============================================
   MARKET REPORT CTA
   ============================================ */
.market-report-bar {
    background: linear-gradient(135deg, #1e81b5, #78b3d2);
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
}

.market-report-bar h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.market-report-bar p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    display: inline-block;
    padding: 12px 35px;
    background: #ffffff;
    color: #1e81b5;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f0f0f0;
    color: #1e81b5;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a1a;
    color: #aaaaaa;
    padding: 60px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-widget p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.7;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #aaa;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #78b3d2;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: inline-block;
    width: 38px;
    height: 38px;
    background: #333;
    color: #aaa;
    text-align: center;
    line-height: 38px;
    margin-right: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #1e81b5;
    color: #ffffff;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom a {
    color: #78b3d2;
}

.footer-brokerage {
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.post-card-image {
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.post-card-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.post-card-content h3 a {
    color: #1a1a1a;
}

.post-card-content h3 a:hover {
    color: #1e81b5;
}

.read-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1e81b5;
}

.read-more:hover {
    color: #155d85;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header-banner {
    background: linear-gradient(135deg, #1e81b5, #78b3d2);
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
}

.page-header-banner h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-header-banner .breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.page-header-banner .breadcrumb a {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 60px 0;
}

.sidebar .widget {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
}

.sidebar .widget h4 {
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1e81b5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .communities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .main-navigation.active ul {
        display: flex;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border-top: none;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

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

    .top-bar {
        text-align: center;
    }

    .top-bar .site-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }

    .section {
        padding: 50px 0;
    }

    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
}

/* Force social links clickable */
.top-bar-social a,
.footer-social a {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
}
.top-bar-social a:hover,
.footer-social a:hover {
    opacity: 1 !important;
}


/* Force top bar visible at ALL screen sizes */
.top-bar {
    display: block !important;
}
.top-bar .site-wrapper {
    display: flex !important;
}
@media (max-width: 768px) {
    .top-bar .site-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    .top-bar-contact {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .top-bar-social {
        display: block !important;
    }
}


/* Uniform service images */
.service-img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .service-img {
        height: 250px !important;
    }
}


/* Force all service section images same size */
.about-image {
    height: 350px !important;
    overflow: hidden !important;
}
.about-image img,
.service-img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    display: block !important;
}
@media (max-width: 768px) {
    .about-image {
        height: 250px !important;
    }
    .about-image img,
    .service-img {
        height: 250px !important;
    }
}


/* FINAL: Lock service images to exact same dimensions */
.services-page-grid .about-image,
section .about-grid .about-image {
    width: 100% !important;
    height: 350px !important;
    max-height: 350px !important;
    min-height: 350px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 8px;
}
.services-page-grid .about-image img,
section .about-grid .about-image img,
.service-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 350px !important;
    min-height: 350px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: none !important;
    border-radius: 8px !important;
}
@media (max-width: 768px) {
    .services-page-grid .about-image,
    section .about-grid .about-image {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
    .services-page-grid .about-image img,
    section .about-grid .about-image img,
    .service-img {
        max-height: 250px !important;
        min-height: 250px !important;
    }
}


/* MOBILE FIXES: Force image-then-text on all service rows; center stats */
@media (max-width: 768px) {
    /* Override RTL direction on service sections so image always comes first */
    .about-grid,
    .about-grid[style*='rtl'],
    .about-grid .about-text,
    .about-grid .about-image {
        direction: ltr !important;
    }
    /* Ensure image comes first visually on every row */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .about-grid .about-image {
        order: 1 !important;
    }
    .about-grid .about-text {
        order: 2 !important;
    }
    /* Center the stats horizontally */
    .about-stats {
        justify-content: center !important;
        text-align: center !important;
    }
    .stat-item {
        flex: 0 0 auto !important;
        min-width: 110px !important;
    }
}

/* HERO READABILITY: darker overlay + stronger text shadow */
.hero-section::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.75)) !important;
}
.hero-content h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
.hero-content p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.5) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
