/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0277bd;
    --primary-dark: #01579b;
    --primary-light: #4fc3f7;
    --secondary-color: #ff6f00;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar.scrolled .dropdown-toggle {
    color: var(--text-dark);
}

.navbar.scrolled .dropdown-link {
    color: var(--text-dark);
}

.navbar.scrolled .logo a {
    background: rgba(255, 255, 255, 0.95);
}

.navbar:not(.scrolled) .mobile-menu-toggle span {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    min-height: auto;
}

.logo {
    padding: 0.25rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
}

.navbar:not(.scrolled) .logo a {
    background: transparent;
    box-shadow: none;
}

.logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Logo for transparent navbar (over dark hero) */
.logo-transparent {
    position: absolute;
    opacity: 1;
    visibility: visible;
}

.logo-scrolled {
    opacity: 0;
    visibility: hidden;
}

/* Logo for white navbar (scrolled state) */
.navbar.scrolled .logo-transparent {
    opacity: 0;
    visibility: hidden;
}

.navbar.scrolled .logo-scrolled {
    opacity: 1;
    visibility: visible;
}

.logo a:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo a:hover .logo-img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-hover);
    border-radius: 5px;
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-link::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: url('pool-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #e65100;
    border-color: #e65100;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 0.75rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Welcome Section */
.welcome-section {
    background: var(--bg-white);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Service pages - single column centered content */
.service-content-wrapper {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

.service-content-wrapper .welcome-text {
    width: 100%;
    text-align: left;
}

.service-content-wrapper .welcome-text h3 {
    text-align: left;
    width: 100%;
}

.service-content-wrapper .welcome-text p,
.service-content-wrapper .welcome-text ul,
.service-content-wrapper .welcome-text ol,
.service-content-wrapper .welcome-text li {
    text-align: left;
    width: 100%;
}

.welcome-text {
    width: 100%;
}

.welcome-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.welcome-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Services Section */
.services-section {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-white);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(2000%) hue-rotate(195deg) brightness(0.9) contrast(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Leak Detection Section */
.leak-detection-section {
    background: var(--bg-light);
}

.leak-content {
    max-width: 800px;
    margin: 0 auto;
}

.leak-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    font-size: 1.05rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Commercial Section */
.commercial-section {
    background: var(--bg-white);
}

.commercial-content {
    max-width: 900px;
    margin: 0 auto;
}

.commercial-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.commercial-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.commercial-feature {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.commercial-feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.commercial-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Fence Section */
.fence-section {
    background: var(--bg-light);
}

/* Quotes Section */
.quotes-section {
    background: var(--bg-white);
}

.quotes-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.quotes-form-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quotes-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select:hover {
    border-color: var(--primary-light);
}

.quotes-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quotes-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.quotes-info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quotes-info-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quotes-benefits {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quotes-benefits li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.quotes-benefits li div:last-child strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.quotes-benefits li div:last-child p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.quotes-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.quotes-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.quotes-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.quotes-cta .btn {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.quotes-cta .btn:hover {
    background: #e65100;
    border-color: #e65100;
}

.fence-content {
    max-width: 800px;
    margin: 0 auto;
}

.fence-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.why-choose-content {
    margin-top: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.comparison-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.comparison-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 15px;
}

.comparison-icon svg {
    width: 100%;
    height: 100%;
}

.comparison-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Service Areas Section */
.service-areas-section {
    background: var(--bg-white);
    padding: 50px 0;
}

.service-areas-content {
    margin-top: 30px;
}

.map-container {
    margin-bottom: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.custom-map {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.custom-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
}

/* Leaflet map container */
#serviceAreaMap {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    min-height: 350px;
}

/* Ensure Leaflet map tiles are visible */
#serviceAreaMap .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

.zone-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    background: rgba(2, 119, 189, 0.5);
    border: 2px solid rgba(2, 119, 189, 0.8);
    border-radius: 3px;
    display: inline-block;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.service-areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.area-group h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.area-group ul {
    list-style: none;
    padding: 0;
}

.area-group li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-light);
    position: relative;
    padding-left: 25px;
}

.area-group li:last-child {
    border-bottom: none;
}

.area-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-areas-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.service-areas-cta p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.service-areas-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-areas-cta a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background: var(--bg-white);
    padding-top: 30px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-container h3,
.contact-info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: red;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}

.contact-details {
    margin: 30px 0;
}

.contact-detail-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    padding: 12px;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-content h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.detail-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.detail-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.business-hours {
    margin-top: 40px;
}

.business-hours h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.hours-table td {
    padding: 12px 0;
    color: var(--text-light);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 120px;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
    padding-bottom: 30px;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-dark);
    background: var(--bg-light);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer-wrapper {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    color: var(--text-light);
}

.cookie-content .btn {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: -1;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-menu .nav-link {
        color: white;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        width: 100%;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
        text-align: center;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-link {
        padding: 12px 20px;
        color: white;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        text-align: center;
        display: block;
        width: 100%;
        font-size: 0.95rem;
        transition: var(--transition);
    }
    
    .dropdown-link:hover,
    .dropdown-link:active {
        background: var(--bg-light);
        color: var(--primary-color);
    }
    
    .dropdown-toggle {
        cursor: pointer;
        position: relative;
        user-select: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        color: white;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    /* Make dropdown more visible on mobile */
    .nav-dropdown.active {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        margin: 5px 0;
    }
    
    .nav-dropdown.active .dropdown-toggle {
        color: white;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .nav-dropdown.active .dropdown-link:hover,
    .nav-dropdown.active .dropdown-link:active {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .dropdown-arrow {
        margin-left: 5px;
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .welcome-content,
    .contact-wrapper,
    .quotes-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-features,
    .commercial-features {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-areas-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content .btn {
        width: 100%;
    }

    .logo a {
        padding: 0.3rem;
    }

    .logo-img {
        max-height: 50px;
        max-width: 150px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-areas-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container iframe {
        height: 300px;
    }

    .custom-map {
        height: 300px;
    }

    .zone-legend {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .location-label {
        font-size: 10px;
    }
}

/* Hide hidden form fields (for spam protection or hidden inputs) */
.hidden {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

