/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left {
    float: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.header-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.header-nav {
    float: right;
    padding-top: 15px;
    display: flex;
    align-items: center;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-nav ul li {
    display: inline-block;
    margin-left: 30px;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    padding: 0 5px;
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1em;
}

nav ul li a:hover {
    color: #4CAF50;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-right .cta-button {
    font-size: 1em;
    padding: 8px 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

.mobile-menu-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.header-nav .quote-button {
    margin-left: 30px;
}

.header-nav .quote-button .cta-button {
    padding: 8px 20px;
    font-size: 14px;
    background-color: #00843D;
    color: white;
    transition: all 0.3s ease;
}

.header-nav .quote-button .cta-button:hover {
    background-color: #006B31; /* Darker shade of green */
    color: white; /* Ensure text stays white on hover */
}

/* Alternative hover style option */
/* If you prefer a different hover effect, we could use this instead:
.header-nav .quote-button .cta-button:hover {
    background-color: white;
    color: #00843D;
    border: 2px solid #00843D;
} */

@media (max-width: 768px) {
    body.menu-active {
        overflow: hidden;
    }

    header {
        height: auto;
        padding: 0.5rem;
    }

    header .container {
        flex-wrap: wrap;
    }

    .header-left {
        flex: 1;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .header-center {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        background-color: #ffffff;
        padding: 80px 20px 40px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
    }

    .header-center.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 1;
        visibility: visible;
    }

    .header-center nav {
        width: 100%;
    }

    .header-center nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-center nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .header-center nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.2em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10000;
    }

    .header-right {
        display: none;
    }

    .header-nav .quote-button {
        margin: 15px 0;
    }
    
    .header-nav .quote-button .cta-button {
        display: inline-block;
    }
}

/* Pop-up styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#popup-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Pop-up styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
    color: #4CAF50;
    text-decoration: none;
    cursor: pointer;
}

#popup-title {
    color: #4CAF50;
    margin-bottom: 15px;
}

#popup-details {
    margin-bottom: 15px;
}

#popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.view-details {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.view-details:hover {
    text-decoration: underline;
}
.cta-button {
    background-color: #4CAF50; /* Adjust to match brand color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #45a049; /* Darker shade of the brand color */
}

/* Hero section styles */
.hero {
    background-image: url('/Volumes/LaCie/compactus_care/images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

/* Hyperlink styles */
.service-content a,
.product-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.service-content a:hover,
.product-content a:hover {
    color: #45a049;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero .cta-button {
    margin: 0 10px;
}

.hero .secondary {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.hero .secondary:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.hero .content-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.hero .content-wrapper h1,
.hero .content-wrapper p,
.hero .content-wrapper .cta-button {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero .content-wrapper {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Services section styles */
#services {
    padding: 80px 0;
    background-color: #fff;
}

#services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    padding-top: 40px; /* Add consistent top padding */
}

.services-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
    }
}

.service {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: calc(33.33% - 20px);
    min-height: 250px;
}

.service:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .service {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        min-height: auto;
    }
}
.product-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Ensure product icons match service icons */
.product-icon,
.service-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
    object-fit: contain;
}
    object-fit: contain; /* Ensure the icon fits within the dimensions */
}

.service-content {
    flex-grow: 1;
}

/* Products section styles */
#products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.product-filters {
    margin-bottom: 40px;
}

.product-filters ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.product-filters li {
    flex: 0 0 auto;
    margin: 0 5px;
}

.filter-button {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.filter-button.active,
.filter-button:hover {
    background-color: #4CAF50;
    color: white;
}

@media (max-width: 768px) {
    .filter-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
}

.product-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.product-content {
    flex-grow: 1;
}

.product:hover {
    transform: translateY(-5px);
}

@media (max-width: 480px) {
    .product {
        height: auto;
        min-height: 150px;
    }
}
}

.product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.product h3 {
    margin-bottom: 10px;
    color: #333;
}

.product p {
    margin-bottom: 15px;
    color: #666;
}

.learn-more {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #45a049;
}
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service h3 {
    margin-bottom: 10px;
    color: #4CAF50; /* Adjust to match brand color */
}

.service p {
    margin-bottom: 15px;
    flex-grow: 1; /* Allow paragraph to grow and push 'Learn More' to bottom */
}

.learn-more {
    align-self: flex-start; /* Align 'Learn More' to the left */
}

.learn-more {
    color: #4CAF50; /* Adjust to match brand color */
    text-decoration: none;
    font-weight: bold;
}

/* Products section styles */
#products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.product-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-button:hover {
    transform: translateY(-5px);
}

.product-button img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-button h3 {
    margin-bottom: 5px;
    color: #333;
}

.product-button p {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Section heading styles */
.section-heading {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* About section styles */
#about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* Styles for specific section headings */
#services h2,
#products h2,
#about h2,
#testimonials h2,
#contact h2 {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

#about .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#about .about-content {
    flex: 1;
    padding-right: 40px;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

#about ul {
    list-style-type: none;
    padding-left: 0;
}

#about ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
    color: #333;
}

#about ul li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

#about .about-image {
    flex: 0 0 40%;
    max-width: 40%;
}

#about .about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #about .container {
        flex-direction: column;
    }

    #about .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    #about .about-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Testimonials section styles */
#testimonials {
    padding: 80px 0;
    background-color: #f0f0f0; /* Adjust to match brand color */
}

#testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* Contact section styles */
#contact {
    padding: 80px 0;
    background-color: #fff;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact input,
#contact select,
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

#contact textarea {
    height: 150px;
}

/* Footer styles */
footer {
    background-color: #121F28;
    color: #fff;
    padding: 50px 0;
}

footer nav ul {
    justify-content: center;
    margin-bottom: 30px;
}

footer nav ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #00843D; /* Keeping the hover state using your brand green */
}

.social-icons {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info a {
    color: inherit;  /* This will make the links inherit the white text color */
    text-decoration: none;
}

.contact-info a:hover {
    color: #00843D;  /* Your brand green for hover state */
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    #services,
    #products,
    #about,
    #testimonials,
    #contact {
        padding: 50px 0;
    }
}

/* Replace any instances of the old green */
.service-icon {
    color: #00843D;  /* Changed from #4CAF50 */
}

.service:hover {
    border-color: #00843D;  /* Changed from #4CAF50 */
}

.progress-bar {
    background-color: #00843D;  /* Changed from #4CAF50 */
}

.success-message {
    color: #00843D;  /* Changed from #4CAF50 */
}

.highlight {
    color: #00843D;  /* Changed from #4CAF50 */
}

/* Any other elements using the old color */
[class*="success"] {
    color: #00843D;  /* Changed from #4CAF50 */
}

.icon-success {
    fill: #00843D;  /* Changed from #4CAF50 */
}

/* Header and Navigation Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00843D;
    margin: 5px 0;
    transition: 0.4s;
}

/* Adjust breakpoint for mobile menu */
@media screen and (max-width: 991px) {  /* Increased from 768px for better tablet support */
    .hamburger-menu {
        display: block;
    }

    .header-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 0;
    }

    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .header-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .header-nav ul li:last-child {
        border-bottom: none;
    }

    .header-nav .quote-button {
        margin: 15px 0;
    }

    /* Hamburger menu animation */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Ensure desktop menu works properly above breakpoint */
@media screen and (min-width: 992px) {
    .header-nav {
        display: flex !important;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 991px) {
    .header-text h1 {
        font-size: 18px; /* Smaller font size for mobile */
    }
    
    .header-text p {
        font-size: 12px; /* Smaller font size for mobile */
    }

    .header-left {
        max-width: 80%; /* Give more space for the text */
    }

    .logo {
        max-width: 50px; /* Make logo smaller on mobile */
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .header-text {
        display: flex; /* Change from 'none' to 'flex' */
    }
}
