﻿/* ========= Base (mobile-first) ========= */
:root {
    --card-max: 900px; /* desktop max width for the content card */
    --card-radius: 14px;
    --card-shadow: 0 8px 24px rgba(0,0,0,.35);
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: clamp(12px, 4vw, 24px);
    /* Background */
    background-image: url("background_bay3.png"), url("background_bay3.jpg");
    background-size: auto;
    background-repeat: repeat;
    background-attachment: scroll; /* smoother on mobile; switches to fixed on larger screens */
    background-position: center;
    color: #f5f5f5;
}

/* Typography */
h1, h2 {
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    margin: 0 0 .6em 0;
}

h2 {
    font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    margin: 1.25em 0 .5em;
}

p, ul, li, a {
    color: #f0f0f0;
    text-shadow: 1px 1px 2px #000;
    font-size: clamp(.95rem, 2.6vw, 1.05rem);
}

a {
    color: #80cfff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

ul {
    padding-left: 1.25rem;
}

/* ======= Reusable site menu ======= */
.site-menu {
    margin-bottom: 1.5rem;
    text-align: center;
}

    .site-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .site-menu a {
        font-weight: bold;
        text-decoration: none;
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        padding: .25rem .5rem;
        border-radius: 8px;
    }

        .site-menu a:hover {
            text-decoration: underline;
        }
        /* Active page: set aria-current="page" on the current page’s link */
        .site-menu a[aria-current="page"] {
            text-decoration: underline;
            outline: 2px solid rgba(128,207,255,.35);
        }

/* Optional: buttons in links section */
.links {
    margin-top: 1rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.link-button {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 10px;
    background: rgba(0,0,0,.35);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

    .link-button:hover {
        background: rgba(0,0,0,.5);
        text-decoration: none;
    }

/* ======= Responsive “card” with background image ======= */
.table-with-background {
    /* your existing layout props... */
    width: 100%;
    max-width: var(--card-max);
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    background-image: url('equiapp_background.png');
    background-repeat: no-repeat;
    background-position: top center;
    /* Key line: scale by width only and cap at the image’s native width */
    /* If your PNG is, say, 1100px wide, use that as the max. Adjust as needed. */

}

    /* Inner padding + subtle overlay for readability */
    .table-with-background td {
        padding: clamp(16px, 4vw, 36px);
        background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.45));
    }

/* ========= Breakpoints ========= */

/* ≥ 600px (small tablets) */
@media (min-width: 600px) {
    body {
        background-attachment: fixed;
    }
    /* parallax-like feel */
    .table-with-background {
        min-height: 65vh;
    }
}

/* ≥ 900px (laptops) */
@media (min-width: 900px) {
    :root {
        --card-max: 900px;
    }

    .table-with-background {
        min-height: 70vh;
    }
}

/* ≥ 1200px (desktops) */
@media (min-width: 1200px) {
    :root {
        --card-max: 1100px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .table-with-background {
        min-height: 70vh;
    }
}
