﻿:root {
    --bg: #1f2023;
    --section: #242529;
    --text: #d9dde3;
    --muted: #b9c3ce;
    --gold: #837004;
    --yellow: #f0de00;
    --circle: #4e5055;
    --content-max: 1180px;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    max-width: 100% !important;
}

body {
    background: #111214;
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* ==========================================================================
   Yelo Newsletter V2 - public home page (Website/pages/home/home.html)
   Everything below is scoped to .yelo-home so the login/sign-up pages that
   share this bundle keep the global rules above untouched.
   ========================================================================== */

@font-face {
    font-family: 'Agrandir Wide';
    src: url('/WebsiteTemplate/fonts/agrandir-wide-bold.ttf') format('truetype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

.yelo-home {
    --lime: #D7FF00;
    --black: #000000;
    --cream: #F7FFE0;
    --violet: #753CD5;
    --warm-grey: #F3F1EE;
    --white: #FFFFFF;
    --display: 'Agrandir Wide', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Inter', Arial, Helvetica, sans-serif;

    width: 100%;
    min-height: 100vh;
    background: var(--cream);
    color: var(--black);
    font-family: var(--body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* The layout adds a spacer below the page content; keep it the page colour on the home page only. */
body:has(.yelo-home) { background: #F7FFE0; }

/* Login page - lime navbar with the black yelo wordmark, white page background. */
.login-navbar { background-color: #D7FF00 !important; }
body:has(.login-page) { background: #FFFFFF; }

.yelo-home img { max-width: 100%; border: 0; }
.yelo-home h1, .yelo-home h2, .yelo-home h3, .yelo-home p { margin: 0; color: inherit; }
.yelo-home a { color: inherit; }

.yh-container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.yh-section { padding: clamp(22px, 4vw, 56px) 0; }

/* Header ---------------------------------------------------------------- */
.yh-header { background: var(--lime); padding: clamp(12px, 2vw, 22px) 0; }
.yh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yh-logo { height: clamp(30px, 4.4vw, 46px); width: auto; display: block; }
.yh-tagline { font-family: var(--display); font-weight: 700; font-size: clamp(.78rem, 1.7vw, 1.35rem); line-height: 1.2; text-align: right; }

/* Hero (image + title come from the CMS) --------------------------------- */
.yh-hero {
    background: var(--violet) center / cover no-repeat;
    min-height: clamp(250px, 38vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
}
.yh-hero-text { color: #fff; font-family: var(--display); font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.yh-hero-small { display: block; font-size: clamp(1.1rem, 3.1vw, 2.6rem); line-height: 1.25; }
.yh-hero-main { display: block; font-size: clamp(1.45rem, 4.4vw, 3.7rem); line-height: 1.2; }

/* Activity recap --------------------------------------------------------- */
.yh-recap { text-align: center; padding: clamp(26px, 4.5vw, 60px) 0 clamp(8px, 2vw, 20px); }
.yh-pill {
    display: inline-block;
    background: var(--black);
    color: var(--lime);
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    padding: .45em 1.1em;
    border-radius: 10px;
}
.yh-greeting { margin-top: clamp(14px, 2.4vw, 28px) !important; font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.8rem); line-height: 1.15; }
.yh-lead { max-width: 660px; margin: clamp(8px, 1.4vw, 14px) auto 0 !important; font-size: clamp(.95rem, 1.7vw, 1.2rem); }

/* Stat cards ------------------------------------------------------------- */
.yh-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.8vw, 22px); }
.yh-stat {
    background: var(--lime);
    border-radius: clamp(16px, 2vw, 26px);
    padding: clamp(14px, 2vw, 26px) 12px clamp(14px, 2vw, 26px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.yh-stat img { width: clamp(64px, 8vw, 124px); margin: 0 auto; }
.yh-stat-value { margin-top: 8px; font-weight: 800; font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 1.1; white-space: nowrap; }
.yh-stat-label { flex: 1; margin-top: 8px; font-size: clamp(.78rem, 1.2vw, 1rem); line-height: 1.35; }
.yh-stat-expiry { padding-bottom: 0; }
.yh-stat-strip {
    align-self: stretch;
    margin: 14px -12px 0;
    padding: 10px 8px;
    background: var(--violet);
    color: #fff;
    font-size: clamp(.72rem, 1.05vw, .9rem);
    font-weight: 600;
    line-height: 1.3;
}

/* What's New ------------------------------------------------------------- */
.yh-panel { background: var(--warm-grey); border-radius: clamp(20px, 2.6vw, 32px); padding: clamp(16px, 3vw, 44px); }
.yh-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(14px, 2.4vw, 30px); }
.yh-panel-head h2 { font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.15; }

.yh-btn-outline {
    display: inline-block;
    border: 1.5px solid var(--black);
    border-radius: 8px;
    padding: .6em 1.15em;
    font-weight: 600;
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    line-height: 1.2;
    text-decoration: none;
    color: var(--black);
    background: transparent;
}
.yh-btn-outline:hover { background: var(--black); color: var(--lime) !important; }

.yh-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.yh-card-media { position: relative; background: var(--white); border-radius: 20px; padding: 12px; }
.yh-card-media .yh-card-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 14px; display: block; margin-top: 36px; }
.yh-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--lime);
    color: var(--black);
    font-weight: 800;
    font-size: .8rem;
    line-height: 1;
    text-transform: uppercase;
    padding: .5em .8em;
    border-radius: 6px;
}
.yh-card-title { margin-top: 14px !important; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.3; }
.yh-card-title a { text-decoration: none; }
.yh-card-text {
    margin-top: 6px !important;
    font-size: clamp(.85rem, 1.15vw, .95rem);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Discover your rewards -------------------------------------------------- */
.yh-cta-inner {
    background: var(--lime);
    border-radius: clamp(20px, 2.6vw, 32px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 56px) clamp(22px, 4.5vw, 72px) 0;
    overflow: hidden;
}
.yh-cta-copy { align-self: center; padding-bottom: clamp(24px, 4vw, 56px); }
.yh-cta-copy h2 { font-weight: 800; font-size: clamp(1.9rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; }
.yh-cta-title { white-space: pre-line; }
.yh-cta-copy .yh-btn-outline { margin-top: clamp(16px, 2.4vw, 30px); }
.yh-cta-phone { flex: 0 1 auto; width: auto; max-height: clamp(240px, 34vw, 440px); display: block; margin-right: calc(-1 * clamp(22px, 4.5vw, 72px)); }

/* FAQ accordion ---------------------------------------------------------- */
.yh-faq-title { text-align: center; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: clamp(14px, 2.4vw, 28px) !important; }
.yh-acc { max-width: 900px; margin: 0 auto; }
.yh-acc-item { border-bottom: 1.5px solid var(--black); }
.yh-acc-item:last-child { border-bottom: 0; }
.yh-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: 0;
    padding: clamp(14px, 2vw, 22px) 0;
    font-family: var(--body);
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.3;
    text-align: left;
    color: var(--black);
    cursor: pointer;
}
/* Arrow + slide-open behaviour copied from the HeloYelo FAQ (yelo.css .yelo-arrow-link / .yelo-faq__answer-wrap) */
.yh-acc-icon {
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    display: inline-flex;
    transform: rotate(30deg);
    transition: transform 250ms ease;
}
.yh-acc-icon img { width: 41px; height: 41px; max-width: none; display: block; }
.yh-acc-item.is-open .yh-acc-icon { transform: rotate(119deg); }
.yh-acc-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms ease; }
.yh-acc-item.is-open .yh-acc-wrap { grid-template-rows: 1fr; }
.yh-acc-inner { overflow: hidden; }
.yh-acc-body { margin: 0 64px clamp(14px, 2vw, 22px) 0; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.5; white-space: pre-line; }

/* Footer ----------------------------------------------------------------- */
.yh-footer-band { background: var(--black); }
.yh-footer-band > a { display: block; line-height: 0; }
.yh-footer-art { width: 100%; height: auto; display: block; }
.yh-legal { padding: clamp(18px, 2.6vw, 30px) 0 clamp(26px, 3.4vw, 40px); text-align: center; font-size: .82rem; line-height: 1.65; }
.yh-legal p + p { margin-top: 10px !important; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .yh-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .yh-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    /* Crop the box itself to the banner's standard 1920x700 ratio instead of forcing a min-height: it
       shrinks along with the image on a narrow phone, so no extra violet ever shows past the image's edges. */
    .yh-hero { aspect-ratio: 1920 / 700; min-height: 0; background-size: cover; }
    .yh-cta-inner { flex-direction: column; align-items: flex-start; }
    .yh-cta-copy { padding-bottom: 20px; }
    /* Bleed from the card's bottom-right corner (cancel the card's right padding) so the sleeve runs off the edge */
    .yh-cta-phone { align-self: flex-end; width: min(74%, 340px); max-height: none; height: auto; margin-right: calc(-1 * clamp(22px, 4.5vw, 72px)); }
    .yh-acc-body { margin-right: 44px; font-size: 1rem; }
}

@media (max-width: 575.98px) {
    .yh-card-grid { grid-template-columns: 1fr; }
    .yh-header-inner { gap: 8px; }
    .yh-stat { padding-inline: 8px; }
    .yh-stat-strip { margin-inline: -8px; }
    .yh-panel-head { flex-direction: column; align-items: flex-start; }
    .yh-acc-icon, .yh-acc-icon img { width: 36px; height: 36px; flex-basis: 36px; }
}

@media (max-width: 360px) {
    .yh-tagline { font-size: .72rem; }
    .yh-stat-value { font-size: 1.45rem; }
}
