/* ==========================================================================
   WaveFront Consultancy Services stylesheet
   ========================================================================== */

:root {
  /* Color tokens */
  --ink:        #0B2544;   /* primary navy: headings, nav, dark fills */
  --harbor:     #123B5E;   /* secondary deep blue: gradients, hover */
  --teal:       #0E7C7B;   /* accent: links, CTAs, highlights */
  --teal-dark:  #0A5E5D;
  --brass:      #B98B3E;   /* sparing highlight: badges, timeline marks */
  --fog:        #EEF1EE;   /* page background, cool not cream */
  --paper:      #FAFAF9;   /* card / panel background, whiter than fog */
  --line:       #D8DDD8;   /* hairline rule color */
  --charcoal:   #20262B;   /* body text */
  --slate:      #5B6670;   /* secondary text */
  --white:      #FFFFFF;

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --maxw: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  background: var(--fog);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.2em; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Wave motif (literal "wavefront": concentric propagating arcs) ---- */
.wave-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wave-motif svg { position: absolute; }

/* ---- Header / nav ---- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { display: inline-block; width: 26px; height: 26px; flex: none; border-radius: 6px; object-fit: cover; }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: 0.6em; color: #9FB3C8; display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: #C9D6E3;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--white); }
.main-nav a.cta {
  border: 1px solid var(--teal);
  color: var(--white);
  background: var(--teal-dark);
  margin-left: 8px;
}
.main-nav a.cta:hover { background: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  width: 42px;
  height: 36px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 17px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--harbor) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  padding: 96px 32px 108px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #8FD4D2;
  margin: 0 0 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero .lede {
  color: #D7E2EC;
  font-size: 1.15rem;
  max-width: 48ch;
  margin-bottom: 2.2em;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--harbor); }

/* ---- Stats strip ---- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--ink);
  display: block;
  font-weight: 500;
}
.stat .label { color: var(--slate); font-size: 0.9rem; }

/* ---- Section scaffolding ---- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #D7E2EC; }
.bg-ink h2, .bg-ink h3 { color: var(--white); }

/* ---- Hairline list (services / directory style, not card-kit) ---- */
.hairline-list { border-top: 1px solid var(--line); }
.hairline-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 36px 0;
}
.hairline-item h3 { margin-bottom: 0.3em; font-size: 1.3rem; }
.hairline-item .tag { font-family: var(--font-mono); font-size: 0.82rem; color: var(--teal); display: block; margin-bottom: 10px; }
.hairline-item p { color: var(--slate); margin-bottom: 0.6em; }
.hairline-item ul { color: var(--slate); margin: 0; padding-left: 1.1em; font-size: 0.96rem; }
.hairline-item li { margin-bottom: 0.3em; }

/* ---- Value tiles (home) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--paper); padding: 32px 28px; border-top: 3px solid var(--teal); }
.tile h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.tile p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }

/* ---- Case study teaser (home) ---- */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brass);
  border: 1px solid rgba(185,139,62,0.5);
  padding: 7px 12px;
  margin-bottom: 18px;
}
.teaser-panel {
  background: var(--ink);
  color: var(--white);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.teaser-panel .client { font-family: var(--font-mono); color: #8FD4D2; font-size: 0.85rem; margin-bottom: 8px; }
.teaser-panel blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; margin: 0 0 18px; color: var(--white); }
.teaser-panel cite { font-style: normal; color: #B7C6D4; font-size: 0.9rem; display: block; }

/* ---- Timeline (case study page: content is genuinely sequential) ---- */
.timeline { position: relative; padding-left: 36px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--fog);
}
.timeline-item.milestone::before { background: var(--brass); }
.timeline-year { font-family: var(--font-mono); color: var(--teal); font-size: 0.95rem; display: block; margin-bottom: 6px; }
.timeline-item.milestone .timeline-year { color: var(--brass); }
.timeline-item h4 { margin-bottom: 0.3em; font-size: 1.15rem; }
.timeline-item p { color: var(--slate); }

/* ---- Platform feature list (case study) ---- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.feature-grid h4 { font-size: 1rem; margin-bottom: 0.4em; color: var(--ink); }
.feature-grid p { color: var(--slate); font-size: 0.95rem; margin-bottom: 0; }

/* ---- Quote block ---- */
.quote-block {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 28px;
  margin: 0;
}
.quote-block p { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); line-height: 1.45; max-width: 58ch; }
.quote-block cite { font-style: normal; color: var(--slate); font-size: 0.95rem; display: block; margin-top: 14px; }

/* ---- Forbes badge ---- */
.press-badge {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 24px 28px;
}
.press-badge .mark { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass); letter-spacing: 0.02em; }
.press-badge h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.press-badge p { margin: 0; color: var(--slate); font-size: 0.92rem; }

/* ---- Contact directory ---- */
.directory { border-top: 1px solid var(--line); }
.directory-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.directory-item .role { color: var(--slate); font-size: 0.92rem; }
.directory-item a { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); }
.directory-item a:hover { color: var(--teal); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.addr-block p { color: var(--slate); margin-bottom: 0.3em; }
.addr-block h3 { margin-bottom: 0.6em; }

/* ---- Form ---- */
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-size: 0.88rem; color: var(--slate); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-bottom-color: var(--teal);
  outline: none;
}
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 8px; }
.form-status { font-size: 0.92rem; margin-top: 16px; display: none; }
.form-status.visible { display: block; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #93A6B8;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; margin: 0 0 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a { color: #93A6B8; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- About page specifics ---- */
.origin { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.values-list h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.values-list p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }

/* ---- Utility ---- */
.center-copy { max-width: 70ch; }
.mt-0 { margin-top: 0; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 12px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .tiles { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .hairline-item { grid-template-columns: 1fr; gap: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .origin { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .directory-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
