/* ============================================================
   A2Zengines4sale — ROUND-8 SKIN LAYER (v1.0)
   Loads AFTER style.css — Phase-1 look on existing classes.
   1) Typography 700/600 · 2) Spacing+ · 3) Card hover lift
   4) Hero consistency dark treatment · 5) Brand tokens #E25C1E
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #E25C1E; --brandd: #c44e16; --brandsoft: #fdeee4;
  --cream: #F7F2E9; --ink: #1F1F1F;
  --r8-shadow: 0 6px 18px rgba(31,31,31,.08);
  --r8-shadow-lg: 0 14px 34px rgba(31,31,31,.14);
  --r8-radius: 14px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #FAF7F1; }
h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; }
h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-weight: 700; letter-spacing: -0.015em; }
h3 { font-weight: 600; }
p, li, td, th, a, span, div { font-family: 'Inter', system-ui, sans-serif; }

/* ---- Spacing: sections breathe ---- */
section { padding-top: 44px; padding-bottom: 44px; }
.wrap { max-width: 1180px; }
.answer { line-height: 1.65; }

/* ---- Header/nav polish ---- */
.site-head { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(31,31,31,.08); box-shadow: 0 1px 0 rgba(31,31,31,.04); }
.site-head .btn, .head-cta .btn { border-radius: 999px; font-weight: 700; }

/* ---- Hero consistency: dark treatment on ALL page types ---- */
.hero { background: linear-gradient(120deg, #1F1F1F 0%, #2b2320 55%, #3a2a20 100%); position: relative; overflow: hidden; }
.hero:not(.hero-bg) { background-attachment: scroll; }
.hero:not(.hero-bg)::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1000px 400px at 85% 10%, rgba(226,92,30,.14), transparent 60%); pointer-events: none; }
.hero:not(.hero-bg) h1, .hero:not(.hero-bg) .answer, .hero:not(.hero-bg) .eyebrow { color: #fff; position: relative; }
.hero:not(.hero-bg) .eyebrow { color: #fdeee4; background: rgba(226,92,30,.85); display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.hero-bg { background: #1F1F1F; }
.hero-bg .hero-overlay { background: linear-gradient(100deg, rgba(31,31,31,.92) 0%, rgba(31,31,31,.72) 45%, rgba(31,31,31,.38) 100%); }
.hero .eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero .answer { opacity: .94; }

/* ---- Buttons ---- */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: 0 4px 14px rgba(226,92,30,.28); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(226,92,30,.36); }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { background: var(--brandsoft); }

/* ---- Cards: radius, shadow, hover lift ---- */
.card, .code-card, .mk-card, .mcard, .listing, .ttile { border-radius: var(--r8-radius); box-shadow: var(--r8-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.code-card, .mk-card { border: 2px solid transparent; background: #fff; }
.code-card:hover, .mk-card:hover, .card:hover, .ttile:hover { transform: translateY(-4px); box-shadow: var(--r8-shadow-lg); border-color: rgba(226,92,30,.55); }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--r8-shadow-lg); }
.listing { border: 1px solid rgba(31,31,31,.07); }
.listing img { border-radius: 10px; }
.code-card .cc-badge, .mk-badge { border-radius: 999px; font-weight: 700; }
.cc-code { font-weight: 800; letter-spacing: -.01em; }
.cc-view { color: var(--brand); font-weight: 700; }

/* ---- CTA bands ---- */
.cta-band { border-radius: 18px; box-shadow: var(--r8-shadow-lg); background: linear-gradient(100deg, var(--brand) 0%, var(--brandd) 100%); }
.cta-band a { border-radius: 999px; font-weight: 800; }
.ink-band { border-radius: 18px; background: linear-gradient(120deg, var(--ink) 0%, #2b2320 100%); }
.ink-band .btn { border-radius: 999px; }

/* ---- Tables ---- */
table { border-radius: var(--r8-radius); overflow: hidden; box-shadow: var(--r8-shadow); }
th { background: var(--ink); font-weight: 600; }

/* ---- Footer ---- */
.site-foot { background: linear-gradient(180deg, var(--ink) 0%, #191919 100%); }
.foot-col a { transition: color .15s ease; }

/* ---- Details/FAQ ---- */
details { border-radius: 12px; box-shadow: var(--r8-shadow); border: 1px solid rgba(31,31,31,.06); background: #fff; }
details summary { font-weight: 600; }

/* ---- Trust strip / tiles ---- */
.trust-strip .ts, .ttile { background: #fff; }
.ttile b { color: var(--brand); }

/* ---- Callbar (sticky mobile) ---- */
.callbar { background: rgba(255,255,255,.98); backdrop-filter: blur(8px); border-top: 1px solid rgba(31,31,31,.08); }
.callbar .cb-call, .callbar .cb-ghost { border-radius: 999px; font-weight: 800; }

/* ---- Chips ---- */
.chip-row span { border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }

/* ---- Focus ---- */
:focus-visible { outline: 3px solid rgba(226,92,30,.5); outline-offset: 2px; }

/* ---- R8 nav dropdown modal (injected by nav-dropdown.js) ---- */
.r8-dd { position: relative; display: inline-block; }
.r8-dd-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; cursor: pointer; background: none; border: 0; padding: 6px 8px; border-radius: 8px; font-family: 'Inter', system-ui, sans-serif; }
.r8-dd-btn:hover { background: var(--brandsoft); color: var(--brand); }
.r8-dd-btn .caret { font-size: 9px; transition: transform .18s ease; display: inline-block; }
.r8-dd.open .r8-dd-btn .caret { transform: rotate(180deg); }
.r8-dd-panel { position: fixed; top: 58px; left: 50%; transform: translateX(-50%) translateY(-6px); width: min(680px, 94vw); max-height: min(70vh, 560px); overflow-y: auto; background: #fff; border: 1px solid rgba(31,31,31,.1); border-radius: 18px; box-shadow: 0 24px 60px rgba(31,31,31,.25); padding: 18px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 9999; }
.r8-dd.open .r8-dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.r8-dd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.r8-dd-head b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #6b6b6b; }
.r8-dd-close { background: none; border: 0; font-size: 18px; cursor: pointer; color: #888; padding: 4px 8px; border-radius: 8px; }
.r8-dd-close:hover { background: var(--brandsoft); color: var(--brand); }
.r8-dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.r8-dd-grid a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.r8-dd-grid a:hover { background: var(--brandsoft); color: var(--brand); border-color: rgba(226,92,30,.25); }
.r8-dd-grid a .n { font-size: 11px; color: #999; font-weight: 500; }
.r8-dd-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(31,31,31,.08); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #777; }
.r8-dd-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.r8-scrim { position: fixed; inset: 0; background: rgba(31,31,31,.35); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; }
.r8-scrim.show { opacity: 1; visibility: visible; }
@media (max-width: 720px) {
  .r8-dd-panel { top: 54px; width: 96vw; }
  .r8-dd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .code-card, .mk-card, .card, .mcard, .ttile { transition: none; }
  .r8-dd-panel, .r8-scrim { transition: none; }
}
