/* =========================================================================
   Gold365 Guide — main stylesheet
   Premium dark + gold theme. Mobile-first. System font stack for speed.
   ========================================================================= */

:root {
  --color-bg: #070707;
  --color-surface: #111111;
  --color-surface-soft: #191919;
  --color-gold: #d4af37;
  --color-gold-light: #ffd86b;
  --color-gold-dark: #9b7414;
  --color-text: #f7f7f7;
  --color-muted: #b8b8b8;
  --color-border: rgba(212, 175, 55, 0.28);
  --color-success: #2ecc71;
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ---- Base ---- */
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; margin: 0 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.6rem; color: var(--color-gold-light); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
strong { color: #fff; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--color-gold-light); outline-offset: 2px; border-radius: 4px; }

/* ---- Sections ---- */
.section { padding: 2.4rem 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section .container > p.lead, .lead { font-size: 1.08rem; color: var(--color-muted); }
.section-title-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--color-gold); font-weight: 700; margin-bottom: 0.4rem; }

/* ---- Hero ---- */
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy .lead { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 1rem; }
.hero-media img, .rounded-img { border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hero-badge { font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.75rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-gold-light); background: rgba(212, 175, 55, 0.08); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* ---- Buttons ---- */
.btn-lg { min-height: 54px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { color: var(--color-gold-light); background: transparent; border: 1.5px solid var(--color-gold); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); transform: translateY(-1px); }
.btn-ghost { color: var(--color-text); background: var(--color-surface-soft); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-gold); }

/* ---- Cards ---- */
.cards-grid { display: grid; gap: 1rem; margin: 1.4rem 0; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.4rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212, 175, 55, 0.12); border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 0.8rem; color: var(--color-gold-light); font-size: 1.3rem; }
.card-soft { background: var(--color-surface-soft); }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0.9rem; margin: 1.4rem 0; }
.steps li { counter-increment: step; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 1rem 1.1rem 1rem 3.4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0.9rem; top: 0.95rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #090909; background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold)); font-size: 0.95rem; }
.steps li strong { display: block; margin-bottom: 0.2rem; }

/* ---- Checklists ---- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: 0.7rem; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0.05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(46, 204, 113, 0.15); color: var(--color-success); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.checklist.warn li::before { content: "\2715"; background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4rem 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
table.info-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--color-surface); }
.info-table th, .info-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid rgba(212, 175, 55, 0.14); font-size: 0.95rem; }
.info-table th { color: var(--color-gold-light); font-weight: 700; background: var(--color-surface-soft); white-space: nowrap; }
.info-table tr:last-child td { border-bottom: 0; }

/* Nested containers (e.g. FAQ block rendered inside an already-contained
   article body) must not double the horizontal padding or re-centre. */
.container .container { padding: 0; max-width: 100%; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 2.6rem 1rem 1.1rem; font-weight: 700; list-style: none; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-gold); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--color-gold-light); }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--color-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---- CTA panel ---- */
.cta-panel { margin: 2.5rem auto; max-width: calc(var(--max-width) - 2rem); text-align: center; background: linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(17, 17, 17, 0.9) 55%), var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.4rem 1.4rem; box-shadow: var(--shadow-soft); }
.cta-panel h2 { margin-bottom: 0.6rem; }
.cta-panel p { max-width: 620px; margin: 0 auto 1.2rem; color: var(--color-muted); }
.cta-panel-actions { margin-bottom: 1rem; }

/* ---- Notes & badges ---- */
.note-18 { font-size: 0.85rem; color: var(--color-muted); border-left: 3px solid var(--color-gold-dark); padding: 0.5rem 0.9rem; background: rgba(212, 175, 55, 0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1rem 0 0; }
.badge-18 { display: inline-block; font-weight: 800; color: var(--color-gold-light); border: 1.5px solid var(--color-gold); border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.callout { background: var(--color-surface-soft); border: 1px solid var(--color-border); border-left: 4px solid var(--color-gold); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 1rem 0 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 0 auto; max-width: var(--max-width); padding: 0 1rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--color-gold-dark); margin-right: 0.3rem; }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-gold-light); }
.breadcrumbs li[aria-current] { color: var(--color-gold-light); }

/* ---- Blog ---- */
.blog-grid { display: grid; gap: 1.2rem; margin: 1.6rem 0; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: var(--color-gold); }
.post-card img { width: 100%; aspect-ratio: 900 / 650; object-fit: cover; }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card h3 { margin: 0; }
.post-card h3 a { color: var(--color-text); text-decoration: none; }
.post-card h3 a:hover { color: var(--color-gold-light); }
.post-meta { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

.article-body { max-width: 780px; }
.article-hero { margin: 1.4rem 0 2rem; }
.article-body img { border-radius: var(--radius-md); border: 1px solid var(--color-border); }

/* ---- Two-column media rows ---- */
.media-row { display: grid; gap: 1.6rem; align-items: center; margin: 1.6rem 0; }
@media (min-width: 860px) { .media-row { grid-template-columns: 1fr 1fr; } .media-row.reverse > :first-child { order: 2; } }

/* ---- Footer ---- */
.site-footer { margin-top: 3rem; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 2.6rem 0 5.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin: 0 0 0.8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--color-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-brand p, .footer-disclaimer p { color: var(--color-muted); font-size: 0.85rem; }
.footer-cta { margin-top: 0.8rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(212, 175, 55, 0.14); display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; color: var(--color-muted); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr; } .site-footer { padding-bottom: 2.6rem; } }

/* ---- Sticky mobile CTA ---- */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(7, 7, 7, 0.95); backdrop-filter: blur(8px); border-top: 1px solid var(--color-border); }
@media (min-width: 800px) { .sticky-cta { display: none; } }

/* ---- Mobile nav open state ---- */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold-light); }
.text-muted { color: var(--color-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 767px) {
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .nav-cta .btn, .footer-cta .btn, .breadcrumbs + * .btn-inline { width: auto; }
}

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