/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Keep for mobile */
}

html, body {
    height: 100%;
    /* Allow vertical scroll, prevent horizontal */
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif; /* USE MONTSERRAT */
    color: #202124;
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    padding-bottom: 56px; /* Space for bottom action bar */
    position: relative; /* Needed for potential overflow issues with fixed menu */
}

/* Add a class to body when mobile menu is open */
body.nav-open {
    overflow: hidden; /* Prevent scrolling background */
}


img {
    border: none;
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
}

a {
    text-decoration: none;
    color: #48487f; /* Theme color */
}

a:hover {
    color: #4a4a59; /* Darker theme color */
    text-decoration: underline;
}

h1, h2, h3 {
     /* font-family is inherited from body (Montserrat) */
     font-weight: 700; /* Use Montserrat Bold */
     margin-bottom: 0.8em;
     line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }


/* Layout */
.container {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    position: sticky; /* Make header sticky */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand a {
    display: inline-block; /* Allows vertical alignment */
    line-height: 0; /* Remove extra space around image */
    color: #48487f; /* Fallback or if image fails */
    text-decoration: none;
}

.brand-logo {
    height: 40px; /* Adjust logo height as needed */
    width: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Prevent logo from getting too wide */
    vertical-align: middle; /* Align logo vertically in the navbar */
}


.nav-links {
    display: none; /* Hide desktop links by default */
}

.nav-link, .nav-action-link {
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700; /* Make nav links bolder (Montserrat Bold) */
    color: #48487f;
    text-decoration: none;
    padding: 8px 0;
}

.nav-action-link {
    border: 1px solid #48487f;
    padding: 8px 15px;
    border-radius: 4px;
    white-space: nowrap;
}
.nav-action-link:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: block; /* Show on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav */
    order: -1; /* Ensure it appears first on mobile if flex order changes */
    margin-right: 10px; /* Add some space between toggle and logo */
}

.mobile-menu-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #48487f;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation */
.nav-open .mobile-menu-toggle .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-open .mobile-menu-toggle .icon-bar:nth-child(2) {
    opacity: 0;
}
.nav-open .mobile-menu-toggle .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* Mobile Navigation Menu Panel */
.mobile-nav-menu {
    display: block;
    position: fixed;
    top: 64px; /* Below header */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 64px); /* Full height minus header */
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-105%); /* Start hidden */
    transition: transform 0.3s ease-in-out;
    padding: 30px;
    overflow-y: auto;
    z-index: 999;
}

.nav-open .mobile-nav-menu {
    transform: translateX(0); /* Slide in */
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem; /* Slightly larger for easier tapping */
    color: #48487f;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-menu hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.8rem;
    color: #48487f;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.hero-hours {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #333;
}

.hero-image img {
    width: 100%;
    max-height: 500px; /* Limit image height */
    object-fit: cover; /* Ensure image covers area */
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700; /* Use Montserrat Bold */
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-size: 0.9rem; /* Adjust button font size */
}

.button-primary {
    background-color: #48487f;
    color: #fff;
}

.button-primary:hover {
    background-color: #4a4a59;
    color: #fff;
    text-decoration: none;
}

.button-secondary {
    border: 1px solid #48487f;
    color: #48487f;
    background-color: transparent;
    margin: 5px;
}

.button-secondary:hover {
    background-color: #f0f0f0;
    color: #48487f;
    text-decoration: none;
}

/* Section Styles */
.section-divider {
    border: 1px solid #48487f;
    margin: 40px auto 30px;
    width: 50px;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #48487f;
    font-size: 1.8rem;
}

/* Testimonials */
.testimonials {
    padding-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 30px;
    margin-bottom: 30px;
}

.testimonial-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

.testimonial-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow date to wrap */
}

.testimonial-rating .star {
    color: #fbbc05; /* Google yellow for stars */
    font-size: 1.2rem;
    margin-right: 2px;
}

.testimonial-date {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #777;
}

.testimonial-quote p {
    font-style: italic; /* Keep quote italic */
    margin-bottom: 15px;
    color: #444;
}

.testimonial-author {
    font-weight: 700; /* Use Montserrat Bold */
    color: #48487f;
    font-style: normal;
}

.testimonial-actions {
    text-align: center;
}

/* Gallery */
.gallery {
    padding-bottom: 40px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for grid items */
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.gallery-item a:hover img {
    transform: scale(1.03);
}

/* Contact Details */
.contact-details {
    padding-bottom: 40px;
}

.map-container {
    margin-bottom: 30px;
    line-height: 0; /* May not be needed now, but doesn't hurt */
    /* Optional: Add aspect ratio control if needed */
    /* position: relative; */
    /* padding-bottom: 56.25%; /* 16:9 ratio */
    /* height: 0; */
    /* overflow: hidden; */
}

.map-container iframe {
    display: block; /* Prevent extra space below iframe */
    width: 100%;   /* Make the map fill the container width */
    height: 400px;  /* Set a desired height for the map */
    border: none;   /* Remove any default border */
    max-width: 100%; /* Ensure it doesn't overflow */
    /* If using aspect ratio method above, use these instead of width/height: */
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
}
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column default */
    gap: 30px;
}

.contact-column h3 {
    margin-bottom: 15px;
    color: #48487f;
}
.contact-column .button {
    margin-bottom: 15px; /* Space below buttons */
}

.contact-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 0; /* Remove default list padding */
}

address {
    font-style: normal;
    line-height: 1.5;
}

.hours-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse; /* Better table spacing */
}
.hours-table th {
    font-weight: 700; /* Use Montserrat Bold for days */
    padding-right: 15px;
    white-space: nowrap;
    vertical-align: top;
    padding-bottom: 5px; /* Add spacing */
}
.hours-table td {
    vertical-align: top;
    padding-bottom: 5px; /* Add spacing */
}


/* Footer */
.site-footer {
    padding-top: 20px;
    padding-bottom: 20px; /* Adjusted padding-bottom; bottom bar space is handled on body */
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #777;
    margin: 0 10px;
    text-decoration: none;
}
.footer-links a:hover {
    color: #48487f;
    text-decoration: underline;
}


/* Bottom Action Bar (Mobile Only) */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
}

.bottom-action-link {
    flex-grow: 1;
    text-align: center;
    color: #48487f;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700; /* Use Montserrat Bold */
    padding: 5px 0; /* Adjust padding slightly */
    display: flex; /* Use flex to arrange icon and text */
    flex-direction: column; /* Stack icon over text */
    align-items: center; /* Center items */
    justify-content: center; /* Center content vertically */
    line-height: 1.2; /* Adjust line height */
}
.bottom-action-link i {
    font-size: 1.2rem; /* Adjust icon size */
    margin-bottom: 4px; /* Space between icon and text */
}

.bottom-action-link:hover {
    background-color: #f8f8f8;
    text-decoration: none;
}

/* Responsive Adjustments */

@media (min-width: 640px) {
    body {
        padding-bottom: 0; /* Remove space for bottom bar on larger screens */
    }
    .navbar {
        padding: 0 40px;
    }
    .brand a {
        margin-left: 0; /* Reset margin if any */
    }
    .mobile-menu-toggle {
         margin-right: 0; /* Reset margin */
    }
    .nav-links {
        display: flex; /* Show desktop links */
        align-items: center;
    }
    .mobile-menu-toggle,
    .mobile-nav-menu,
    .bottom-actions {
        display: none; /* Hide mobile elements */
    }
    .hero {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 30px;
    }
    .hero-content {
        flex: 1;
        order: 1; /* Content first */
        margin-bottom: 0;
    }
    .hero-image {
        flex: 1;
        order: 2; /* Image second */
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
     .site-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px; /* Restore footer padding */
    }
     .footer-links {
        margin-bottom: 0;
        order: 1;
    }
    .footer-copyright {
        order: 2;
    }
}

@media (min-width: 992px) {
     .navbar {
        padding: 0 60px;
    }
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
    .gallery-grid {
         grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .gallery-item img {
        height: 300px;
    }
}

/* --- Custom Contact Form Styles --- */

.contact-form-section {
    padding-top: 40px; /* Add some space above the form */
    padding-bottom: 40px;
}

#hvs-contact-form {
    max-width: 700px; /* Limit form width for better readability on large screens */
    margin-left: auto;
    margin-right: auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700; /* Use Montserrat Bold */
    color: #48487f; /* Theme color */
    font-size: 0.95rem;
}

.form-group label .required {
    color: #d93025; /* Red asterisk for required fields */
    margin-left: 4px;
    font-weight: normal; /* Keep asterisk normal weight */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif; /* Ensure font consistency */
    line-height: 1.5;
    background-color: #f8f8f8; /* Light background for inputs */
    color: #333;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #48487f; /* Highlight with theme color on focus */
    background-color: #fff;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize, not horizontal */
    min-height: 120px;
}

.form-actions {
    text-align: center; /* Center the submit button */
    margin-top: 30px;
}

/* Style the submit button using existing classes */
#submit-button {
     /* Uses .button and .button-primary styles */
     /* Add any specific overrides if needed */
     min-width: 150px;
}
#submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Form Status Message (for success feedback) */
.form-status-message {
    max-width: 700px;
    margin: 0 auto 25px auto; /* Center it like the form */
    padding: 15px 20px;
    background-color: #e6f4ea; /* Light green background */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb; /* Green border */
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

/* Responsive adjustments for the form */
@media (max-width: 768px) {
    #hvs-contact-form {
        max-width: 100%; /* Allow form to take full width */
    }
}