/* TipTop Tec v2 — premium A+B professional services
   Tokens: Navy #0B1F33 · Steel teal #1F6F8B · Off-white #F4F7FA · Copper CTA #A85F28
   Type: Source Serif 4 + Source Sans 3 · 12-col · 8px scale · Swiss flush-left
*/

:root {
  --navy: #0B1F33;
  --navy-800: #14304a;
  --navy-700: #1c4060;
  --teal: #1F6F8B;
  --teal-dark: #185a71;
  --teal-soft: #e4eef3;
  --offwhite: #F4F7FA;
  --copper: #A85F28;
  --copper-dark: #8F4E1F;
  --white: #ffffff;
  --text: #0B1F33;
  --text-body: #243447;
  --text-muted: #4a5d6e;
  --border: #cfd8e2;
  --border-soft: #e2e8ef;

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* 8px spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 64px;
  --s8: 80px;
  --s9: 96px;

  --max: 1180px;
  --narrow: 720px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 8px 32px rgba(11, 31, 51, 0.08);
  --focus: 0 0 0 3px rgba(31, 111, 139, 0.45);
  --ease: 180ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--ease);
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.visually-hidden {
  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;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: var(--s1) var(--s2);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--s2);
  top: var(--s2);
}

/* —— Layout —— */

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - (var(--gutter) * 2), var(--narrow));
}

.section {
  padding-block: var(--s8);
}

.section-label {
  margin: 0 0 var(--s1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--s6);
}

.section h2,
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section h2 {
  margin: 0 0 var(--s3);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.375rem);
}

.section-intro,
.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 42rem;
}

.section-intro.left {
  margin-bottom: var(--s4);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

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

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--white);
}

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

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--offwhite);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(244, 247, 250, 0.45);
}

.btn-ghost:hover {
  background: rgba(244, 247, 250, 0.1);
  border-color: var(--offwhite);
  color: var(--white);
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--s3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(244, 247, 250, 0.35), transparent 50%),
    linear-gradient(145deg, var(--teal) 0%, var(--navy) 100%);
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--teal-dark);
}

.site-nav .nav-cta {
  margin-left: var(--s1);
  background: var(--copper);
  color: var(--white);
  border-radius: var(--radius);
  padding-inline: 1rem;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--copper-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--offwhite);
  background: var(--navy);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(11, 31, 51, 0.92) 0%, rgba(11, 31, 51, 0.78) 42%, rgba(11, 31, 51, 0.55) 72%, rgba(11, 31, 51, 0.45) 100%),
    linear-gradient(0deg, rgba(11, 31, 51, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--s8) var(--s7);
  max-width: 44rem;
  margin-inline: 0 auto 0;
  width: min(100% - (var(--gutter) * 2), var(--max));
}

.hero .eyebrow {
  margin: 0 0 var(--s2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, 0.78);
}

.hero h1 {
  margin: 0 0 var(--s3);
  font-size: clamp(2.125rem, 3.2vw + 1rem, 3.25rem);
  color: var(--white);
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 var(--s4);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: rgba(244, 247, 250, 0.88);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* —— Trust strip —— */

.trust {
  background: var(--navy);
  color: var(--offwhite);
  padding-block: var(--s5);
  border-top: 1px solid rgba(244, 247, 250, 0.08);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3) var(--gutter);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 0 var(--s2);
  border-left: 2px solid var(--teal);
  padding-left: var(--s2);
}

.trust-value {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.trust-label {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(244, 247, 250, 0.72);
}

/* —— Value —— */

.value {
  background: var(--offwhite);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s6) var(--gutter);
  align-items: start;
}

.section-copy {
  grid-column: span 7;
}

.value-aside {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.value-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.value-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  box-shadow: var(--shadow);
}

.value-card-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--navy);
}

.value-card-role {
  margin: 0 0 var(--s3);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.value-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.value-dl div {
  padding-top: var(--s2);
  border-top: 1px solid var(--border-soft);
}

.value-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.value-dl dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.value-points {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.value-points li {
  padding-left: var(--s3);
  border-left: 2px solid var(--teal);
}

.value-points strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 600;
}

.value-points li {
  color: var(--text-muted);
  font-size: 1rem;
}

/* —— Services —— */

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s3) var(--gutter);
}

.service-card {
  grid-column: span 4;
  padding: var(--s4);
  background: var(--offwhite);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--teal);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  border-top-color: var(--navy);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 0 0 var(--s2);
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;
  font-size: 0.9875rem;
  color: var(--text-muted);
}

/* —— Experience —— */

.experience {
  background: var(--offwhite);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  max-width: 52rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 var(--s5) var(--s4);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
}

.timeline-item.is-current::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 111, 139, 0.2);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
  margin-bottom: var(--s1);
}

.timeline-meta {
  margin: 0 0 var(--s1);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-meta-row .timeline-meta {
  margin: 0;
}

.badge-current {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
}

.timeline-item h3 {
  margin: 0 0 var(--s2);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.timeline-item p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: 65ch;
}

/* —— Engage —— */

.engage {
  background: var(--white);
}

.engage-steps {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.engage-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s3);
  align-items: start;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-soft);
}

.engage-steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.engage-steps h3 {
  margin: 0 0 var(--s1);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.engage-steps p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Contact —— */

.contact {
  background: var(--navy);
  color: var(--offwhite);
}

.contact .section-label {
  color: rgba(196, 120, 58, 0.95);
}

.contact h2 {
  color: var(--white);
}

.contact .section-intro {
  color: rgba(244, 247, 250, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5) var(--gutter);
  align-items: start;
}

.contact-grid > div:first-child {
  grid-column: span 7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.contact .btn-secondary {
  color: var(--offwhite);
  border-color: rgba(244, 247, 250, 0.35);
}

.contact .btn-secondary:hover {
  background: rgba(244, 247, 250, 0.08);
  border-color: var(--offwhite);
  color: var(--white);
}

.contact-card {
  grid-column: span 5;
  background: rgba(244, 247, 250, 0.06);
  border: 1px solid rgba(244, 247, 250, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}

.contact-card h3 {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--s2);
  border-top: 1px solid rgba(244, 247, 250, 0.12);
}

.contact-details li:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, 0.55);
}

.contact-details a {
  color: var(--offwhite);
  word-break: break-word;
}

.contact-details a:hover {
  color: #f0c9a0;
}

/* —— Footer —— */

.site-footer {
  background: #071522;
  color: rgba(244, 247, 250, 0.65);
  padding-block: var(--s4);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.footer-brand {
  margin: 0;
  color: var(--offwhite);
}

.footer-copy {
  margin: 0;
}

.footer-top {
  color: rgba(244, 247, 250, 0.75);
  text-decoration: none;
  font-weight: 500;
}

.footer-top:hover {
  color: var(--white);
}

/* —— Responsive —— */

@media (max-width: 960px) {
  .trust-list li {
    grid-column: span 6;
  }

  .section-copy,
  .value-aside {
    grid-column: span 12;
  }

  .service-card {
    grid-column: span 6;
  }

  .contact-grid > div:first-child,
  .contact-card {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }

  .section {
    padding-block: var(--s7);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--offwhite);
    padding: var(--s4) var(--gutter);
    transform: translateX(100%);
    transition: transform 200ms ease-out;
    border-top: 1px solid var(--border-soft);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s1);
  }

  .site-nav a {
    min-height: 48px;
    padding: 0.75rem var(--s2);
    border-radius: var(--radius);
    font-size: 1.0625rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: var(--s2);
    justify-content: center;
  }

  .hero {
    min-height: min(78vh, 640px);
    align-items: flex-end;
  }

  .hero-content {
    padding-block: var(--s7) var(--s6);
  }

  .hero h1 {
    max-width: none;
  }

  .trust-list li {
    grid-column: span 12;
  }

  .service-card {
    grid-column: span 12;
  }

  .engage-steps li {
    grid-template-columns: 40px 1fr;
    gap: var(--s2);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1180px) {
  .hero-content {
    /* Align with .container left edge inside full-bleed hero */
    margin-left: max(var(--gutter), calc((100% - var(--max)) / 2));
    width: min(44rem, var(--max));
  }
}


/* —— Email click feedback —— */
.email-toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: min(90vw, 28rem);
  padding: 0.85rem 1.25rem;
  background: var(--navy);
  color: var(--offwhite);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.35);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}
.email-toast[hidden] {
  display: none !important;
}
