/*
Theme Name: CA12 GreenPromo (ACF) — Australia
Theme URI: https://example.com/
Author: Your Team
Description: Green promo dashboard with sidebar + promo grid. All links from ACF Options. Australia locale.
Version: 1.0.0
Text Domain: ca12-greenpromo-au
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#06220f;
  --bg1:#041b0c;

  --panel:#0a2d14;
  --panel2:#082511;
  --card:#0b3316;

  --line: rgba(255,255,255,.10);

  --text:#ecfff2;
  --muted: rgba(236,255,242,.72);

  --lime:#8dff52;
  --lime2:#4dff7c;
  --yellow:#ffd54a;
  --cyan:#2ef2ff;

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow2: 0 12px 28px rgba(141,255,82,.12);

  --wrap: 1240px;
  --sidebar: 250px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 70% 10%, rgba(141,255,82,.10), transparent 60%),
    radial-gradient(900px 520px at 20% 20%, rgba(46,242,255,.06), transparent 56%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid rgba(46,242,255,.75);
  outline-offset: 2px;
  border-radius: 12px;
}
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 16px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.flag{ display:block; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing:.2px;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: rgba(236,255,242,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.07); border-color: rgba(141,255,82,.22); }

.btn--lime{
  background: linear-gradient(180deg, var(--lime2), var(--lime));
  color: #06220f;
  box-shadow: var(--shadow2);
}
.btn--lime:hover{ filter: brightness(1.05); }

.link{
  color: rgba(236,255,242,.92);
  text-decoration: underline;
  text-decoration-color: rgba(141,255,82,.45);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(141,255,82,.88); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(6,34,15,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 170px;
}
.brand__logo{ height: 30px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
}

.tright{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content:flex-end;
  min-width: 300px;
}
.locale{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  color: rgba(236,255,242,.92);
  font-size: 13px;
}
@media (max-width: 980px){
  .tright{ min-width: 0; }
}

/* Shell */
.shell{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 16px 26px;
  display:grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
}
.sidebar{
  position: sticky;
  top: 76px;
}
@media (max-width: 980px){
  .sidebar{ position: static; top:auto; }
}
.sidebar__box{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sidebar__title{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.25px;
  font-size: 12px;
  color: rgba(236,255,242,.78);
}
.smenu{ padding: 10px; }
.smenu__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.smenu__a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  color: rgba(236,255,242,.90);
}
.smenu__a:hover{ background: rgba(141,255,82,.08); border-color: rgba(141,255,82,.20); }
.smenu__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

.content{ min-width: 0; }

/* Section head */
.section{ padding-top: 8px; }
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0 10px;
}
.section-head__title{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(236,255,242,.92);
}
.section-head__more{
  color: rgba(236,255,242,.72);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid rgba(141,255,82,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(141,255,82,.65); }

/* Promos grid */
.gridbox{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.gridbox__inner{ padding: 12px; }

.pgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px){
  .pgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1100px){
  .pgrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.pcard{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 150px;
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.pcard:hover{ transform: translateY(-1px); border-color: rgba(141,255,82,.20); background: rgba(255,255,255,.04); }

.pbg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.92;
  filter: saturate(1.1) contrast(1.05);
}
.poverlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 30% 30%, rgba(141,255,82,.14), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.12));
}
.pinner{
  position:relative;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 150px;
}
.pbadge{
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,213,74,.14);
  border: 1px solid rgba(255,213,74,.25);
  font-weight: 1000;
  font-size: 12px;
  color: rgba(236,255,242,.96);
}
.ptitle{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}
.psub{
  margin:0;
  color: rgba(236,255,242,.76);
  font-weight: 850;
  line-height: 1.5;
}
.pactions{ margin-top:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* SEO */
.seo{
  margin-top: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 380px at 80% 20%, rgba(141,255,82,.10), transparent 60%),
    radial-gradient(900px 380px at 20% 40%, rgba(46,242,255,.08), transparent 60%),
    rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding: 16px;
}
@media (min-width: 980px){ .seo{ padding: 22px; } }
.seo__title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.25px;
}
.prose{
  max-width: 980px;
  color: rgba(236,255,242,.86);
}
.prose h2,.prose h3,.prose h4{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: uppercase;
  margin: 22px 0 10px;
}
.prose p{ margin: 0 0 12px; line-height: 1.7; color: rgba(236,255,242,.80); }
.prose a{
  color:#fff;
  text-decoration: underline;
  text-decoration-color: rgba(141,255,82,.42);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: rgba(141,255,82,.86); }

/* Footer */
.site-footer{
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  padding: 22px 0 30px;
}
.footer-note{
  color: rgba(236,255,242,.62);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(236,255,242,.52); font-weight: 850; margin-top: 6px; }

a {
    color: #86ff56;
}