/* Basic Styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 0 0;
}

.section.intro-section {
    text-align: center;
    padding-top: 0; /* Removed top padding to bring it closer to the header */
    padding-bottom: 0;
}

.section.intro-section .intro-header {
    /* Default for mobile */
    background-image: url('../images/projects/homepage_background-800w.jpg');
    background-image: -webkit-image-set(
        url('../images/projects/homepage_background-800w.jpg') 1x,
        url('../images/projects/homepage_background-1200w.jpg') 2x
    );
    background-image: image-set(
        url('../images/projects/homepage_background-800w.jpg') 1x,
        url('../images/projects/homepage_background-1200w.jpg') 2x
    );
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0; /* Increased padding to make it taller */
    max-width: 1200px; /* Added max-width to constrain the hero header */
    margin: 0 auto; /* Center the hero header */
}

/* For larger screens (desktops) */
@media (min-width: 768px) {
    .section.intro-section .intro-header {
        /* Fallback */
        background-image: url('../images/projects/homepage_background-1200w.jpg');
        /* image-set for desktop */
        background-image: -webkit-image-set(
            url('../images/projects/homepage_background-1200w.jpg') 1x,
            url('../images/projects/homepage_background.jpg') 2x
        );
        background-image: image-set(
            url('../images/projects/homepage_background-1200w.jpg') 1x,
            url('../images/projects/homepage_background.jpg') 2x
        );
    }
}

.section.intro-section .subpage-intro {
    background-image: url('../images/projects/homepage_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0; /* Increased padding to make it taller */
    max-width: 1200px; /* Added max-width to constrain the hero header */
    margin: 0 auto; /* Center the hero header */
}

.heading-jumbo {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.heading-jumbo-small {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.paragraph-light,
.paragraph-bigger,
.paragraph-tiny,
.paragraph-small {
    margin-bottom: 20px;
}

.paragraph-light {
    color: #666;
}

.paragraph-bigger {
    font-size: 1.2em;
}

.paragraph-tiny {
    font-size: 0.8em;
}

.paragraph-small {
    font-size: 0.9em;
}

/* Navigation */
.navigation {
    background-color: #fff;
    padding: 40px 0; /* Increased padding to make header even taller */
    border-bottom: none; /* Removed the line below the header */
    position: relative; /* Added for absolute positioning of navigation-items */
}

.navigation-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Reduced horizontal padding */
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 90px; /* Increased height to make logo even taller */
    width: auto;
}

.navigation-items {
    display: flex;
}

.navigation-item {
    margin-left: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navigation-item:hover {
    color: #163c6b; /* Example hover color */
}

.menu-button {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.primary-button,
.secondary-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.primary-button {
    background-color: #163c6b;
    color: white;
}

.primary-button:hover,
.primary-button:focus {
    background-color: #0056b3;
    outline: none; /* To remove the default browser outline */
}

.secondary-button {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-button:hover {
    background-color: #e2e2e2;
}

.jumbo-button {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Intro Header */
.intro-header {
    /* Padding moved to .section.intro-section .intro-header */
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    margin-bottom: 30px;
}

/* Motto */
.motto-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.divider {
    width: 100px;
    height: 3px;
    background-color: #163c6b;
    margin: 0 auto 50px auto;
}

/* Home Content Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.grid.reverse-grid {
    direction: rtl; /* Reverses order for content and image */
}

.grid.reverse-grid > * {
    direction: ltr; /* Resets text direction */
}

.home-section-wrap {
    text-align: left; /* Left align content within this wrap */
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Our Services Grid */
.our-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.our-services-grid > div {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.project-image {
    width: 100%;
    height: 250px; /* Fixed height for project images */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide { min-width: 100%; flex-shrink: 0; opacity: 0; transition: opacity 0.6s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.6); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #163c6b; }

.project-rotator { position: relative; }
#projects-rotator { transition: opacity 0.6s ease; display:block; }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.star-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.testimonial-card .paragraph-small {
    margin: 0 0 14px 0; /* tighten spacing */
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact Form */
.contact-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form-wrap {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form-heading-wrap {
    margin-bottom: 30px;
}

.contact-heading {
    font-size: 2em;
    margin-bottom: 10px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.text-field,
.textarea-field,
.select-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.textarea-wrapper {
    position: relative;
}

.textarea-field {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 0;
}

.select-field {
    appearance: none; /* Remove default select arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011-3.1%2016.2l128%20128c3.8%203.8%209%205.9%2014.2%205.9%205.2%200%2010.4-2.1%2014.2-5.9l128-128c3.8-3.8%205.9-9%205.9-14.2s-2.1-10.4-5.9-14.2z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 30px; /* Make space for the custom arrow */
}

.status-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none; /* Hidden by default, shown with JS */
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.details-column {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.details-wrap {
    margin-bottom: 30px;
}

.details-wrap:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #163c6b;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background-color: #f4f4f4;
    text-align: center;
}

.cta-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    margin-bottom: 30px;
}

 /* Footer */
 .footer-section {
     background-color: #333;
     color: white;
     padding: 40px 0;
     text-align: center;
 }
 .social-links a { 
     display:inline-flex; 
     width:44px; 
     height:44px; 
     align-items:center; 
     justify-content:center; 
     color:#163c6b; 
     text-decoration:none; 
     border-radius:6px; 
     background:rgba(22,60,107,0.08); 
     margin-right:10px; 
     transition:background .2s ease, transform .2s ease; 
 }
 .social-links a:last-child { margin-right:0; }
 .social-links a:hover, .social-links a:focus { background:rgba(22,60,107,0.18); outline:none; transform:translateY(-2px); }
 .footer-section .social-links a { color:#fff; background:rgba(255,255,255,0.08); }
 .footer-section .social-links a:hover, .footer-section .social-links a:focus { background:rgba(255,255,255,0.2); }
 .social-links svg { width:22px; height:22px; }
 .social-links.inline { display:flex; justify-content:center; }
 .follow-us-block { text-align:center; margin: 20px 0 10px; }
 .footer-meta { display:flex; align-items:center; }
 @media (max-width:768px) { .footer-wrap { flex-direction:column; } .social-links a { width:40px; height:40px; } }


 .footer-wrap {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 30px;
 }


.webflow-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.webflow-logo-tiny {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navigation-items {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack items vertically */
        background-color: #fff; /* Background for the dropdown menu */
        position: absolute; /* Position over content */
        top: 100%; /* Below the header */
        left: 0; /* Align to the left */
        width: 100%; /* Full width */
        padding: 20px 0; /* Padding for menu items */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
        z-index: 1000; /* Ensure it's above other content */
    }

    .navigation-items.active {
        display: flex; /* Show when active */
    }

    .navigation-item {
        margin: 10px 0; /* Adjust spacing for stacked items */
        text-align: center;
    }

    .menu-button {
        display: block; /* Show menu button */
    }

    .contact-us-button {
        display: none; /* Hide contact us button on smaller screens */
    }

    .grid,
    .contact-form-grid {
        grid-template-columns: 1fr; /* Stack grid items */
    }

    .grid.reverse-grid {
        direction: ltr; /* Reset direction for stacking */
    }

    .intro-header {
        padding: 50px 0;
    }

    .subpage-intro {
        padding: 50px 0;
    }

    .heading-jumbo {
        font-size: 3em;
    }

    .heading-jumbo-small {
        font-size: 2em;
    }

    .our-services-grid,
    .project-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Validation Messages */
.validation-message {
    color: #d9534f; /* A reddish color for errors */
    font-size: 0.9em;
    margin-top: -15px;
    margin-bottom: 10px;
    display: none; /* Hidden by default */
}

.textarea-wrapper {
    position: relative;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.8em;
    color: #d9534f; /* Default to red */
}

/* Input Validation States */
.text-field,
.textarea-field,
.select-field {
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Add transition for smooth effect */
}

.text-field:focus,
.textarea-field:focus,
.select-field:focus {
    outline: none; /* Remove default browser outline */
}

.text-field.is-valid,
.textarea-field.is-valid,
.select-field.is-valid {
    border-color: #28a745; /* Green */
}

.text-field.is-invalid,
.textarea-field.is-invalid,
.select-field.is-invalid {
    border-color: #d9534f; /* Red */
}

.text-field.is-valid:focus,
.textarea-field.is-valid:focus,
.select-field.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25); /* Bolder green glow */
}

.text-field.is-invalid:focus,
.textarea-field.is-invalid:focus,
.select-field.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.25); /* Bolder red glow */
}