/*
 * Coastline DC - Construction Company Website Styles
 * Modern, Responsive, Mobile-First Design
 * Updated: April 2025
 * 
 * Table of Contents:
 * 1. Reset & Base Styles
 * 2. Typography
 * 3. Layout & Grid
 * 4. Header & Navigation
 * 5. Hero Sections
 * 6. Content Sections
 * 7. Process Timeline Section
 * 8. Services Styles
 * 9. Gallery Styles
 * 10. Contact Styles
 * 11. Form Elements
 * 12. Footer
 * 13. Utility Classes
 * 14. Animations
 * 15. Media Queries
 */

/* ========== 1. Reset & Base Styles ========== */
:root {
    /* Colors */
    --primary-color: #0C6291;
    --primary-light: #1989C1;
    --primary-dark: #074a70;
    --primary-rgb: 12, 98, 145;
    --secondary-color: #FF6B35;
    --secondary-light: #ff8c5a;
    --secondary-dark: #e55a2b;
    --secondary-rgb: 255, 107, 53;
    --accent-color: #FF6B35;
    --accent-rgb: 255, 107, 53;
    --text-color: #333333;
    --light-text-color: #666666;
    --white: #ffffff;
    --light-bg-color: #f8f9fa;
    --dark-bg-color: #1a1a1a;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --dark-color: #0A192F;
    --light-color: #F8F9FA;
    --grey-color: #6C757D;
    --grey-light: #E9ECEF;
    
    /* Typography */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    /* Spacing */
    --section-spacing: 8rem;
    
    /* Border */
    --border-radius: 8px;
    
    /* Shadow */
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ========== 2. Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3.6rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.3rem;
    background-color: var(--secondary-color);
    margin: 1.5rem auto 0;
    border-radius: 5px;
}

.section-header p {
    color: var(--grey-color);
    font-size: 1.8rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 3. Layout & Grid ========== */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.about-content,
.contact-columns {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.features-grid,
.contact-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* ========== 4. Header & Navigation ========== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    gap: 15px;
}

.logo-link:active {
    transform: scale(0.98);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0C6291, #1989C1);
    border-radius: 12px;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(12, 98, 145, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: rotate(-5deg);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
}

.logo-link:hover .logo-icon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(12, 98, 145, 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: -0.5px;
}

.logo h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #0C6291);
    transition: width 0.3s ease;
}

.logo-link:hover h2 {
    color: var(--primary-color);
}

.logo-link:hover h2::after {
    width: 100%;
}

.logo-tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 4px 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* For larger screens */
@media (min-width: 768px) {
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .logo h2 {
        font-size: 2.8rem;
    }
    
    .logo-tagline {
        font-size: 1rem;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    margin: 0.5rem 0;
    transition: var(--transition);
    border-radius: 3px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 30rem;
    height: 100vh;
    background-color: #fff;
    padding: 8rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 2rem 0;
}

.nav-menu a {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ========== 5. Hero Sections ========== */
.hero,
.page-hero {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 12rem 2rem;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 500px; /* Control the height of hero images */
}

.hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay to make text more readable */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
}

.hero h1,
.page-hero h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease;
}

.hero p,
.page-hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* Button Styles - Updated for consistency and better visibility */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
    min-width: 200px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: rgb(var(--primary-rgb));
    color: #fff;
    border: 2px solid rgb(var(--primary-rgb));
}

.btn-primary:hover {
    background-color: transparent;
    color: rgb(var(--primary-rgb));
    box-shadow: 0 0.8rem 2rem rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0.5rem 1rem rgba(var(--primary-rgb), 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: rgb(var(--primary-rgb));
    box-shadow: 0 0.8rem 2rem rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-tertiary {
    background-color: transparent;
    color: rgb(var(--primary-rgb));
    border: 2px solid rgb(var(--primary-rgb));
    position: relative;
    z-index: 1;
    min-width: 220px;
    font-size: 1.65rem;
}

.btn-tertiary:hover {
    background-color: rgb(var(--primary-rgb));
    color: #fff;
    box-shadow: 0 0.8rem 2rem rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
}

.craftsmanship-text .btn-tertiary {
    margin-top: 3rem;
    min-width: 250px;
    padding: 1.4rem 2.8rem;
    font-size: 1.7rem;
}

/* Responsive button styles */
@media (max-width: 768px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1.5rem;
        min-width: 180px;
    }
    
    .craftsmanship-text .btn-tertiary {
        padding: 1.2rem 2.4rem;
        min-width: 220px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 1.4rem;
        min-width: 160px;
    }
    
    .craftsmanship-text .btn-tertiary {
        padding: 1rem 2rem;
        min-width: 200px;
    }
}

/* Make sure all service buttons are consistent with other buttons */
.service-details .btn,
.cta-section .btn,
.services-cta .btn,
.location-info .btn,
.faq-cta .btn,
.about-text .btn,
.marketing-cta .btn,
.areas-text .btn,
.form-group .btn {
    min-width: 220px;
    padding: 1.2rem 2.4rem;
}

/* Maintain consistent hover effects */
.service-details .btn:hover,
.cta-section .btn:hover,
.services-cta .btn:hover,
.location-info .btn:hover,
.faq-cta .btn:hover,
.about-text .btn:hover,
.marketing-cta .btn:hover,
.areas-text .btn:hover,
.form-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.8rem 2rem rgba(var(--primary-rgb), 0.3);
}

/* Hero section buttons */
.hero .btn {
    margin: 0 0.5rem;
    font-size: 1.2rem;
    padding: 1.1rem 2.8rem;
    min-width: 200px;
}

.hero .btn:hover {
    transform: translateY(-5px);
}

.hero .btn-primary {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    box-shadow: 0 12px 20px rgba(0, 123, 255, 0.3);
}

.hero .btn-secondary {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.hero .btn-secondary:hover {
    box-shadow: 0 12px 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hero .btn {
        margin: 0.5rem;
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Hero backgrounds */
.services-hero {
    background-image: url('https://images.unsplash.com/photo-1565708423705-9ffd99352326?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
}

.gallery-hero {
    background-image: url('https://images.unsplash.com/photo-1534398079543-7ae6d016b86a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
}

.contact-hero {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
}

/* ========== 6. Content Sections ========== */
.about, 
.why-choose-us,
.testimonials,
.services-intro,
.gallery-intro,
.contact-info {
    background-color: var(--light-color);
}

.process-section {
    background-color: #fff;
}

.cta-section {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    opacity: 0.95;
    z-index: 1;
}

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

.cta-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 3rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.8rem;
}

.about-image,
.service-image,
.step-icon {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image:hover,
.service-image:hover,
.step-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    margin-top: 2rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 2rem;
}

.about-text .btn {
    margin-top: 1rem;
}

/* Features section */
.feature {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

/* Commenting out feature-icon styles since we've removed the images */
/* 
.feature-icon {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.feature:hover .feature-icon img {
    transform: scale(1.1);
}
*/

.feature h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-top: 1rem;
    position: relative;
    font-size: 2.2rem;
}

/* Add a decorative line under the heading to replace the visual interest of the removed icons */
.feature h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 3px;
}

.feature p {
    flex: 1;
    color: var(--light-text-color);
    line-height: 1.7;
    font-size: 1.5rem;
}

/* Testimonials section */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial {
    padding: 4rem 3rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

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

blockquote {
    position: relative;
    padding: 0;
}

blockquote::before {
    content: '"';
    font-size: 8rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -5rem;
    left: 0;
    line-height: 1;
}

blockquote p {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

/* ========== 7. Process Timeline Section ========== */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.8));
    transform: translateX(-50%);
    display: none;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(var(--primary-rgb));
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.2);
}

.step-content {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    width: 100%;
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    color: rgb(var(--primary-rgb));
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.step-content p {
    color: #666;
    line-height: 1.7;
}

/* Media Queries */
@media (min-width: 576px) {
    .step-number {
        width: 6rem;
        height: 6rem;
        font-size: 2.8rem;
    }
}

@media (min-width: 768px) {
    .process-timeline::before {
        display: block;
    }
    
    .process-steps {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
    
    .process-step:nth-child(odd) {
        flex-direction: row-reverse;
        text-align: right;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .step-content {
        width: calc(100% - 9rem);
    }
    
    .step-content h3 {
        font-size: 2.4rem;
    }
}

/* Services section and gallery styles are kept mostly the same with color updates */

/* ========== 14. Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* ========== 15. Media Queries ========== */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    h1 {
        font-size: 4.5rem;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 5rem;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .about-content,
    .service-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-text,
    .about-image,
    .service-image,
    .service-details {
        flex: 1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-content.reverse {
        flex-direction: row-reverse;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline::before {
        display: block;
    }
    
    .process-step {
        flex-direction: row;
        text-align: left;
        margin-bottom: 8rem;
    }
    
    .process-step:nth-child(odd) {
        flex-direction: row-reverse;
    }
    
    .step-content {
        width: calc(50% - 4rem);
    }
    
    .step-icon {
        margin: 0 0 2rem 0;
    }
    
    .process-step:nth-child(odd) .step-content {
        text-align: right;
    }
    
    .process-step:nth-child(even) .step-content {
        text-align: left;
    }
    
    .step-number {
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    .logo h2 {
        font-size: 2.8rem;
    }
    
    .logo-tagline {
        font-size: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    h1 {
        font-size: 5.2rem;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 6rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 0 0 0 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-columns {
        flex-direction: row;
    }
    
    .contact-form-container,
    .map-container {
        flex: 1;
        margin-bottom: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 0;
    }
}

/* Form styles - modern lead capture form */
.contact-form {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.lead-form-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.lead-form-title h3 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead-form-title p {
    color: var(--grey-color);
    font-size: 1.7rem;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.floating-label-group {
    position: relative;
}

.floating-label-group label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    color: var(--grey-color);
    font-size: 1.6rem;
    font-weight: 400;
    transition: all 0.25s ease;
    pointer-events: none;
}

.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label,
.floating-label-group select:focus ~ label,
.floating-label-group select:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    left: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff;
    padding: 0 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid var(--grey-light);
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 1.6rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(25, 137, 193, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 15rem;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.6rem;
    padding-right: 4rem;
}

.form-group .btn {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.7rem;
    margin-top: 1rem;
}

.form-privacy {
    font-size: 1.3rem;
    color: var(--grey-color);
    text-align: center;
    margin-top: 2rem;
}

.form-success-message {
    background: linear-gradient(45deg, #28A745, #20c997);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.form-success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-success-message h3 {
    color: white;
    margin-bottom: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Form loading indicator */
.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    display: none;
}

.form-loading.loading::after {
    display: block;
}

.form-loading.loading .btn-text {
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Footer styles */
footer {
    background: linear-gradient(to right, #0A192F, #12294d);
    color: #fff;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.company-tagline {
    color: var(--accent-color) !important;
    font-style: italic;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    opacity: 0.9;
}

.footer-logo h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo p {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.5rem;
}

.footer-links ul li a::before {
    content: '›';
    position: absolute;
    left: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact p::before {
    content: '•';
    color: var(--secondary-color);
    font-size: 1.8rem;
    line-height: 1;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 2fr;
        gap: 4rem;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links ul {
        column-count: 2;
        column-gap: 3rem;
    }
}

/* Add styles for new sections below */

/* Areas We Serve Section */
.areas-we-serve {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

.areas-content {
    margin-top: 40px;
}

.areas-text p {
    margin-bottom: 30px;
    line-height: 1.6;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.area-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.area-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.area-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.area-item p {
    color: var(--text-color);
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

.map-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

.location-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.address-block,
.hours-block,
.contact-block {
    margin-bottom: 25px;
}

.location-info h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-info p {
    line-height: 1.6;
    color: var(--text-color);
}

.location-info .btn {
    margin-top: 10px;
}

/* Media Queries */
@media (min-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-content {
        flex-direction: row;
    }
    
    .map-container {
        flex: 2;
    }
    
    .location-info {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.location-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.location-details p {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: l.4;
}

.location-details p:last-child {
    margin-bottom: 0;
}

.location-details p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.google-map {
    width: 100%;
    height: 450px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Craftsmanship Section */
.craftsmanship-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.craftsmanship-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.craftsmanship-content {
    max-width: 1100px;
    margin: 0 auto;
}

.craftsmanship-text {
    text-align: center;
}

.craftsmanship-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.craftsmanship-text .lead-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 50px;
}

.craftsmanship-blocks {
    margin: 50px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
}

.craftsmanship-block {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.craftsmanship-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.craftsmanship-block h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.craftsmanship-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.craftsmanship-block p {
    color: var(--text-color);
    line-height: 1.6;
}

.craftsmanship-testimonial {
    margin: 40px auto;
    max-width: 800px;
    padding: 30px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.craftsmanship-testimonial p {
    font-style: italic;
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.craftsmanship-testimonial cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .craftsmanship-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add this to the CSS file to enhance the service sections */

.service-section {
    padding: 7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-section:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.2), transparent);
}

.service-section:first-of-type {
    padding-top: 5rem;
}

.service-section:last-of-type {
    border-bottom: none;
    padding-bottom: 8rem;
}

.service-section:last-of-type:after {
    display: none;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-content.reverse {
    flex-direction: column;
}

.service-image {
    max-height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.service-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.service-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.service-image:hover::before {
    opacity: 1;
}

.service-details {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-details h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 3rem;
    position: relative;
    padding-bottom: 1.2rem;
    letter-spacing: -0.3px;
}

.service-details h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

.service-details p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.5rem;
}

.service-features {
    margin: 1.5rem 0 2.5rem;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.service-features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.5;
}

.service-features li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.6rem;
}

.service-details .btn {
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 1.1rem 2.8rem;
    min-width: 200px;
}

.service-details .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 123, 255, 0.3);
}

@media (min-width: 768px) {
    .service-content {
        flex-direction: row;
        align-items: stretch;
        gap: 6rem;
    }
    
    .service-content.reverse {
        flex-direction: row-reverse;
    }
    
    .service-image,
    .service-details {
        flex: 0 0 46%;
    }
    
    .service-details {
        padding: 2.5rem 3rem;
        justify-content: center;
    }
    
    .service-content.reverse .service-details {
        padding-left: 0;
    }
    
    .service-content:not(.reverse) .service-details {
        padding-right: 0;
    }
}

/* Add or improve the lightbox styles to make the navigation arrows look better */

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 5% auto;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-caption {
    color: white;
    padding: 15px 0;
    text-align: center;
}

.lightbox-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: white;
}

.lightbox-caption p {
    color: #ddd;
    font-size: 1.4rem;
}

/* Lightbox navigation styles */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.9;
}

.lightbox-nav.prev {
    left: 10px;
}

.lightbox-nav.next {
    right: 10px;
}

/* Mobile styles for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-caption h3 {
        font-size: 1.8rem;
    }
    
    .lightbox-caption p {
        font-size: 1.4rem;
    }
    
    .service-details .btn {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
        margin-top: 1.5rem;
    }
}

/* Improve gallery grid responsiveness */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
    cursor: pointer;
    height: 0;
    padding-bottom: 70%; /* Maintain aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.gallery-item-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: white;
}

.gallery-item-info p {
    font-size: 1.2rem;
    color: #eee;
}

/* Responsive gallery grid */
@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Gallery filter buttons */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.7rem 1.2rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    font-weight: normal;
    cursor: pointer;
    outline: none;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Add styles for the gallery intro guide */

.intro-content {
    margin-bottom: 2rem;
}

.intro-text p {
    margin-bottom: 1rem;
}

.intro-guide {
    display: none;
}

@media (max-width: 768px) {
    .service-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .service-image {
        height: 300px;
    }
}

/* ========== Legal Modals ========== */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.show {
    display: block;
    opacity: 1;
}

.legal-modal-content {
    position: relative;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    margin: 5vh auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    transform: translateY(-50px);
    transition: transform 0.4s ease;
    overflow: hidden;
}

.legal-modal.show .legal-modal-content {
    transform: translateY(0);
}

.legal-modal-header {
    padding: 20px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.legal-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 2.4rem;
}

.legal-modal-body {
    padding: 0;
    max-height: calc(90vh - 130px);
    overflow-y: auto;
}

.legal-content {
    padding: 30px;
}

.legal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.legal-content h4 {
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.legal-content li {
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: disc;
}

.close-legal-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    font-size: 3.2rem;
    font-weight: 100;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-legal-modal:hover {
    transform: rotate(90deg);
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        margin: 3vh auto;
        max-height: 94vh;
    }
    
    .legal-modal-body {
        max-height: calc(94vh - 130px);
    }
    
    .legal-content {
        padding: 20px;
    }
}

/* Services Preview Section */
.services-preview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 45px 35px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 42px;
    color: #2c5282;
}

.service-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.service-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.service-link {
    font-weight: 600;
    color: #2c5282;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 18px;
}

.service-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .service-card {
        padding: 40px 30px;
        min-height: 330px;
    }
    
    .service-content h3 {
        font-size: 24px;
    }
    
    .service-content p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .services-preview {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
        min-height: 300px;
    }
    
    .service-content h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .service-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        min-height: 280px;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Header Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .logo-link {
        gap: 12px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 25px;
        min-width: 48px; /* Prevent icon from shrinking too much */
    }
    
    .logo h2 {
        font-size: 2rem;
        white-space: nowrap;
    }
    
    .logo-tagline {
        font-size: 0.9rem;
        letter-spacing: 0;
        margin-top: 2px;
    }
}

@media (max-width: 576px) {
    .logo-link {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
        transform: rotate(0deg); /* Remove rotation on smaller screens for cleaner look */
    }
    
    .logo h2 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .logo-tagline {
        font-size: 0.8rem;
        margin-top: 2px;
        line-height: 1.2;
    }
    
    /* Fix for page hero sections on mobile */
    .page-hero {
        max-height: 400px;
        min-height: 70vh;
        padding: 8rem 1.5rem;
    }
    
    .page-hero h1 {
        font-size: 2.8rem;
    }
    
    .page-hero p {
        font-size: 1.6rem;
    }
    
    /* Fix for the contact hero image to prevent overflow */
    .contact-image img {
        height: 180px !important;
        object-position: center !important;
    }
}

@media (max-width: 360px) {
    .logo-link {
        gap: 8px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    .logo h2 {
        font-size: 1.6rem;
    }
    
    .logo-tagline {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Improve hero background handling on mobile */
@media (max-width: 768px) {
    .hero,
    .page-hero {
        background-attachment: scroll; /* Better performance on mobile */
        background-position: center center !important; /* Force center positioning */
    }
}
