/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d82;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 80px; /* Adjust based on your actual logo size */
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

nav a:hover, nav a.active {
    color: #0056b3;
}

/* ==========================================================================
   Main Layout & Sections
   ========================================================================== */

main > section {
    padding: 4rem 5%;
    margin: 0 0;
}

h1, h2, h3 { text-transform: uppercase; }

h2 { font-size: 2rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Specific Components (Grids & Flex layouts)
   ========================================================================== */
/* Hero Sections */
.hero {
    background-image: url('../images/hero-image-dark.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #001d3b;
    /* min-height: 400px; /* Adjust height to fit your design */
    align-items: center;
    justify-content: center;
	text-align: center;
}

.hero h1 {
    font-size: 2.5rem; color: white;
}
.hero p { color: white}

.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-image img {
    width: 100%;
    max-width: 530px; /* Approximately half of the original ~1,065px file width */
    height: auto;
    display: block;
}

/* Flexbox Splits (Image on one side, text on the other) */
.about, .product-details, .product-intro {
    display: flex;
    color: white;
	background-color: #094B92;
    gap: 4rem;
}

.about-image, .product-image, .about-text, .product-info, .product-text {
    flex: 1;
}

.our-brands h2, .contact h2 { text-align: center }

.product-info ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.product-info li {
    margin-bottom: 0.5rem;
}

/* Buttons */
/* Container for spacing below the bullet list */
.btn-container {
    margin-top: 2rem;
}

/* Amazon Pill Button */
.btn-amazon {
    display: inline-block;
    padding: 0.6rem 2rem;
    background-color: #ffd814; /* Classic Amazon button yellow */
    color: #0f1111;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;       /* Creates fully rounded ends */
}

/* Hover & Active States */
.btn-amazon:hover {
    background-color: white;
}

/* Grid Layouts (Brands, Products, Purchasing) */
.brand-grid {
	margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.buy-direct {
	color: white;
	background-color: #094B92;
	padding-top: 0;
}
.buy-direct a { color:aqua; }
.buy-direct a:hover { color: yellow; }

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.purchase-item img {
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.purchase-item a:hover img {
    transform: translateY(-10px);
}

/* Contact Section */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
    margin-top: 2rem;
}
.contact-item { margin: 0 auto; }
.contact-item img {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #001D3B;
    color: #fff;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design (Mobile Devices)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .about, .product-details, .product-intro, .contact-details {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

.about-image img { display: block; margin: 0 auto; }

    .product-info ul {
        text-align: left;
    }
}