/* Custom CSS for SB-684 Website */

/* Enhanced Blog Styles with Modern Gradient Backgrounds */
.blog-homepage-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    position: relative;
}

.blog-homepage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.03) 0%, rgba(108, 117, 125, 0.05) 100%);
    pointer-events: none;
}

.blog-listing-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 30%, #dee2e6 70%, #ced4da 100%);
    min-height: 100vh;
    position: relative;
}

.blog-listing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.02) 0%, rgba(108, 117, 125, 0.04) 50%, rgba(13, 110, 253, 0.02) 100%);
    pointer-events: none;
}

.blog-post-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);
    min-height: 100vh;
    position: relative;
}

.blog-post-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(108, 117, 125, 0.05) 100%);
    pointer-events: none;
}

/* Enhanced Blog Cards with Glassmorphism */
.blog-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

/* Enhanced Typography with Better Contrast */
.blog-listing-page .section-title-modern,
.blog-listing-page .section-subtitle-modern,
.blog-listing-page h1,
.blog-listing-page h2,
.blog-listing-page h3,
.blog-listing-page p {
    color: #212529 !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.blog-title a {
    color: #212529 !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color) !important;
}

.blog-excerpt {
    color: #495057 !important;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-weight: 500;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d !important;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Blog Post Content with Glassmorphism */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #212529 !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #343a40 !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #343a40 !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Enhanced Related Posts Section */
.related-posts {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px 0;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

/* Blog Page Header */
.blog-page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 200px 0 100px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.blog-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Logo Design */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: #212529;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .brand-logo {
        gap: 8px;
    }
    
    .brand-main {
        font-size: 1.1rem;
    }
    
    .brand-sub {
        font-size: 0.7rem;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
}

/* Navigation Centering */
.navbar-collapse {
    justify-content: space-between;
}

.navbar-nav.mx-auto {
    flex-grow: 0;
    margin: 0 auto;
}

/* Service Areas Section - Modern Hero Design */
.service-areas-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(25, 25, 112, 0.9) 50%, rgba(0, 0, 0, 0.7) 100%), 
                url('/static/images/adu-exterior.jpg') center/cover no-repeat;
    position: relative;
    color: white;
    padding-top: 150px !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(13, 110, 253, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(220, 53, 69, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.service-areas-section .container {
    position: relative;
    z-index: 2;
}

.service-areas-section .hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.service-areas-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-areas-section .stat-number {
    color: #ffd700;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-areas-section .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Button Styling */
.service-areas-section .btn-outline-dark {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #212529;
    color: #212529 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-areas-section .btn-outline-dark:hover {
    background: #212529;
    color: white !important;
    border-color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Section button styling */
.cta-section .btn-outline-dark {
    background: transparent;
    border: 2px solid #212529;
    color: #212529 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-outline-dark:hover {
    background: #212529;
    color: white !important;
    border-color: #212529;
}

/* Modern Navigation Dropdown */
.navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    padding: 10px 20px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Compact Navigation Styling */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #495057;
}

.navbar-nav .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: antiquewhite;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0056b3);
    border: none;
    transform: scale(1);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.4);
}

/* Modern Search Styling */
.search-container {
    position: relative;
}

.search-container .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.search-container .btn {
    border-radius: 50px;
    padding: 15px 25px;
    background: linear-gradient(45deg, #0d6efd, #0056b3);
    border: none;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.search-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
}

/* Animated Background Elements */
.service-areas-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

.service-area-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-area-title {
    color: #212529;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

.service-area-cities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-area-cities li {
    margin-bottom: 8px;
}

.service-area-cities li a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.service-area-cities li a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 15px;
}

.service-area-cities li.view-all {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.service-area-cities li.view-all a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-area-cities li.view-all a:hover {
    color: var(--secondary-color);
}

/* Service Areas Overview Specific Styles */
.hero-stats {
    margin-top: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.county-stats .badge {
    margin-right: 8px;
    font-size: 0.75rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: #6c757d;
}

.city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.city-link {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.city-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.county-link {
    display: block;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.county-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Social Media Links */
.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Search functionality */
.search-container .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #212529;
}

.search-container .form-control:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-container .btn {
    border: none;
}

/* Hidden counties for expand functionality */
.county-item.hidden {
    display: none;
}

.county-item {
    transition: all 0.3s ease;
}

/* Root Variables - Modern Gray Theme */
:root {
    --primary-color: #374151;
    --primary-hover: #1f2937;
    --primary-light: #1f2937;
    --primary-dark: #0f172a;
    --secondary-color: #9ca3af;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --success-color: #22c55e;
    --info-color: #0ea5e9;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --text-color: #374151;
    --text-light: #ffffff;
    --text-muted: #374151;
    --border-color: #e2e8f0;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.875rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.125rem; font-weight: 600; }

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Container Overrides */
.container {
    max-width: var(--container-max-width) !important;
}

/* Modern Navigation */
.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.modern-nav.scrolled .navbar-nav .nav-link {
    color: #6b7280 !important;
}

.modern-nav.scrolled .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-50);
}

.modern-nav.scrolled .navbar-nav .nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-hover) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700;
    margin-left: 1rem;
    text-decoration: none !important;
}

.nav-cta:hover {
    background: var(--primary-hover) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.3);
    text-decoration: none !important;
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: #1f2937;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

/* Custom Utility Classes */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.border-0 {
    border: 0 !important;
}

/* Section Styles - Modern & Mobile-Responsive */
section {
    padding: 4rem 0;
}

/* Modern Hero Section */
.hero-section-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/67d1a87abaed488e44499dbe_professional-engineer-architect-worker-with-protective-helmet-blueprint_1751028884293.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95) 0%, rgba(17, 24, 39, 0.9) 100%);
    z-index: 2;
}

.hero-section-modern .container {
    z-index: 3;
}

.hero-content {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-stats-modern {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-stat {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.featured-stat .stat-icon {
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Services Section */
.services-section-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--light-color) 100%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title-modern {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle-modern {
    font-size: 1.25rem;
    color: #1f2937;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.primary-card {
    border: 2px solid var(--accent-color);
}

.service-card-image-modern {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.service-card-modern:hover .service-card-image-modern img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-modern:hover .service-overlay {
    opacity: 1;
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1);
}

.service-content-modern {
    padding: 2rem;
}

.service-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-description-modern {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--gray-100);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-cta-modern {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-cta-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 65, 81, 0.3);
    color: white;
}

/* ADU Gallery */
.adu-gallery {
    padding: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 120px;
    gap: 1rem;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Interior Showcase */
.interior-showcase {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1.5rem;
    border: 1px solid var(--gray-200);
}

.interior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.interior-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 200px;
}

.interior-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.interior-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interior-item:hover .interior-overlay {
    opacity: 1;
}

.interior-item:hover img {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.service-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.service-details {
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #1f2937;
    font-size: 0.9rem;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--light-color) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto;
    }
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 5rem 0;
}

.content-wrapper {
    padding-right: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.feature-content h6 {
    font-size: 1rem;
    color: var(--text-color);
}

.cta-card {
    background: var(--light-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    margin: 2rem auto;
    max-width: 500px;
    position: relative;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 1.6rem;
    z-index: -1;
    opacity: 0.1;
}

.cta-header h4 {
    color: var(--text-color);
}

.action-buttons {
    margin-bottom: 1.5rem;
}

.phone-cta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 992px) {
    .content-wrapper {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .cta-card {
        padding: 1.5rem;
        border-radius: 1rem;
        margin: 1rem auto;
        max-width: 100%;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* SB-684 Information Section */
.sb684-section {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--light-color);
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.benefit-icon-success {
    background: var(--success-color);
}

.benefit-icon-info {
    background: var(--info-color);
}

.benefit-icon-warning {
    background: var(--warning-color);
}

.benefit-content {
    text-align: left;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
    font-size: 0.9rem;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.additional-benefits-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: white;
}

.additional-benefits-card h3 {
    color: white;
    font-weight: 800;
    margin-bottom: 2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 1rem;
}

.advantage-title {
    color: white !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.advantage-text {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.advantage-content h6 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
}

.advantage-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .additional-benefits-card {
        padding: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-categories {
    margin-top: 2rem;
}

.faq-category-card {
    background: var(--light-color);
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 2rem;
    height: 100%;
}

.faq-category-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-category-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.faq-accordion {
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--light-color);
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer-content {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    color: #374151;
    line-height: 1.6;
    border-top: 1px solid var(--gray-200);
}

/* ROI Card */
.roi-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: white;
}

.roi-card h3 {
    color: white;
    font-weight: 800;
    margin-bottom: 2rem;
}

.roi-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.roi-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.roi-metric-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.roi-metric-success {
    background: rgba(34, 197, 94, 0.8);
    backdrop-filter: blur(10px);
}

.roi-metric-warning {
    background: rgba(245, 158, 11, 0.8);
    backdrop-filter: blur(10px);
}

.roi-metric-info {
    background: rgba(14, 165, 233, 0.8);
    backdrop-filter: blur(10px);
}

.roi-title {
    font-size: 1rem !important;
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.roi-value {
    font-size: 1.1rem !important;
    color: var(--accent-light) !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.roi-description {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.roi-metric-content h5 {
    font-size: 1rem;
    color: white;
    font-weight: 700;
}

.roi-metric-content p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    /* Modern Hero Mobile */
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Modern Services Mobile */
    .section-title-modern {
        font-size: 2rem;
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-image-modern {
        height: 200px;
    }
    
    .service-content-modern {
        padding: 1.5rem;
    }
    
    /* Mobile CTA Section */
    .final-cta-title {
        font-size: 2rem;
    }
    
    .final-cta-subtitle {
        font-size: 1.1rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-final-primary,
    .btn-final-secondary,
    .btn-final-phone {
        width: 100%;
        justify-content: center;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 150px 150px;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    /* Interior Showcase Mobile */
    .interior-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .interior-item {
        height: 150px;
    }
    
    .interior-showcase {
        padding: 1.5rem;
    }
    
    /* Service Cards Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card-image img {
        height: 150px;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-category-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer-content {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .roi-card {
        padding: 1.5rem;
    }
    
    .roi-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .roi-metric {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .interior-grid {
        grid-template-columns: 1fr;
    }
    
    .interior-item {
        height: 180px;
    }
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6 {
    color: var(--light-color) !important;
}

.bg-primary p, .bg-primary .lead {
    color: var(--gray-200) !important;
}

.bg-primary .text-muted {
    color: var(--gray-300) !important;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Card Enhancements */
.card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 2rem;
}

/* Service Icons */
.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles - Yardsworth Inspired */
.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.025em;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.15);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color) !important;
}

.btn-light:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--primary-color) !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--light-color) !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--light-color);
    color: var(--primary-color) !important;
    border-color: var(--light-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    transform: translateY(-2px);
}

/* Form Styles - Yardsworth Inspired */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--light-color);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
    outline: none;
}

.form-control-lg, .form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Alert Enhancements */
.alert {
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
    color: #0f5132;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
}

/* Card Styles - Yardsworth Inspired */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background-color: var(--light-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #4b5563;
    line-height: 1.6;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--light-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--gray-50);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.125rem var(--primary-color);
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--light-color);
    color: #1f2937;
    border-top: 1px solid var(--gray-200);
}

/* Footer Styles */
footer {
    background-color: var(--gray-900) !important;
    color: var(--gray-300) !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: var(--light-color) !important;
    font-weight: 600;
}

footer p {
    color: var(--gray-300) !important;
}

footer a {
    color: var(--gray-400) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--light-color) !important;
}

footer .text-muted {
    color: var(--gray-500) !important;
}

footer .list-unstyled li {
    color: var(--gray-400);
}

/* Dark background utility */
.bg-dark {
    background-color: var(--gray-900) !important;
    color: var(--light-color) !important;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: var(--light-color) !important;
}

.bg-dark p, .bg-dark .lead {
    color: var(--gray-200) !important;
}

.bg-dark .text-muted {
    color: var(--gray-400) !important;
}

.bg-dark a {
    color: var(--gray-300) !important;
}

.bg-dark a:hover {
    color: var(--light-color) !important;
}

/* Timeline Styles */
.timeline .card {
    border-left: 4px solid var(--primary-color);
}

/* Process Icons */
.process-icon {
    position: relative;
}

.process-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .process-icon::after {
        display: none;
    }
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.6;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FAQ Styles */
.faq-category {
    animation: fadeIn 0.3s ease;
}

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

/* Search Highlight */
.search-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Responsive Utilities */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Accessibility Enhancements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Final CTA Section with Excellent Contrast */
.final-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.final-cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-final-primary,
.btn-final-secondary,
.btn-final-phone {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-final-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-final-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-final-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-final-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-final-phone {
    background: linear-gradient(135deg, var(--success-color) 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-final-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
    color: white;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0.25rem;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 6px;
    color: white;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .no-print {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

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

/* Dark Mode Support - Keep light colors consistent */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #ffffff;
        --dark-color: #1f2937;
    }
    
    body {
        background-color: #ffffff;
        color: var(--dark-color);
    }
    
    .card {
        background-color: #ffffff;
        border-color: #e2e8f0;
    }
    
    .form-control,
    .form-select {
        background-color: #ffffff;
        border-color: #e2e8f0;
        color: var(--dark-color);
    }
}

/* Blog Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray-400);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-date, .blog-location {
    display: flex;
    align-items: center;
}

.blog-header {
    margin-top: 80px;
    padding-top: 2rem;
}

.blog-category-large {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.blog-meta-large {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.blog-featured-image {
    max-width: 100%;
    text-align: center;
}

.blog-featured-image img {
    max-height: 400px;
    width: auto;
    object-fit: cover;
}

.related-posts {
    background: var(--gray-50);
}

.related-post-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-placeholder {
    height: 120px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-400);
}

.related-post-card h6 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-post-card h6 a:hover {
    color: var(--primary-color);
}

.social-share a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-homepage-section {
    background: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-meta-large {
        font-size: 0.9rem;
    }
}

/* Services Section Styles */
.section-services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
}

.section-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.02) 0%, rgba(108, 117, 125, 0.03) 50%, rgba(13, 110, 253, 0.02) 100%);
    pointer-events: none;
}

.service-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-image img {
    transform: scale(1.05);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.service-content {
    padding: 2rem;
}

.service-card-modern .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.service-card-modern h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-modern p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.services-cta {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.services-cta h4 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.services-cta p {
    color: #4b5563;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* ADU Showcase Section Styles */
.section-adu-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    position: relative;
}

.section-adu-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.02) 0%, rgba(13, 110, 253, 0.02) 50%, rgba(34, 197, 94, 0.02) 100%);
    pointer-events: none;
}

.adu-design-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.adu-design-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.adu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.adu-design-card:hover .adu-image img {
    transform: scale(1.05);
}

.adu-overlay {
    position: absolute;
    top: 20px;
    left: 15px;
    background: rgb(255 255 255);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 350px;
    max-height: 100px;
}

.adu-specs {
    display: flex;
    gap: 1rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.spec-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.adu-content {
    padding: 2rem;
}

.adu-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.adu-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.adu-features {
    margin-bottom: 1.5rem;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
}

.feature-row i {
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.adu-cost {
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-label {
    color: #166534;
    font-weight: 600;
    font-size: 0.95rem;
}

.cost-value {
    color: #166534;
    font-weight: 800;
    font-size: 1.1rem;
}

.adu-info-section {
    position: relative;
    z-index: 2;
}

.adu-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.info-header {
    text-align: center;
    margin-bottom: 2rem;
}

.info-header h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.benefit-item {
    margin-bottom: 1.5rem;
}

.benefit-item h6 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.benefit-item h6 i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.benefit-item p {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.adu-cta {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.adu-cta h4 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.adu-cta p {
    color: #4b5563;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Responsive Design for Services and ADU Sections */
@media (max-width: 768px) {
    .service-card-modern,
    .adu-design-card {
        margin-bottom: 2rem;
    }
    
    .services-cta,
    .adu-cta {
        padding: 2rem;
    }
    
    .services-cta h4,
    .adu-cta h4 {
        font-size: 1.8rem;
    }
    
    .adu-image {
        height: 200px;
    }
    
    .adu-content {
        padding: 1.5rem;
    }
    
    .adu-info-card {
        padding: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Modern Blog Post Layout */
.blog-post-modern {
    background: #ffffff;
}

.blog-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.blog-header-modern {
    position: relative;
    z-index: 2;
}

.blog-category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.blog-title-main {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-meta-modern {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item i {
    font-size: 1rem;
}

.blog-featured-section {
    padding: 0;
    background: #f8fafc;
}

.featured-image-wrapper {
    position: relative;
    margin-top: -100px;
    z-index: 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 1rem;
}

.featured-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.blog-content-section {
    padding: 6rem 0 4rem 0;
    background: #f8fafc;
}

.blog-content-modern {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.blog-tags-modern {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.tags-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-modern {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
}

.tag-modern:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateY(-2px);
}

/* Blog Content Styling */
.blog-content-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.1rem;
}

.blog-intro {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid #90cdf4;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.blog-intro .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0;
    line-height: 1.6;
}

.content-section {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid transparent;
    background: linear-gradient(to right, #e2e8f0, #e2e8f0) bottom,
                linear-gradient(to right, var(--primary-color), var(--accent-color)) bottom;
    background-size: 100% 1px, 80px 4px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.content-section h3 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.content-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.content-section h4 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    position: relative;
}

.content-section h4::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 900;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-bottom: 2rem;
    padding-left: 0;
}

.content-section li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
    list-style: none;
}

.content-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 900;
    font-size: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border: 1px solid #90cdf4;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.requirement-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.process-timeline {
    margin: 2rem 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 60px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.step-content p {
    margin-bottom: 0;
    color: #4a5568;
}

.cost-breakdown {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cost-breakdown h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.cost-breakdown ul {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.market-analysis {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 1px solid #9ae6b4;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.roi-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.roi-example {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--success-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.roi-example h4 {
    color: var(--success-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.roi-example p {
    margin-bottom: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.law-summary {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #fc8181;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.law-summary h3 {
    color: #c53030;
    margin-top: 0;
    margin-bottom: 1rem;
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.comparison-table tr:hover {
    background: #f7fafc;
}

.choice-benefits {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.choice-benefits h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.cost-timeline-comparison {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.development-scenarios {
    margin: 2rem 0;
}

.scenario {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scenario h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.suitability-guide {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.suitability-guide h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.jurisdiction-responses {
    margin: 2rem 0;
}

.jurisdiction-responses h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.decision-framework {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border: 1px solid #f6ad55;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.decision-framework h3 {
    color: #c05621;
    margin-top: 0;
    margin-bottom: 1rem;
}

.misconceptions {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.misconceptions h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.misconceptions li {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #fbb6ce;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0 0 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design for Blog Content */
@media (max-width: 768px) {
    .blog-intro {
        padding: 1.5rem;
    }
    
    .blog-intro .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-step::after {
        display: none;
    }
    
    .step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .roi-examples {
        grid-template-columns: 1fr;
    }
    
    .comparison-overview {
        grid-template-columns: 1fr;
    }
    
    .cost-timeline-comparison .row {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-section {
        padding: 2rem;
    }
}

/* Responsive Design for Modern Blog Layout */
@media (max-width: 768px) {
    .blog-title-main {
        font-size: 2.2rem;
    }
    
    .blog-meta-modern {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .featured-image-wrapper {
        margin-top: -60px;
        padding: 0.5rem;
    }
    
    .featured-image-wrapper img {
        height: 250px;
    }
    
    .blog-content-modern {
        padding: 2.5rem 1.5rem;
        margin-top: -30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
    
    .content-section h4 {
        font-size: 1.2rem;
    }
    
    .blog-hero-section {
        padding: 3rem 0 2rem 0;
    }
    
    .blog-content-section {
        padding: 4rem 0 3rem 0;
    }
}

@media (max-width: 576px) {
    .blog-title-main {
        font-size: 1.8rem;
    }
    
    .blog-category-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .blog-content-modern {
        padding: 2rem 1rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
}

/* Legal Links in Footer */
.legal-links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--accent-color) !important;
}
