/* ════════════════════════════════════════════════════════════
   includes/site.css
   Shared styles for all PUBLIC marketing pages (home, rates,
   blog, about, contact, legal). Loads alongside design.css,
   which still owns the core --variables and dashboard .btn/.card
   classes. This file only adds what the public site needs on
   top of that, plus the fallback tokens if design.css var names
   ever drift.
   ════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

:root{
  --bg:#0b0f14; --surface:#11161d; --surface2:#161d26; --border:#222b35;
  --text:#eef2f6; --muted:#8c97a3;
  --accent:#0070ba; --accent3:#009cde;
  --success:#22c55e; --warning:#f59e0b; --danger:#ef4444;
}
html,body{background:var(--bg); color:var(--text); margin:0; font-family:'Inter',system-ui,sans-serif;}
a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block;}
::selection{background:rgba(0,156,222,.3);}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px 20px; border-radius:10px; font-size:14px; font-weight:600; border:1px solid transparent; cursor:pointer; transition:all .15s; white-space:nowrap;}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent3)); color:#fff;}
.btn-primary:hover{filter:brightness(1.08); transform:translateY(-1px);}
.btn-ghost{background:var(--surface); border-color:var(--border); color:var(--text);}
.btn-ghost:hover{border-color:rgba(255,255,255,.2);}
.btn-sm{padding:9px 16px; font-size:13px;}
.btn-lg{padding:14px 26px; font-size:15px;}
.btn-block{width:100%;}

.card{background:var(--surface); border:1px solid var(--border); border-radius:18px;}

/* ───────── HEADER (shared across all pages) ───────── */
.site-header{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 48px;
  background:rgba(11,15,20,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{display:flex; align-items:center; gap:10px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:18px; letter-spacing:-.3px;}
.brand-mark{width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#0070ba,#009cde); display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; font-size:15px; flex-shrink:0;}

.nav-links{display:flex; gap:30px; align-items:center;}
.nav-links a{font-size:14px; font-weight:500; color:var(--muted); transition:color .15s; position:relative;}
.nav-links a:hover, .nav-links a.active{color:var(--text);}
.nav-links a.active::after{content:''; position:absolute; left:0; right:0; bottom:-19px; height:2px; background:var(--accent3);}

.has-dropdown{position:relative;}
.has-dropdown > span{display:flex; align-items:center; gap:5px; cursor:pointer; font-size:14px; font-weight:500; color:var(--muted);}
.has-dropdown:hover > span{color:var(--text);}
.has-dropdown > span svg{width:13px; height:13px; stroke:currentColor; stroke-width:2; fill:none; transition:transform .15s;}
.has-dropdown:hover > span svg{transform:rotate(180deg);}
.dropdown-menu{
  position:absolute; top:calc(100% + 18px); left:50%; transform:translateX(-50%) translateY(6px);
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:10px; min-width:220px; box-shadow:0 20px 40px rgba(0,0,0,.4);
  opacity:0; pointer-events:none; transition:opacity .15s, transform .15s;
}
.has-dropdown:hover .dropdown-menu{opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0);}
.dropdown-menu a{display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:9px; font-size:13.5px; font-weight:600; color:var(--text);}
.dropdown-menu a:hover{background:var(--surface2);}
.dropdown-menu a span.dd-desc{font-size:11.5px; font-weight:400; color:var(--muted);}

.nav-cta{display:flex; gap:12px; align-items:center;}
.nav-toggle{display:none; background:none; border:1px solid var(--border); color:var(--text); cursor:pointer; padding:9px; border-radius:9px;}
.nav-toggle svg{width:20px; height:20px; stroke:currentColor; stroke-width:2; fill:none;}

.mobile-menu{
  display:none; position:fixed; inset:0; z-index:99; background:var(--bg);
  padding:90px 24px 40px; overflow-y:auto;
}
.mobile-menu.open{display:block;}
.mobile-menu a{display:block; padding:16px 4px; font-size:17px; font-weight:600; border-bottom:1px solid var(--border);}
.mobile-menu .mm-sub{padding-left:14px; font-size:14px; color:var(--muted); font-weight:500; border-bottom:none; padding-top:8px; padding-bottom:8px;}
.mobile-menu .mm-actions{display:flex; flex-direction:column; gap:12px; margin-top:24px;}

/* ───────── PAGE HERO (sub-pages) ───────── */
.page-hero{padding:72px 48px 48px; max-width:1320px; margin:0 auto;}
.page-hero .eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent3); background:rgba(0,156,222,.08); border:1px solid rgba(0,156,222,.2); padding:7px 14px; border-radius:100px; margin-bottom:20px;}
.page-hero h1{font-family:'Space Grotesk',sans-serif; font-size:44px; font-weight:700; letter-spacing:-1.4px; line-height:1.1; margin-bottom:16px; max-width:760px;}
.page-hero p.lead{font-size:16.5px; color:var(--muted); line-height:1.65; max-width:640px;}
.breadcrumb{display:flex; gap:8px; align-items:center; font-size:13px; color:var(--muted); margin-bottom:18px;}
.breadcrumb a{color:var(--muted);}
.breadcrumb a:hover{color:var(--accent3);}

/* ───────── GENERIC SECTION SHELL ───────── */
.section{padding:72px 48px; max-width:1320px; margin:0 auto;}
.section-tight{padding-top:0;}
.section-head{max-width:620px; margin-bottom:48px;}
.section-eyebrow{font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent3); margin-bottom:12px;}
.section-head h2{font-family:'Space Grotesk',sans-serif; font-size:34px; font-weight:700; letter-spacing:-1px; line-height:1.15; margin-bottom:14px;}
.section-head p{color:var(--muted); font-size:15.5px; line-height:1.6;}
.section-head.center{margin:0 auto 48px; text-align:center;}

/* ───────── FOOTER (shared) ───────── */
.site-footer{border-top:1px solid var(--border); padding:56px 48px 32px; margin-top:40px;}
.footer-inner{max-width:1320px; margin:0 auto;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px;}
.footer-brand p{font-size:13.5px; color:var(--muted); line-height:1.65; margin-top:14px; max-width:280px;}
.footer-social{display:flex; gap:10px; margin-top:18px;}
.footer-social a{width:34px; height:34px; border-radius:9px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center;}
.footer-social a svg{width:15px; height:15px; stroke:var(--muted); fill:none; stroke-width:2;}
.footer-social a:hover svg{stroke:var(--accent3);}
.footer-col h4{font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:16px;}
.footer-col a{display:block; font-size:13.5px; color:var(--text); opacity:.85; margin-bottom:11px;}
.footer-col a:hover{opacity:1; color:var(--accent3);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--border); flex-wrap:wrap; gap:12px;}
.footer-bottom p{font-size:12.5px; color:var(--muted);}
.footer-disclaimer{font-size:11.5px; color:var(--muted); opacity:.7; max-width:900px; line-height:1.6; margin-top:18px;}

/* ───────── LEGAL / CONTENT PAGES ───────── */
.legal-body{max-width:760px; margin:0 auto; padding:0 48px 80px;}
.legal-body h2{font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:700; margin:40px 0 14px; letter-spacing:-.3px;}
.legal-body h2:first-child{margin-top:0;}
.legal-body p{font-size:15px; color:var(--muted); line-height:1.75; margin-bottom:14px;}
.legal-body ul{margin:0 0 14px; padding-left:20px;}
.legal-body li{font-size:15px; color:var(--muted); line-height:1.75; margin-bottom:8px;}
.legal-body strong{color:var(--text);}
.legal-updated{font-size:13px; color:var(--muted); margin-bottom:36px; padding-bottom:24px; border-bottom:1px solid var(--border);}
.legal-toc{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px 22px; margin-bottom:36px;}
.legal-toc h4{font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:12px;}
.legal-toc a{display:block; font-size:13.5px; color:var(--accent3); margin-bottom:8px;}
.legal-toc a:last-child{margin-bottom:0;}

/* ───────── BLOG ───────── */
.blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.blog-card{background:var(--surface); border:1px solid var(--border); border-radius:18px; overflow:hidden; transition:all .15s; display:flex; flex-direction:column;}
.blog-card:hover{border-color:rgba(255,255,255,.16); transform:translateY(-3px);}
.blog-thumb{height:160px; display:flex; align-items:center; justify-content:center; font-size:34px; position:relative;}
.blog-cat{position:absolute; top:14px; left:14px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:100px; background:rgba(11,15,20,.55); backdrop-filter:blur(4px);}
.blog-card-body{padding:20px 22px 24px; flex:1; display:flex; flex-direction:column;}
.blog-meta{font-size:12px; color:var(--muted); margin-bottom:10px; display:flex; gap:8px; align-items:center;}
.blog-card h3{font-size:16.5px; font-weight:700; line-height:1.4; margin-bottom:10px;}
.blog-card p{font-size:13.5px; color:var(--muted); line-height:1.6; flex:1;}
.blog-readmore{font-size:13px; font-weight:600; color:var(--accent3); margin-top:14px; display:inline-flex; align-items:center; gap:5px;}

.blog-featured{display:grid; grid-template-columns:1.1fr .9fr; gap:0; background:var(--surface); border:1px solid var(--border); border-radius:20px; overflow:hidden; margin-bottom:48px;}
.blog-featured-img{background:linear-gradient(135deg,rgba(0,112,186,.25),rgba(34,197,94,.15)); display:flex; align-items:center; justify-content:center; font-size:64px; min-height:280px;}
.blog-featured-body{padding:40px 44px; display:flex; flex-direction:column; justify-content:center;}
.blog-featured-body h2{font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:700; letter-spacing:-.6px; margin:14px 0 12px; line-height:1.25;}

.article-body{max-width:720px; margin:0 auto; padding:0 48px 80px;}
.article-body p{font-size:16px; color:#c7ccd2; line-height:1.85; margin-bottom:20px;}
.article-body h2{font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:700; margin:36px 0 16px; letter-spacing:-.4px;}
.article-body ul{margin:0 0 20px; padding-left:22px;}
.article-body li{font-size:16px; color:#c7ccd2; line-height:1.8; margin-bottom:10px;}
.article-hero-img{height:320px; border-radius:20px; background:linear-gradient(135deg,rgba(0,112,186,.3),rgba(34,197,94,.15)); display:flex; align-items:center; justify-content:center; font-size:80px; margin-bottom:40px;}
.article-tags{display:flex; gap:8px; margin-top:32px; flex-wrap:wrap;}
.article-tag{font-size:12px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--border); padding:6px 12px; border-radius:100px;}

/* ───────── RATES PAGE ───────── */
.rates-toolbar{display:flex; gap:14px; align-items:center; margin-bottom:28px; flex-wrap:wrap;}
.rates-search{flex:1; min-width:220px; display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 16px;}
.rates-search svg{width:17px; height:17px; stroke:var(--muted); stroke-width:2; fill:none; flex-shrink:0;}
.rates-search input{background:none; border:none; outline:none; color:var(--text); font-size:14px; width:100%; font-family:inherit;}
.rates-filter-chip{padding:10px 16px; border-radius:100px; background:var(--surface); border:1px solid var(--border); font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; transition:all .15s; white-space:nowrap;}
.rates-filter-chip.active{background:rgba(0,156,222,.12); border-color:rgba(0,156,222,.35); color:var(--accent3);}
.rates-table-wrap{background:var(--surface); border:1px solid var(--border); border-radius:18px; overflow:hidden;}
.rates-table{width:100%; border-collapse:collapse;}
.rates-table th{text-align:left; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:16px 22px; border-bottom:1px solid var(--border);}
.rates-table td{padding:16px 22px; border-bottom:1px solid var(--border); font-size:14px;}
.rates-table tr:last-child td{border-bottom:none;}
.rates-table tr:hover td{background:rgba(255,255,255,.015);}
.rt-brand{display:flex; align-items:center; gap:12px; font-weight:600;}
.rt-mark{width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#fff; flex-shrink:0;}
.rt-rate{font-family:ui-monospace,monospace; font-weight:700; color:var(--success);}
.rt-trend{font-size:11.5px; color:var(--muted);}
.rt-trend.up{color:var(--success);}
.rt-trend.down{color:var(--danger);}

/* ───────── ABOUT / TEAM / VALUES ───────── */
.value-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.value-card{padding:28px; background:var(--surface); border:1px solid var(--border); border-radius:18px;}
.value-icon{width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.value-icon svg{width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;}
.value-card h3{font-size:16px; font-weight:700; margin-bottom:8px;}
.value-card p{font-size:13.5px; color:var(--muted); line-height:1.6;}

.timeline{position:relative; padding-left:32px; border-left:1px solid var(--border);}
.tl-item{position:relative; padding-bottom:36px;}
.tl-item:last-child{padding-bottom:0;}
.tl-item::before{content:''; position:absolute; left:-37px; top:2px; width:11px; height:11px; border-radius:50%; background:var(--accent3); border:3px solid var(--bg);}
.tl-year{font-family:'Space Grotesk',sans-serif; font-size:13px; font-weight:700; color:var(--accent3); margin-bottom:6px;}
.tl-item h4{font-size:15.5px; font-weight:700; margin-bottom:6px;}
.tl-item p{font-size:13.5px; color:var(--muted); line-height:1.6; max-width:520px;}

/* ───────── CONTACT ───────── */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.contact-method{display:flex; gap:16px; padding:22px; background:var(--surface); border:1px solid var(--border); border-radius:16px; margin-bottom:16px;}
.contact-method .cm-icon{width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.contact-method .cm-icon svg{width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:2;}
.contact-method h4{font-size:14.5px; font-weight:700; margin-bottom:3px;}
.contact-method p{font-size:13px; color:var(--muted);}
.contact-form{background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:32px;}
.form-row{margin-bottom:18px;}
.form-row label{display:block; font-size:13px; font-weight:600; margin-bottom:8px;}
.form-row input, .form-row select, .form-row textarea{
  width:100%; background:var(--surface2); border:1px solid var(--border); border-radius:10px;
  padding:12px 14px; color:var(--text); font-size:14px; font-family:inherit; outline:none; transition:border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{border-color:var(--accent3);}
.form-row textarea{resize:vertical; min-height:120px;}

/* ───────── RESPONSIVE ───────── */
@media(max-width:1100px){
  .blog-grid{grid-template-columns:repeat(2,1fr);}
  .blog-featured{grid-template-columns:1fr;}
  .value-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
}
@media(max-width:768px){
  .site-header{padding:14px 20px;}
  .nav-links{display:none;}
  .nav-cta .btn-ghost{display:none;}
  .nav-toggle{display:flex;}
  .page-hero{padding:40px 20px 32px;}
  .page-hero h1{font-size:32px;}
  .section{padding:48px 20px;}
  .legal-body, .article-body{padding:0 20px 56px;}
  .blog-grid{grid-template-columns:1fr;}
  .rates-table-wrap{overflow-x:auto;}
  .rates-table{min-width:560px;}
}
</style>
