/* playfinaaustralia.com theme.
 *
 * Reproduces the live WordPress site's look, read on 2026-10-13 from its
 * Elementor kit (post-11.css) and page styles (post-16, 19, 32), and checked
 * against screenshots. Frozen at launch: an update changes content, never
 * this file (CLAUDE.md hard rule 4).
 *
 * One live quirk is not reproduced: the desktop header carries a tall empty
 * band above and below the menu. On mobile the menu folds into a menu button,
 * as on the live site, without a script.
 */

:root {
  /* Elementor global colours, names kept beside them */
  --white: #FFFFFF;       /* primary: h1, h3, links */
  --yellow: #FFE52B;      /* secondary: h2 */
  --text: #ACACBF;        /* text */
  --green: #04C000;       /* accent: buttons */
  --bg: #211D38;          /* 36825de: page background */
  --bg-dark: #18152C;     /* f574915: header and footer */
  --surface: #302A4F;     /* 40bb94a: login button, cards */
  --line: rgba(172, 172, 191, 0.55);
  --max: 1140px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--white); }
a:hover { color: var(--white); }
strong { color: var(--white); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; overflow-wrap: anywhere; }
h1 { color: var(--white); font-weight: 600; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 2.6rem); text-align: center; }
h2 { color: var(--yellow); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.4em; }
h3 { color: var(--white); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; }
.subtitle { color: var(--yellow); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 2.6vw, 2rem); text-align: center; margin: 0 0 1em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.6em; }

/* Header */
.site-header { background: var(--bg-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 96px; flex-wrap: wrap; }
.logo img { display: block; width: 138px; height: auto; }
.nav { display: flex; gap: 28px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nav a { text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--yellow); }
.menu-toggle, .menu-button { display: none; }
.cta-pair { display: flex; gap: 12px; }
.btn { display: inline-block; background: var(--green); color: var(--white); border-radius: 8px; padding: 10px 20px; text-decoration: none; font-weight: 500; font-size: 15px; }
.btn-dark { background: var(--surface); }
.btn-wide { display: block; text-align: center; font-weight: 700; font-size: 1.4rem; text-transform: uppercase; padding: 10px 24px; margin: 1.4em 0; }

/* Page intro */
.intro { padding: 40px 0 10px; }

/* Hero: the welcome package box over the background image */
.hero { background: #18152C url("images/hero-background.webp") center / cover no-repeat; padding: 8px 0; margin: 10px 0 20px; }
.hero-box { max-width: 500px; background: rgba(24, 21, 44, 0.85); border: 1px solid var(--white); border-radius: 20px; padding: 20px 8px 20px; }
.hero-box .headline { color: var(--yellow); font-weight: 700; text-transform: uppercase; font-size: 1.75rem; line-height: 1.1; text-align: center; margin: 0 12px 16px; }
.hero-offer { display: flex; align-items: center; gap: 16px; border: 1px solid var(--yellow); border-radius: 20px; padding: 10px 14px; }
.hero-offer img { width: 98px; height: auto; flex: none; }
.hero-offer .label { color: var(--white); font-size: 1.25rem; margin: 0; }
.hero-offer .amount { color: var(--green); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; margin: 0; }
.hero-box .btn { display: block; text-align: center; margin: 22px 10px 0; font-weight: 700; font-size: 1.4rem; }

/* Tables from facts */
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { color: var(--white); font-weight: 500; background: var(--surface); }
caption { caption-side: bottom; text-align: left; font-size: 13px; padding-top: 6px; }

/* FAQ accordion, as on the live site, with no script needed */
.faq details { border: 1px solid var(--line); border-top: none; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { color: var(--white); cursor: pointer; padding: 8px 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 600; }
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 10px 12px 4px; }

/* Text not yet written: shown in a draft build, refused in a release build */
.draft { border: 1px dashed var(--yellow); border-radius: 8px; padding: 10px 14px; margin: 0 0 1em; font-size: 14px; }
.draft::before { content: "Draft, text not written yet: "; color: var(--yellow); }

/* Footer */
.site-footer { background: var(--bg-dark); margin-top: 40px; padding: 40px 0 20px; text-align: center; font-size: 14px; }
.site-footer .logo img { margin: 0 auto 16px; }
.site-footer .nav { margin: 24px auto; }
.site-footer .copy { font-size: 13px; }
/* market switcher, Elena 2026-10-26 */
.site-footer .markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 20px auto; }
.site-footer .markets a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; opacity: .8; }
.site-footer .markets a:hover, .site-footer .markets a[aria-current] { opacity: 1; text-decoration: underline; }
.site-footer .markets img { width: 20px; height: 15px; border-radius: 2px; }

@media (max-width: 767px) {
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 14px; justify-content: space-between; }
  .menu-button { display: block; order: 2; cursor: pointer; color: var(--white); font-size: 26px; line-height: 1; padding: 4px 8px; }
  .cta-pair { order: 3; width: 100%; justify-content: space-between; }
  .site-header .nav { order: 4; width: 100%; display: none; flex-direction: column; gap: 10px; text-align: center; padding: 8px 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .hero-box .headline { font-size: 1.35rem; }
  .hero-offer { flex-direction: column; text-align: center; }
  .hero-offer .amount { font-size: 1.3rem; }
}

/* The floating bar to the casino, 2026-10-20, Elena and Stefano: slim, shown
   only between the blocks a page names in site.yaml `sticky` */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg-dark); border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); text-align: center; transform: translateY(100%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { display: block; max-width: 420px; margin: 0 auto; font-weight: 700; text-transform: uppercase; }
body.has-sticky .site-footer { padding-bottom: 72px; }

/* Welcome offer banner, playfinalogin, 2026-10-23. The art is the right part
   of Playfina's own welcome slider, cut before its text; the offer text is
   ours, from facts, over a fade into the page colour. */
.promo-banner { position: relative; min-height: 260px; display: flex; align-items: center; border: 1px solid #4a3f7a; border-radius: 16px; overflow: hidden; margin: 10px 0 24px;
  background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-dark) 60%, rgba(24, 21, 44, .55) 70%, rgba(24, 21, 44, 0) 84%), var(--bg-dark) url("images/welcome-banner-art.webp") right center / auto 100% no-repeat; }
.promo-banner-text { padding: 28px 32px; max-width: 520px; text-align: center; }
.promo-banner-title { color: var(--white); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .02em; margin: 0 0 8px; }
.promo-banner-offer { color: var(--yellow); font-weight: 700; text-transform: uppercase; font-size: 2.3rem; line-height: 1.15; margin: 0 0 20px; white-space: nowrap; }
.promo-banner .btn { display: inline-block; min-width: 240px; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; padding: 12px 28px; }
@media (max-width: 700px) {
  .promo-banner { min-height: 0; align-items: flex-end; padding-top: 150px;
    background: linear-gradient(180deg, rgba(24, 21, 44, 0) 0%, rgba(24, 21, 44, .2) 35%, var(--bg-dark) 62%), var(--bg-dark) url("images/welcome-banner-art.webp") center top / 100% auto no-repeat; }
  .promo-banner-text { padding: 16px; max-width: none; width: 100%; }
  .promo-banner-title { font-size: 1.15rem; }
  .promo-banner-offer { font-size: 1.5rem; }
  .promo-banner .btn { display: block; min-width: 0; }
}

/* Screenshots of the casino's own boxes, playfinalogin 2026-10-23 */
.shot { margin: 18px 0 24px; text-align: center; }
.shot img { width: 100%; max-width: 440px; height: auto; border: 1px solid #4a3f7a; border-radius: 12px; }
.shot.wide img { max-width: 720px; }
.shot figcaption { color: var(--text); font-size: .9rem; margin-top: 8px; }
