﻿/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, select, textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Tokens ===== */
:root {
    --black: #000;
    --white: #fff;
    --green: #1DB954;
    --gray-100: #f2f2f2;
    --gray-200: #e6e6e6;
    --gray-300: #d9d9d9;
    --font-display: "Anton", system-ui, -apple-system, Arial, sans-serif;
    --font-heading: "Oswald","Bebas Neue", system-ui, -apple-system, Arial, sans-serif;
    --font-body: "Roboto Condensed", system-ui, -apple-system, Arial, sans-serif;
    --font-btn: "League Spartan", system-ui, -apple-system, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --content-max: 1200px;
    --shadow-1: 0 1px 6px rgba(0,0,0,.12);
}

/* ===== Base ===== */
body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0 0 .5em;
    line-height: 1.15;
}

h1 {
    font-family: var(--font-display);
}

h2, h3 {
    font-family: var(--font-heading);
}

.container {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-inline: clamp(16px,4vw,32px);
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    color: var(--black);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-1);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
}

.brand img {
    height: 48px;
    width: auto;
}

.hamburger {
    margin-left: auto;
    background: transparent;
    color: var(--black);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .35rem .6rem;
    font-size: 1.3rem;
    cursor: pointer;
}

.site-nav[hidden] {
    display: none;
}

.site-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .5rem 0 0;
    margin-left: auto;
}

    .site-nav a {
        color: var(--black);
        padding: .5rem .25rem;
        border-radius: 6px;
    }

        .site-nav a:hover {
            background: var(--gray-100);
        }

        .site-nav a.active {
            font-weight: 700;
            border-bottom: 2px solid var(--green);
        }

        .site-nav a.cta {
            background: var(--green);
            color: #fff;
            padding: .55rem .8rem;
            font-family: var(--font-btn);
            font-weight: 700;
            border-radius: 8px;
        }

/* ===== Hero ===== */
.hero {
    position: relative;
}

    .hero img {
        width: 100%;
        height: min(44vh,520px);
        object-fit: cover;
        opacity: .95;
    }

.hero-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.25));
}

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 4.5rem);
        margin: .25rem 0;
    }

    .hero-text p {
        max-width: 60ch;
        margin: .5rem auto 1rem;
        color: #e6e6e6;
    }

.btn {
    background: var(--green);
    color: #fff;
    padding: .75rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-btn);
    font-weight: 700;
    display: inline-block;
}

    .btn:hover {
        filter: brightness(1.08);
    }

/* ===== Highlights ===== */
.highlights {
    background: #fff;
    color: #111;
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem,3vw,2rem);
}

    .highlights article {
        background: #fff;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-lg);
        padding: 1rem;
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .highlights article:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0,0,0,.15);
        }

    .highlights h2 {
        color: #111;
        font-size: clamp(1.35rem,3vw,1.9rem);
    }

    .highlights p {
        color: #333;
        margin: .25rem 0 .6rem;
    }

.link {
    color: var(--green);
    font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #111;
    text-align: center;
    padding: 1.25rem;
    color: #cfcfcf;
    background: transparent;
}

/* Responsive */
@media (min-width:700px) {
    .site-nav[hidden] {
        display: flex !important;
    }

    .site-nav {
        flex-direction: row;
        gap: 1rem;
        padding: 0;
    }

    .hamburger {
        display: none;
    }

    .highlights {
        grid-template-columns: repeat(3,1fr);
        padding: 2rem;
    }
}

@media (min-width:1024px) {
    .hero img {
        height: 56vh;
    }
}

/* Print */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header, .site-footer, .hero img, .hamburger {
        display: none !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Safety overrides */
.site-header {
    background: #fff !important;
    color: #000 !important;
}

.site-nav a {
    color: #000 !important;
}

.hamburger {
    color: #000 !important;
}

/* === Why The Pub chips === */
.why-pub {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.chip {
    background: #111;
    color: #fff;
    border: 1px solid var(--gray-300);
    padding: .5rem .8rem;
    border-radius: 999px;
    font-weight: 700;
}

/* === Green Border Box === */
.why-pub-box {
    border: 2px solid var(--green);
    border-radius: 12px;
    padding: 1rem;
    display: inline-block;
    text-align: center;
}

/* === Footer Icon Fix === */
.site-footer .social .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    fill: currentColor;
}

/* =======================================================================
   TRAINERS — (from earlier) Mobile pill wrap and Tablet matching, etc.
   (If you already added earlier tweaks, keep them. They’re compatible.)
   ======================================================================= */

/* MOBILE pills can wrap */
@media (max-width: 600px) {
    .highlights .btn {
        display: inline-flex;
        align-items: center;
        white-space: normal;
        line-height: 1.2;
        padding: .45rem .65rem;
        font-size: .96rem;
        border-radius: 8px;
    }
}

/* TABLET matching (optional — you may have this already) */
@media (min-width: 700px) and (max-width: 1024px) {
    .highlights {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

        .highlights article {
            display: flex;
        }

            .highlights article > div {
                display: flex !important;
                flex-direction: column;
                gap: .75rem;
                padding: 1rem;
                border-radius: 12px;
                background: #ffffff;
                box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.08);
                height: 100%;
            }

                .highlights article > div > a.btn,
                .highlights article > div > .btn {
                    margin-top: auto;
                }

                .highlights article > div > div:last-child {
                    margin-top: auto;
                }
}

/* Ensure equal height behavior and bottom-aligned CTAs at ALL sizes */
.highlights {
    align-items: stretch; /* cards stretch to tallest */
}

    /* Make inner wrapper flex-column so content grows and CTA pins to bottom */
    .highlights article > div {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        /* Push the CTA group (3rd card's <div>) to the bottom */
        .highlights article > div > div:last-child {
            margin-top: auto;
        }

        /* Also bottom-align single-button CTAs in 1st/2nd cards */
        .highlights article > div > a.btn,
        .highlights article > div > .btn {
            margin-top: auto;
        }
