:root {
    /* Default Theme (Dark) - These will be overridden by inline styles from DB */
    --bg: #0b0c10;
    --fg: #ffffff;
    --muted: #9aa0a6;
    --accent: #e50914;
    --card-bg: #111418;
    --border-color: #15181c;
    --container-width: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: var(--bg);
    color: var(--fg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    width: 92%; /* Added for better mobile responsiveness */
    margin: 0 auto;
    padding: 16px;
}

.site-header,
.site-footer {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg); /* Use card-bg or specific header color */
}

.logo {
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 30px;
}

.hero {
    padding: 56px 0;
}

.hero h1 {
    font-size: 40px;
    margin: 0 0 12px;
    color: var(--fg);
}

.hero p {
    color: var(--muted);
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: #222;
}
.lazy{filter:blur(10px);transition:filter .5s ease-in-out;opacity:0.5}
.lazy.loaded{filter:none;opacity:1}

/* Form Styles */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--fg);
    font-size: 16px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}
.alert {
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--accent);
    color: #ffcccc;
    border-radius: 6px;
}

/* Navigation & Dropdowns */
.site-header .container {
    display: flex;
    align-items: center;
    position: relative; /* Necessary for absolute positioning of mobile menu */
}
.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}
.site-nav li {
    position: relative;
}
.site-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 0;
    display: block;
    transition: color 0.2s;
}
.site-nav a:hover {
    color: var(--fg);
}

/* Dropdown Menu */
.site-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
    padding: 5px 0;
}
.site-nav ul ul li {
    width: 100%;
}
.site-nav ul ul a {
    padding: 10px 16px;
    color: var(--muted);
}
.site-nav ul ul a:hover {
    background: var(--bg);
    color: var(--accent);
}

/* Show Dropdown on Hover */
.site-nav li:hover > ul {
    display: flex;
}

/* Nested Dropdowns (Level 2+) */
.site-nav ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 2px;
}

/* Indicators */
.has-children > a {
    padding-right: 15px;
}
.has-children > a::after {
    content: '▾';
    font-size: 0.8em;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}
.site-nav ul ul .has-children > a::after {
    content: '▸';
    right: 10px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 10px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0;
    }

    .site-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .site-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
        border-top: 1px solid var(--border-color);
    }
    
    .site-nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    /* Mobile Dropdowns */
    .site-nav ul ul {
        position: static; /* Stack naturally */
        display: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.1); /* Slight darken for contrast */
        padding-left: 20px;
        border-radius: 0;
    }
    
    /* Show dropdown on hover/tap */
    .site-nav li:hover > ul {
        display: flex;
    }
    
    .has-children > a::after {
        right: 20px;
    }
    
    .site-nav ul ul .has-children > a::after {
        content: '▾'; /* Always point down in mobile list */
    }
    
    /* Reset Nested Dropdowns position */
    .site-nav ul ul ul {
        margin-left: 0;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Call Button */
.quick-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.quick-call-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.quick-call-icon {
    font-size: 1.2rem;
}

.quick-call-text {
    font-weight: 600;
    font-size: 1rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(229, 9, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Mobile Responsive Quick Call */
@media (max-width: 768px) {
    .quick-call-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
    
    .quick-call-text {
        display: none;
    }
    
    .quick-call-icon {
        font-size: 1.5rem;
    }
}

.google-reviews-section {
    padding: 40px 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.reviews-title {
    text-align: center;
    font-size: 28px;
    margin: 0 0 8px 0;
    color: var(--fg);
}

.reviews-subtitle {
    text-align: center;
    color: var(--muted);
    margin: 0 0 32px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4, #34A853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 2px;
}

.review-date {
    font-size: 13px;
    color: var(--muted);
}

.review-rating {
    margin-bottom: 12px;
}

.review-rating .star {
    font-size: 18px;
    color: var(--muted);
}

.review-rating .star.filled {
    color: #FFD700;
}

.review-text {
    color: var(--fg);
    line-height: 1.6;
    margin: 0;
}

.google-link-container {
    text-align: center;
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.google-reviews-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.google-logo {
    font-weight: bold;
    font-size: 18px;
}

.hero-google-reviews {
    margin-bottom: 24px;
}

.reviews-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.review-mini-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-mini-rating {
    margin-bottom: 8px;
}

.review-mini-rating .star {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.review-mini-rating .star.filled {
    color: #FFD700;
}

.review-mini-text {
    margin: 0;
    font-size: 14px;
    color: white;
    line-height: 1.5;
}

.google-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.google-mini-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.google-mini-logo {
    font-weight: bold;
    font-size: 16px;
}
