/* Everbloom Games site styles.
   Page content uses a small set of building blocks:
   .band (full-width section, optional --bg, --bg-img, --overlay, --pt/--pb, --max)
   .wrap (centred content), .cols/.col (--w column width), .text, .btn, .img,
   .gallery (--cols), .yt (YouTube), .vid (video), .cards, .accordion, .sp (--h spacer). */

/* Layout variables apply only to the element that sets them */
@property --bg { syntax: "*"; inherits: false; }
@property --bg-img { syntax: "*"; inherits: false; }
@property --overlay { syntax: "*"; inherits: false; }
@property --overlay-op { syntax: "*"; inherits: false; }
@property --pt { syntax: "*"; inherits: false; }
@property --pb { syntax: "*"; inherits: false; }
@property --pl { syntax: "*"; inherits: false; }
@property --pr { syntax: "*"; inherits: false; }
@property --w { syntax: "*"; inherits: false; }
@property --h { syntax: "*"; inherits: false; }

:root {
  --accent: #e84745;
  --btn: #ff4545;
  --btn-hover: #ff2828;
  --text: #3a3a3a;
  --heading: #3a3a3a;
  --page-bg: #f5f5f5;
  --footer-bg: #3a3a3a;
  --badge: #6b6b6b;
  --radius: 8px;
  --max-width: 1140px;
  --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 400 1rem/1.85 "Poppins", system-ui, sans-serif;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--text); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 2.667rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.667rem; font-weight: 600; color: var(--btn); }
h4 { font-size: 1.333rem; font-weight: 400; }
h5 { font-size: 1.2rem; font-weight: 400; }
h6 { font-size: 1rem; font-weight: 400; }
/* .h1-.h6: a heading that looks like another level (keeps the heading order right) */
.h1 { font-size: 2.667rem; font-weight: 800; color: var(--heading); }
.h2 { font-size: 2rem; font-weight: 700; color: var(--heading); }
.h3 { font-size: 1.667rem; font-weight: 600; color: var(--btn); }
.h4 { font-size: 1.333rem; font-weight: 400; color: var(--heading); }
.h5 { font-size: 1.2rem; font-weight: 400; color: var(--heading); }
.h6 { font-size: 1rem; font-weight: 400; color: var(--heading); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.text p a:not(.btn), .text li a:not(.btn) { text-decoration: underline; }
p, ul, ol, table, blockquote { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 16px; z-index: 1000; }
.skip:focus { left: 16px; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; }

/* ---------- header ---------- */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; }
.logo { margin-right: auto; line-height: 0; }
.logo img { width: 147px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; margin: 0; }
.site-nav a { color: var(--text); display: inline-block; padding: 8px 12px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav .has-sub { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 4px; margin-left: -10px; color: var(--text); cursor: pointer; font-size: .8rem; border-radius: 0; }
.site-nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border-top: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transition: opacity .2s; }
.site-nav .sub a { display: block; padding: 6px 20px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; }
.social { display: flex; gap: 2px; margin-left: 8px !important; }
.social a { color: var(--btn); padding: 8px 9px; font-size: 1.15rem; }
.social a:hover { color: var(--btn-hover); }
.nav-toggle { display: none; background: none; border: 0; color: var(--accent); font-size: 1.6rem; padding: 4px 8px; cursor: pointer; border-radius: 0; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.1); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .site-nav a { display: block; padding: 10px 20px; }
  .site-nav .has-sub { flex-wrap: wrap; }
  .site-nav .has-sub > a { flex: 1; }
  .sub-toggle { margin: 0; padding: 10px 20px; }
  .site-nav .sub { position: static; display: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; width: 100%; padding: 0 0 0 16px; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open:hover > .sub { display: block; }
  .social { justify-content: center; margin: 8px 0 0 !important; }
  .logo img { width: 120px; }
}

/* Dark pages (Nullpoint Protocol): header sits over the first section */
.theme-dark .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
.theme-dark .site-nav a, .theme-dark .social a, .theme-dark .nav-toggle { color: #fff; }
.theme-dark .site-nav a:hover { color: var(--btn); }
.theme-dark main > .band:first-child { padding-top: 90px; }
@media (max-width: 920px) { .theme-dark .site-nav { background: #0f1430; } }

/* ---------- content building blocks ---------- */
.band {
  position: relative;
  background-color: var(--bg, transparent);
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  padding: var(--pt, 10px) var(--pr, 0) var(--pb, 10px) var(--pl, 0);
}
.band[style*="--overlay"]::before { content: ""; position: absolute; inset: 0; background: var(--overlay); opacity: var(--overlay-op, .5); }
.band > * { position: relative; }
.band-inner { padding-left: 10px; padding-right: 10px; max-width: var(--max, none); margin-left: auto; margin-right: auto; }
.wrap { max-width: var(--max, var(--max-width)); margin: 0 auto; padding: 10px 16px; }
.band-full > .wrap { max-width: none; }
.wrap > :not(:last-child), .col > :not(:last-child), .band-inner > :not(:last-child) { margin-bottom: var(--gap); }
.wrap > :last-child, .col > :last-child { margin-bottom: 0; }

.cols { display: flex; margin: 0 -10px; }
.cols-middle { align-items: center; }
.col { width: var(--w, 100%); padding: 10px; background-color: var(--bg, transparent); background-image: var(--bg-img, none); background-size: cover; }
@media (max-width: 767px) {
  .cols { flex-direction: column; }
  .col { width: 100%; }
}

.text > :last-child { margin-bottom: 0; }
.text ul, .text ol { padding-left: 1.4em; }
.text img { border-radius: var(--radius); }
.text table { border-collapse: collapse; width: 100%; }
.text td, .text th { border: 1px solid rgba(0,0,0,.1); padding: 6px 10px; }
.img { text-align: center; line-height: 0; }
.img img, .imgbox img { border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: .9rem; line-height: 1.5; margin-top: 8px; }
.sp { height: var(--h, 50px); margin: 0 !important; }
hr { border: 0; border-top: 1px solid rgba(0,0,0,.15); }

.btn, button, input[type="submit"] {
  display: inline-block;
  background: var(--btn-bg, var(--btn));
  color: var(--btn-fg, #fff);
  border: 0;
  border-radius: 1000px;
  padding: 12px 24px;
  font: 500 1rem/1 "Poppins", sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible, button:hover, button:focus-visible { background: var(--btn-hover); color: var(--btn-fg, #fff); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
p:has(> .btn:only-child) { margin-bottom: 0; }

/* YouTube embeds load only when clicked */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 12px;
  background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .2s; }
.yt:hover::after { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.framed { box-shadow: 0 0 0 8px var(--btn); border-radius: var(--radius); margin: 8px; overflow: hidden; line-height: 0; }
.vid { display: block; width: 100%; border-radius: var(--radius); background: #000; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap); align-items: start; }
.gallery a, .gallery img { display: block; line-height: 0; }
.gallery img { width: 100%; border-radius: var(--radius); transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); } }

.slides { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.slides img.on, .slides img:first-child:not(.off) { opacity: 1; }

.accordion details { border: 1px solid #d4d4d4; background: #fff; }
.accordion details + details { border-top: 0; }
.accordion summary { cursor: pointer; padding: 14px 20px; font-weight: 600; list-style: none; position: relative; padding-left: 44px; }
.accordion summary::before { content: "+"; position: absolute; left: 20px; color: var(--accent); font-weight: 700; }
.accordion details[open] summary::before { content: "\2212"; }
.accordion details > div { padding: 0 20px 14px; border-top: 1px solid #eee; padding-top: 14px; }

.quote { text-align: center; font-size: 1.3rem; font-style: italic; color: #000; margin: 0; }
.quote cite { display: block; font-size: 1rem; font-style: normal; color: var(--text); margin-top: 6px; }
.quote cite::before { content: "\2014 "; }

.imgbox { text-align: center; }
.imgbox h3 { margin-top: 12px; }

/* ---------- map cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; text-align: center; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card[hidden] { display: none; }
.card-img { display: block; line-height: 0; margin-bottom: 14px; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.badge { display: inline-block; background: var(--badge); color: #fff; font-size: .8rem; line-height: 1; padding: 6px 8px; border-radius: 5px; margin: 0 0 10px; }
.card-title { font-size: 1.5rem; font-weight: 600; color: #000; margin: 0 0 8px; }
.card-title a { color: #000; }
.card-title a:hover { color: var(--accent); }
.card-text { font-size: .9rem; line-height: 1.75; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px !important; }
.filters button { border-radius: 8px; padding: 6px 12px; font-size: .85rem; font-weight: 400; }
.filters button[aria-pressed="true"] { background: #c21f1f; }
.map-search { max-width: 420px; margin: -10px auto 30px !important; }

/* ---------- forms ---------- */
.form { max-width: 720px; }
.form p { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form .check label { font-weight: 400; }
.form small { display: block; font-size: .85rem; line-height: 1.5; color: #777; margin-top: 4px; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="search"], input:not([type]), textarea {
  width: 100%; font: inherit; color: #666; background: #fff; border: 1px solid #ccc; border-radius: 10px; padding: 8px 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg:empty { display: none; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: #1b7f3b; }
.form-msg.err { color: #c21f1f; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; margin-top: 0; }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 60px 20px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--btn); }
.site-footer h3 { color: var(--btn); font-size: 1.6rem; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 20px 0 0; line-height: 1.7; font-size: .95rem; }
.copyright { text-align: center; font-size: .95rem; margin: 0; padding: 20px 20px 40px; }
.newsletter { position: relative; display: flex; max-width: 480px; flex-wrap: wrap; }
.newsletter label { flex: 1; }
.newsletter input[type="email"] { border-radius: 100px; height: 45px; padding: 0 130px 0 18px; border: 0; }
.newsletter button { position: absolute; right: 0; top: 0; height: 45px; }
.newsletter .form-msg { flex-basis: 100%; margin: 10px 0 0; }
.site-footer .form-msg.ok { color: #8fe3a8; }
.site-footer .form-msg.err { color: #ffb4b4; }
@media (max-width: 767px) { .footer-in { grid-template-columns: 1fr; padding-top: 40px; } }

/* ---------- cookie banner, lightbox ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(0,0,0,.92); color: #fff; font-size: .85rem; padding: 12px 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie button { padding: 8px 22px; font-size: .85rem; }
.cookie .link { background: none; text-decoration: underline; padding: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; background: none; font-size: 2rem; padding: 12px 16px; color: #fff; }
.lightbox button:hover { background: rgba(255,255,255,.1); }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Elementor visibility classes kept by the converter */
@media (max-width: 767px) { .hide-phone, .hide-mobile { display: none !important; } }
@media (max-width: 767px) { .center-phone { text-align: center; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.667rem; }
  h3 { font-size: 1.333rem; }
  .h1 { font-size: 2rem; }
  .h2 { font-size: 1.667rem; }
  .h3 { font-size: 1.333rem; }
  .band[style*="--pt"] { padding-top: min(var(--pt), 60px); padding-bottom: min(var(--pb), 60px); }
  .band { padding-left: 0; padding-right: 0; }
}

/* Newsletter sign-up embed on the Nullpoint Protocol page */
iframe[src*="beehiiv.com"] { display: block; width: 100%; height: 320px; border: 0; background: transparent; }
.theme-dark .text a { color: #fff; }
.theme-dark .text a:hover { color: var(--btn); }
