/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000201;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: #000000;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #000201;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background-image: url('https://kwnhngnzilsjguiaveil.supabase.co/storage/v1/object/public/ej%20pictures/Screenshot%202025-09-16%20134719.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 120px;
}

.google-image-container {
    margin: 15px 0;
    text-align: center;
}

.google-review-image {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 100px;
    right: 10px;
    width: 0; /* Set to 0 to remove the image */
    height: 0; /* Set to 0 to remove the image */
    background-image: none; /* Remove background image */
    z-index: 10;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    width: 100%;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    margin: 2rem 0 0 25%; /* Increased from 15% to 25% to move form right */
    display: flex;
    justify-content: center;
}

/* Thank You Box Styles */
.thank-you-box {
    max-width: 500px;
    margin: 2rem 0 0 25%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.thank-you-box h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.thank-you-box p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.hero-form {
    padding: 1.5rem;
    width: 100%;
    max-width: 380px;
    z-index: 5;
    font-size: 0.9rem;
}

.hero-form h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-form .form-group {
    margin-bottom: 0.8rem;
}

.hero-form input,
.hero-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.hero-form textarea {
    height: 80px;
}

.hero-form button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.7rem;
}

.hero-content {
    position: absolute;
    top: 120px;
    left: 30px;
    max-width: 500px;
    z-index: 10;
}

.hero-buttons {
    position: relative;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    z-index: 100;
}

.hero-title {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    width: 100%;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
    font-size: 3.5rem;
    text-align: left;
}

/* Prevent unwanted line breaks in "Same-Day Inspection" */
.hero-title span {
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 700;
    text-align: left;
}

.hero-buttons {
    position: absolute;
    bottom: 10px;
    left: 30px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 100;
}

/* Desktop styles */
@media (min-width: 768px) {
    .hero-title br {
        display: inline; /* Show the line break */
    }
    
    .hero-content {
        max-width: 600px;
        margin-right: auto;
    }
}

/* Mobile Hero Section Styles */
@media (max-width: 767px) {
    .hero {
        padding: 60px 0 40px;
        min-height: auto;
        height: auto;
    }
    
    .hero::after {
        display: none; /* Hide the background image on mobile */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        padding-top: 3rem;
    }
    
    .hero-content {
         position: relative;
         top: 0;
         left: 0;
         max-width: 100%;
         padding: 1rem;
         margin-bottom: 1rem;
         background-color: transparent;
         border-radius: 8px;
     }
     
     .hero-title {
         font-size: 1.8rem;
         text-align: center;
         color: white;
         text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
     }
     
     .hero-subtitle {
         font-size: 0.9rem;
         text-align: center;
         margin-bottom: 0.75rem;
         margin-top: -0.5rem;
         color: white;
         text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
     }
    
     .hero-image-container {
         display: flex;
         justify-content: center;
         margin: 1rem 0;
     }
     
     .hero-certification-image {
         max-width: 70%;
         height: auto;
         border-radius: 8px;
     }
    
    .form-container {
         margin: 15rem auto 0.5rem;
         padding: 0;
         max-width: 80%;
         background-color: transparent;
         box-shadow: none;
     }
     
     .hero-form {
         padding: 0.75rem;
         max-width: 320px;
         background-color: rgba(255, 255, 255, 0.9);
         border-radius: 8px;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     }
     
     .hero-form h2 {
         font-size: 0.8rem;
         margin-bottom: 0.3rem;
     }
     
     .hero-form .form-group {
         margin-bottom: 0.3rem;
     }
     
     .hero-form input,
     .hero-form textarea {
         padding: 0.3rem;
         font-size: 0.7rem;
     }
     
     .hero-form textarea {
         height: 40px;
     }
     
     .hero-form button {
         padding: 0.4rem;
         font-size: 0.7rem;
     }
    
    .hero-buttons {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        margin: 1.5rem auto;
    }
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #bda372, #a08c5a);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #bda372, #a08c5a);
    color: white;
    border: 2px solid #bda372;
}

.btn-secondary:hover {
    background: #bda372;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services .section-header,
.testimonials .section-header,
.certifications .section-header,
.contact .section-header {
    margin-bottom: 1.5rem;
}

.services .section-header h2,
.testimonials .section-header h2,
.contact .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.certifications .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #bda372, #a08c5a);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 75px;
    height: 75px;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #bda372;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: bold;
    color: #000000;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #bda372;
}

.nav-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bda372;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(189, 163, 114, 0.1);
}

.phone-link:hover {
    background: rgba(189, 163, 114, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000000;
    transition: 0.3s;
}

/* Services Section */
.services {
    padding: 30px 0;
    background: white;
}

.services .container {
    max-width: 1200px;
}

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

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

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #bda372, #a08c5a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.services-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap; /* Prevent text from wrapping */
}

.service-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #bda372;
    font-weight: bold;
}

.service-link {
    color: #e74c3c;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: #fefefe;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 0;
    background: white;
}

.testimonials .container {
    max-width: 1400px;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #bda372;
}

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-role {
    color: #e74c3c;
    font-weight: 500;
    font-size: 0.9rem;
}

.member-info p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Certifications Section */
.certifications {
    padding: 10px 0;
    background: #bda372;
}

.certifications .container {
    max-width: 1400px;
}

.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.cert-item {
    text-align: center;
    padding: 0.1rem;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    margin: 0 0.1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
}

/* Mobile-specific layout for certification boxes */
@media (max-width: 767px) {
    .certifications-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .cert-item {
        width: 90%;
        height: 70px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        margin: 0;
    }
    
    .cert-icon {
        font-size: 2rem;
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .cert-item h4 {
        margin-bottom: 0;
        font-size: 0.9rem;
    }
}

.cert-item h4 {
    color: black;
}

.cert-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 0.15rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cert-icon.licensed {
    color: #2563eb;
}

.cert-icon.bonded {
    color: #059669;
}

.cert-icon.accredited {
    color: #dc2626;
}

.cert-icon.certified {
    color: #fbbf24;
}

.cert-item:hover .cert-icon {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.cert-item:hover .cert-icon.licensed {
    color: #1d4ed8;
    filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.3));
}

.cert-item:hover .cert-icon.bonded {
    color: #047857;
    filter: drop-shadow(0 8px 16px rgba(5, 150, 105, 0.3));
}

.cert-item:hover .cert-icon.accredited {
    color: #b91c1c;
    filter: drop-shadow(0 8px 16px rgba(217, 119, 6, 0.3));
}

.cert-item:hover .cert-icon.certified {
    color: #f59e0b;
    filter: drop-shadow(0 8px 16px rgba(251, 191, 36, 0.3));
}

.cert-item h4 {
    color: black;
    margin-bottom: 0.5rem;
}

.cert-item p {
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
    
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .photo-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
}

/* Contact Section */
.contact {
    padding: 5px 0 50px;
    background: #f8f9fa;
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.contact .container {
    max-width: 1400px;
}

.contact-content {
    display: block;
    margin-bottom: 3rem;
}

.service-features-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-feature {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #bda372;
}

.service-feature h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.service-feature p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}

.contact-form-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-form-container .hero-form {
    position: static;
    transform: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

.contact-form-container .hero-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #e74c3c;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bda372;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-container {
    margin-top: 3rem;
}

.map-placeholder {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    border: 2px dashed #e0e0e0;
}

.map-placeholder i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    color: #666;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #bda372;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        padding: 10px 0;
        margin-top: 10px;
        background-color: #f8f9fa;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-form {
        padding: 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Content Sections */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .gallery-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service Features */
    .service-features-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .services,
    .gallery,
    .testimonials,
    .team,
    .certifications,
    .contact {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 15px;
    }
    
    .get-in-touch-button-container {
        margin-bottom: 1rem;
    }
}
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.testimonial-card,
.team-member,
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #bda372;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        padding: 20px 0;
    }
}

/* Navigation Dropdown */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 200px;
    z-index: 100;
    border-radius: 4px;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu li {
    display: block;
    width: 100%;
}

.nav-menu .dropdown-menu a {
    padding: 10px 15px;
    display: block;
    color: #000201;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu .dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* Hero Contact Text */
.hero-contact-text {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
}

/* Before & After Title */
.before-after-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
}

/* Small Grid for Before/After */
.small-grid-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto 0;
    padding: 0;
}

.small-grid-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 380px;
}

.small-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.small-grid-item:hover {
    transform: translateY(-3px);
}

.small-grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.small-grid-item .label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Get In Touch Button Container */
.get-in-touch-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.get-in-touch-button-container .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Credentials Row */
.credentials-row {
    display: inline-block;
    margin-top: 0.25rem;
    white-space: nowrap;
    width: 100%;
}

.credential-item {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8rem;
    display: inline;
}

.credential-item:not(:last-child)::after {
    content: " • ";
    color: #2c3e50;
}

/* Main Services two-column layout and sizing overrides */
.services .services-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* smaller image column on desktop */
    gap: 24px;
    align-items: stretch;
}

.services .services-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* fill more naturally and reduce oversized look */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Quote overlay on main Services image */
.services .services-image {
    position: relative;
    display: grid;
    gap: 6px; /* tighter spacing between stacked images */
}

/* each image wrapper allows quote overlay positioning */
.services .image-card {
    position: relative;
}

.services .image-quote {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%); /* sit between the two stacked images */
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 55%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .services .image-quote {
        max-width: 90%;
        font-size: 0.85rem;
        left: 10px;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.services .services-content {
    position: relative;
}

.services .services-content .section-header {
    text-align: center; /* center heading */
    position: absolute; /* place between the two boxes (center of content) */
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    width: max-content;
    z-index: 2;
}

.services .services-content .services-grid {
    margin-top: 40px; /* create space under the centered heading */
}

.services .services-content .service-card {
    padding: 1.2rem;
    min-height: 220px;
}

.services .services-content .service-icon {
    width: 44px;
    height: 44px;
}

@media (min-width: 1024px) {
    /* Make the left services image stick while scrolling the list */
    .services .services-image {
        position: sticky;
        top: 24px;
        align-self: start;
    }
    .services .services-image img {
        height: auto;
        max-height: calc(100vh - 160px); /* prevent exceeding viewport */
    }
    .services .services-content .services-grid {
        grid-template-columns: repeat(2, 1fr); /* place panels side-by-side in rows on desktop */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services .services-layout {
        grid-template-columns: 1fr;
    }
    .services .services-image img {
        height: auto;
    }
    .services .services-content .services-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    .services .services-content .section-header {
        position: static;
        transform: none;
        top: auto;
        margin-bottom: 12px;
        text-align: center;
    }
}

/* Alternative service panel style (different look from previous boxes) */
.services .service-panel {
    background: #f9fafb; /* softer look */
    border: 1px solid #e5e7eb;
    border-left: 0; /* remove accent stripe for square look */
    border-radius: 0; /* square corners */
    padding: 18px 16px;
    box-shadow: none; /* remove heavy shadow */
}

/* Make each service item a boxed tile, arranged in rows */
.services .service-panel .service-features {
    display: block; /* revert to bullet list */
    list-style: disc;
    margin-left: 1.25rem;
    padding: 0;
}

@media (min-width: 1024px) {
    .services .service-panel .service-features {
        display: block; /* keep bullets on desktop */
    }
}

.services .service-panel .service-features li {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 6px 0; /* lighter spacing */
    min-height: auto;
    display: list-item;
    align-items: initial;
    position: static;
    box-shadow: none;
}

/* Remove extra checkmarks in service boxes */
.services .service-panel .service-features li::before {
    content: none;
}

/* Big box first, little boxes after */
.services .service-panel .service-features li:first-child {
    min-height: auto;
    padding: 6px 0;
    box-shadow: none;
}

.services .service-panel .service-features li:hover {
    box-shadow: none;
    transform: none;
}

.services .service-panel h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.services .service-panel .service-features {
    list-style: disc; /* ensure bullets */
    margin: 0 0 0 1.25rem;
    padding: 0;
}

/* remove legacy dashed list styling */
.services .image-card img {
    height: clamp(180px, 28vh, 260px); /* keep images modest on desktop */
}