/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
header {
    background-color: #D8D6DC;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.navbar .logo {
    padding-left: 1rem;
}

.navbar .logo img {
    width: 240px; /* Default size of logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    padding-right: 1rem; /* Padding for categories */
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu .nav-item {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 0.8rem; /* Default font size for categories */
    position: relative;
}

.nav-menu .nav-item:hover {
    color: #FF3B00;
}

.nav-menu .nav-item::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #FF3B00, #D8D6DC);
    transition: width 0.3s;
}

.nav-menu .nav-item:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Styles for Tablets and iPads */
@media (max-width: 1024px) {

    /* Ensure the toggle is visible and positioned correctly */
    .menu-toggle {
        display: block;
        position: absolute; /* Keep the button in the original position */
        right: 1rem; /* Align it to the right */
        top: 1.8rem; /* Slight margin from the top */
        font-size: 1.5rem;
        cursor: pointer;
        color: black;
        background: none;
        border: none;
    }

    .menu-toggle:hover {
        color: #FF3B00; /* Add hover effect */
        transform: scale(1.1); /* Slight scaling effect */
        transition: all 0.3s ease; /* Smooth transition */
    }

    .navbar .container {
        flex-direction: column; /* Stack the logo and menu vertically */
        align-items: flex-start; /* Align everything to the left */
    }

    .navbar .logo {
        padding-left: 1rem;
        margin-bottom: 0.5rem; /* Add space between logo and menu */
        padding-top: 0.5rem;
    }

    .navbar .logo img {
        width: 160px; /* Adjusted logo size */
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start; /* Align items with logo */
        display: none;
        background: #D8D6DC;
        width: 100%;
        padding-left: 1rem; /* Add padding to align menu with logo */
        padding-right: 1rem; /* Balanced padding on the right */
    }

    .nav-menu.active {
        display: flex; /* Show menu when toggle is active */
    }

    .nav-menu li {
        margin: 0.5rem 0; /* Add vertical spacing between items */
    }

    .nav-menu .nav-item {
        font-size: 0.7rem; /* Font size for better touch area */
        padding: 0.3rem 0; /* Adjust padding for better touch area */
    }
}

/* Adjust the section background to cover all white spaces */
.contact-us {
    position: relative;
    background-color: #FF3B00; /* Match section background with the container */
    background-image: url('<?php echo $contactBg["background_image"]; ?>'); /* Keep the background image */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0; /* Add padding for spacing */
    text-align: center;
}

.contact-us h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-us p {
    color: #ddd;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-us {
    position: relative;
    background-image: url('<?php echo $contactBg["background_image"]; ?>');
    background-size: cover; /* Ensure the image covers the entire section */
    background-position: center center; /* Center the background image */
    background-attachment: fixed; /* Fixed attachment for parallax effect */
    color: white;
    padding: 4rem 0; /* Add padding for spacing */
    text-align: center;
    z-index: 1; /* Ensure it stays above other content */
    overflow: hidden; /* Prevent overflow issues */
}

/* Optional: Add a dark overlay for text readability */
.contact-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: -1; /* Place behind the content */
}

@media (max-width: 768px) {
    .contact-us {
        background-attachment: scroll; /* Fallback for mobile browsers */
    }
}

.contact-us h1,
.contact-us p {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
}

/* Responsive Design for Contact Container */
@media (max-width: 768px) {
    .contact-us p {
        color: #ddd;
        font-size: 1.5rem;
        margin-bottom: 2rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}



.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: center;
    width: 100%; /* Full width for background */
    padding: 2rem 0; /* Vertical padding only */
    background-color: #FF3B00; /* Background color fills the section */
    justify-content: center; /* Center items horizontally */
    background-attachment: fixed;
}

.contact-inner {
    max-width: 1200px; /* Center content within the container */
    width: 90%; /* Add dynamic margin on left and right */
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Space between items */
    justify-content: center; /* Center inner content */
    background-attachment: fixed;
}

.contact-form, .contact-details {
    flex: 1 1 45%;
    background-color: rgba(255, 255, 255, 0.9); /* Keep inner background white */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
    border: 2px solid #FF3B00;
}


/* Responsive Design for Contact Container */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-form,
    .contact-details {
        flex: 1 1 100%;
    }
}

/* On hover for a slight effect */
.contact-form:hover, .contact-details:hover {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4); 
    border: 2px solid #000; /* Highlight with a white border */
}

/* Contact Titles Styling */
.contact-form h2, .contact-details h2 {
    color: #FF3B00; /* Match primary theme */
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    font-weight: bold;
    color: #000;
}

.required {
    color: #FF3B00;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #FF3B00;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label {
    margin-right: 1rem;
}

textarea {
    resize: none; /* Disable expand button */
    overflow-y: auto; /* Enable vertical scrollbar for long content */
}

.submit-btn {
    align-self: center;
    padding: 0.8rem 2rem;
    background-color: #FF3B00;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    text-transform: uppercase; /* Button text in uppercase */
}

.submit-btn:hover {
    background-color: #000; /* Change button color on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Center-align contact details paragraphs */
.contact-details p {
    color: #000;
    margin-bottom: 1.3rem;
    text-align: center;
    font-size: 1.2rem;
}

.contact-details .highlight {
    color: #FF3B00;
    font-weight: bold;
}

.contact-social img {
    width: 40px;
    margin: 0 10px;
    transition: transform 0.3s ease-in-out;
}

.contact-social img:hover {
    transform: scale(1.1);
}

.contact-image {
    margin-top: 12.5rem;
    width: 70%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.contact-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-form,
    .contact-details {
        flex: 1 1 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Ensure Contact Containers Align Center on Mobile */
@media (max-width: 768px) {
    /* Center Contact Containers */
    .contact-container {
        flex-direction: column;
        justify-content: center; /* Vertically align center */
        align-items: center; /* Horizontally align center */
        padding: 1rem; /* Add padding for spacing */
    }

    .contact-inner {
        width: 100%; /* Use full width for mobile */
        max-width: 100%; /* Ensure it doesn't overflow */
        padding: 1rem; /* Add padding for inner spacing */
    }

    .contact-form,
    .contact-details {
        width: 95%; /* Stretch the containers to fit the screen with margins */
        max-width: 100%; /* Prevent overflow */
        margin: 0 auto 1rem; /* Center and add spacing between sections */
        padding: 1.5rem; /* Add padding for better spacing */
    }

    .form-row {
        flex-direction: column; /* Stack fields vertically */
        gap: 1rem; /* Add spacing between fields */
    }

    .form-group input,
    .form-group textarea {
        width: 100%; /* Stretch fields to container width */
        padding: 0.8rem; /* Comfortable padding */
        font-size: 1rem; /* Adjust font size for readability */
    }

    /* Buttons */
    .submit-btn {
        width: 100%; /* Full-width button for mobile */
        padding: 0.8rem; /* Adjust padding for touch devices */
        font-size: 1rem; /* Adjust font size */
        margin-top: 1rem; /* Add spacing above the button */
    }

    /* Footer */
    .footer-container {
        padding: 1rem; /* Adjust padding for smaller devices */
        text-align: center; /* Center-align all text */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem; /* Add spacing between sections */
    }

    .footer-logo img {
        max-width: 100px; /* Reduce logo size for mobile */
    }

    .footer-logo,
    .footer-contact,
    .footer-links {
        text-align: center; /* Center-align all footer content */
        margin: 0 auto; /* Center the sections */
        width: 100%; /* Use full width */
    }

    .footer-social img {
        width: 25px; /* Resize icons for mobile */
        margin: 0 5px; /* Add spacing between icons */
    }
}

/* Adjust Text Alignment */
.contact-details p,
.contact-form h2,
.contact-details h2 {
    text-align: center; /* Ensure all headings and text are centered */
}

/* Add Subtle Hover Effects */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02); /* Slightly enlarge on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add stronger shadow */
}

/* Button Hover Effects */
.submit-btn:hover {
    background-color: #000; /* Change to black */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow */
}


/* Footer Section */
.footer {
    background-color: #D8D6DC; /* Background color */
    border-top: 2px solid #FF3B00; /* Orange stroke effect */
    color: #fff;
    padding: 2rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-variant: small-caps; /* Apply small caps globally to footer */
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add padding for all device sizes */
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Footer Logo Section */
.footer-logo {
    flex: 1 1 30%;
    text-align: left;
}

.footer-logo img {
    max-width: 240px;
    margin-bottom: 2rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #000;
    text-align: left; /* Keep text left-aligned */
    font-variant: small-caps; /* Small caps for logo caption */
}

/* Footer Links Section */
.footer-links {
    flex: 1 1 30%;
}

.footer-links h3 {
    margin-bottom: 1rem;
    margin-left: 5rem;
    font-size: 1.2rem;
    color: #FF3B00; /* Orange color for headings */
    font-variant: small-caps; /* Small caps for headings */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
    margin-left: 5rem;
}

.footer-links ul li a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-variant: small-caps; /* Small caps for links */
}

.footer-links ul li a:hover {
    color: #FF3B00; /* Hover effect for links */
}

/* Footer Contact Section */
.footer-contact {
    flex: 1 1 30%;
}

.footer-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #FF3B00;
    font-variant: small-caps; /* Small caps for contact headings */
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #000;
    font-variant: small-caps; /* Small caps for contact text */
}

/* Footer Social Icons */
.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    margin-right: 1rem;
    display: inline-block;
}

.footer-social img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1); /* Hover effect to enlarge icons */
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #000;
    font-variant: small-caps; /* Small caps for bottom text */
}

/* iPad View: Consistent Scaling */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        padding: 0 2rem; /* Add consistent padding for iPad view */
    }

    .footer-content {
        justify-content: space-between; /* Keep alignment same as larger devices */
    }

    .footer-logo {
        text-align: left; /* Maintain left alignment */
        padding-left: 1rem; /* Add padding to avoid sticking to the edge */
    }

    .footer-logo p {
        text-align: left; /* Ensure text remains left-aligned */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center; /* Center-align all content */
        text-align: center; /* Center-align text */
    }

    .footer-logo, .footer-logo p {
        text-align: center; /* Center-align text */
    }

    .footer-logo, .footer-links, .footer-contact {
        flex: 1 1 100%; /* Ensure each section takes full width */
    }

    .footer-links h3, .footer-links ul li {
        margin-left: 0; /* Remove left margin for mobile view */
    }

    .footer-social {
        margin-top: 1rem;
    }
}
