/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f2f4ff;
}

/* Page Wrapper */
#page-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    margin-top: 1%;
    padding-top: 30%;
    background-color: #e5e6eb;
    color: #0011c8;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 2px solid #5e6175;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation Menu */
#nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: center;
}

#nav-menu a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #0a0c22;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    white-space: nowrap;
}

#nav-menu a:hover {
    background-color: #555;
    transform: scale(1.05);
}

#nav-menu a:active {
    background-color: #666;
    transform: scale(1);
}

#nav-menu a.buy-now {
    background-color: #d90429;
    font-weight: bold;
}

#nav-menu a.buy-now:hover {
    background-color: #a50320;
}

/* Mobile Menu Button */
#menu-button {
    display: none;
    width: 50px;
    background: url('images/menu.png') no-repeat center center / contain;
    border: 10px solid #0a0c22;
    background-color: #0a0c22;
    border-radius: 10%;
    cursor: pointer;
}

@media (max-width: 900px) {
    #menu-button {
        display: block;
    }

    #nav-menu {
        display: none;
    }
}

/* Logo */
#logo {
    height: 30%;
    width: auto;
    padding-left: 5%;
}

/* Logo Center */
.logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: nowrap;
}

#Rheem_logo, #Mitsubishi_Electric_1 {
    height: clamp(80px, 10vw, 120px);
    width: auto;
    flex-shrink: 0;
}

/* Services Section */
.service-header {
    text-align: center;
    margin: 0;
    padding: 0;
}

.service-header h2 {
    font-size: 3rem;
    margin: 0;
    padding-top: 10px;
}

#services-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 30px 0;
}

.service-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    width: 320px; /* Card width */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Rheem: two images stacked */
.rheem-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0a0c22;
    color: white;
    border: none;
    font-size: 24px;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 40%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.carousel-btn.left {
    left: -15px;
}

.carousel-btn.right {
    right: -15px;
}

.carousel-btn:hover {
    background-color: #8c90c3;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 15px auto;
}

/* Main Content */
main {
    flex: 1;
    padding: 20px;
    text-align: center;
    background-color: #f2f4ff;
}

/* Footer */
footer {
    background-color: #0a0c22;
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Flex Container for Owners */
#owners-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 20px 0;
}

.owner-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.owner-box:hover {
    transform: scale(1.05);
}

.owner-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Map */
#map {
    height: 0; /* Start with no height */
    padding-top: 56.25%; /* Aspect ratio: 16:9 */
    width: 100%; /* Full width of the card */
    max-height: 80px; /* Adjust to fit content */
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Ensure proper positioning */
}

/* Responsive Adjustments */
@media (max-width: 700px) {
    #owners-container {
        flex-direction: column;
        align-items: center;
    }

    .owner-box {
        width: 90%;
    }
}

.home-header-text {
    opacity: 0; /* Start hidden */
    animation: fadeInText 2s ease-in-out forwards; /* Fade-in animation */
    text-align: center; /* Center the text */
    margin-bottom: 50px;
}

.home-header-text h2 {
    font-size: clamp(2rem, 5vw, 4rem); /* Minimum 1.5rem, scales with viewport width, max 3rem */
    margin: 0;
}

.home-header-motto h2 {
    font-size: clamp(1rem, 4vw, 1.5rem); /* Minimum 1.5rem, scales with viewport width, max 3rem */
    margin-bottom: 5%;
    color: #5e6175;
    font-style: italic;
}

.home-header-text h3 {
    font-size: clamp(1rem, 2vw, 2rem); /* Minimum 1rem, scales with viewport width, max 2rem */
    margin: 0;
}

/* Keyframe animation for fade-in */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px); /* Slight upward movement */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Reset position */
    }
}

#info-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    margin: 30px 0;
}

#info-container .service-card {
    width: 320px; /* Match the width of other service cards */
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#info-container .service-card:hover {
    transform: scale(1.05); /* Add hover effect */
}

#info-container .service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

#info-container #map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 700px) {
    #info-container {
        flex-direction: column;
        align-items: center;
    }

    #info-container .service-card {
        width: 90%; /* Adjust width for smaller screens */
    }
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

section h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Minimum 2rem, scales with viewport width, max 4rem */
    margin-bottom: 20px; /* Keep consistent spacing below */
    margin-top: 0; /* Remove any top margin */
    text-align: center; /* Ensure the text is centered */
}

section h2 {
    font-style: italic;
    margin-bottom: 5%; /* Adjust the value as needed */
    color: #5e6175;
}

section h2 a {
    color: #67b3f1; /* Replace with your desired color */
    text-decoration: none; /* Optional: Remove underline */
}

section h2 a:hover {
    color: #3b6ef0; /* Optional: Change color on hover */
    text-decoration: underline; /* Optional: Add underline on hover */
}

section {
    margin-top: 0; /* Ensure the section itself has no top margin */
}

a.service-card {
    display: block;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    max-height: 500px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.service-card:hover {
    transform: scale(1.05); /* Add hover effect */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .logo-center {
        flex-wrap: wrap; /* Allow wrapping */
        gap: 10px; /* Reduce gap for smaller screens */
    }

    #Rheem_logo, #Mitsubishi_Electric_1 {
        max-width: 80%; /* Logos take up more space when stacked */
    }
}

#side-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    width: 100%; /* Full screen width */
    height: 100%; /* Full screen height */
    background-color: rgba(2, 6, 36, 0.95); /* Semi-transparent black background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: right 0.4s ease; /* Smooth slide-in effect */
}

#side-menu.open {
    right: 0; /* Slide into view */
}

#side-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

#side-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#side-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Highlight on hover */
}

#side-menu a.buy-now {
    background-color: #d90429;
    font-weight: bold;
    padding: 15px 25px;
}

#side-menu a.buy-now:hover {
    background-color: #a50320;
}

#close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#close-menu:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}

.zip-code-finder {
    margin-top: 10px;
    margin-bottom: 0px;
    text-align: center;
}

.zip-code-finder h4 {
    margin-bottom: 5px; /* Reduce space below the heading */
    font-size: .8rem; /* Slightly larger font for better readability */
    color: #333; /* Darker text color */
}

.zip-code-finder input {
    width: 50%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 25px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.zip-code-finder input:focus {
    border-color: #67b3f1; /* Highlight border on focus */
    box-shadow: 0 4px 8px rgba(103, 179, 241, 0.3); /* Glow effect */
}

.zip-code-finder button {
    padding: 12px 20px;
    background-color: #67b3f1; /* Light blue background */
    color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.zip-code-finder button:hover {
    background-color: #3b6ef0; /* Darker blue on hover */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 8px rgba(59, 110, 240, 0.3); /* Enhanced shadow */
}

.zip-code-finder button:active {
    background-color: #2a5bbd; /* Even darker blue on click */
    transform: scale(0.95); /* Slight shrink effect */
}

.zip-code-finder #result {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555; /* Neutral text color */
}

.map-container h4{
    margin-top: 10%;
    font-size: .8rem;
    font-style: italic;
    color: #414574;
}

.red-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #d90429; /* Red background */
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.red-button:hover {
    background-color: #a50320; /* Darker red on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

.red-button:active {
    background-color: #7a0218; /* Even darker red on click */
    transform: scale(0.95); /* Slight shrink effect */
}

.phone-link {
    color: #4e58c2; /* Red color for emphasis */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.phone-link:hover {
    color: #29b3dd; /* Darker red on hover */
    text-shadow: 0 0 5px rgba(80, 80, 80, 0.5); /* Subtle glow effect */
}

.phone-link:active {
    color: #612c71; /* Even darker red on click */
}