/* ============================================= */
/* JD CONSTRUCTION LTD. - COMPLETE STYLE.CSS    */
/* Dark Blue Theme - Header: #015488             */
/* ============================================= */

	
:root {
    --primary-color: #015488;
    --primary-dark: #003b6d;
    --primary-light: #0170b8;
    --secondary-color: #1c2331;
    --accent-color: #f39c12;
    
    --text-dark: #343a40;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-section: #e9ecef;
    --border-color: #ced4da;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --transition-fast: 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #0170b8;
    --primary-dark: #015488;
    --bg-light: #1a1a1a;
    --bg-section: #2c2c2c;
    --text-dark: #ecf0f1;
    --text-light: #bdc3c7;
    --border-color: #444;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================= */
/* HEADER - BLUE BANNER WITH LOGO & NAV ON TOP   */
/* ============================================= */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.logo-header-bg {
    background-color: #015488;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: block;
    height: 70px;
    width: auto;
    max-width: 280px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: color var(--transition-fast);
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #f39c12 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #f39c12;
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
	position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    margin: 6px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #015488;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 18px 20px;
        text-align: center;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .logo {
        height: 60px;
        max-width: 220px;
    }
}

/* ============================================= */
/* GENERAL SECTIONS & TYPOGRAPHY                 */
/* ============================================= */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-header {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 84, 136, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-lg);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.cta-button i {
    margin-left: 8px;
}

/* ============================================= */
/* SERVICES SECTION (Index Page)                */
/* ============================================= */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(1, 84, 136, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.learn-more:hover {
    color: var(--primary-dark);
}

[data-theme="dark"] .service-card {
    background-color: var(--bg-section);
}

/* ============================================= */
/* SERVICES TILES (Services Page)                */
/* ============================================= */
.services-tiles-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.services-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-tile {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
}

.service-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.tile-image {
    height: 200px;
    overflow: hidden;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-tile:hover .tile-image img {
    transform: scale(1.08);
}

.tile-content {
    padding: 25px;
    text-align: center;
}

.tile-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tile-content p {
    color: var(--text-light);
    line-height: 1.6;
}

[data-theme="dark"] .service-tile {
    background-color: var(--bg-section);
}

/* ============================================= */
/* BEFORE & AFTER SLIDER - FIXED VERSION         */
/* ============================================= */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-section);
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.gallery-container {
    max-width: 600px; /* Reduced width for vertical photos so they fit on screen */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Slider - Calculated for 3000x4000 (3:4 Portrait) */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 0;
    
    /* 3000 width x 4000 height = 133.33% ratio */
    padding-bottom: 133.33%; 
    
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

/* BEFORE image - full width, bottom layer */
.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents stretching - shows the whole image */
    object-position: center; /* Centers the image if it needs to be cropped */
    display: block;
    pointer-events: none;
}

/* AFTER image - clipped width, top layer */
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width of container */
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    object-position: center;
    display: block;
    clip-path: inset(0 50% 0 0); /* Shows left 50% by default */
    pointer-events: none;
    z-index: 1;
}

/* Draggable handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Start at 50% */
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Circular button in the middle of the handle */
.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Arrow icon */
.slider-handle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.8rem;
    z-index: 11;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .before-after-slider {
        padding-bottom: 75%; /* Taller aspect ratio on mobile */
    }
}

/* ============================================= */
/* TESTIMONIALS SECTION                          */
/* ============================================= */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-content p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author div h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author div span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rating {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.rating i {
    margin: 0 3px;
}

[data-theme="dark"] .testimonial-content {
    background-color: var(--bg-section);
}

/* ============================================= */
/* CONTACT SECTION                               */
/* ============================================= */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-item .small-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 3px;
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

[data-theme="dark"] .contact-form-wrapper {
    background-color: var(--bg-section);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: var(--secondary-color);
    border-color: var(--border-color);
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 0.95rem;
}

/* ============================================= */
/* DARK MODE TOGGLE BUTTON                       */
/* ============================================= */
.dark-mode-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ============================================= */
/* RESPONSIVE DESIGN                             */
/* ============================================= */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 { 
        font-size: 2.2rem; 
    }
    
    .hero-content h1 { 
        font-size: 2.8rem; 
    }
    
    .section-title { 
        font-size: 2rem; 
    }
    
    .logo { 
        height: 55px; 
        max-width: 200px; 
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { 
        font-size: 2.3rem; 
    }
    
    .hero-content p { 
        font-size: 1.1rem; 
    }
    
    .logo-header-bg { 
        padding: 12px 0; 
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
}

/* ============================================= */
/* CHECKATRADE WIDGET STYLING                    */
/* ============================================= */
.checkatrade-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkatrade-widget-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .checkatrade-widget-container {
    background-color: var(--bg-section);
}

#ctWidget {
    min-height: 400px;
}

.manual-reviews {
    display: none; /* Hidden by default, shows only if widget fails to load */
}

/* If widget doesn't load after 5 seconds, show manual review */
@media (min-width: 1px) {
    .manual-reviews {
        animation: showManualReview 0s 5s forwards;
    }
}

@keyframes showManualReview {
    to {
        display: block;
    }
}

/* Style for Checkatrade Widget Container */
.checkatrade-widget-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .checkatrade-widget-wrapper {
    background-color: #2c2c2c;
}



/* ========================================= */
/*       1. Improved Square Tiles Section    */
/* ========================================= */

.square-tiles-section {
    padding: 60px 0; /* Add vertical padding for spacing */
    background-color: #f9f9f9; /* Light background for contrast */
}

.square-tiles-grid {
    display: grid;
    /* This creates a responsive grid:
       - minmax(280px, 1fr) ensures each tile is at least 280px wide.
       - auto-fit will create as many columns as fit in the container.
    */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Space between tiles */
}

.square-tile {
    background-color: #ffffff; /* White background for the card */
    border-radius: 8px; /* Slightly rounded corners */
    overflow: hidden; /* Ensures image corners are also rounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for a lifted effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
    display: flex; /* Makes the tile a flex container */
    flex-direction: column; /* Stacks image and content vertically */
    height: 100%; /* Ensures all tiles in a row have the same height */
}

.square-tile:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.tile-image {
    width: 100%;
    /* Set a fixed height for the image container to create a consistent top area.
       Adjust this value (e.g., 200px, 250px) based on your image aspect ratio and preference. */
    height: 220px;
    overflow: hidden; /* In case the image itself is larger */
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is KEY: it covers the area without distorting the image */
    object-position: center; /* Centers the image within its container */
}

.tile-content {
    padding: 20px; /* Padding around the text content */
    display: flex; /* Make content a flex container */
    flex-direction: column; /* Stack h3 and p vertically */
    flex-grow: 1; /* Allows content area to take up remaining vertical space */
    justify-content: space-between; /* Pushes the paragraph to the bottom if there's extra space, good for variable height descriptions */
}

.tile-content h3 {
    font-size: 1.5em; /* Adjust heading size */
    color: #333; /* Darker color for headings */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 10px; /* Space below heading */
}

.tile-content p {
    font-size: 1em; /* Standard paragraph size */
    color: #666; /* Slightly lighter color for body text */
    line-height: 1.6; /* Improved line spacing for readability */
    margin-bottom: 0; /* Remove default bottom margin */
}

/* ===== Responsive adjustments for smaller screens ===== */
@media (max-width: 768px) {
    .square-tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow smaller tiles */
        gap: 20px; /* Slightly less gap on smaller screens */
    }
    .square-tile {
        margin-bottom: 15px; /* Add some space between stacked tiles */
    }
    .tile-image {
        height: 180px; /* Smaller image height on mobile */
    }
    .tile-content {
        padding: 15px; /* Less padding on mobile */
    }
    .tile-content h3 {
        font-size: 1.3em;
    }
    .tile-content p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .square-tiles-grid {
        grid-template-columns: 1fr; /* Stack tiles vertically on very small screens */
    }
    .square-tiles-section {
        padding: 40px 0;
    }
}

/* Make sure your .container has appropriate max-width and padding */
/* Example (if not already defined): */
.container {
    max-width: 1200px; /* Or whatever width fits your site */
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding to prevent content touching edges */
}
/* ============================================= */
/* CTA SECTION - CENTERED BLUE BOX               */
/* ============================================= */
.cta-wrapper {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-box {
    background-color: #015488;
    padding: 60px 80px;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(1, 84, 136, 0.3);
}

.cta-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-box .cta-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-box .cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-box .cta-button i {
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-box {
        padding: 40px 30px;
        margin: 0 20px;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }

    .cta-box p {
        font-size: 1rem;
    }
}

/* Dark Mode */
[data-theme="dark"] .cta-wrapper {
    background-color: var(--bg-section);
}

[data-theme="dark"] .cta-box {
    background-color: #0170b8;
}


.service-card-james {
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 height: 100%;
	 padding: 20px 0;
	 style="width: auto;
	 height: auto;
	 aspect-ratio: 9 / 16;
	 max-height: 400px;
	 object-fit: cover;
	 border-radius: 10px;
	 display: block;
	 margin: 0 auto 20px;
}