/* ============================================================
   bravenewword.au — editorial "warm paper" theme (v3, unique)
   ============================================================ */

:root {
  --bg:            #f7f4ee;   /* warm paper */
  --bg-2:          #efe9df;
  --surface:       #ffffff;
  --ink:           #1b2130;   /* near-black navy */
  --muted:         #616b7c;
  --primary:       #4f46e5;   /* indigo */
  --primary-dark:  #3f38c9;
  --accent:        #ef5f4c;   /* coral */
  --accent-soft:   #fdeae5;
  --gold:          #c68a2e;
  --border:        #e6ddcf;   /* warm border */
  --border-soft:   #efe7da;
  --warn:          #cf4b4b;
  --radius:        10px;
  --radius-lg:     18px;
  --radius-sm:     7px;
  --shadow:        0 4px 18px rgba(27, 33, 48, .07);
  --shadow-lg:     0 18px 46px rgba(27, 33, 48, .13);
  --max:           1080px;
  --header-h:      70px;
  --serif:         Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.22; color: var(--ink); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); margin: 0 0 6px; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin: 26px 0 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247,244,238,.88);
  backdrop-filter: saturate(150%) blur(9px);
  border-bottom: 1px solid var(--border);
}
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - 3px); }

.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--accent); }
.brand-tld { color: var(--primary); font-size: .95rem; }

.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .01em;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); background: var(--bg-2); text-decoration: none; }

/* ---------- Nav dropdown (About Us) ---------- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); background: transparent; border: none;
}
.dropdown-toggle:hover, .has-dropdown.open .dropdown-toggle { color: var(--primary-dark); background: var(--bg-2); }
.dropdown-toggle .caret { font-size: .65rem; transition: transform .2s; }
.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px;
  list-style: none; margin: 0; padding: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
  z-index: 120;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-size: .9rem; font-weight: 600; }
.dropdown-menu li a:hover { background: var(--bg-2); color: var(--primary-dark); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 30px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: var(--accent); font-weight: 700; margin: 0 0 16px;
  padding: 5px 12px; background: var(--accent-soft); border-radius: 40px;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0 0 24px; letter-spacing: -.02em; }
.hero h1 .year { color: var(--accent); font-style: italic; }

.byline { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.author-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.byline-name { display: block; font-weight: 700; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.byline-role { display: block; font-size: .85rem; color: var(--muted); }

.lead { font-size: 1.2rem; color: #2c3444; line-height: 1.6; }
.lead::first-letter { }

/* ---------- Top-10 casino widget (unique styling) ---------- */
.cw-widget { margin: 8px 0 26px; }
.cw-widget-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 14px; color: var(--muted); font-weight: 400; font-style: italic; }
.cw-casino-list { display: grid; gap: 10px; }

.cw-casino-card {
  display: grid;
  grid-template-columns: 40px 96px minmax(0, 1.25fr) minmax(0, 1.55fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px 14px 14px;
  transition: border-color .2s, transform .12s, box-shadow .2s;
}
.cw-casino-card:hover { border-color: var(--primary); border-left-color: var(--primary); transform: translateX(3px); box-shadow: var(--shadow); }

.cw-rank {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; font-style: italic;
  color: var(--primary); text-align: center;
}
.cw-casino-card:nth-child(1) .cw-rank,
.cw-casino-card:nth-child(2) .cw-rank,
.cw-casino-card:nth-child(3) .cw-rank { color: var(--accent); }

.cw-card-image {
  height: 60px; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; border: 1px solid var(--border-soft);
  display: grid; place-items: center; padding: 6px;
}
.cw-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.cw-card-content { min-width: 0; }
.cw-info h3 { font-family: var(--serif); margin: 0 0 3px; font-size: 1.08rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-stars { color: var(--gold); font-size: .92rem; letter-spacing: 1.5px; line-height: 1; }
.cw-half-star { opacity: .3; }

.cw-offers { min-width: 0; }
.cw-bonus-text { color: #2c3444; font-size: .92rem; font-weight: 500; line-height: 1.42; }

.cw-actions { display: flex; justify-content: flex-end; }
.cw-btn {
  display: inline-block; padding: 12px 32px; border-radius: 40px;
  font-weight: 700; font-size: .92rem; text-align: center; white-space: nowrap; letter-spacing: .02em;
  transition: transform .12s, background .15s, box-shadow .2s;
}
.cw-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cw-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgba(239,95,76,.32); }
.cw-btn-primary:hover { background: #e04d38; }

@media (max-width: 720px) {
  .cw-casino-card {
    grid-template-columns: 34px 62px 1fr;
    grid-template-areas: "rank image content" "rank offers offers" "rank actions actions";
    column-gap: 12px; row-gap: 10px;
  }
  .cw-rank { grid-area: rank; align-self: start; margin-top: 4px; }
  .cw-card-image { grid-area: image; height: 46px; }
  .cw-card-content { grid-area: content; align-self: center; }
  .cw-offers { grid-area: offers; }
  .cw-actions { grid-area: actions; justify-content: stretch; }
  .cw-actions .cw-btn { flex: 1; }
}

/* ---------- Layout ---------- */
.layout { padding-bottom: 44px; }
.article > section { padding: 38px 0; border-top: 1px solid var(--border); }
.article > section:first-child { border-top: none; }
.article > section > h2 { position: relative; padding-left: 20px; }
.article > section > h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px;
  background: linear-gradient(var(--primary), var(--accent)); border-radius: 3px;
}
.article p { color: #333b4a; margin: 14px 0; }
.note { border-left: 4px solid var(--accent); padding: 14px 20px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: #333b4a; box-shadow: var(--shadow); }
.disclaimer { font-style: italic; color: var(--muted); font-size: .92rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 22px 0; background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
thead th { background: var(--ink); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; font-family: var(--sans); white-space: nowrap; }
thead th:first-child { border-top-left-radius: 0; }
tbody td { padding: 13px 16px; border-top: 1px solid var(--border-soft); color: #333b4a; }
tbody tr:nth-child(even) { background: #faf8f3; }
tbody tr:hover { background: var(--accent-soft); }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 40px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .88rem;
  border: none; cursor: pointer; transition: transform .12s, background .12s; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.btn-sm { padding: 6px 15px; font-size: .8rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-family: var(--serif); margin: 0 0 8px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-warn { border-color: rgba(207,75,75,.35); background: #fdf3f3; }
.card-warn h3 { color: var(--warn); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card h3 { font-family: var(--serif); margin: 0 0 6px; }
.contact-card .big { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); }

/* ---------- Reviews ---------- */
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 15px; box-shadow: var(--shadow); }
.review h3 { font-family: var(--serif); margin: 0 0 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review p { margin: 0 0 12px; color: #333b4a; }
.review p:last-child { margin-bottom: 0; }
.tag { font-family: var(--sans); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 11px; border-radius: 40px; background: var(--bg-2); color: var(--primary-dark); }
.review-watch { border-color: rgba(239,95,76,.4); border-left: 4px solid var(--accent); }
.review-watch .tag { background: var(--accent-soft); color: var(--accent); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 15px; }
.steps li { position: relative; padding: 20px 20px 20px 66px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: #333b4a; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; font-family: var(--serif);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; padding: 18px 48px 18px 20px; position: relative;
  font-weight: 700; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); transition: transform .2s; font-family: var(--sans);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg-2); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- Responsible gambling banner ---------- */
.rg-banner { background: var(--ink); color: #cdd4df; padding: 48px 0; }
.rg-banner h2 { color: #fff; }
.rg-banner h2::before { display: none; }
.rg-banner p { color: #aab3c1; }
.rg-help { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.rg-help li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 15px 18px; color: #e6eaf0; font-size: .95rem; }
.rg-help li strong { color: #fff; display: block; margin-bottom: 2px; font-family: var(--serif); }

/* ---------- Footer ---------- */
.site-footer { background: #141a27; color: #9aa4b3; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-tld { color: #8b83f5; }
.footer-about { color: #8b93a2; font-size: .9rem; margin: 16px 0; }
.age-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800; margin: 0; font-family: var(--serif); }
.footer-col h4 { font-family: var(--serif); margin: 0 0 13px; color: #fff; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col ul li { color: #8b93a2; font-size: .89rem; }
.footer-col ul li a { color: #8b93a2; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 22px 0; }
.footer-bottom p { margin: 0; color: #6b7482; font-size: .82rem; text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ---------- Simple page hero (subpages) ---------- */
.page-hero { padding: 50px 0 10px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 12px 0 10px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { max-height: 460px; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px; align-items: stretch; }
  .main-nav a { padding: 12px; border-radius: var(--radius-sm); }
  .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 10px;
    max-height: 0; overflow: hidden; transition: max-height .25s; min-width: 0;
  }
  .has-dropdown.open .dropdown-menu { max-height: 340px; padding: 4px 0 4px 10px; }
}
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
