/* Moore Crest Builders - Main CSS - Updated with Navigation & Footer Enhancements */
/* Purple color scheme adaptation from Hampshire Resin Driveways */

/* Mobile-First Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Fix for mobile viewport height */
:root {
    --vh: 1vh;
}

/* Container with proper mobile padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Enhanced Navigation Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(165, 42, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.nav-logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #e0e7ff;
    font-weight: 600;
}

.nav-menu a.section-active {
    border-bottom: 2px solid #e0e7ff;
}

.nav-menu a.quote-btn {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3);
}

.nav-menu a.quote-btn:hover {
    background: linear-gradient(135deg, #B22222, #DC143C);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-phone {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.nav-quote-btn {
    background: #DC143C;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3);
}

.nav-quote-btn:hover {
    background: #B22222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(165, 42, 42, 0.3) 50%, rgba(178, 34, 34, 0.3) 100%), url('../../images/129.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.6);
    background: linear-gradient(135deg, #A52A2A 0%, #B22222 100%);
}

/* Guarantee/Heritage Banner */
.guarantee {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.guarantee-title {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.guarantee-text {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.phone-info a {
    color: #8B0000;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.phone-info a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: #8B0000;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.2);
}

.service-header {
    padding: 1.5rem;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.service-header.purple {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
}

.service-header.blue {
    background: linear-gradient(135deg, #B22222 0%, #DC143C 100%);
}

.service-content {
    padding: 2rem;
}

.service-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #475569;
}

.checkmark {
    color: #8B0000;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.process-step {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step-title {
    font-size: 1.3rem;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.process-step-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-title {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 2rem;
    font-weight: bold;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
}

.check-icon {
    color: #8B0000;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.3rem;
}

.benefits-gallery {
    position: relative;
}

.gallery-grid-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-item-home {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item-home:hover {
    transform: scale(1.05);
}

.gallery-item-home img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(165, 42, 42, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item-home:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2rem;
}

.gallery-caption {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-style: italic;
}

/* Environmental/Heritage Section */
.environmental {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.environmental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.env-benefit {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.env-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
}

.env-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.env-benefit-title {
    font-size: 1.3rem;
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.env-benefit-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.testimonial-text {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-style: italic;
}

.testimonial-author {
    color: #8B0000;
    font-weight: bold;
    font-size: 1rem;
}

/* Service Areas Section */
.service-areas {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.area-group {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.area-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.2);
}

.area-group-title {
    color: #8B0000;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.area-group ul {
    list-style: none;
}

.area-group li {
    padding: 0.5rem 0;
    color: #475569;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.area-group li:hover {
    color: #8B0000;
    background: #f8fafc;
    padding-left: 10px;
}

.area-group li:last-child {
    border-bottom: none;
}

.service-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-note-text {
    color: #64748b;
    font-size: 1.1rem;
}

.service-note-text a {
    color: #6b46c1;
    text-decoration: none;
    font-weight: bold;
}

.service-note-text a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.2);
}

.faq-question {
    color: #8B0000;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Quote Section */
.quote-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    text-align: center;
}

.quote-section .section-title {
    color: white;
}

.quote-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.quote-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quote-method-compact {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quote-method-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.2);
}

.quote-icon-small {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quote-method-title-small {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: bold;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.9));
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #e0e7ff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #DC143C;
}

.footer-certifications {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.footer-certifications p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #e0e7ff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
    border-radius: 3px;
}

.footer-section ul li a:hover {
    color: #e0e7ff;
    padding-left: 10px;
    transform: translateX(5px);
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(1.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.contact-item a:hover {
    color: #e0e7ff;
}

.footer-cta {
    margin-top: 25px;
    text-align: center;
}

.footer-quote-btn {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.3);
}

.footer-quote-btn:hover {
    background: linear-gradient(135deg, #B22222, #DC143C);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.footer-middle {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    margin: 40px 0;
}

.footer-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.quick-links-section h4 {
    color: #e0e7ff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-section ul li {
    margin-bottom: 8px;
}

.quick-links-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 3px 0;
    display: block;
}

.quick-links-section ul li a:hover {
    color: #e0e7ff;
    padding-left: 8px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #e0e7ff;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Quote Form Styles */
.quote-hero {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.8)), url('../../images/129.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.quote-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quote-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 1.2rem;
}

.quote-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.quote-intro {
    text-align: center;
    margin-bottom: 50px;
}

.quote-intro h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.quote-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.quote-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.step-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-number {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.step-header p {
    color: #666;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.main-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-grid {
    margin-bottom: 25px;
}

.checkbox-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #8B0000;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark,
.radio-label input[type="radio"]:checked + .radio-mark {
    background: #8B0000;
    border-color: #8B0000;
    color: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    font-size: 12px;
    font-weight: bold;
}

.radio-label input[type="radio"]:checked + .radio-mark:after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #8B0000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #8B0000;
    font-weight: 600;
}

.file-upload-label:hover {
    background: #8B0000;
    color: white;
}

.file-input {
    display: none;
}

.upload-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-outline {
    background: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-outline:hover {
    background: #8B0000;
    color: white;
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
}

.next-btn:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #A52A2A, #B22222);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading:after {
    content: "";
    animation: spin 1s linear infinite;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    margin-left: 10px;
}

.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.progress-card,
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.progress-card h3,
.info-card h3 {
    color: #8B0000;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8B0000;
}

.progress-step.completed {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #8B0000;
    color: white;
}

.progress-step.completed .step-circle {
    background: #22c55e;
    color: white;
}

.step-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.included-list li:last-child {
    border-bottom: none;
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.why-item strong {
    color: #8B0000;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.why-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.contact-card {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
}

.contact-card h3 {
    color: white;
}

.contact-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
}

.next-steps {
    padding: 80px 0;
    background: white;
}

.next-steps .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.next-steps .section-header h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.next-steps .section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-card .step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.step-card h3 {
    color: #8B0000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.quote-cta {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.8)), url('../../images/129.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A52A2A, #B22222);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #22c55e;
    background: #f0fdf4;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .nav-contact {
        gap: 10px;
    }
    
    .quote-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Navigation mobile styles */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        transition: all 0.3s ease;
        padding: 40px 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 20px;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-contact {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }

    /* Hero section mobile fixes */
    .hero {
        padding: 120px 0 80px;
        min-height: 60vh;
        background-attachment: scroll; /* Fix for iOS */
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Container and spacing fixes */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Grid layout fixes */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid-home {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item-home img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    /* Text sizing */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .guarantee-title {
        font-size: 1.8rem;
    }

    .guarantee-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Grid fixes */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .environmental-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Card padding adjustments */
    .service-card,
    .process-step,
    .env-benefit,
    .testimonial,
    .faq-item {
        margin: 0 10px;
    }

    /* Phone info mobile styling */
    .phone-info a {
        font-size: 1.1rem;
        padding: 12px 20px;
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    /* Section padding adjustments */
    .services,
    .process,
    .benefits,
    .environmental,
    .testimonials,
    .service-areas,
    .faq,
    .quote-section {
        padding: 60px 0;
    }

    /* Button adjustments */
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    /* Quote form mobile */
    .quote-hero {
        padding: 80px 0 40px;
    }
    
    .quote-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .quote-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .quote-grid-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-quick-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 50vh;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .gallery-item-home img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    /* Grid fixes for very small screens */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Card spacing fixes */
    .process-step,
    .env-benefit,
    .testimonial {
        padding: 1.5rem 1rem;
        margin: 0 5px;
    }

    .service-card {
        margin: 0 5px;
    }

    .faq-item {
        padding: 1.5rem 1rem;
        margin: 0 5px;
    }

    /* Text adjustments */
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .guarantee-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .guarantee-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Navigation mobile improvements */
    .nav-container {
        padding: 0 10px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 35px;
        margin-right: 8px;
    }
    
    .quote-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .quote-form-container {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .quote-sidebar {
        order: -1;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #DC143C;
}

/* Body scroll lock when nav is open */
body.nav-open {
    overflow: hidden;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    nav {
        border-bottom: 2px solid white;
    }
    
    .nav-menu a {
        border: 1px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        border-color: white;
    }
}