* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.5;
    background-image: url('shoreline-background.jpg');
    background-size: cover;
    background-position: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Header Styles */
header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    padding-bottom: 80px;
    width: 100%;
    z-index: 1000;
}

.logo img {
    max-width: 400px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
}

nav ul li a {
    color: #004080;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-decoration: none;
    font-size: 22px;
}

nav ul li a.current-page {
    color: #DC143C;
}

nav ul li a:hover {
    color: #DC143C;
}

/* Burger menu toggle button */
.menu-toggle {
    display: none; /* Hidden by default (only shows on smaller screens) */
    align-items: center;
    justify-content: flex-end;
    font-size: 18px; /* Adjusted size */
    color: #085eb4; /* Brand color or a more sophisticated tone */
    position: absolute;
    right: 20px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: bold; /* Make the label bold */
    text-transform: uppercase; /* Uppercase for a more professional feel */
    letter-spacing: 1px; /* Add slight letter spacing */
    padding: 5px 10px; /* Add some padding around the label and icon */
    background: none; /* No background */
    border: none; /* No border */
    outline: none; /* No focus outline */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for effects */
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: #DC143C; /* Darken color on hover for better contrast */
    transform: scale(1.05); /* Slightly enlarge on hover for emphasis */
}

/* Styling for the Menu Label */
.menu-toggle::before {
    content: "Menu";
    margin-right: 10px;
    font-size: 18px; /* Increase size of the "Menu" label */
    color: #085eb4; /* Matching the burger icon */
    color: inherit; /* Inherit color from parent (.menu-toggle) */
}

.menu-toggle:hover::before {
    color: #DC143C;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effects for the icon */
.menu-toggle:hover::after {
    color: #DC143C; /* Darker color on hover */
}

/* Animation for sliding effect */
.show-menu {
    animation: slideDown 0.3s ease-out forwards;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-us h1 {
    text-align: center;
    color: #fff; /* White color for the 'Contact Us' heading */
    font-size: 60px; /* Size of the heading */
    margin-top: -20px;
    margin-bottom: 20px; /* Adjust as needed for spacing */
    margin-right: 20px;
}

.contact-form h2, .contact-info h2 {
    color: #004080; /* Deep ocean blue, matching your theme */
    text-align: center;
    margin-bottom: 20px; /* Consistent spacing below headings */
}

.contact-container h2 {
    color: #004080; /* Deep ocean blue, matching your theme */
    text-align: center;
    margin-bottom: 20px; /* Provides consistent spacing below the headings */
}

.contact-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px; 
    margin: auto;
    align-items: stretch;
}

.contact-text, .contact-form {
    flex: 1;  
    display: flex;
    flex-direction: column; 
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6); 
    border-radius: 15px;
    box-sizing: border-box; 
}

.contact-text {
    background-color: rgba(255, 255, 255, 0.6); 
    border-radius: 15px; 
    margin-right: 20px; 
    text-align: center;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 20px; /* Ensure padding matches .contact-text for visual consistency */
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-sizing: border-box;
    flex: 1; /* This ensures it stretches to match .contact-text */
}

#form-message {
    font-size: 14px;
    border: 1px solid;
    border-color: inherit;
    padding: 10px;
    border-radius: 5px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between form fields */
}

.contact-form label {
    font-weight: bold;
    color: #004080;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px;
    border: 1px solid #004080; /* Ocean blue border */
    border-radius: 5px; /* Slightly rounded corners for input fields */
    font-size: 16px;
}

.contact-form button {
    background-color: #004080; /* Deep ocean blue */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0077CC; /* Lighter shade of blue */
}

/* Contact Information Styles */
.contact-info {
    text-align: center;
    margin-top: 40px;
}

.contact-info p {
    color: #004080; /* Deep ocean blue */
    font-size: 18px;
    margin: 10px 0; /* Spacing between contact info lines */
}

.contact-info a {
    color: #0077CC; /* Lighter shade of blue for links */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: 100px;
    padding-bottom: 20px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.left-section,
.center-section,
.right-section {
    display: flex;
    align-items: center; 
    justify-content: center; 
}

.left-section {
    align-items: center;
    display: flex;
    padding-left: 20px;
}

.links-container {
    display: flex;
    margin-left: 20px; 
}

.left-section ul {
    display: flex;
    list-style-type: none;
}

.left-section ul li {
    margin-right: 20px;
}

.center-section {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    text-align: center;
    color: #004080;
    font-size: 12px;
    font-family: Arial, sans-serif;
    align-self: flex-end;
    margin-left: 10px;
}

.right-section {
    justify-content: flex-end;
    padding-right: 20px;

}

footer a {
    color: #004080;
    transition: color 0.3s;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #DC143C; 
}

.right-section a {
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    margin-right: 20px; 
}

.right-section a:last-child {
    margin-right: 0; 
}

.right-section p {
    margin-right: 20px;
}

.social-media-links a:hover {
    color: #DC143C;
}

.fa-facebook-f, .fa-youtube, .fa-instagram {
    font-size: 32px; 
}

@media (max-width: 1200px) and (min-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        margin-bottom: 20px; /* Add some space between the logo and nav */
    }

    nav ul {
        display: flex;
        justify-content: center;
        width: 100%; /* Ensure nav takes full width */
    }

    nav ul li {
        margin-bottom: 10px; /* Add space between each menu item */
    }

    nav ul li a {
        font-size: 18px; /* Adjust the font size */
    }

    footer {
        flex-wrap: wrap; /* Allow sections to wrap onto new lines */
    }

    .right-section {
        order: 1; /* Show the right section first */
    }

    .center-section {
        order: 2; /* Show the center section after the right section */
        margin-left: 0; /* Remove the left margin */
        margin-bottom: 20px;
    }

    .left-section {
        order: 0; /* Left section stays first */
    }

    /* Move the center-section to a new line */
    .center-section {
        width: 100%; /* Take full width */
        text-align: center; /* Center the text */
        margin-top: 20px; /* Add some space above the center section */
    }
}

/* For screens 768px - 500px */
@media (max-width: 768px) and (min-width: 500px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        margin-left: 0; /* Ensure logo aligns to the left */
        max-width: 300px;
        height: auto;
    }

        /* Show the burger menu and hide the navigation list */
        .menu-toggle {
            display: flex; /* Show the burger menu button */
            background: none; /* Remove any background color */
            border: none; /* Remove any borders */
            outline: none; /* Remove any focus outline */
            padding: 0; /* Remove any default padding */
            box-shadow: none; /* Remove any box shadow */
        }

        .menu-toggle::before {
            content: "Menu";
            margin-right: 10px;
        }
    
        /* Hide the nav list by default on smaller screens */
        nav ul {
            display: none; /* Hidden initially */
        }
    
        /* Show the nav list when the burger menu is clicked */
        .show-menu {
            display: flex; /* Display the dropdown when .show-menu is active */
            flex-direction: column;
            position: absolute;
            top: 100px; /* Ensure it's below the header */
            right: 0;
            background-color: white;
            width: 100%; /* Full width dropdown */
            text-align: right;
            padding: 10px 0;
        }
    
        nav ul li {
            margin: 10px 20px;
        }
    
        /* Stack footer sections vertically */
        footer {
            flex-direction: column;
            text-align: center;
            align-items: center; /* Ensure everything is centered */
            padding: 20px 0; /* Add some vertical padding for consistency */
        }
    
        .left-section,
        .center-section,
        .right-section {
            justify-content: center; /* Center align each section */
            align-items: center; /* Vertically center items within each section */
            width: 100%; /* Make each section take full width to center contents */
            margin-bottom: 20px; /* Consistent spacing between sections */
            padding: 0; /* Remove any extra padding */
        }
    
        .right-section {
            order: 1; /* Show the right section first */
        }
    
        .center-section {
            order: 2; /* Show the center section after the right section */
            margin-left: 0; /* Remove the left margin */
            margin-bottom: 20px;
        }
    
        .left-section {
            order: 0; /* Left section stays first */
        }
    
        .right-section p {
            display: none; /* Hide "Follow us on social media" */
        }
    
        .links-container {
            justify-content: center;
            margin-left: 0;
        }
    
        .right-section a {
            margin-right: 15px;
        }
}

/* Media Query for 768px and below */
@media (max-width: 768px) {
    .contact-us h1 {
        font-size: 45px;
    }

    .contact-container {
        flex-direction: column; /* Stack the items vertically */
        padding: 10px; /* Adjust padding for smaller screens */
    }

    .contact-text {
        margin-right: 0; /* Remove right margin on smaller screens */
        margin-bottom: 20px; /* Add margin at the bottom to separate from the form */
    }

    .contact-form {
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        margin-left: 0; /* Ensure logo aligns to the left */
        max-width: 200px;
        height: auto;
    }

    /* Hide the nav by default and use the burger menu */
    /* Show the burger menu and hide the navigation list */
    .menu-toggle {
        display: flex; /* Show the burger menu button */
    }

    .menu-toggle::before {
        content: "Menu";
        margin-right: 10px;
    }

    /* Hide the nav list by default on smaller screens */
    nav ul {
        display: none; /* Hidden initially */
    }

    /* Show the nav list when the burger menu is clicked */
    .show-menu {
        display: flex; /* Display the dropdown when .show-menu is active */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ensure it's below the header */
        right: 0;
        background-color: white;
        width: 100%; /* Full width dropdown */
        text-align: right;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 20px;
    }

    .contact-us h1 {
        font-size: 35px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Ensure everything is centered */
        padding: 20px 0; /* Add some vertical padding for consistency */
    }

    .left-section,
    .center-section,
    .right-section {
        justify-content: center; /* Center align each section */
        align-items: center; /* Vertically center items within each section */
        width: 100%; /* Make each section take full width to center contents */
        margin-bottom: 20px; /* Consistent spacing between sections */
        padding: 0; /* Remove any extra padding */
    }

    .right-section {
        order: 1; /* Show the right section first */
    }

    .center-section {
        order: 2; /* Show the center section after the right section */
        margin-left: 0; /* Remove the left margin */
        margin-bottom: 20px;
    }

    .left-section {
        order: 0; /* Left section stays first */
    }

    .right-section p {
        display: none; /* Hide "Follow us on social media" */
    }

    .links-container {
        justify-content: center;
        margin-left: 0;
    }

    .right-section a {
        margin-right: 15px;
    }
}

@media (max-width: 350px) {
    /* Shrink the logo gradually */
    .logo img {
        max-width: 150px; /* Limit the maximum width for very small screens */
        height: auto;
    }

    /* Show the burger menu and hide the navigation list */
    .menu-toggle {
        display: flex; /* Show the burger menu button */
    }

    .menu-toggle::before {
        display: none; /* Hide the "Menu" label */
    }

    /* Hide the nav list by default on smaller screens */
    nav ul {
        display: none; /* Hidden initially */
    }

    /* Show the nav list when the burger menu is clicked */
    .show-menu {
        display: flex; /* Display the dropdown when .show-menu is active */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ensure it's below the header */
        right: 0;
        background-color: white;
        width: 100%; /* Full width dropdown */
        text-align: right;
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 20px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Ensure everything is centered */
        padding: 20px 0; /* Add some vertical padding for consistency */
    }

    .left-section,
    .center-section,
    .right-section {
        justify-content: center; /* Center align each section */
        align-items: center; /* Vertically center items within each section */
        width: 100%; /* Make each section take full width to center contents */
        margin-bottom: 20px; /* Consistent spacing between sections */
        padding: 0; /* Remove any extra padding */
    }

    .right-section {
        order: 1; /* Show the right section first */
    }

    .center-section {
        order: 2; /* Show the center section after the right section */
        margin-left: 0; /* Remove the left margin */
        margin-bottom: 20px;
    }

    .left-section {
        order: 0; /* Left section stays first */
    }

    .left-section img {
        display: none;
    }

    .right-section p {
        display: none; /* Hide "Follow us on social media" */
    }

    .links-container {
        justify-content: center;
        margin-left: 0;
    }

    .right-section a {
        margin-right: 15px;
    }
}