/* ==================================================
   TRUTH ARC — Shared Site Stylesheet
   ================================================== */

/* --------------------------------------------------
   CSS CUSTOM PROPERTIES
-------------------------------------------------- */

:root {
  --background: #f5f9fc;
  --card: #ffffff;
  --text: #0f1f35;
  --muted: #496174;
  --primary: #0d2a57;
  --accent: #0072d6;
  --border: #d9e4ef;
  --soft: #eef6fb;
  --white: #ffffff;
  --stone: #ece7df;
  --shadow: 0 20px 50px rgba(13, 42, 87, 0.14);
}

/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container-prose {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h1 span {
  display: block;
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--soft);
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(20, 35, 70, 0.12);
  background: rgba(236, 242, 248, 0.90);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

/* --------------------------------------------------
   DESKTOP DROPDOWN (Services)
-------------------------------------------------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--primary);
}

.nav-dropdown-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(13, 42, 87, 0.14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: var(--soft);
}

.nav-dropdown-menu .dropdown-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 12px 20px 6px;
  pointer-events: none;
}

.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-button:hover {
  background: var(--accent);
}

/* --------------------------------------------------
   MOBILE MENU (hamburger)
-------------------------------------------------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 39;
  background: rgba(236, 242, 248, 0.98);
  backdrop-filter: blur(16px);
  padding: 32px 20px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Mobile nav: Services sub-menu toggle */
.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.mobile-services-toggle .mobile-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.mobile-services-toggle.is-open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-services-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-services-sub.is-open {
  max-height: 300px;
}

.mobile-services-sub a {
  padding: 12px 0 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-services-sub a:last-child {
  border-bottom: none;
}

.mobile-nav .mobile-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 800px) {
  .nav {
    display: none;
  }

  .header-button {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* --------------------------------------------------
   SHARED PAGE-HERO (used on sub-pages)
-------------------------------------------------- */

.page-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 55%, #eef6fb 100%);
  padding: 90px 0;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.page-hero .muted {
  max-width: 760px;
  font-size: 1.12rem;
}

/* --------------------------------------------------
   SHARED SECTION INTRO (dark bg)
-------------------------------------------------- */

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-intro .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section-intro h2 {
  color: #ffffff;
}

.section-intro p {
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.86);
}

/* --------------------------------------------------
   SHARED CTA BANNER
-------------------------------------------------- */

.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14366b 0%, #0f2f60 50%, #0b2550 100%);
  color: var(--white);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 24px 60px rgba(13, 42, 87, 0.25);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 45%);
  pointer-events: none;
}

.cta-banner h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.cta-banner p {
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin-bottom: 0;
}

.cta-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.cta-banner-button:hover {
  background: var(--soft);
}

/* --------------------------------------------------
   SHARED DARK SECTION
-------------------------------------------------- */

.dark-section {
  padding: 90px 0;
  background: #14366b;
}

.dark-section h2 {
  color: #ffffff;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.site-footer {
  background: #f5f9fc;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 70px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-heading {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-top p,
.footer-top a,
.footer-bottom {
  font-family: Arial, sans-serif;
  color: var(--muted);
}

.footer-top a {
  display: inline-block;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   CONTACT FORM
-------------------------------------------------- */

.contact {
  padding: 90px 0;
  background: linear-gradient(135deg, #14366b 0%, #1c4d94 55%, #1f5fbe 100%);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact .eyebrow {
  color: #d9c6ff;
}

.contact h2 {
  color: #ffffff;
}

.contact p,
.contact li {
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

.contact ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact li {
  margin-bottom: 8px;
}

form {
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  font-family: Arial, sans-serif;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------
   SHARED CARD STYLES
-------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(31, 58, 95, 0.06);
}

.card p {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 26px rgba(31, 58, 95, 0.06);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  margin-top: 9px;
}

/* --------------------------------------------------
   MOBILE VIEW
-------------------------------------------------- */

@media (max-width: 800px) {
  .contact,
  .page-hero,
  .dark-section {
    padding: 64px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
  }
}
