/* Base Styles & Variables */
:root {
    --primary: #228B22; /* Forest Green (primary brand color) */
    --primary-hover: #006400; /* Darker green for hover states */
    --secondary: #FF8C00; /* Dark Orange */
    --text: #333333;
    --text-light: #555555;
    --background: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #CCCCCC;
    --gray-600: #666666;
    --gray-800: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
             0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-height: 80px;
    --banner-height: 40px;
    --total-top: 120px; /* header + banner */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--total-top);
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--background);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    min-width: 320px;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container & Section Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.section {
    padding: 4rem 0;
    width: 100%;
}

.section.bg-light {
    background-color: var(--gray-100);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word; /* Allow long words to break */
}

p {
    margin-bottom: 1rem;
    word-wrap: break-word; /* Allow long words to break */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Estimate Banner */
.estimate-banner {
    background-color: var(--black);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--banner-height);
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}

.estimate-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
    font-size: 0.9rem; /* Slightly smaller for better mobile fit */
}

.social-link:hover {
    opacity: 0.9;
}

.call-now-btn {
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    z-index: 1002; /* Ensure it's above other elements */
    max-width: 100%; /* Prevent overflow */
}

.call-now-btn:hover {
    background-color: var(--primary-hover);
}

.call-now-btn svg {
    stroke: var(--white);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Navigation */
.navbar {
    position: fixed;
    top: var(--banner-height);
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow);
    height: var(--header-height);
    width: 100%;
    box-sizing: border-box;
}

.navbar-container {
    height: 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
    max-width: 70%;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.2;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    /* Hide the text visually but keep it for screen readers */
    position: absolute;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle svg {
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--gray-100);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    margin-left: auto;
    position: relative;
    right: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
    display: block;
}

/* Hero Section */
.hero {
    height: min(90vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-image: url('hero-background.jpg');
    margin-top: var(--total-top);
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap; /* Allow buttons to wrap on very small screens */
}

/* Service Hero */
.service-hero {
    background-image: url('service-hero.jpg');
    height: min(70vh, 500px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 160px;
    cursor: pointer;
    max-width: 100%; /* Prevent overflow */
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
}

.btn-secondary:hover svg {
    stroke: var(--secondary);
}

/* Grid System */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-content h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-list {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    color: var(--text-light);
}

.service-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    background-color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.service-link:hover {
    background-color: var(--primary-hover);
}

.service-link::after {
    content: "→";
}

/* Emergency Service Card */
.emergency-service {
    background-color: var(--primary);
    color: var(--white);
    width: 100%;
}

.emergency-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.emergency-content h3,
.emergency-content p {
    color: var(--white);
}

.emergency-icon {
    background-color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.emergency-icon svg {
    stroke: var(--primary);
}

.emergency-link {
    background-color: var(--white);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: opacity 0.2s;
    text-decoration: none;
}

.emergency-link:hover {
    opacity: 0.9;
}

.emergency-link svg {
    stroke: var(--primary);
}

/* Service Detail Pages */
.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
    width: 100%;
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.service-detail-content {
    width: 100%;
}

.service-detail-content h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-detail-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-detail-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.service-detail-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.emergency-contact-box {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.emergency-contact-box h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.emergency-contact-box p {
    color: var(--white);
    margin-bottom: 1rem;
}

.emergency-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
}

.emergency-phone svg {
    stroke: var(--white);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Gallery Slider */
.gallery-slider {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    touch-action: pan-y; /* Enable vertical scrolling but handle horizontal swipes */
    border: 1px solid var(--gray-200);
    width: 100%;
}

.gallery-slide {
    display: none;
    width: 100%;
}

.gallery-slide-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    max-height: 450px;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.gallery-prev,
.gallery-next {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-hover);
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow dots to wrap on smaller screens */
    justify-content: center;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 2px;
}

.gallery-dot.active {
    background: var(--primary);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s;
    height: 100%;
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    color: var(--white);
}

.feature-card .feature-icon {
    background-color: var(--primary);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Process Section */
.process-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.process-card h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.process-card p {
    color: var(--text-light);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-caption {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text);
    width: 100%;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    padding: 2rem 0;
    width: 100%;
}

.testimonial {
    display: none;
    width: 100%;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
}

.testimonial-content::after {
    content: """;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--secondary);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow dots to wrap on smaller screens */
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0 2px;
}

.testimonial-dot.active {
    background-color: var(--primary);
}

/* Service Areas Section */
.service-areas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.service-area-map {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    max-height: 400px;
    object-fit: contain;
    border: 1px solid var(--gray-200);
}

.service-towns-container {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    box-sizing: border-box;
}

.service-towns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.service-towns span {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
    margin: 0.25rem;
}

.service-towns span:hover {
    background: var(--primary-hover);
}

/* Contact Section with Map */
.map-contact {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    width: 100%;
}

.google-map {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    height: 450px;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
}

.contact-details h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Social Links Container */
.social-links-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
}

.social-links-container h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Certification Badges */
.certification-badges {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem;
}

.badge-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.badge span {
    font-weight: 500;
    color: var(--secondary);
    text-align: center;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.faq-item {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    width: 100%;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    text-align: left;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    font-size: 1.1rem;
}

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

.faq-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0;
    width: 100%;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.cta-content p {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

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

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 0.8;
}

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

.social-links a {
    color: var(--white);
    background-color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: var(--primary-hover);
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

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

.license {
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tablet & Mobile Breakpoint - First level of responsive design */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr; /* Stack columns on tablets */
    }

    .map-contact {
        grid-template-columns: 1fr; /* Stack map and contact info */
    }

    .service-detail-item,
    .service-detail-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-detail-image {
        margin-bottom: 1.5rem;
    }

    /* Better spacing for tablets */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Adjust hero for tablets */
    .hero {
        height: min(80vh, 600px);
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --banner-height: 40px;
        --total-top: 110px;
    }
    
    .mobile-menu-btn {
        display: flex;
        margin-right: 5px;
    }
    
    .navbar-container {
        padding: 0 10px;
    }
    
    .navbar-content {
        padding: 0;
        justify-content: space-between;
    }
    
    .logo {
        max-width: 65%;
    }
    
    .logo h1 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        padding: calc(var(--total-top) + 1rem) 1.5rem 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: var(--shadow);
        overflow-y: auto;
        z-index: 999;
    }

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

    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile Dropdown Menu */
    .dropdown {
        display: block;
        width: 100%;
    }
    
    .dropdown-toggle {
        display: flex;
        width: 100%;
        text-align: left;
        padding: 0.75rem 0;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        height: 0;
        min-width: 100%;
        padding: 0;
        margin-left: 1rem;
        transition: none;
        transform: none;
        overflow: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        visibility: visible;
        height: auto;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 0 0.5rem 1rem;
        border-left: 2px solid var(--gray-200);
        margin-left: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
        display: block;
        border-bottom: 1px solid var(--gray-200);
    }

    /* Fix banner and call button for mobile */
    .estimate-banner .container {
        padding: 0 10px;
        justify-content: space-between;
    }
    
    .social-link {
        font-size: 0.75rem;
    }
    
    .social-link span {
        display: none; /* Hide text on very small screens */
    }
    
    .call-now-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .call-now-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Mobile Hero */
    .hero {
        height: min(80vh, 500px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 260px;
        margin: 0.5rem 0;
    }

    /* Fix layout issues for mobile */
    .service-detail-item,
    .service-detail-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .service-detail-image {
        margin-bottom: 1rem;
    }
    
    .map-contact {
        grid-template-columns: 1fr;
    }
    
    .google-map {
        height: 300px;
    }
    
    .certification-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 260px;
        margin: 0.5rem 0;
    }

    /* Ensure proper spacing in mobile */
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 2.5rem 0;
    }

    /* Mobile grid adjustments */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Gallery adjustments for mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
        --banner-height: 40px;
        --total-top: 100px;
    }
    
    .logo {
        max-width: 60%;
    }
    
    .logo h1 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-container {
        padding: 0 8px;
    }
    
    .navbar-content {
        padding: 0;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        width: 24px;
        height: 18px;
        margin-right: 0;
    }
    
    .mobile-menu-btn span {
        height: 2px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .grid-2, 
    .grid-3, 
    .grid-4 {
        gap: 1rem;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 36px;
        height: 36px;
    }
    
    .feature-card,
    .process-card {
        padding: 1.5rem;
    }
    
    .feature-card .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .btn-primary, 
    .btn-secondary {
        padding: 0.65rem 1rem;
    }

    /* Extremely small screen adjustments */
    .estimate-banner {
        height: auto;
        min-height: var(--banner-height);
        padding: 8px 0;
    }

    .call-now-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
        margin-right: 0;
    }
    
    .call-now-btn svg {
        width: 14px;
        height: 14px;
    }

    .social-link {
        font-size: 0.7rem;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }

    /* Better touch targets for small screens */
    .nav-links a,
    .dropdown-toggle,
    .dropdown-menu a {
        padding: 10px 0;
    }

    /* Ultra small screen optimizations */
    body {
        min-width: 280px;
    }
}

/* Extra Small Screen Optimizations */
@media (max-width: 360px) {
    .logo {
        max-width: 55%;
    }
    
    .logo h1 {
        font-size: 0.85rem;
    }
    
    /* Improved navigation and banner for very small screens */
    .navbar-container {
        padding: 0 5px;
    }
    
    .navbar-content {
        padding: 0;
    }
    
    .mobile-menu-btn {
        width: 22px;
        height: 16px;
        margin-right: 0;
    }
    
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .call-now-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .call-now-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .estimate-banner .container {
        padding: 0 5px;
        justify-content: space-between;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-primary, 
    .btn-secondary {
        min-width: 130px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .feature-card, 
    .process-card {
        padding: 1.25rem;
    }
}

/* Ultra Small Screen Optimizations */
@media (max-width: 320px) {
    :root {
        --header-height: 50px;
        --banner-height: 35px;
        --total-top: 85px;
    }

    .logo {
        max-width: 50%;
    }
    
    .logo h1 {
        font-size: 0.8rem;
    }
    
    .navbar-container,
    .navbar-content {
        padding: 0 3px;
    }
    
    .mobile-menu-btn {
        width: 20px;
        height: 14px;
    }
    
    .call-now-btn {
        padding: 3px 5px;
        font-size: 0.65rem;
        border-radius: 3px;
    }
    
    .call-now-btn svg {
        width: 11px;
        height: 11px;
    }
    
    .social-link svg {
        width: 12px;
        height: 12px;
    }
    
    .estimate-banner .container {
        padding: 0 3px;
    }
}
/* Add these styles to your CSS file to properly display the logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo-image {
    height: 50px; /* Adjust based on your logo's dimensions */
    width: auto;
    max-width: 180px; /* Prevents logo from being too wide */
    display: block;
}

/* Adjust logo size on mobile */
@media (max-width: 480px) {
    .logo-image {
        height: 40px; /* Smaller on mobile */
        max-width: 140px;
    }
}

/* Add these styles to the end of your CSS file */

/* Contact Form Box Styles */
.contact-form-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
}

.contact-form-box h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.form-submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Bulletproof WhatsApp Widget - This WILL stay sticky everywhere */

.whatsapp-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: fadeInUp 0.5s ease-out;
}

.whatsapp-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    background: #25D366 !important;
    color: white !important;
    padding: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer !important;
    position: relative !important;
    border: none !important;
    outline: none !important;
}

.whatsapp-button:hover {
    background: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-button:active {
    transform: translateY(0) !important;
}

.whatsapp-button svg {
    width: 22px !important;
    height: 22px !important;
    fill: white !important;
    flex-shrink: 0;
}

.whatsapp-button span {
    display: none !important;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    position: absolute;
    right: 60px;
    background: #333 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 999999 !important;
}

.whatsapp-button span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Force visibility on all screen sizes */
@media screen {
    .whatsapp-widget {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
    }
    50% {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.6) !important, 0 0 0 6px rgba(37, 211, 102, 0.1) !important;
    }
    100% {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
    }
}

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

.whatsapp-button.pulse {
    animation: pulse 2s infinite;
}

/* Desktop */
@media (min-width: 1024px) {
    .whatsapp-widget {
        bottom: 25px !important;
        right: 25px !important;
    }
    
    .whatsapp-button {
        width: 52px !important;
        height: 52px !important;
    }
    
    .whatsapp-button svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .whatsapp-button:hover span {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .whatsapp-widget {
        bottom: 22px !important;
        right: 22px !important;
    }
    
    .whatsapp-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .whatsapp-button svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .whatsapp-button:hover span {
        display: block !important;
        opacity: 1 !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .whatsapp-widget {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .whatsapp-button {
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
    }
    
    .whatsapp-button svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .whatsapp-button {
        width: 45px !important;
        height: 45px !important;
        padding: 8px !important;
    }
    
    .whatsapp-button svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .whatsapp-widget {
        bottom: 12px !important;
        right: 12px !important;
    }
    
    .whatsapp-button {
        width: 42px !important;
        height: 42px !important;
        padding: 6px !important;
    }
    
    .whatsapp-button svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Override any conflicting styles */
.whatsapp-widget,
.whatsapp-widget * {
    box-sizing: border-box !important;
}

/* Ensure it's not hidden by any parent containers */
body .whatsapp-widget {
    position: fixed !important;
    z-index: 999999 !important;
    display: block !important;
}

/* Add these styles to your CSS file */
.form-success-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #2e7d32;
    font-weight: 500;
}

/* Loading state for the submit button */
.form-submit-btn.submitting {
    background-color: var(--gray-600);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Add this to your existing CSS file */

/* Error message styles */
.form-error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #c62828;
    font-weight: 500;
}

.form-error-message a {
    color: #c62828;
    text-decoration: underline;
    font-weight: 600;
}

.form-error-message a:hover {
    color: #b71c1c;
}