/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Global heading styles to fix deprecated API warning */
h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

h5 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

h6 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.logo img {
    height: 50px;
    width: 200px;
    margin-right: 1rem;
    object-fit: contain;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.logo div {
    font-size: 1.5rem;
    color: #333;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li {
    list-style: none;
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-links a:hover {
    color: #007bff;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.webp');
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #fff;
    padding: 2rem 0;
}

.hero-map {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

.hero-map img {
    width: 75%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-map img:hover {
    transform: scale(1.02);
}

.hero-map-services {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-map-services iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-content {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: auto;
    text-align: center;
    margin: 0 auto;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card.main-content {
    padding-bottom: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Map Section */
.map-section {
    padding: 5rem 5%;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .hero {
        flex-direction: column;
        background-attachment: scroll;
        padding: 1rem 0;
    }
    
    .hero-map {
        flex: 1;
        width: 100%;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .logo {
        min-width: 150px;
    }
    
    .logo img {
        width: 150px;
        height: 40px;
    }
    
    .logo div {
        font-size: 1.2rem;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Contact Form Styles */
.contact-section {
    padding: 8rem 5% 5rem;
    background-color: #f9f9f9;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.g-recaptcha {
    margin: 1rem 0;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.submit-btn {
    background-color: #3498db;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 5% 5rem;
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #666;
}

.testimonial-author {
    font-weight: 500;
    color: #2c3e50;
}

/* Towns Section */
.towns-section {
    padding: 8rem 5% 5rem;
    background-color: #f9f9f9;
}

.towns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.town-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.town-card:hover {
    transform: translateY(-5px);
}

.town-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.town-card ul {
    list-style: none;
}

.town-card ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Essex Areas Section */
.essex-areas {
    padding: 3rem 5%;
    background-color: #fff;
}

.essex-areas h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2rem;
}

.essex-areas > p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Town Select Dropdown */
.town-select-container {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.town-select-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
}

.town-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.town-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.find-architects-btn {
    background-color: #3498db;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.find-architects-btn:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.find-architects-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* All Towns Section */
.all-towns-section {
    margin-top: 2rem;
}

.all-towns-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.towns-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.town-link {
    display: inline-block;
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.town-link:hover {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

@media screen and (max-width: 768px) {
    .essex-areas h2 {
        font-size: 1.8rem;
    }
    
    .essex-areas > p {
        font-size: 0.9rem;
    }
    
    .town-select-container {
        padding: 0 1rem;
    }
    
    .towns-list {
        gap: 0.4rem;
    }
    
    .town-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Error Page Styles */
.error-section {
    padding: 8rem 5% 5rem;
    text-align: center;
    background-color: #f9f9f9;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.error-code {
    font-size: 8rem;
    color: #3498db;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

.error-message {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
}

.error-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.back-home {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-home:hover {
    background-color: #2980b9;
}

@media screen and (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    .error-message {
        font-size: 1.2rem;
    }
}

main {
    min-height: 100vh;
    background-color: #f9f9f9;
}

@media screen and (max-width: 768px) {
    main {
    }
}

.gallery-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.gallery-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media screen and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/services-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.services-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

.services-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li:before {
    content: "✓";
    color: #3498db;
    position: absolute;
    left: 0;
}

.process-section {
    padding: 4rem 5%;
    background-color: #fff;
}

.process-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
}

.cta-section {
    background-color: #3498db;
    color: #fff;
    padding: 4rem 5%;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-section .cta-button {
    background-color: #fff;
    color: #3498db;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 1.5rem;
    }
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

@media screen and (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding: 1rem;
    }
}

.areas-list {
    padding-top: 1.5rem;
    margin: 0;
    list-style: none;
}

.areas-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.areas-list li i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 5rem 5%;
    background-color: #fff;
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.content-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section ul li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
} 