/* ==========================================================================
   global.css — Digitalastic
   Shared design tokens, reset, and reusable components.
   Page-specific styles live in each page's <style> block.
   ========================================================================== */

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --brand:       #1B4FFF;
  --brand-dk:    #1338CC;
  --brand-lt:    #4D78FF;
  --gold:        #D4A017;
  --gold-lt:     #F0C040;
  --accent-p:    #7C3AED;
  --accent-p-lt: #A78BFA;
  --accent-s:    #E1306C;
  --accent-s-lt: #F77FAB;
  --accent-g:    #059669;
  --ink:         #0A0A0F;
  --dark2:       #0D0D1A;
  --paper:       #F8F7F4;
  --paper2:      #F2F0EB;
  --white:       #FFFFFF;
  --text-body:   #1A1A2E;
  --text-muted:  #6B6B8A;
  --text-light:  #B0B0CC;
  --ff-display:  'Space Grotesk', sans-serif;
  --ff-logo:     'Playfair Display', serif;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.16);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-display); background: var(--paper); color: var(--text-body); overflow-x: hidden; line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--ff-display); border: none; background: none; }

/* ─── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes ticker  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes blink   { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ─── Skip Link (accessibility) ──────────────────────────────────────────── */
.skip-link { position: absolute; top: -48px; left: 16px; background: var(--brand); color: var(--white); padding: 8px 16px; z-index: 10000; font-size: 14px; font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 0; }

/* ─── Scroll Progress Bar ────────────────────────────────────────────────── */
#sp { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--brand), var(--gold-lt)); z-index: 9999; transition: width .1s linear; }

/* ─── Ticker ─────────────────────────────────────────────────────────────── */
.ticker-wrap  { background: var(--ink); overflow: hidden; white-space: nowrap; padding: 9px 0; position: relative; z-index: 100; }
.ticker-track { display: inline-block; animation: ticker 38s linear infinite; }
.ticker-track span    { display: inline-block; padding: 0 48px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-light); text-transform: uppercase; }
.ticker-track span em { color: var(--gold-lt); font-style: normal; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 500; background: rgba(13,13,26,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.35); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 40px; }
.nav-logo  { font-family: var(--ff-logo); font-size: 22px; font-weight: 900; background: linear-gradient(135deg, var(--brand-lt), var(--gold-lt)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav-links > a { font-size: 14px; font-weight: 500; color: var(--text-light); transition: color .2s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--white); }
.nav-cta  { background: var(--brand); color: var(--white) !important; padding: 9px 22px; border-radius: var(--radius-sm); font-size: 14px !important; font-weight: 600 !important; transition: background .2s, transform .2s !important; }
.nav-cta:hover { background: var(--brand-lt) !important; transform: translateY(-1px); }

/* ─── Dropdown ────────────────────────────────────────────────────────────── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { font-size: 14px; font-weight: 500; color: var(--text-light); transition: color .2s; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-item > a:hover, .nav-item > a.active { color: var(--white); }
.nav-item > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; opacity: .55; transition: transform .2s; flex-shrink: 0; }
.nav-item:hover > a::after { transform: rotate(180deg); opacity: 1; }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: -16px; background: rgba(10,10,22,.97); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 8px 6px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 600; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 500; color: var(--text-light) !important; border-radius: 6px; transition: background .15s, color .15s; white-space: nowrap; text-decoration: none; }
.nav-dropdown a:hover { background: rgba(255,255,255,.07); color: var(--white) !important; }
.nav-dropdown a.active { color: var(--brand-lt) !important; }
.nav-dropdown .dd-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.nav-dropdown .dd-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 8px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: all .3s; }
.mob-nav { display: none; position: fixed; inset: 0; z-index: 499; background: var(--dark2); flex-direction: column; align-items: center; justify-content: center; gap: 36px; opacity: 0; transition: opacity .3s; }
.mob-nav.open { display: flex; opacity: 1; }
.mob-nav a { font-size: 24px; font-weight: 600; color: var(--text-light); transition: color .2s; }
.mob-nav a:hover { color: var(--white); }
.mob-close { position: absolute; top: 20px; right: 24px; font-size: 32px; color: var(--text-light); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary      { background: var(--brand); color: var(--white); padding: 14px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; letter-spacing: .02em; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 4px 24px rgba(27,79,255,.35); display: inline-block; }
.btn-primary:hover { background: var(--brand-lt); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(27,79,255,.45); }
.btn-outline-light       { border: 1.5px solid rgba(255,255,255,.22); color: var(--white); padding: 13px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; display: inline-block; }
.btn-outline-light:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-wa       { background: #25D366; color: var(--white); padding: 14px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 4px 24px rgba(37,211,102,.35); display: inline-flex; align-items: center; gap: 10px; }
.btn-wa:hover { background: #1fbd5a; transform: translateY(-2px); }

/* ─── Section Shared Styles ─────────────────────────────────────────────── */
.section-eyebrow        { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.section-eyebrow.blue   { color: var(--brand); }
.section-eyebrow.light  { color: rgba(255,255,255,.45); }
.section-title          { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.2; }
.section-sub            { font-size: 16px; color: var(--text-muted); max-width: 580px; margin-top: 12px; line-height: 1.65; }
.section-sub.light      { color: rgba(255,255,255,.6); }
.section-header         { margin-bottom: 56px; }
.section-header.center  { text-align: center; }
.section-header.center .section-sub { margin: 12px auto 0; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb        { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a      { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--text-light); }
.breadcrumb span   { color: var(--text-light); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer         { background: #03030b; padding: 72px 24px 32px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner   { max-width: 1200px; margin: 0 auto; }
.footer-grid    { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.f-logo         { font-family: var(--ff-logo); font-size: 24px; font-weight: 900; background: linear-gradient(135deg, var(--brand-lt), var(--gold-lt)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-social  { display: flex; gap: 10px; }
.footer-social a       { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--brand); color: var(--white); }
.footer-col h5         { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 18px; }
.footer-col ul         { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a       { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contact p      { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.footer-contact a      { color: var(--brand-lt); transition: color .2s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom         { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p       { font-size: 12px; color: var(--text-muted); }
.footer-bottom-links   { display: flex; gap: 24px; }
.footer-bottom-links a       { font-size: 12px; color: var(--text-muted); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ─── Floating WhatsApp ──────────────────────────────────────────────────── */
.wa-float       { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,.45); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.wa-float svg   { width: 28px; height: 28px; fill: #fff; }
.wa-float-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPulse 2s ease-out infinite; z-index: -1; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
