/* EmeraldBetGuide — emeraldbetguide.com */

:root {
  --green-900: #04281d;
  --green-800: #06382a;
  --green-700: #0a5139;
  --green-600: #0f7a52;
  --green-500: #169c67;
  --green-300: #4fd1a0;
  --gold: #e3b23c;
  --gold-soft: #f3d98b;
  --ink: #12211c;
  --body: #3a4a44;
  --muted: #6b7d76;
  --line: #dbe6e1;
  --bg: #f6faf8;
  --card: #ffffff;
  --shadow: 0 2px 4px rgba(6, 56, 42, .04), 0 12px 32px rgba(6, 56, 42, .07);
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.22rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
a { color: var(--green-600); }
a:hover { color: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.logo .shamrock {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--green-500), var(--green-700));
  font-size: 1.05rem;
}
.logo .accent { color: var(--gold-soft); }

.nav-toggle {
  margin-left: auto; display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 8px; padding: 7px 12px;
  font-size: .95rem; cursor: pointer;
}

.nav { margin-left: auto; }
.nav ul {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .93rem; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active { background: var(--green-600); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); overflow: hidden; }
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,40,29,.95) 0%, rgba(4,40,29,.82) 46%, rgba(4,40,29,.3) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 76px 0 84px; max-width: 690px;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(227,178,60,.16); border: 1px solid rgba(227,178,60,.4);
  color: var(--gold-soft);
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Page header for inner pages */
.page-head {
  background: linear-gradient(140deg, var(--green-800), var(--green-900));
  color: #fff; padding: 54px 0 58px;
}
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: rgba(255,255,255,.85); max-width: 740px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Layout blocks ---------- */
.section { padding: 58px 0; }
.section.alt { background: #eef5f1; }
.lede { font-size: 1.1rem; color: var(--ink); }
.section-intro { max-width: 770px; margin-bottom: 34px; }
.section-intro h2 { margin-top: 0; }

.article { max-width: 830px; padding: 52px 0 10px; }
.article h2:first-of-type { margin-top: .2em; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .card-ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }
a.card { text-decoration: none; color: var(--body); display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(6,56,42,.12); }
a.card h3 { color: var(--green-700); }
.card-more { color: var(--green-600); font-weight: 600; font-size: .92rem; }

.figure { margin: 34px 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.split img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.split h2 { margin-top: 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--green-500); font-weight: 700;
}
ol.steps { padding-left: 1.2em; }
ol.steps li { margin-bottom: 9px; }

.note {
  border-left: 4px solid var(--gold);
  background: #fdf7e8; border-radius: 0 10px 10px 0;
  padding: 18px 22px; margin: 28px 0;
  font-size: .97rem;
}
.note strong { color: var(--ink); }

.warn {
  border-left: 4px solid var(--green-600);
  background: #eaf6f0; border-radius: 0 10px 10px 0;
  padding: 18px 22px; margin: 28px 0; font-size: .97rem;
}

table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .96rem; background: #fff; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-800); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #f7fbf9; }

.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-500); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 22px 18px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 34px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stat .num { font-size: 1.45rem; font-weight: 800; color: var(--green-700); display: block; line-height: 1.3; }
.stat .lbl { font-size: .88rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: var(--radius); padding: 38px 34px; margin: 46px 0 10px;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); margin-top: 60px; padding: 52px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.age-badge {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-weight: 800; font-size: .85rem; margin-right: 10px; float: left;
}
.footer-bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0 0 .6em; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; order: 3; width: 100%;
    margin: 0 0 14px; padding-top: 4px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 11px 12px; }
  .nav-row { flex-wrap: wrap; }
  .hero-inner { padding: 54px 0 58px; }
  .cta-band { padding: 30px 24px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 150px; padding: 11px 13px; }
  .article { padding-top: 38px; }
  .section { padding: 42px 0; }
  .card { padding: 22px 20px; }
}
