/* =========================================================
   SiteHitz — global stylesheet
   Design tokens: navy / teal / orange accent, Inter typeface
   ========================================================= */

:root {
  --navy-950: #071429;
  --navy-900: #0b1f3a;
  --navy-800: #12294d;
  --navy-700: #1b3763;
  --teal-600: #0f9b8e;
  --teal-500: #14b8a6;
  --teal-100: #e3faf6;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #fff1e6;
  --ink-900: #101826;
  --ink-700: #33404f;
  --ink-500: #5b6b7c;
  --ink-300: #93a2b1;
  --line: #e3e8ee;
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 1px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.16);
  --container: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; border-radius: 999px; padding: .8em 1.5em; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { color: var(--teal-600); background: transparent; border-color: var(--teal-500); }
.btn-ghost:hover { background: var(--teal-100); }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }
.btn-large { padding: 1em 2em; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header { background: var(--navy-900); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: linear-gradient(135deg, var(--teal-500), var(--orange-500));
  color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.brand-text { color: #fff; }
.brand-footer { color: var(--navy-900); margin-bottom: 12px; }
.brand-footer .brand-text { color: var(--navy-900); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle-bar { width: 20px; height: 2px; background: #fff; margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

.primary-nav { display: flex; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.88); font-weight: 600;
  font-size: .92rem; padding: 12px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-link:hover, .nav-item.is-current > .nav-link { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.chev { transition: transform .15s ease; opacity: .8; }
.nav-item.has-dropdown:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-700); font-size: .9rem; font-weight: 500; }
.dropdown a:hover { background: var(--teal-100); color: var(--teal-600); text-decoration: none; }
.nav-item-cta { margin-left: 6px; }

/* Breadcrumbs */
.breadcrumb-bar { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; font-size: .82rem; color: var(--ink-500); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs li[aria-current] { color: var(--navy-900); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(circle at 15% 15%, #123057 0%, var(--navy-950) 55%, #050d1a 100%);
  color: #fff; padding: 76px 0 92px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 55%; padding-bottom: 55%;
  background: radial-gradient(circle, rgba(20,184,166,.35), transparent 70%); border-radius: 50%; filter: blur(10px);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: var(--teal-500); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.section-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 56px 0 64px;
}
.section-hero h1 { color: #fff; }
.section-hero p.lead { color: rgba(255,255,255,.8); max-width: 680px; font-size: 1.08rem; }

/* ===== Generic page/content layout ===== */
.page-section { padding: 64px 0; }
.page-section.alt { background: var(--surface-alt); }
.page-section.tight { padding: 40px 0; }
.section-heading { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-heading p { color: var(--ink-500); font-size: 1.05rem; }
.section-heading.left { text-align: left; margin-left: 0; }

.article-body { max-width: 780px; }
.article-body h2 { border-top: 1px solid var(--line); padding-top: 1em; }
.article-body h2:first-child { border-top: none; padding-top: 0; }
.article-body ul li, .article-body ol li { color: var(--ink-700); }

.content-columns { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
.side-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.rail-card { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.rail-card h3 { margin-top: 0; font-size: 1rem; }
.rail-card ul { list-style: none; padding: 0; margin: 0; }
.rail-card li { border-bottom: 1px solid var(--line); padding: 9px 0; }
.rail-card li:last-child { border-bottom: none; }
.rail-card a { color: var(--ink-700); font-weight: 500; font-size: .92rem; }
.rail-card a:hover { color: var(--teal-600); }
.rail-cta { background: var(--navy-900); color: #fff; border-radius: var(--radius-md); padding: 24px; text-align: center; }
.rail-cta h3 { color: #fff; }
.rail-cta p { color: rgba(255,255,255,.75); font-size: .9rem; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-100); color: var(--teal-600); font-weight: 800; margin-bottom: 16px; font-size: 1.1rem;
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card p { color: var(--ink-500); font-size: .92rem; margin-bottom: 0; flex-grow: 1; }
.card .card-link { margin-top: 16px; font-weight: 700; font-size: .88rem; color: var(--teal-600); }

.section-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; color: inherit;
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.section-card .num { color: var(--orange-500); font-weight: 800; font-size: .8rem; letter-spacing: .08em; }
.section-card h3 { margin: 10px 0 8px; }
.section-card p { color: var(--ink-500); margin-bottom: 14px; }
.section-card .count { font-size: .8rem; color: var(--ink-300); font-weight: 600; }

.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.article-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; transition: box-shadow .15s ease, transform .15s ease;
}
.article-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.article-row h3 { margin: 0 0 4px; font-size: 1.03rem; }
.article-row p { margin: 0; color: var(--ink-500); font-size: .88rem; }
.article-row .arrow { flex-shrink: 0; color: var(--orange-500); font-size: 1.3rem; }

.subitem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.stat .label { color: var(--ink-500); font-size: .88rem; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--teal-600), var(--navy-800)); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(7, 1fr); gap: 28px; padding-bottom: 40px; }
.footer-brand p { color: var(--ink-500); font-size: .88rem; margin: 12px 0 18px; }
.footer-col h3 { font-size: .88rem; margin-bottom: 14px; }
.footer-col h3 a { color: var(--navy-900); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-500); font-size: .84rem; }
.footer-col a:hover { color: var(--teal-600); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; color: var(--ink-500); font-size: .84rem;
}
.footer-legal { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-legal a { color: var(--ink-500); }

/* ===== Forms ===== */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; color: var(--navy-900); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink-900); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: .8rem; color: var(--ink-500); margin-top: 6px; }
/* Honeypot field: hidden from real users, visible to naive bots that fill every field */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .92rem; font-weight: 500; }
.form-alert.success { background: var(--teal-100); color: #0b6b60; border: 1px solid #b7ece2; }
.form-alert.error { background: #fdecea; color: #9b2c22; border: 1px solid #f7cac5; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 36px; height: 100%; }
.contact-info-card h2 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,.78); }
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-info-list .ci-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: var(--teal-500); font-weight: 800;
}

/* ===== Misc ===== */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag { background: var(--teal-100); color: var(--teal-600); font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.tag.orange { background: var(--orange-100); color: var(--orange-600); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-alt); color: var(--navy-900); font-weight: 700; }
blockquote { border-left: 4px solid var(--teal-500); margin: 1.4em 0; padding: .4em 0 .4em 1.2em; color: var(--ink-700); font-style: italic; }
code { background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; font-size: .88em; }

.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--teal-500); line-height: 1; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .content-columns { grid-template-columns: 1fr; }
  .side-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-rail .rail-card, .side-rail .rail-cta { flex: 1 1 260px; }
  .subitem-list { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--navy-900); padding: 10px 20px 30px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 10px; font-size: 1rem; justify-content: space-between; }
  .dropdown {
    position: static; box-shadow: none; background: rgba(255,255,255,.04); display: none; opacity: 1; visibility: visible; transform: none;
    border-radius: 10px; margin: 2px 0 6px;
  }
  .nav-item.is-open .dropdown { display: block; }
  .nav-item.is-open .chev { transform: rotate(180deg); }
  .dropdown a { color: rgba(255,255,255,.82); }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-item-cta { margin: 14px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .subitem-list { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .hero { padding: 52px 0 64px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { height: 64px; }
}
