/* Main Stylesheet for The Party Wall Man */

@font-face {
    font-family: 'Copperplate Gothic Light'; 
    src: url('./fonts/copperplate-gothic-light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: #2874A6;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensures the header stays on top of other content */
}


/* Add padding to the body to prevent content from being hidden under the fixed header */
body {
    padding-top: 90px; /* Adjust this value based on your header height */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Other header styles remain unchanged */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 95px;
    width: 200px;
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 2rem;
    color: #3683CF;
    margin-bottom: 0.1rem;
    text-align: center;
    font-family: 'Copperplate Gothic Light';
    font-weight: normal;
}

.logo-text p {
    font-size: 1.2rem;
    color: #3683CF;
    text-align: center;
    font-family: 'Copperplate Gothic Light';
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}


.main-nav a {
    color: #3683CF; /* Changed from #333 to the requested blue */
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    transition: color 0.3s;
    font-family: 'Alegreya', serif;
    text-align: center;
}

.main-nav a:hover {
    color: #7BB5F5; /* Lighter blue for hover state */
}

/* Also update footer navigation links to match */
.footer-nav a {
    font-size: 0.8rem;
    color: #3683CF; /* Updated to match navbar */
}

.footer-nav a:hover {
    color: #7BB5F5; /* Lighter blue for hover state */
}

/* Hero section - Parallax effect with cropping */
.hero {
    width: 100%;
    height: 900px; /* Set your desired fixed height */
    overflow: hidden;
    position: relative;
    background-attachment: fixed;
    background-position: center; /* Position the image at the top center */
    background-repeat: no-repeat;
    background-size: cover;
}

/* This is an alternative if using the div with background-image doesn't work well */
.hero img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    z-index: -1;
}

/* Services banner */
.services-banner {
    background-color: #3683CF;
    color: white;
    padding: 2rem 0;
    display: flex;
    flex-direction: column; /* Change to column for vertical stacking */
    align-items: center; /* Center items horizontally */
    text-align: center;
}

.service-item {
    padding: 1rem;
    max-width: 300px;
    margin-bottom: 1.5rem; /* Add space between stacked items */
}

/* Keep your existing thumbs-up SVG styling */
.icon img[src*="thumbsup.svg"] {
    width: 40px;
    height: 40px;
}

.icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.services-banner h2 {
    font-size: 1.2rem;
    font-weight: normal;
}

/* Info boxes section */
.info-boxes {
    max-width: 1200px;
    margin: 3rem auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.info-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
    margin: 1rem;
    margin-bottom: 50px;
}

.info-icon {
    font-size: 2rem;
    color: #2874A6;
    margin-bottom: 1rem;
    display: block;
}

.info-icon img{
    width: 81px;
    height: 81px;
}

.info-box h3 {
    margin: 0;
    color: #2874A6;
}

.read-more {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: #2874A6;
    color: white;
    border-color: #2874A6;
}

.with-divider-full {
    position: relative;
    overflow: visible; 
  }
  
  .with-divider-full::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -50vw; 
    right: -50vw; 
    width: 99vw; 
    height: 5px;
    background-color: #3683CF;
    margin-left: auto;
    margin-right: auto;
  }

/* Surveyors section */
.surveyors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10%;
}
.surveyor-heading {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.surveyor-heading h1{
    color: #3683CF;
   
    
}

.surveyor {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px 50px 15px; 
    width: calc(25% - 30px);
    min-width: 220px;
}

.surveyor h3 {
    color: #2874A6;
    margin: 0;
    text-align: center;
    font-size: 1.4rem;
    font-family: 'Copperplate Gothic Light';
    font-weight: normal;
    padding: 0;
    line-height: 1;
}

.small{
    font-size: 1rem;
}

.title {
    text-align: center;
}

.address {
    height: 115.2px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Alegreya', serif;
    color: #3683CF;
    margin-top: 1rem;
}

.address p {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
    text-align: center;
    font-family: 'Alegreya', serif;
}

.surveyor .phone {
    color: #3683CF;
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0;
    font-weight: normal;
    font-family: 'Alegreya', serif;
}

a[href^="tel:"] {
    color: inherit; /* Makes the link the same color as surrounding text */
    text-decoration: none; /* Removes the underline */
}

a[href^="tel:"]:hover {
    text-decoration: underline; /* Adds underline on hover */
}

.region {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column; /* Changed to column */
    align-items: center; /* Center items horizontally */
    margin-top: 1rem;
    font-family: 'Alegreya', serif;
}

.region img {
    width: 30px;
    margin-bottom: 0.5rem; /* Changed from margin-right to margin-bottom */
}

.region p {
    color: #3683CF;
    text-align: center; /* Center the text */
    font-size: 1.2rem;
}

.WS {
    height: 48px;
}

/* For the surveyor with additional-info class */
.additional-info {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
    text-align: center;
    font-family: 'Alegreya', serif;
}


.additional-info p {
    color: #3683CF;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Alegreya', serif
    
}
.with-divider {
    position: relative;
  }
  
  .with-divider::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 5px;
    background-color: #3683CF;
    border-radius: 5px;
    
  }



/* Contact info section */
.contact-info {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem 1rem;
    font-family:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-family: 'Alegreya', serif;
}



.contact-info p {
    margin-bottom: 1rem;
}

.offices {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.office {
    margin: 0 2rem;
}

.office .phone {
    color: #2874A6;
    font-weight: normal;
    
}
        /* Button styling */
.contact-btn {
          
    align-items: center;    
    justify-content: center; 
    padding: 10px 25px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid #3683CF;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;

}
.contact-btn:hover {
    background-color: #fff;
    color: #3683CF;
}


        /* Popup overlay */
        .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

        /* Form container */
        .popup-form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            width: 100%;
            max-width: 500px;
            position: relative;
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }

        /* Close button */
        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #888;
        }

        /* Form styling */
        .form-group {
            margin-bottom: 15px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        input, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        textarea {
            height: 120px;
        }

        button[type="submit"] {
            align-items: center;    
            justify-content: center; 
            padding: 10px 25px;
            background-color: #3683CF;
            color: #fff;
            text-decoration: none;
            border: 2px solid #3683CF;
            transition: all 0.3s;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        button[type="submit"]:hover{
        background-color: #fff;
        color: #3683CF;
    }

        /* Active state classes */
        .popup-overlay.active {
            display: flex;
            opacity: 1;
        }

        .popup-overlay.active .popup-form {
            transform: translateY(0);
        }

.contact-btn{
    background-color: #3683CF;
    color: white;
}
/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-nav li {
    margin: 0 1rem;
}

.footer-nav a {
    font-size: 0.8rem;
    color: #666;
}

.social-media {
    margin: 1rem 0;
}

.facebook-icon {
    /* Replace with actual icon or image */
    color: #3b5998;
    font-weight: bold;
}

.copyright {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
    
    .info-boxes, .surveyors {
        flex-direction: column;
    }
    
    .info-box, .surveyor {
        margin-bottom: 2rem;
    }
    
    .offices {
        flex-direction: column;
    }
    
    .office {
        margin: 1rem 0;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 140px; /* Increase padding for mobile when header gets taller */
    }
    
    /* Your existing responsive styles for header */
    .header-container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }}