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

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body), "Segoe UI", sans-serif;
}

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

/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --font-display: 'Josefin Sans';
  --font-body: 'Manrope';

  --bg-dark: #0f1320;
  --bg-dark-soft: #131a2a;
  --line: rgba(255, 255, 255, 0.2);
  --text-light: #edf2f9;
  --text-soft: rgba(237, 242, 249, 0.86);
  --blue: #2f66d0;
  --green: #229e29;
  --paper: #f5f6f8;
  --paper-ink: #202736;
}

/* ─── Page shell ────────────────────────────────────────────────────────── */
.page-shell {
  background: var(--bg-dark);
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  color: var(--paper-ink);
  background-color: var(--paper);
  border-bottom: 1px solid rgba(31, 40, 59, 0.12);
}

.site-nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--paper-ink);
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.25rem);
}

.site-nav-inner .brand {
  justify-self: start;
}

.site-nav-inner .nav-cta {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.86rem;
  font-family: var(--font-display), Georgia, serif;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: auto;
}

.brand-logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 2rem);
  color: var(--paper-ink);
  font-size: clamp(0.9rem, 1.1vw, 1.08rem);
  font-weight: 600;
}

.nav-links a {
  color: var(--paper-ink);
  transition: opacity 220ms ease;
}

.nav-links a:hover {
  opacity: 0.72;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  min-height: 3rem;
  padding: 0.6rem 1.5rem;
  background: var(--green);
  border-radius: 999px;
  font-weight: 600;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  min-height: 55vh;
  display: grid;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 3.25rem) 2.2rem;
  overflow: hidden;
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background-image: url("https://images.unsplash.com/photo-1519823551278-64ac92734fb1?auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 14, 0.68) 0%, rgba(5, 7, 14, 0.4) 45%, rgba(5, 7, 14, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 10, 17, 0.54) 0%, rgba(7, 10, 17, 0.34) 40%, rgba(7, 10, 17, 0.72) 100%);
}

.hero-content {
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: min(100%, 1260px);
  padding-top: 0;
  padding-left: clamp(0.4rem, 1.1vw, 1rem);
}

.hero-content h1,
.hero-content .eyebrow {
  max-width: 1060px;
}

.eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-body), sans-serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.52rem);
  letter-spacing: 0.02em;
}

.hero-content h1 {
  margin: 0.75rem 0 1.2rem;
  color: #f6f8fc;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─── Home sections wrapper ─────────────────────────────────────────────── */
.home-sections {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3.25rem) clamp(2.2rem, 5.5vw, 5rem);
  display: grid;
  gap: clamp(2rem, 3vw, 2.8rem);
}

.home-sections > * {
  max-width: 1460px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Section headings ──────────────────────────────────────────────────── */
.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.section-kicker {
  margin: 0;
  color: #66708a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.section-heading h3,
.profile-body h3,
.hiring-banner h3 {
  margin: 0;
  color: #0d1422;
  font-family: var(--font-display), Georgia, serif;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading h3,
.profile-body h3,
.service-card h3,
.hiring-banner h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.section-heading p,
.profile-body p,
.hiring-banner p {
  margin: 0;
  color: #4d5566;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ─── Reviews ───────────────────────────────────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.review-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(31, 40, 59, 0.1);
}

.review-stars {
  margin: 0;
  color: #c6931a;
  letter-spacing: 0.14em;
  font-size: 1rem;
}

.review-copy {
  margin: 0;
  color: #232d3f;
  font-size: 0.98rem;
  line-height: 1.75;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.review-name {
  margin: 0;
  color: #0d1422;
  font-weight: 700;
}

.review-location {
  margin: 0.2rem 0 0;
  color: #66708a;
  font-size: 0.9rem;
}

.review-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 102, 208, 0.12);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ─── Profiles ──────────────────────────────────────────────────────────── */
.profiles-section,
.services-section {
  display: grid;
  gap: 1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-card {
  border-radius: 12px;
  border: 1px solid rgba(31, 40, 59, 0.1);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease;
}

.profile-card:hover {
  box-shadow: 0 4px 16px rgba(17, 25, 39, 0.09);
}

.profile-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.profile-body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: grid;
  gap: 0.35rem;
}

.profile-body p {
  margin: 0;
}

.profile-name {
  margin: 0;
  color: #0d1422;
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-credentials {
  margin: 0;
  color: #66708a;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-actions {
  display: flex;
}

/* ─── Intro section ─────────────────────────────────────────────────────── */
.intro-section {
  border-bottom: 1px solid rgba(31, 40, 59, 0.1);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.intro-inner {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.intro-inner h2 {
  margin: 0;
  color: #0d1422;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.intro-inner p {
  margin: 0;
  color: #4d5566;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ─── Service cards ─────────────────────────────────────────────────────── */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem 1.5rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(31, 40, 59, 0.1);
  border-radius: 12px;
  transition: box-shadow 200ms ease;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(17, 25, 39, 0.08);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card-title {
  margin: 0;
  color: #0d1422;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card-body {
  margin: 0;
  color: #4d5566;
  font-size: 0.93rem;
  line-height: 1.75;
  flex: 1;
}

/* ─── Services ──────────────────────────────────────────────────────────── */
.services-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.services-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #66708a;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
}

.service-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #004cb4;
  color: #ffffff;
  margin-top: 0.05rem;
}

.service-text {
  display: grid;
  gap: 0.1rem;
}

.service-title {
  margin: 0;
  color: #0d1422;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-detail {
  margin: 0;
  color: #4d5566;
  font-size: 0.87rem;
  line-height: 1.5;
}

/* ─── Hiring banner (sticky) ────────────────────────────────────────────── */
.hiring-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  background: #0f1320;
  color: var(--text-light);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(0);
  transition: transform 300ms ease;
}

.hiring-banner.is-hidden {
  transform: translateY(110%);
}

.hiring-banner-close {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-soft);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease;
}

.hiring-banner-close:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* push page content up so banner doesn't overlap footer */
body {
  padding-bottom: 5rem;
}

.hiring-banner-inner {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1rem, 4vw, 3.25rem);
}

.hiring-banner h3,
.hiring-banner p {
  color: var(--text-light);
}

.section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.section-button--dark {
  background: #202736;
}

/* ─── Reveal animations — removed, kept class names to avoid errors ─────── */
.reveal-1,
.reveal-2,
.reveal-3 {
  opacity: 1;
  transform: none;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0d1120;
  color: rgba(237, 242, 249, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(237, 242, 249, 0.5);
}

.footer-col-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 242, 249, 0.4);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(237, 242, 249, 0.65);
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #edf2f9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem clamp(1rem, 4vw, 3.25rem);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(237, 242, 249, 0.3);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-nav-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.8rem;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-content {
    width: min(100%, 1260px);
    max-width: none;
    padding-top: 0;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-wrap {
    min-height: 80vh;
    padding: 1rem 0.75rem 1.25rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding-top: 0;
    padding-left: 0.25rem;
  }

  .hero-content h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
  }

  .home-sections {
    padding: 1.6rem 0.75rem 1.8rem;
  }

  .review-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hiring-banner-inner {
    display: grid;
    justify-items: start;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
