/* ══════════════════════════════════════════════════════════════
   Cloudframe Solutions — shared chrome
   Loaded on every page. Contains: reset, design tokens, nav/header,
   footer, and the shared button styles. Page-specific styles
   (hero, sections, cards, etc.) stay inline on each page.

   Edit this file to change the header, footer, or buttons
   everywhere at once — no need to touch individual pages.
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f2338;
  --navy-mid:    #1B3A5C;
  --blue:        #1868DB;
  --blue-light:  #3a8aed;
  --blue-pale:   #e8f1fd;
  --accent:      #38bdf8;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --surface:     #f1f5f9;
  --muted:       #94a3b8;
  --text:        #0f172a;
  --text-light:  #475569;
  --border:      #e2e8f0;
  --green:       #22c55e;
  --red:         #ef4444;
  --amber:       #f59e0b;
  --radius:      12px;
  --font-display: 'Figtree', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, sans-serif;
  --nav-height:   72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 14px; font-weight: 500;
  font-family: var(--font-display);
  transition: color .2s;
  letter-spacing: 0.1px;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; }

.btn-nav {
  display: inline-flex; align-items: center;
  background: var(--blue) !important;
  color: white !important;
  padding: 9px 22px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: var(--font-display);
  transition: background .2s, transform .15s !important;
}
.btn-nav:hover { background: var(--blue-light) !important; transform: translateY(-1px); color: white !important; }
.btn-nav svg { width: 14px; height: 14px; margin-right: 6px; flex-shrink: 0; }

/* Products / Resources dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500;
  font-family: var(--font-display);
  transition: color .2s;
  user-select: none;
}
.nav-dropdown-toggle:hover { color: white; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu-inner {
  background: white;
  border: 1px solid var(--navy);
  border-radius: 12px;
  padding: 10px;
  min-width: 420px;
  box-shadow: 0 20px 48px rgba(15,35,56,0.2);
}
.nav-dropdown-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--navy) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: var(--font-display);
  transition: background .15s !important;
  text-decoration: none;
}
.nav-dropdown-icon {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-dropdown-copy { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-desc {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-light) !important;
}
.nav-dropdown-menu a:hover { background: var(--off-white); }
.nav-dropdown-menu a.active { background: var(--off-white); }

/* Burger / mobile drawer */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  height: auto;
  background-color: #0f2338;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column; gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 15px;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .2s;
  display: block;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: white; }
.nav-drawer a.active { color: white; }
.nav-drawer .drawer-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 14px 8px 6px;
  display: block;
}
.nav-drawer .drawer-item { padding-left: 8px; }
.nav-drawer .btn-nav-drawer {
  margin-top: 12px;
  background-color: var(--blue) !important;
  color: white !important;
  text-align: center;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-drawer .btn-nav-drawer:hover { background-color: var(--blue-light) !important; }

/* ══ SHARED BUTTONS ══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 14px;
  font-family: var(--font-display);
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(24,104,219,0.4);
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(24,104,219,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-light);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 14px;
  font-family: var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid rgba(15,35,56,0.18);
  transition: color .2s, border-color .2s;
}
.btn-ghost svg { flex-shrink: 0; width: 16px; height: 16px; }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

/* ══ FOOTER ══ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.footer-logo img {
  height: 32px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 11px; color: rgba(255,255,255,0.35);
}
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-display);
  font-size: 13px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-copy {
  font-family: var(--font-display);
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ══ RESPONSIVE (shared chrome only) ══ */
@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { justify-content: center; }
}
