/* ──────────────────────────────────────────────────────────────
   ArthmArg — Global Stylesheet
   Tokens · Reset · Layout · Navbar · Footer · Shared Components
   ────────────────────────────────────────────────────────────── */

/* ─── 1. TOKENS ──────────────────────────────────────── */
:root {
  /* Primary */
  --ink:       #0B1426;
  --ink2:      #1E3A5F;
  --blue:      #1249A0;
  --blue2:     #1A6BD0;

  /* Accent */
  --gold:      #C8921A;
  --gold2:     #F0B429;
  --teal:      #0D7B6E;
  --teal2:     #0FA693;
  --rose:      #C62828;

  /* Surfaces */
  --bg:        #F5F7FA;
  --surface:   #FFFFFF;
  --border:    #DDE3EE;

  /* Text */
  --muted:     #64748B;
  --muted2:    #94A3B8;
  --green:     #16A34A;
  --green2:    #4ADE80;
  --red:       #DC2626;
  --red2:      #F87171;

  /* Typography */
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-mono:   'JetBrains Mono', ui-monospace, monospace;

  /* Shape */
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 2px 16px rgba(11,20,38,.08);
  --shadow-lg: 0 8px 40px rgba(11,20,38,.13);
  --container: 1200px;
}

/* ─── 2. RESET & BASE ────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ff-head); line-height: 1.2; color: var(--ink); }
button { cursor: pointer; font-family: var(--ff-body); border: none; background: none; }
input, select, textarea { font-family: var(--ff-body); font-size: 14px; }

/* ─── 3. CONTAINER & UTILITIES ───────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 4vw, 42px); color: var(--ink); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.7; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.up { color: var(--green); }
.dn { color: var(--red); }
.muted { color: var(--muted); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(18,73,160,.1); color: var(--blue); border: 1px solid rgba(18,73,160,.2); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.badge-gold { background: rgba(200,146,26,.12); color: var(--gold); border-color: rgba(200,146,26,.25); }
.badge-teal { background: rgba(13,123,110,.12); color: var(--teal); border-color: rgba(13,123,110,.25); }
.badge-rose { background: rgba(198,40,40,.12); color: var(--rose); border-color: rgba(198,40,40,.25); }

/* ─── 4. BUTTONS ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .2s; cursor: pointer; line-height: 1; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(18,73,160,.3); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ─── 5. NAVBAR ──────────────────────────────────────── */
nav.site-nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(11,20,38,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--container); margin: 0 auto; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue), var(--blue2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--ff-head); font-weight: 900; font-size: 18px; }
.logo-text { font-family: var(--ff-head); font-size: 22px; font-weight: 700; color: var(--ink); }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a, .nav-links .nav-link { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; cursor: pointer; padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links .nav-link:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -16px; left: 0; right: 0; height: 2px; background: var(--blue); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 13px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after { content: ' ▾'; font-size: 9px; opacity: .7; }
.dropdown-menu { position: absolute; top: 100%; left: -16px; margin-top: 8px; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s; z-index: 200; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; font-size: 14px; color: var(--ink); border-radius: 8px; transition: background .15s; }
.dropdown-menu a:hover { background: var(--bg); color: var(--blue); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 8px; }

/* Mobile menu */
.nav-burger { display: none; width: 36px; height: 36px; border-radius: 8px; background: var(--bg); align-items: center; justify-content: center; font-size: 20px; }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 9999; flex-direction: column; padding: 24px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu-close { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 8px; }
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--bg); color: var(--blue); }
.mobile-menu details { border-radius: 8px; }
.mobile-menu details summary { padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: 8px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu details summary::after { content: '▾'; font-size: 11px; transition: transform .2s; }
.mobile-menu details[open] summary::after { transform: rotate(180deg); }
.mobile-menu details a { padding-left: 32px; font-size: 14px; color: var(--muted); }
.mobile-menu-cta { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ─── 6. BREADCRUMB ──────────────────────────────────── */
.breadcrumb { background: var(--bg); padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--muted2); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ─── 7. CARDS ───────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; background: rgba(18,73,160,.1); }
.card-icon.gold { background: rgba(200,146,26,.1); }
.card-icon.teal { background: rgba(13,123,110,.1); }
.card-icon.rose { background: rgba(198,40,40,.1); }
.card-icon.purple { background: rgba(109,33,168,.1); }
.card-icon.green { background: rgba(22,163,74,.1); }

/* ─── 8. FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label, .field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea, .field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--ff-body); outline: none; background: var(--surface);
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,73,160,.08);
}
.form-group textarea, .field textarea { resize: vertical; min-height: 100px; }
.form-success { display: none; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 16px; text-align: center; color: var(--green); font-weight: 600; margin-top: 12px; }
.form-success.show { display: block; }
.form-error { display: none; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 12px; color: var(--red); font-size: 13px; margin-top: 8px; }
.form-error.show { display: block; }

/* Radio cards (used in quiz) */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.radio-card { position: relative; display: block; padding: 16px 18px; background: var(--surface); border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .18s; font-size: 14px; font-weight: 500; color: var(--ink); }
.radio-card:hover { border-color: var(--blue2); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card.selected, .radio-card input:checked + span { /* compatibility */ }
.radio-card.selected { border-color: var(--blue); background: rgba(18,73,160,.04); box-shadow: 0 0 0 3px rgba(18,73,160,.08); }

/* ─── 9. TOAST ───────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--green); color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; z-index: 9999; transition: transform .4s; pointer-events: none; box-shadow: var(--shadow-lg); font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ─── 10. FLOAT BUTTONS ──────────────────────────────── */
.sticky-cta { position: fixed; bottom: 24px; right: 24px; z-index: 998; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s; color: #fff; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { background: #25D366; }
.float-up { background: var(--blue); font-size: 18px; }

/* ─── 11. TICKER ─────────────────────────────────────── */
.ticker-bar { background: var(--ink); color: #fff; padding: 10px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-inner { display: flex; align-items: center; gap: 0; white-space: nowrap; animation: ticker 50s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
.tick-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; font-size: 13px; font-family: var(--ff-mono); }
.tick-sep { color: rgba(255,255,255,.2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── 12. FOOTER ─────────────────────────────────────── */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: #fff; font-size: 20px; }
.footer-brand p { font-size: 13px; margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .3px; font-family: var(--ff-body); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; transition: color .2s; color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.footer-disclaimer { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 16px; line-height: 1.7; max-width: 900px; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.soc-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s; color: #fff; }
.soc-btn:hover { background: var(--blue); }

/* ─── 13. PAGE HERO (inner pages) ────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(18,73,160,.4) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.1; position: relative; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 720px; line-height: 1.7; position: relative; }
.page-hero .badge { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); margin-bottom: 16px; }

/* ─── 14. SECTION SPACING ────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); }

/* ─── 15. RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
