/* ================================================
   Project: Carnation Joy Website
   Author: [Galen Yuan]
   Date: [06/06/2024]
   File: header.css
   Description: Styles for the header section, including top container,
                logo, and header content.
   ================================================= */
.top-container {
    background-color: #ffffff;
    padding: 10px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.0rem;
    font-weight: bold;
}

.contact-info span, .contact-info a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff6666;
}

.email-button, .call-button {
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.email-button:hover, .call-button:hover {
    color: #ff6666; /* Change color on hover */
}


.contact-info img {
    margin-right: 5px;
    width: 20px;
    height: auto;
}

/* Logo and Site Title */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    margin-right: 15px;
    transition: transform 0.3s;
}

.site-title-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: color 0.3s;
    margin-bottom: 5px;
    transition: transform 0.3s ease-in-out;
}

.site-title-container:hover {
    transform: scale(1.2);
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.carnation {
    color: #d6336c; /* Pink color inspired by carnations */
}

.joy-care {
    color: #057c85; /* Light blue color for Joy Care */
}

.site-subtitle {
    font-size: 1.2rem;
    display: block;
    margin-left: 10px;
    letter-spacing: 0.05em;
}

/* Header Container */
.header-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    padding: 40px 80px;
    background-color: #f5e1e1;
    color: #333;
    position: relative;
    align-items: center;
    gap: 20px;
}

/* Header Content */
.header-content {
    flex: 1 1 50%; /* Flex-grow, flex-shrink, flex-basis */
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #057c85;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(214, 51, 108, 0.2);
}

.header-content p {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background-color: #057c85;
    color: #ffffff;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    align-self: center; /* Center the button */
}

.btn-primary:hover {
    background-color: #b8295a;
    transform: scale(1.05);
}

/* Header Image */
.header-image {
    flex: 1 1 50%; /* Flex-grow, flex-shrink, flex-basis */
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image img {
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Responsive Adjustments */
/* === 📱 MOBILE VIEW (iPhone 12/13/14, Pixel, Samsung) === */
@media (max-width: 675px) {
    /* Keep only logo and title */
    .contact-info {
        display: none; /* Hide extra details */
    }

    .top-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }

    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px; /* Add some space between logo and text */
    }

    .logo {
        width: 65px; /* Reduce size for better alignment */
        margin-bottom: 0;
    }

    .site-title {
        font-size: 1.6rem; /* Reduce size so it fits in one line */
        white-space: nowrap; /* Prevents it from wrapping into two lines */
        text-align: left;
    }

    /* Center the subtitle below the title */
    .site-subtitle {
        font-size: 1rem;
        text-align: center;
        display: block;
        width: 100%;
        margin-top: 5px;
    }

    /* 🔥 Fix Overlapping Issue */
    .header-container {
        padding: 20px; /* Reduce padding for better spacing */
        flex-direction: column;
        height: auto; /* Removes fixed height */
        text-align: center;
    }

    .header-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 10px; /* Add some padding for better spacing */
    }

    .header-content h1 {
        font-size: 2rem; /* Adjust font size */
        line-height: 1.2; /* Improve readability */
        margin-bottom: 10px; /* Reduce extra space */
    }

    .header-content p {
        font-size: 1.1rem;
        max-width: 90%;
        text-align: center;
    }

    /* Fix button placement */
    .btn-primary {
        display: block;
        text-align: center;
        margin: 10px auto; /* Centers it */
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Responsive Adjustments for Tablets and Small Laptops */
/* Target devices with screen widths between 675px and 1024px */
@media (max-width: 1200px) and (min-width: 676px) {
    .top-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .logo {
        width: 80px; /* Adjust size as needed */
        margin-bottom: 5px;
    }

    .site-title {
        font-size: 2rem; /* Adjust size as needed */
    }

    .site-subtitle {
        font-size: 1.1rem; /* Adjust size as needed */
    }

    .header-container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .header-content {
        padding-right: 0;
        align-items: center;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content p {
        font-size: 1.2rem;
    }

    .btn-primary {
        align-self: center;
    }

    .header-image {
        margin-top: 20px;
    }

    .header-image img {
        width: 100%;
    }
}
