/* ========================================
   VARIABLES
======================================== */

:root {
    --bg: #0f172a;
    --card: #f0f0f0;
    --accent: #38bdf8;
    --text: #202020;
    --muted: #94a3b8;
}

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

body, html {
    height: 100%;
    font-family: Arial,sans-serif;
    background: #0055a5;
    color: #fff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* ===== Header ===== */
/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;    left: 0;
    width: 100%;
    height: 60px;
    background: #0055a5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-header .logo {
    display: flex;
    align-items: center;
}

.site-header .logo img {
    height: 40px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}
.subhead {
    padding-top:2rem;
    padding-bottom:1rem;
}

.content h1 {
    padding-bottom:1rem;
}
.content ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

    .content ul li {
        content: "\25BA";
        list-style: none;
        position: relative;
        padding-left: 1.2rem;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
        color: #333;
        opacity: 1;
    }

/* Floating contact widget */
.contact-widget {
    position: fixed;
    right: 1rem;
    bottom: 4rem; /* above footer */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100; /* above everything else */
}

    .contact-widget a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        background: #0055a5;
        color: #fff;
        font-size: 1.5rem;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        text-decoration: none;
        transition: transform 0.2s ease, background 0.2s ease;
    }

        .contact-widget a:hover {
            background: #00428a;
            transform: translateY(-3px);
        }

#main-nav {
    display: flex;
    gap: 1.5rem;
}

    #main-nav a {
        position: relative;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 0.75rem;
        transition: color 0.2s;
    }

        #main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: #ffd700;
            transition: width 0.25s;
        }

        #main-nav a:hover::after,
        #main-nav a.active::after {
            width: 100%;
        }

        #main-nav a.active {
            font-weight: bold;
            color: #ffd700;
        }

.hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    transition: transform 0.2s ease;
}

/* ===== Footer ===== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0055a5;
    color: #fff;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    line-height: 1.4rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    overflow-wrap: break-word;
    z-index: 1000;
}

    .site-footer a {
        color: #ffd700;
        text-decoration: underline;
    }

        .site-footer a:hover {
            color: #fff;
        }

/* Footer collapsible */
.footer-collapsible .footer-full {
    max-height: none;
    overflow: hidden;
}

@media (max-width:768px) {
    .footer-collapsible {
        font-size: 0.7rem;
    }
    .footer-collapsible .footer-full {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-collapsible.open .footer-full {
        max-height: 500px;
    }

    .footer-toggle {
        float: right;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .footer-collapsible.open .footer-toggle {
        transform: rotate(180deg);
    }
}

/* ===== Content ===== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 70px 2rem 100px;
    background: #f0f0f0;
    color: #000;
}

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

.card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.card-icon {
    width: 250px;
    height: 100px;
    margin-bottom: 0.5rem;
    object-fit: contain; /* ensures correct aspect ratio */
    display: block;
}

.card-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

/* ===== Mobile nav ===== */
@media(max-width:768px) {
    .hamburger {
        display: block;
    }

    #main-nav {
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0055a5;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.25s ease-out;
        z-index: 999;
    }

        #main-nav.nav-open {
            transform: scaleY(1);
        }

        #main-nav a {
            padding: 1rem 2rem;
            border-top: 1px solid rgba(255,255,255,0.2);
        }
}

/* ===== Accordion ===== */
.accordion-item {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

    .accordion-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.accordion-header {
    cursor: pointer;
    padding: 1rem 1.2rem;
    background: #f5f5f5;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: background 0.2s;
}

    .accordion-header:hover {
        background: #e0e0e0;
    }

.accordion-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-item.open .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
    background: #fff;
    color: #000;
}

    .accordion-content p, .accordion-content ul {
        margin: 0.8rem 0;
    }

    /* Accordion list items with pop-in bullets */
    .accordion-content ul {
        padding-left: 1.2rem;
        margin: 0.5rem 0;
    }

        .accordion-content ul li {
            list-style: none;
            position: relative;
            padding-left: 1.2rem;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #333;
            opacity: 0;
            transform: translateX(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

            .accordion-content ul li::before {
                content: "\25BA";
                position: absolute;
                left: 0;
                top: 0;
                color: #0055a5;
                font-weight: bold;
                transform: scale(1.2);
                transition: color 0.2s ease;
            }

            .accordion-content ul li:hover {
                color: #0055a5;
                transform: translateX(2px);
            }

.accordion-item.open ul li {
    opacity: 1;
    transform: translateX(0);
}

    .accordion-item.open ul li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .accordion-item.open ul li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .accordion-item.open ul li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .accordion-item.open ul li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .accordion-item.open ul li:nth-child(5) {
        transition-delay: 0.25s;
    }

.products {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    display: block;
    background: var(--card);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
}

.product-card img {
    border-radius: 8px;
    margin-bottom: 10px;
    max-height:50vh;
    max-width:75vw;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 10px;
}
