/* Winscombe Scouts: Christmas trees page.
   Copied from the Wix site's look: Scouts purple, Playfair Display headings,
   Montserrat body text. Class names carry the "ws-" prefix (ad blockers hide
   generic names like "banner" or "ad-*"). */

@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ws-purple: #7413dc;   /* Scouts brand purple */
    --ws-dark:   #1e1e1e;
    --ws-ink:    #1e1e1e;
    --ws-white:  #ffffff;
    --ws-serif:  "Playfair Display", Georgia, "Times New Roman", serif;
    --ws-sans:   "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ws-white);
    color: var(--ws-ink);
    font-family: var(--ws-sans);
    font-size: 15px;
    line-height: 1.55;
}

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

h1, h2, h3 { font-family: var(--ws-serif); font-weight: 400; line-height: 1.12; margin: 0; }

.ws-icon { width: 30px; height: 30px; color: var(--ws-white); flex: none; }

/* ---- top bar ------------------------------------------------------------ */

.ws-top {
    background: var(--ws-purple);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ws-top-logo img { width: 70px; height: 30px; }

/* ---- hero --------------------------------------------------------------- */

.ws-hero {
    position: relative;
    min-height: 736px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    color: var(--ws-white);
    text-align: center;
}
.ws-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 30%;
}
.ws-hero::after {          /* a light shade so the white words read on the trees */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.22));
}
.ws-hero-text {
    position: relative;
    z-index: 1;
    padding: 12px 20px 110px;
    max-width: 760px;
}
.ws-hero-logo { width: 240px; margin: 0 auto 6px; }
.ws-hero h1 {
    font-size: clamp(40px, 7.2vw, 74px);
    text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.ws-hero p {
    margin: 22px 0 0;
    font-size: clamp(15px, 1.9vw, 18px);
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ---- white card overlapping the hero ------------------------------------ */

.ws-card {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: -112px auto 0;
    padding: 40px 40px 44px;
    background: var(--ws-white);
    text-align: center;
    font-size: 14px;
}
.ws-card h2 {
    color: var(--ws-purple);
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 18px;
}
.ws-card p { margin: 0 0 16px; }
.ws-card .ws-times { margin: 0; line-height: 1.75; }

/* ---- purple bands ------------------------------------------------------- */

.ws-band {
    background: var(--ws-purple);
    color: var(--ws-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 6vw, 80px);
    padding: 16px 20px;
    text-align: center;
}
.ws-band p { margin: 0; font-size: 15px; }
.ws-band img { width: 50px; height: auto; }

.ws-band-xmas { padding: 24px 20px; }
.ws-band-xmas p { font-family: var(--ws-serif); font-weight: 700; font-size: 19px; }
.ws-band-xmas .ws-icon { width: 34px; height: 34px; }

/* ---- dark "only the best" section --------------------------------------- */

.ws-dark {
    background: var(--ws-dark);
    color: var(--ws-white);
    text-align: center;
    padding: 160px 20px 240px;
}
.ws-dark h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 36px; }
.ws-promise {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ws-purple);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    font-size: 13.5px;
}
.ws-promise p { margin: 0; }
.ws-promise .ws-icon { width: 36px; height: 36px; }

/* ---- three columns: photo, badge, words --------------------------------- */

.ws-columns {
    max-width: 1010px;
    margin: -200px auto 0;
    padding: 0 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    position: relative;
}
.ws-col {
    background: var(--ws-white);
    border: 1px solid var(--ws-purple);
    border-top: 0;
    text-align: center;
    padding-bottom: 40px;
    font-size: 13.5px;
}
.ws-col-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 5px solid var(--ws-purple);
}
.ws-col-badge {
    width: 64px;
    height: 64px;
    margin: -50px auto 0;
    position: relative;
    background: var(--ws-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ws-col-badge .ws-icon { width: 34px; height: 34px; }
.ws-col-badge img { width: 36px; }
.ws-col-fleur { width: 40px; margin: 20px auto -10px; }
.ws-col h3 {
    color: var(--ws-purple);
    font-size: 26px;
    margin: 30px 0 14px;
}
.ws-col p { margin: 0 auto; max-width: 250px; line-height: 1.7; }

/* ---- photo grid --------------------------------------------------------- */

.ws-gallery {
    max-width: 1060px;
    margin: 50px auto 0;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ws-gallery-item { display: block; overflow: hidden; }
.ws-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .3s ease;
}
.ws-gallery-item:hover img,
.ws-gallery-item:focus-visible img { transform: scale(1.04); }
.ws-gallery + .ws-band { margin-top: 10px; }

.ws-viewer {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 94vw;
    max-height: 94vh;
}
.ws-viewer::backdrop { background: rgba(0,0,0,.85); }
.ws-viewer img { max-width: 94vw; max-height: 90vh; width: auto; margin: 0 auto; }
.ws-viewer-close {
    position: fixed;
    top: 12px;
    right: 16px;
    border: 0;
    background: none;
    color: var(--ws-white);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ---- map and footer ----------------------------------------------------- */

.ws-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: grayscale(.25);
}

.ws-foot {
    background: var(--ws-purple);
    color: var(--ws-white);
    text-align: center;
    padding: 22px 16px;
    font-size: 12px;
}
.ws-foot p { margin: 0; }

/* ---- phones and small tablets ------------------------------------------- */

@media (max-width: 760px) {
    .ws-hero { min-height: 600px; }
    .ws-hero-logo { width: 180px; }
    .ws-hero-text { padding-bottom: 90px; }
    .ws-card { margin: -70px 16px 0; padding: 28px 20px 32px; }
    .ws-band img { width: 36px; }
    .ws-band p { font-size: 13px; }
    .ws-dark { padding: 64px 16px 64px; }
    .ws-promise { flex-direction: column; text-align: center; padding: 22px 20px; }
    .ws-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
        padding: 0 16px;
    }
    .ws-col { border-top: 1px solid var(--ws-purple); }
    .ws-col-photo { height: 300px; }
    .ws-gallery { grid-template-columns: repeat(2, 1fr); padding: 0 16px; margin-top: 32px; }
    .ws-map iframe { height: 320px; }
}
