/* ==========================================================================
   JAIYAH TAYLOR — Shared Stylesheet
   Software Development • jaiyahtaylor.com
   Palette: deep navy + teal/blue accent. Mobile-first, accessible.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #071426;
  --navy-800: #0b1e33;
  --navy-700: #123152;
  --navy-600: #1a3d63;

  --accent: #14b8a6;          /* teal */
  --accent-strong: #0d9488;
  --accent-soft: #ccfbf1;

  --blue: #2563eb;
  --blue-soft: #dbeafe;

  --ink: #17233a;             /* primary text */
  --muted: #55637a;           /* secondary text */
  --line: #e2e8f0;            /* borders */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-navy: #0b1e33;

  --white: #ffffff;
  --danger: #b91c1c;
  --success: #0f766e;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(7, 20, 38, 0.06), 0 1px 3px rgba(7, 20, 38, 0.08);
  --shadow-md: 0 6px 18px rgba(7, 20, 38, 0.10);
  --shadow-lg: 0 18px 44px rgba(7, 20, 38, 0.16);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --header-h: 72px;
  --maxw: 1160px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover { color: var(--accent-strong); }

img,
svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li { margin-bottom: 0.35rem; }

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

::selection {
  background: var(--accent);
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--navy {
  background: var(--bg-navy);
  color: #dbe6f2;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

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

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
}

.text-muted { color: var(--muted); }

.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;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-600);
}

.btn--secondary:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

.btn--block { width: 100%; }

.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy-800);
}

.brand:hover { color: var(--navy-800); }

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}

.site-nav__link:hover {
  color: var(--navy-800);
  background: var(--bg-soft);
}

.site-nav__link[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  color: var(--navy-800);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(37, 99, 235, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dbe6f2;
  padding: 88px 0 96px;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 0.45em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero__lede {
  font-size: 1.15rem;
  color: #c3d2e2;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  font-size: 0.9rem;
  color: #b9c9da;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  color: var(--accent);
  flex: 0 0 auto;
}

/* Hero visual card */
.hero__visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(6px);
}

.hero-card__window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-900);
}

.hero-card__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.hero-card__dot--a { background: #f87171; }
.hero-card__dot--b { background: #fbbf24; }
.hero-card__dot--c { background: #34d399; }

.hero-card__body {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #9fb4c8;
}

.hero-card__body .k { color: #7dd3fc; }
.hero-card__body .s { color: #5eead4; }
.hero-card__body .c { color: #64748b; }
.hero-card__body .fn { color: #c4b5fd; }

.hero-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.stat__label {
  font-size: 0.74rem;
  color: #a9bccf;
}

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfe5ff;
}

.card--navy {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.10);
}

.card--navy h3 { color: var(--white); }
.card--navy p { color: #c3d2e2; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.card--navy .icon-badge {
  background: rgba(20, 184, 166, 0.16);
  color: var(--accent);
}

.card h3 { margin-bottom: 0.4em; }

.card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. "Why choose us"
   -------------------------------------------------------------------------- */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
}

.why-list .check {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent);
}

.why-list strong {
  display: block;
  color: var(--navy-800);
  margin-bottom: 2px;
}

.why-list span { color: var(--muted); }

.why-visual {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  padding: 34px;
  color: #dbe6f2;
  position: relative;
  overflow: hidden;
}

.why-visual h3 { color: var(--white); }
.why-visual p { color: #c3d2e2; }

.why-visual__chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e6eef7;
}

/* --------------------------------------------------------------------------
   9. Process strip
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.process__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process__num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

.process__step h3 { margin-bottom: 0.2em; }
.process__step p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item .icon-badge {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 10px;
}

.contact-item h3 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { color: var(--blue); font-weight: 500; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
}

.field label .req { color: var(--danger); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.field .error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
}

.field.has-error .error-msg { display: block; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.form-status--success {
  display: block;
  background: var(--accent-soft);
  color: var(--success);
  border: 1px solid #99f6e4;
}

.form-status--error {
  display: block;
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(900px 480px at 90% -20%, rgba(20, 184, 166, 0.24), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #dbe6f2;
  padding: 64px 0;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: #c3d2e2; max-width: 680px; font-size: 1.08rem; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: #a9bccf;
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   13. Values / leadership
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.leader__avatar {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-600));
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  margin-inline: auto;
}

.leader__meta { margin-top: 16px; }

.leader__meta dt {
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leader__meta dd {
  margin: 0 0 10px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. Legal pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: 780px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose a { text-decoration: underline; }

.legal-meta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #a9bccf;
  padding: 64px 0 0;
  font-size: 0.94rem;
}

.site-footer a { color: #c9d7e5; }
.site-footer a:hover { color: var(--accent); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

.site-footer__brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
}

.site-footer__brand:hover { color: var(--accent); }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li { margin-bottom: 10px; }

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #7f92a8;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   16. Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field--full { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .leader { grid-template-columns: 300px 1fr; }
  .leader__avatar { margin-inline: 0; }
  .contact-grid { grid-template-columns: 1fr 1.25fr; }
  .why-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; align-items: center; }
}

/* --------------------------------------------------------------------------
   18. Mobile navigation (JS toggles .nav-open)
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .site-nav.nav-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
}
