﻿/* =========================================================
   1. RESET & BASE STYLES
   ========================================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background: #f4f8fc; /* very light blue */
    display: flex;
    flex-direction: column;
}

hr {
    height: 4px;
    background: #c0d3e8;
    border: none;
    margin: 2rem 0;
}


main {
    flex: 1;                     /* main grows to push footer down */
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0078d4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   GRID (FULL-WIDTH, RESPONSIVE)
   ========================================================= */

.product-grid {
    width: 100%;
    max-width: 100%;             /* prevents overflow */
    margin: 2rem auto;           /* spacing above/below */
    padding: 0 1.5rem;           /* matches .content padding */
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    box-sizing: border-box;
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   2. LAYOUT CONTAINERS
   ========================================================= */

.container {
    margin: 0 auto;
    padding: 1.5rem;
}

.content {
    padding: 1.5rem;
}



/* =========================================================
   3. NAVBAR (STICKY TOP)
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #203040;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 100%;       /* your new full-width alignment */
    margin: 0 auto;
    padding: 0 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;      /* THIS stops the links dropping under the logo */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space between icon and text */
    white-space: nowrap;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    image-rendering: crisp-edges; /* keeps small icons sharp */
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    font-size: 1rem;
}


/* =========================================================
   4. FOOTER (STICKY BOTTOM)
   ========================================================= */

.footer {
    display: flex;
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* centre the copyright */
    padding: 12px 28px;
    background: #e8f0fa;
    color: #333;
    font-size: 0.9rem;
    border-top: 1px solid #c0d3e8;
}

.footer p {
    margin: 4px 0;
}

.footer p:last-child {
    align-self: flex-end;     /* push donate link to the right */
}

.footer-donate-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #635bff;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.footer-donate-btn:hover {
    background: #4f48d6;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    background: #0078d4; /* primary blue */
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    background: #005fa3; /* darker blue */
}

.card .button + .button {
    margin-top: 0.75rem; /* space between stacked buttons */
}




/* =========================================================
   6. CARDS
   ========================================================= */


.card {
    background: #ffffff;
    border: 1px solid #c9d9ea;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}



.card-image {
    width: 100%;
    height: 160px;
    background: #f4f4f4;
    border-radius: 6px;
    margin-bottom: 0.75rem;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden; /* ensures the container keeps its height */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* full image, no cropping */
    padding: 10px;       /* symmetrical spacing */
}








.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

    background-color: #f7fbff;   /* soft blue tint */
    border-color: #a9c4e2;       /* slightly stronger blue-grey */
}

.card:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    background-color: #eef5fb;   /* slightly stronger tint */
    border-color: #8fb4d8;
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.card .button {
    margin-top: auto;   /* pushes the button to the bottom */
}

/* =========================================================
   7. Contacts
   ========================================================= */

.contact-section {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    line-height: 1.6;
}

.contact-email a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0078d4;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}



