/*
 * STYLES.CSS (Updated with Crystal/Glow Effects)
 * For Nousher Realty Group
 */

/* ======== 1. Root Variables & Fonts ======== */
:root {
    /* Dark Theme Palette */
    --bg-dark: #1a1a1a;
    --bg-dark-alt: #222222;
    --bg-darker: #111111;
    --text-light: #f0f0f0;
    --text-medium: #a0a0a0;
    --accent-gold: #DBAA4D; /* A premium, warm gold */
    --accent-gold-hover: #f0c36b;
    --border-color: #333;
    --error-color: #e74c3c;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-secondary: 'Playfair Display', "Times New Roman", Times, serif;

    /* Sizing */
    --header-height: 70px;
    --container-width: 1140px;
    --border-radius: 6px;
}

/* ======== 2. Global Resets & Base Styles ======== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-medium);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

main {
    padding-top: var(--header-height); /* Offset for fixed header */
    width: 100%; /* Ensure main takes full width */
    overflow: hidden; /* Clear floats and prevent margin collapse */
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; color: var(--accent-gold); }
h4 { font-size: 1.2rem; color: var(--text-light); }

p { margin-bottom: 1rem; }
a { color: var(--accent-gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-gold-hover); }
ul { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; }

/* ======== 3. Utility Classes ======== */
.container { max-width: var(--container-width); width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; width: 100%; }
.alt-bg { background-color: var(--bg-dark-alt); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-title { text-align: center; margin-bottom: 1.5rem; font-size: 2.75rem; }
.section-subtitle { text-align: center; font-size: 1.1rem; max-width: 700px; margin: -1rem auto 3rem; }

/* === Updated Button Styles with Sheen Effect === */
.btn, button.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid var(--accent-gold);
    position: relative; /* Required for sheen */
    overflow: hidden; /* Required for sheen */
}

/* Primary Button Sheen */
.btn-primary { 
    background-color: var(--accent-gold); 
    color: var(--bg-darker); 
}
.btn-primary:hover { 
    background-color: var(--accent-gold-hover); 
    border-color: var(--accent-gold-hover); 
    color: var(--bg-darker); 
}

/* Sheen Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 150%;
}

.btn-secondary { 
    background-color: transparent; 
    color: var(--accent-gold); 
}
.btn-secondary:hover { 
    background-color: var(--accent-gold); 
    color: var(--bg-darker); 
}
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
.btn-full { width: 100%; padding-top: 1rem; padding-bottom: 1rem; font-size: 1rem; }

/* ======== 4. Header / Navbar ======== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(17, 17, 17, 0.7); /* Semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}
.main-header.scrolled { background: var(--bg-darker); border-bottom: 1px solid var(--border-color); }
.main-header nav.container { height: 100%; display: flex; justify-content: space-between; align-items: center; }

/* Updated Logo Style */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem; /* Adjusted size */
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.logo:hover { color: var(--text-light); }
.logo .logo-icon {
    color: var(--accent-gold);
    margin-right: 0.75rem;
    width: 28px;
    height: 28px;
}

.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 2rem; }
.nav-links a { color: var(--text-medium); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-light); }
.hamburger { display: none; background: transparent; border: none; color: var(--text-light); cursor: pointer; z-index: 1002; }

/* ======== 5. Mobile Nav ======== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close { position: absolute; top: 1.7rem; right: 1.5rem; background: transparent; border: none; color: var(--text-light); cursor: pointer; }
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin: 2rem 0; }
.mobile-nav a { color: var(--text-light); font-size: 1.75rem; font-weight: 700; }

/* ======== 6. Hero Section ======== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    width: 100%;
    
    /* === RESTORED HERO IMAGE === */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjAzNTV8MHwxfGFsbHx8fHx8fHx8fDE2NzE0ODY1NzN8&ixlib=rb-4.0.3&q=80&w=1920');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-content { max-width: 800px; z-index: 2; }
.hero-content h1 { font-size: 3.5rem; color: var(--text-light); margin-bottom: 1.5rem; }
.hero-content h2 { font-size: 1.3rem; font-family: var(--font-primary); font-weight: 400; color: var(--text-light); margin-bottom: 1.5rem; }
.hero-content .hero-subline { font-size: 1.1rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.scroll-down-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--text-light); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

/* ======== 7. Services Section ======== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
    background: var(--bg-dark-alt);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
/* "Crystal Glow" Effect on Hover */
.service-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(219, 170, 77, 0.15); 
}
.service-card i { color: var(--accent-gold); width: 48px; height: 48px; margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card .btn { margin-top: auto; }

/* ======== 8. Why Work With Us Section ======== */
.why-us-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.why-us-image { text-align: center; }
.why-us-image img {
    max-width: 350px;
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 4px solid var(--border-color);
}
.why-us-content h3 { font-size: 1.75rem; }
.why-us-content h4 { font-size: 1.2rem; color: var(--accent-gold); margin-top: 1.5rem; }
.why-us-list { margin-top: 1.5rem; }
.why-us-list li { display: flex; align-items: center; font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--text-light); }
.why-us-list i { color: var(--accent-gold); margin-right: 1rem; flex-shrink: 0; }

/* ======== 9. By The Numbers Section ======== */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.stat-card { text-align: center; background: var(--bg-dark-alt); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.stat-number {
    display: block;
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label { display: block; font-size: 1rem; font-weight: 700; color: var(--text-light); margin-bottom: 1rem; }
.stat-bar { height: 4px; width: 100%; background-color: var(--border-color); border-radius: 2px; overflow: hidden; }
.stat-bar-inner {
    height: 100%;
    width: 0; /* Animated by JS */
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: width 1.5s ease-out;
}
.stat-bar-inner.is-visible { width: 100%; }
.results-disclaimer { text-align: center; font-size: 0.9rem; color: var(--text-medium); }

/* ======== 10. Areas & Map Section ======== */
.map-container { height: 500px; width: 100%; border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 4rem; }
#map { height: 100%; width: 100%; }
/* Mapbox Popup Styling */
.mapboxgl-popup-content { background: var(--bg-darker) !important; color: var(--text-light) !important; font-family: var(--font-primary) !important; padding: 1rem 1.25rem !important; border-radius: var(--border-radius) !important; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important; }
.mapboxgl-popup-content h4 { color: var(--accent-gold) !important; font-family: var(--font-primary) !important; font-size: 1.1rem !important; font-weight: 700 !important; margin: 0 0 0.5rem 0 !important; }
.mapboxgl-popup-content p { color: var(--text-light) !important; margin: 0 !important; font-size: 0.9rem !important; }
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { border-top-color: var(--bg-darker) !important; }
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip { border-bottom-color: var(--bg-darker) !important; }
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: var(--bg-darker) !important; }
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: var(--bg-darker) !important; }

.area-grid-title { color: var(--text-light); text-align: center; margin-bottom: 2rem; font-size: 2rem; font-family: var(--font-secondary); }
.area-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}
.area-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.area-card h4 { color: var(--accent-gold); font-size: 1.3rem; margin-bottom: 0.5rem; }
.area-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.area-card ul { flex-grow: 1; }
.area-card ul li { color: var(--text-light); margin-bottom: 0.25rem; position: relative; padding-left: 1.25rem; }
.area-card ul li::before { content: '•'; color: var(--accent-gold); position: absolute; left: 0; top: 0; }
.area-contact-btn {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--accent-gold);
}

/* ======== 11. About Section ======== */
.about-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: flex-start; }
.about-text p { font-size: 1.05rem; }
.about-values { background: var(--bg-dark-alt); padding: 2rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); position: sticky; top: 100px; /* Offset for header + padding */ }
.about-values h3 { margin-bottom: 1.5rem; }
.about-values ul li { color: var(--text-light); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; }
.about-values ul li i { margin-right: 0.75rem; color: var(--accent-gold); }

/* ======== 12. Contact Section & Forms ======== */
.contact-info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}
.contact-info-item {
    background: var(--bg-dark);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.contact-info-item i {
    color: var(--accent-gold);
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
}
.contact-info-item h4 {
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-info-item a {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}
.contact-info-item a:hover {
    color: var(--accent-gold);
}

.contact-form { max-width: 800px; margin: 2rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; position: relative; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { color: var(--text-light); font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(219, 170, 77, 0.3); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23DBAA4D' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
.form-group textarea { resize: vertical; }
.form-group button { width: 100%; padding: 1rem; font-size: 1rem; }
.form-success { text-align: center; color: var(--accent-gold); font-weight: 700; margin-top: 1.5rem; }

/* Form Validation Styles */
.form-error-message { color: var(--error-color); font-size: 0.85rem; font-weight: 700; margin-top: 0.25rem; display: none; }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: var(--error-color); }
.form-group input.invalid:focus, .form-group select.invalid:focus, .form-group textarea.invalid:focus { box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3); }

/* ======== 13. Footer ======== */
.main-footer { background-color: var(--bg-darker); padding: 3rem 0; text-align: center; border-top: 1px solid var(--border-color); }
.main-footer p { margin-bottom: 0.5rem; font-size: 0.9rem; }

.footer-contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}
.footer-contact-info p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact-info a {
    color: var(--text-light);
}
.footer-contact-info a:hover {
    color: var(--accent-gold);
}
.footer-contact-info i {
    color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

.footer-areas { font-weight: 700; color: var(--text-light); margin-top: 1.5rem; }
.footer-powered-by {
    font-size: 0.9rem;
    color: var(--text-medium);
}
.footer-powered-by a {
    color: var(--text-light);
    font-weight: 700;
}
.footer-powered-by a:hover {
    color: var(--accent-gold);
}

.footer-links { margin-top: 1rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-medium); }
.footer-links span { margin: 0 0.5rem; }

/* ======== 14. Chat Widget ======== */
/* ======== 14. Chat Widget ======== */

.chat-widget {
    position: relative;
}

/* Gold floating button */
.chat-icon { 
    position: fixed; 
    bottom: 1.5rem; 
    right: 1.5rem; 
    width: 60px; 
    height: 60px; 
    background-color: var(--accent-gold); 
    color: var(--bg-darker); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); 
    z-index: 998; 
    transition: transform 0.3s ease; 
    animation: pulse-gold 2s infinite;
}
.chat-icon:hover { 
    transform: scale(1.1); 
    animation: none;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(219, 170, 77, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(219, 170, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(219, 170, 77, 0); }
}

/* Your custom chat panel */
.chat-panel {
    position: fixed;
    bottom: 6.5rem;
    right: 1.5rem;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background-color: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0); visibility: visible; }

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}
.chat-header h3 { margin: 0; font-size: 1.1rem; color: var(--accent-gold); }
.chat-close { background: transparent; border: none; color: var(--text-medium); cursor: pointer; }
.chat-close:hover { color: var(--text-light); }

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-message {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.95rem;
}
.chat-message.bot {
    background-color: var(--bg-dark);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
.chat-message.user {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.chat-quick-reply {
    flex-grow: 1;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.75rem 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.chat-quick-reply:hover {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
}

.chat-text-input {
    display: flex;
    gap: 0.5rem;
}
.chat-text-input input {
    flex-grow: 1;
    padding: 0.75rem;
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.9rem;
}
.chat-text-input input:focus {
    outline: none;
    border-color: var(--accent-gold);
}
.chat-text-input button {
    background: var(--accent-gold);
    color: var(--bg-darker);
    border: none;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Chat widget: live vs submit buttons */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.chat-option-btn {
    flex: 1 1 auto;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}
.chat-option-btn.live {
    background: var(--accent-gold);
    color: var(--bg-darker);
}
.chat-option-btn.later {
    background: #222;
    color: #fff;
}

/* Helper: explicit hide via JS */
.hide-custom-chat {
    display: none !important;
}

/* === Crisp floating chat === */
/* Make Crisp popup taller and more spacious */
crisp-chatbox {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 2147483647 !important;
  transform: none !important;
}

/* Force a taller minimum height for the whole window */
crisp-chatbox .cc-1x1x {
  min-height: 520px !important;   /* increase for more height */
}

/* Give more vertical space to the messages area */
crisp-chatbox .cc-1x2r,
crisp-chatbox .cc-1x2s {
  max-height: none !important;
}

/* Make the bottom input zone taller */
crisp-chatbox .cc-1x31,
crisp-chatbox .cc-1x2y {
  min-height: 90px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}


/* Mobile tweaks */
@media (max-width: 768px) {
    .chat-panel {
        width: 100vw;
        height: 180vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        border: none;
        z-index: 1150;
    }
    .chat-icon { z-index: 998; }
}

/* When Crisp live chat is open, hide the gold chat bubble */
/* body.crisp-open .chat-icon {
    display: none !important;
}

crisp-chatbox {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 2147483647 !important;
  transform: none !important;
} */

/* ======== 15. Modal Popups ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    border-radius: var(--border-radius);
    z-index: 1201;
    width: 90%;
    max-width: 700px;
    /* Crystal "pop" effect */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(219, 170, 77, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.5rem;
}
.modal-close:hover { color: var(--text-light); }

.modal-header { padding: 2rem 2rem 1rem; border-bottom: 1px solid var(--border-color); }
.modal-header h3 { margin-bottom: 0.5rem; }
.modal-header p { color: var(--text-light); margin-bottom: 0; }

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.modal-form .form-group { margin-bottom: 0; }
.recaptcha-placeholder {
    background: var(--bg-dark);
    border: 1px dashed var(--border-color);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-radius: var(--border-radius);
}

.modal-body .form-success {
    text-align: center;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
}
.modal-body .form-success h4 { color: var(--accent-gold); font-size: 1.5rem; }
.modal-body .form-success p { color: var(--text-light); font-size: 1.1rem; margin: 0; }

/* ======== 16. Responsive Media Queries ======== */

/* Tablets & Small Desktops */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.15rem; }

    .services-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-layout { grid-template-columns: 1fr; text-align: center; }
    .why-us-image img { width: 300px; height: 380px; margin-bottom: 1.5rem; }
    .why-us-list li { justify-content: center; text-align: left; }
    .about-layout { grid-template-columns: 1fr; }
    .about-values { position: static; top: 0; }
    .area-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }

    .logo {
        font-size: 0.9rem; /* Smaller logo text on mobile */
    }
    .logo .logo-icon {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem;
    }

    .hero-section { background-attachment: scroll; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 90%; margin-left: auto; margin-right: auto; }
    
    .services-grid,
    .results-grid,
    .area-grid { 
        grid-template-columns: 1fr; 
    }
    
    .contact-info-block {
        grid-template-columns: 1fr;
    }
    .contact-form { grid-template-columns: 1fr; }
    .form-group-grid { grid-template-columns: 1fr; }
    
    .chat-panel {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        border: none;
        z-index: 1150;
    }
    .chat-icon { z-index: 998; }
    
    .modal {
        width: 95%;
        top: 2.5%;
        transform: translate(-50%, 0) scale(0.95);
        max-height: 95vh;
    }
    .modal.active { transform: translate(-50%, 0) scale(1); }
    .modal-body { max-height: 75vh; padding: 1.5rem; }
    .modal-header { padding: 1.5rem; }
    
    .why-us-layout { gap: 1.5rem; }
    .about-layout { gap: 1.5rem; }

    .footer-contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}