/* Global settings */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

/* Headline */
h1, .headline {
    font-weight: 800;           /* Extra Bold */
    letter-spacing: -0.02em;    /* -20 tracking */
    text-transform: none;
}

/* Sub-headline */
h2, .sub-headline {
    font-weight: 600;           /* Semi-bold or Medium */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Body Copy */
p, .body-text {
    font-weight: 300;           /* Light */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Specification Label */
.spec-label {
    font-weight: 900;           /* Black */
    font-style: italic;
    letter-spacing: 0.04em;     /* +40 tracking */
    text-transform: none;
}


/* Headline */
h1, .headline {
    font-weight: 800;           /* Extra Bold */
    letter-spacing: -0.02em;    /* -20 tracking */
    text-transform: none;
}

/* Sub-headline */
h2, .sub-headline {
    font-weight: 600;           /* Semi-bold or Medium */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Body Copy */
p, .body-text {
    font-weight: 300;           /* Light */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Specification Label */
.spec-label {
    font-weight: 900;           /* Black */
    font-style: italic;
    letter-spacing: 0.04em;     /* +40 tracking */
    text-transform: none;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensures the header stays above other content */
    /* Remove the solid background color to allow the transparent nav to show the image */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px; /* Adjust the padding to better fit your logo and button */
    background-color: rgba(0, 0, 0, 0.7); /* This provides the dark transparent background */
    height: 40px; /* Adjusted for a thinner header */
    /* Rest of your styles... */
}

.logo-link {
    display: flex;
    align-items: center;
    /* No padding needed if you're using margin on the logo itself */
}

.logo {
    height: 30px; /* Adjust for a visible logo size */
    width: auto; /* Keeps the aspect ratio of the logo */
    /* No negative margin, adjust the actual header height instead */
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center; /* This will vertically center your nav items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
    padding: 0 5px;
    margin: 0; /* Ensure there's no additional space from margins */
    line-height: 1;
    /* You can add line-height or padding here if you need to adjust the vertical alignment */
}

/* Navigation links styling */
.nav-links a {
    text-decoration: none; /* Removes underline by default */
    color: #ffffff; /* White text color */
    font-size: 1rem; /* Adjust the font size as needed */
    padding: 10px 15px; /* Padding for better click area */
    display: block; /* Makes the anchor tag fill the list item */
    transition: color 0.3s ease; /* Smooth transition for color changes */
}

/* Hover effect for navigation links */
.nav-links a:hover, .nav-links a:focus {
    color: #1a9e8c; /* Changes text color to aquamarine on hover and focus */
}

header .buy-now, a.buy-now-button {
    display: inline-flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    background-color: #18B19C !important; /* Green background */
    color: white !important; /* White text */
    text-decoration: none !important; /* Remove underline */
    padding: 5px 15px !important; /* Smaller padding for a smaller button */
    border: none !important; /* Remove border */
    border-radius: 25px !important; /* Rounded corners */
    font-size: 1rem !important; /* Slightly smaller font size */
    font-weight: bold !important; /* Bold text */
    cursor: pointer !important; /* Pointer cursor */
    transition: background-color 0.3s ease, transform 0.3s ease !important; /* Smooth transitions */
    text-align: center !important; /* Ensure centered text */
    line-height: normal; /* Reset line-height for consistency */
}



/* Hover Effect for the Buy Now Button */
header .buy-now:hover, a.buy-now-button:hover {
    background-color: #149483 !important; /* Darker green on hover */
    color: white !important; /* Ensure text remains white */
}

/* Responsive Styling for Smaller Devices */
@media (max-width: 768px) {
    header .buy-now, a.buy-now-button {
        font-size: 1.2rem !important; /* Slightly larger font size for mobile */
        padding: 15px 30px !important; /* Larger padding for tap area */
    }
}

/* Target the Buy Now button in the navbar */
header nav .nav-links .buy-now-button {
    display: inline-block;
    background-color: #18B19C; /* Green background */
    color: white; /* White text */
    text-decoration: none;
    padding: 5px 10px; /* Adjust padding for click area */
    border: 0px solid #18B19C; /* Green border */
    border-radius: 25px; /* Rounded corners */
    font-size: 0.8rem; /* Standard font size */
    font-weight: bold; /* Bold text for emphasis */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-left: 10px; /* Spacing from other nav items */
    white-space: nowrap; /* Prevents text wrapping */
}

/* Hover effect for the Buy Now button */
header nav .nav-links .buy-now-button:hover {
    background-color: #18B19C; /* Darker green on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header nav .nav-links .buy-now-button {
        font-size: 1.2rem; /* Increase font size for smaller screens */
        padding: 15px 40px; /* Larger padding for better tap area */
        width: 100%; /* Take up more width on mobile */
        text-align: center; /* Center-align text */
        margin: 10px auto; /* Center the button in the navbar */
    }
}

/* Hamburger Button */
.hamburger {
    display: none; /* Hidden by default for larger screens */
    cursor: pointer;
    font-size: 30px;
    color: white;
}

/* Navigation Menu */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Horizontal layout by default */
}

.nav-links li {
    margin: 0 -10px; /* Closer spacing for large screens */
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 30px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #18B19C; /* Highlight color */
}

/* Mobile Menu Styles */
@media (max-width: 768px) {

    /* Hamburger Button */
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 30px;
        color: white;
        transition: transform 0.3s ease;
        z-index: 2000; /* Ensure it stays above the navbar */
    }

    /* Add a rotation effect or change icon for "open" state */
    .hamburger.open {
        transform: rotate(90deg); /* Rotate for open state (optional) */
    }

    /* Ensure the hamburger is always visible */
    .nav-links {
        z-index: 1500; /* Menu is below the hamburger */
        position: fixed; /* Ensure it doesn't hide the hamburger */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        margin: 15px 0;
        opacity: 0; /* Initially hidden */
        transform: translateY(20px);
        font-size: 4rem; /* Larger text size for mobile titles */
        font-weight: bold; /* Make titles bold */
        animation: fadeInUp 0.5s forwards;
    }

    .nav-links.active li {
        animation: fadeInUp 0.5s forwards; /* Fade-in animation */
    }

    .nav-links.exiting li {
        animation: fadeOutDown 0.5s forwards; /* Reverse fade-out animation */
    }

    .nav-links li a {
        text-decoration: none;
        color: white;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .nav-links li a.clicked {
        transform: scale(1.2); /* Slightly enlarge on click */
        color: #1abc9c; /* Highlight color */
    }

    @keyframes fadeInSmooth {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeOutSmooth {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateY(20px);
        }
    }
    
    /* Ensure animations retain their end states */
    .nav-links li {
        animation-fill-mode: forwards; /* Retain the final animation state */
        will-change: opacity, transform; /* Optimize performance */
    }
}

/* Media Query for Larger Screens */
@media (min-width: 769px) {
    .nav-links li {
        margin: 0 5px; /* Closer spacing between links */
    }

    .nav-links li a {
        font-size: 1rem; /* Keep default size on larger screens */
    }
}

body.hsa-page {
    font-family: 'poppins', sans-serif;
    background-color: #f7fafa;
    color: #222;
    margin: 0;
    padding: 0;
  }
  .hsa-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: #18B19C;
    color: white;
  }
  .hsa-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .hsa-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
  }
  .hsa-instructions,
  .hsa-download,
  .hsa-contact {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  .hsa-instructions h2,
  .hsa-download h2,
  .hsa-contact h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #18B19C;
  }
  .hsa-instructions ol {
    margin-left: 1.2rem;
    padding-left: 1rem;
  }
  .hsa-instructions ol li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }
  .hsa-download .download-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #18B19C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 1rem;
  }
  .hsa-download .download-button:hover {
    background-color: #149482;
  }
  .hsa-contact a {
    color: #18B19C;
    text-decoration: underline;
  }


/* Footer Styles */
.site-footer {
    background-color: #414141; /* Dark grey background */
    color: #fff; /* White text */
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative; /* To ensure footer-bottom can align correctly */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Navigation, Social Media, and Info */
.footer-nav,
.footer-social,
.footer-info {
    flex: 1 1 calc(33.33% - 20px); /* Responsive grid */
    min-width: 200px;
}

.footer-nav h3,
.footer-social h3,
.footer-info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-social ul li a {
    color: #ccc; /* Light grey links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
    color: #02917a; /* Green hover color */
}

/* Footer Info Section */
.footer-info {
    font-size: 0.9rem;
    color: #ccc; /* Light grey text */
    line-height: 1.6; /* Better readability */
}

.footer-info p {
    margin: 10px 0; /* Add spacing between lines */
}

.footer-info a {
    color: #18B19C; /* Replace with your brand's specific green color code */
    text-decoration: none; /* Optional: removes underline from the link */
}

.footer-info a:hover {
    color: #016954; /* Darker green for hover, adjust as needed */
    text-decoration: underline; /* Optional: adds underline on hover for better usability */
}


/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #bbb; /* Lighter grey for bottom text */
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem; /* Slightly larger for clarity */
    font-weight: bold; /* Make Reel Free stand out */
    color: #fff;
}

.footer-brand {
    font-weight: 700; /* Bold */
    color: #fff;
}

.footer-year {
    font-weight: 500; /* Medium */
    color: #ccc;
}

.footer-rights {
    font-weight: 300; /* Light */
    color: #bbb;
}

.footer-divider {
    margin: 0 0.3rem;
    color: #999;
}

/* Media Query for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack footer sections vertically */
        align-items: center;
        text-align: center;
    }

    .footer-nav,
    .footer-social,
    .footer-info {
        flex: 1 1 100%; /* Each section takes full width */
        margin-bottom: 20px; /* Add spacing between stacked sections */
    }

    .footer-bottom {
        margin-top: 20px; /* Adjust margin for smaller screens */
    }
}
