/* ==========================================================================
   Year End AMANA Celebration, 27 November 2026
   Everything here is namespaced to .yec- so it cannot touch the rest of
   the site. To retire the campaign, delete this file and the two <link>
   and <script> lines that load it. Nothing else depends on it.
   ========================================================================== */

:root{
  --yec-navy:#131736;
  --yec-cobalt:#000F99;
  --yec-gold:#E8A33D;
  --yec-gold-soft:#F6D79A;
  --yec-ink:#ffffff;
}

/* ---------- shared button ---------- */
.yec-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:13px 26px;
  background:var(--yec-gold); color:var(--yec-navy);
  font-weight:800; font-size:1rem; line-height:1.2;
  border:2px solid var(--yec-gold); border-radius:999px;
  text-decoration:none; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.yec-btn:hover{ background:#f0b358; border-color:#f0b358; transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(232,163,61,.34); color:var(--yec-navy); }
.yec-btn:focus-visible{ outline:3px solid #fff; outline-offset:3px; }
.yec-btn-ghost{ background:transparent; color:var(--yec-gold); border-color:var(--yec-gold); }
.yec-btn-ghost:hover{ background:rgba(232,163,61,.14); color:var(--yec-gold); }

/* ==========================================================================
   1. HOMEPAGE BANNER
   ========================================================================== */
.yec-banner{ display:block; width:100%; background:var(--yec-navy); line-height:0; }
.yec-banner img{ display:block; width:100%; height:auto; }
.yec-banner:focus-visible{ outline:3px solid var(--yec-gold); outline-offset:-3px; }
.yec-banner .yec-b-desk{ display:none; }
.yec-banner .yec-b-mob{ display:block; }
@media (min-width:760px){
  .yec-banner .yec-b-desk{ display:block; }
  .yec-banner .yec-b-mob{ display:none; }
}
/* hidden until the script confirms the campaign is still running */
.yec-hidden{ display:none !important; }

/* ==========================================================================
   2. POP-UP
   ========================================================================== */
.yec-pop{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(10,13,32,.76);
  opacity:0; animation:yecFade .22s ease forwards;
}
@keyframes yecFade{ to{ opacity:1; } }
.yec-pop-box{
  position:relative; width:90vw; max-width:560px;
  border-radius:16px; overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  transform:scale(.96); animation:yecPop .24s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes yecPop{ to{ transform:scale(1); } }
.yec-pop-box a{ display:block; line-height:0; }
.yec-pop-box img{ display:block; width:100%; height:auto; }
.yec-pop-x{
  position:absolute; top:10px; right:10px; z-index:2;
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  background:rgba(10,13,32,.72); color:#fff;
  border:2px solid rgba(255,255,255,.5); border-radius:50%;
  font-size:21px; line-height:1; cursor:pointer; padding:0;
}
.yec-pop-x:hover{ background:#131736; border-color:#fff; }
.yec-pop-x:focus-visible{ outline:3px solid var(--yec-gold); outline-offset:2px; }
@media (prefers-reduced-motion:reduce){
  .yec-pop,.yec-pop-box{ animation:none; opacity:1; transform:none; }
}

/* ==========================================================================
   3. CAMPAIGN PAGE
   ========================================================================== */
.yec-page{ background:var(--yec-navy); color:var(--yec-ink); }
.yec-page .wrap{ max-width:1120px; margin:0 auto; padding:0 20px; }

/* hero */
.yec-hero{ padding:0 0 40px; }
.yec-hero-grid{ display:grid; gap:28px; align-items:center; }
@media (min-width:900px){
  .yec-hero{ padding:48px 0 56px; }
  .yec-hero-grid{ grid-template-columns:1.05fr .95fr; gap:48px; }
}
.yec-kv{ order:-1; margin:0; line-height:0; }
.yec-kv img{ display:block; width:100%; height:auto; border-radius:0; }
@media (min-width:900px){
  .yec-kv{ order:0; }
  .yec-kv img{ border-radius:14px; max-height:640px; width:auto; margin-inline:auto;
    box-shadow:0 18px 48px rgba(0,0,0,.4); }
}
.yec-hero-copy{ padding:28px 0 0; }
@media (min-width:900px){ .yec-hero-copy{ padding:0; } }
.yec-eyebrow{
  margin:0 0 10px; color:var(--yec-gold);
  font-weight:800; font-size:.82rem; letter-spacing:.22em; text-transform:uppercase;
}
.yec-page h1{
  margin:0 0 14px; color:#fff;
  font-size:clamp(2rem,6.4vw,3.3rem); line-height:1.08; letter-spacing:-.01em;
}
.yec-when{
  margin:0 0 10px; color:#fff; font-weight:700;
  font-size:clamp(1rem,2.6vw,1.18rem); line-height:1.5;
}
.yec-when b{ color:var(--yec-gold-soft); }
.yec-sub{ margin:0 0 24px; color:rgba(255,255,255,.84); font-size:1.05rem; line-height:1.6; }
.yec-cta-row{ display:flex; flex-wrap:wrap; gap:12px; }

/* generic section */
.yec-sec{ padding:44px 0; border-top:1px solid rgba(255,255,255,.12); }
.yec-sec h2{
  margin:0 0 8px; color:#fff;
  font-size:clamp(1.5rem,4.2vw,2.1rem); line-height:1.18;
}
.yec-sec > .wrap > p{ color:rgba(255,255,255,.84); line-height:1.65; }
.yec-lead{ font-size:1.08rem; max-width:62ch; }

/* event details */
.yec-details{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:12px; }
@media (min-width:700px){ .yec-details{ grid-template-columns:repeat(3,1fr); } }
.yec-details li{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:12px; padding:16px 18px;
}
.yec-details .k{
  display:block; color:var(--yec-gold); font-weight:800;
  font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:6px;
}
.yec-details .v{ color:#fff; font-weight:600; line-height:1.5; }

/* four tiers */
.yec-tiers{ display:grid; gap:16px; margin-top:26px; }
@media (min-width:640px){ .yec-tiers{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .yec-tiers{ grid-template-columns:repeat(4,1fr); } }
.yec-tier{
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.055); border:1px solid rgba(232,163,61,.34);
  border-radius:14px; padding:22px 20px;
}
.yec-tier .num{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; margin-bottom:12px;
  background:var(--yec-gold); color:var(--yec-navy);
  border-radius:50%; font-weight:800; font-size:.95rem;
}
.yec-tier h3{
  margin:0 0 4px; color:var(--yec-gold);
  font-size:1.18rem; letter-spacing:.06em; text-transform:uppercase;
}
.yec-tier .tier-label{
  display:block; margin-bottom:10px; color:rgba(255,255,255,.62);
  font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
}
.yec-tier p{ margin:0; color:rgba(255,255,255,.88); font-size:.97rem; line-height:1.6; }

/* lucky draw */
.yec-draw{
  margin-top:8px; padding:30px 24px; border-radius:18px;
  background:linear-gradient(135deg,#E8A33D 0%,#F6D79A 52%,#E8A33D 100%);
  color:var(--yec-navy); text-align:center;
}
.yec-draw .kick{
  margin:0 0 6px; font-weight:800; font-size:.8rem;
  letter-spacing:.2em; text-transform:uppercase; color:rgba(19,23,54,.74);
}
.yec-draw h2{ margin:0 0 10px; color:var(--yec-navy); font-size:clamp(1.8rem,6vw,2.7rem); line-height:1.1; }
.yec-draw p{ margin:0 auto; max-width:54ch; color:rgba(19,23,54,.9); font-weight:600; line-height:1.6; }
.yec-draw .yec-btn{ margin-top:20px; background:var(--yec-navy); color:var(--yec-gold); border-color:var(--yec-navy); }
.yec-draw .yec-btn:hover{ background:#1d2350; border-color:#1d2350; color:var(--yec-gold); }

/* how it works */
.yec-steps{ counter-reset:yec; list-style:none; margin:24px 0 0; padding:0; display:grid; gap:14px; }
@media (min-width:860px){ .yec-steps{ grid-template-columns:repeat(3,1fr); } }
.yec-steps li{
  counter-increment:yec; position:relative;
  padding:20px 20px 20px 62px;
  background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.14);
  border-radius:12px; color:rgba(255,255,255,.9); line-height:1.6;
}
.yec-steps li::before{
  content:counter(yec); position:absolute; left:18px; top:18px;
  width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  background:var(--yec-gold); color:var(--yec-navy); border-radius:50%; font-weight:800;
}

/* FAQ */
.yec-faq{ margin-top:22px; }
.yec-faq details{
  background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.14);
  border-radius:12px; margin-bottom:10px; overflow:hidden;
}
.yec-faq summary{
  padding:16px 50px 16px 18px; position:relative; cursor:pointer;
  color:#fff; font-weight:700; font-size:1.02rem; line-height:1.45; list-style:none;
}
.yec-faq summary::-webkit-details-marker{ display:none; }
.yec-faq summary::after{
  content:"+"; position:absolute; right:18px; top:50%; transform:translateY(-50%);
  color:var(--yec-gold); font-size:1.5rem; font-weight:700; line-height:1;
}
.yec-faq details[open] summary::after{ content:"\2212"; }
.yec-faq summary:focus-visible{ outline:3px solid var(--yec-gold); outline-offset:-3px; }
.yec-faq .a{ padding:0 18px 18px; color:rgba(255,255,255,.84); line-height:1.65; }

/* map */
.yec-map{ margin-top:22px; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.18); }
.yec-map iframe{ display:block; width:100%; height:340px; border:0; }

/* terms */
.yec-terms{
  margin-top:10px; padding:22px 20px;
  background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.14); border-radius:14px;
}
.yec-terms p{ margin:0 0 14px; color:rgba(255,255,255,.8); font-size:.95rem; line-height:1.65; }
.yec-terms p:last-child{ margin-bottom:0; }

/* closing contact strip */
.yec-foot{ padding:40px 0 52px; border-top:1px solid rgba(255,255,255,.12); text-align:center; }
.yec-foot .yec-contact{ margin:0 0 14px; color:#fff; font-weight:700; font-size:1.05rem; line-height:1.9; }
.yec-foot .yec-contact a{ color:var(--yec-gold); text-decoration:none; }
.yec-foot .yec-contact a:hover{ text-decoration:underline; }
.yec-foot .yec-tag{ margin:0; color:rgba(255,255,255,.6); font-size:.92rem; letter-spacing:.04em; }

/* the campaign page sits on its own dark field, so neutralise the
   site's light page background behind it without editing main.css */
body.yec-body{ background:var(--yec-navy); }
