/* shared.css – ClearPath Technology Assurance */

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

:root {
  --navy: #0f1e2e;
  --navy-mid: #1a2f44;
  --slate: #2c4a63;
  --teal: #1a8f8f;
  --teal-light: #22b5b5;
  --cream: #f7f4ef;
  --warm-white: #fdfcfa;
  --text: #1c2b38;
  --text-mid: #4a6070;
  --text-light: #7a95a8;
  --border: #dde4ea;
  --green: #2a7a4b;
  --yellow: #b07d1a;
  --red: #9b3030;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,252,250,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--slate) !important; color: var(--cream) !important; }

/* ─── NAV TOGGLE (hamburger) ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 3rem 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand .nav-logo { color: #fff; display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.82rem; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--navy);
  padding: 8rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 50%, rgba(26,143,143,0.1) 0%, transparent 70%);
}
.page-header-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 1rem;
}
.page-header p {
  color: rgba(255,255,255,0.55); font-size: 1rem;
  max-width: 560px; line-height: 1.7; font-weight: 300;
}

/* ─── SECTIONS ─── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--navy); margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-mid); font-size: 1rem; max-width: 540px;
  font-weight: 300; line-height: 1.7; margin-bottom: 3rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--teal); color: #fff;
  padding: 0.85rem 1.75rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--teal); color: var(--teal);
  padding: 0.85rem 1.75rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ─── CARDS ─── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover { box-shadow: 0 12px 40px rgba(15,30,46,0.08); transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ─── BADGES ─── */
.badge-red { background: rgba(155,48,48,0.1); color: #9b3030; border: 1px solid rgba(155,48,48,0.25); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 100px; letter-spacing: 0.05em; }
.badge-yellow { background: rgba(176,125,26,0.1); color: #8a6010; border: 1px solid rgba(176,125,26,0.25); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 100px; letter-spacing: 0.05em; }
.badge-green { background: rgba(42,122,75,0.1); color: #2a7a4b; border: 1px solid rgba(42,122,75,0.25); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 100px; letter-spacing: 0.05em; }

/* ─── CTA STRIP ─── */
.cta-strip { background: var(--teal); padding: 4rem 2rem; text-align: center; }
.cta-strip h2 { font-family: 'DM Serif Display', serif; font-size: 2rem; color: #fff; margin-bottom: 0.75rem; }
.cta-strip p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-weight: 300; }
.btn-white { background: #fff; color: var(--teal); padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: opacity 0.2s; }
.btn-white:hover { opacity: 0.9; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(253,252,250,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
    flex-direction: column;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    letter-spacing: 0;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 0.25rem; justify-content: center; }
  .footer-inner { flex-direction: column; }
}
