/* ============================================
   PRECISION BUSINESS SERVICES — Stylesheet
   Brand: Navy #1F3A5F, Slate #3B4A52, White #FFFFFF
   Fonts: Inter (body), Playfair Display (display)
   ============================================ */

:root {
  --navy: #1F3A5F;
  --navy-dark: #142944;
  --slate: #3B4A52;
  --slate-light: #6B7884;
  --white: #FFFFFF;
  --offwhite: #F7F7F5;
  --line: #E5E5E0;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container: 1180px;
  --section-y: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-title {
  font-size: 44px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--slate);
  max-width: 640px;
}
.section-head { margin-bottom: 60px; max-width: 760px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 30px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--slate-light);
  font-weight: 600;
}
.main-nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 90px;
  background: var(--white);
}
.hero-title {
  font-size: 62px;
  line-height: 1.05;
  margin: 0 0 28px;
  max-width: 1000px;
}
.hero-sub {
  font-size: 20px;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--offwhite);
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.trust-divider {
  width: 4px;
  height: 4px;
  background: var(--slate-light);
  border-radius: 50%;
}

/* ===== SERVICES ===== */
.services { padding: var(--section-y) 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(31, 58, 95, 0.08);
}
.service-icon {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-light);
  letter-spacing: 0.12em;
}
.service-title {
  font-size: 24px;
  color: var(--navy);
}
.service-desc {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

/* ===== WHY US ===== */
.why-us {
  background: var(--navy);
  color: var(--white);
  padding: var(--section-y) 0;
}
.why-us .eyebrow { color: rgba(255,255,255,0.6); }
.why-us .section-title { color: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}
.why-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.why-points {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.why-point {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
.why-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  padding-top: 4px;
}
.why-title {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}
.why-point p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== CASE STUDIES ===== */
.case-studies { padding: var(--section-y) 0; background: var(--offwhite); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate-light);
  font-weight: 600;
}
.case-title {
  font-size: 22px;
  color: var(--navy);
  line-height: 1.25;
}
.case-desc {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.case-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

/* ===== TESTIMONIALS ===== */
.testimonials { padding: var(--section-y) 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  border-left: 3px solid var(--navy);
  padding: 8px 0 8px 26px;
}
.quote {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 16px;
}
.attribution {
  font-size: 14px;
  color: var(--slate-light);
  font-weight: 500;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}
.cta-title {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.final-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.final-cta .btn-primary:hover {
  background: var(--offwhite);
  border-color: var(--offwhite);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ===== FORMS (Contact page) ===== */
.form-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
.form-aside h2 { font-size: 36px; margin-bottom: 18px; }
.form-aside p { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.form-aside .contact-detail {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-aside .contact-detail strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-form {
  background: var(--offwhite);
  padding: 40px;
  border-radius: 4px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  border-radius: 4px;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ===== ABOUT PAGE ===== */
.about-hero { padding: 100px 0 70px; }
.about-hero h1 { font-size: 56px; max-width: 800px; margin-bottom: 24px; }
.about-hero .lead { font-size: 21px; line-height: 1.5; color: var(--slate); max-width: 740px; }

.about-story { padding: 80px 0; background: var(--offwhite); }
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about-story-grid h2 { font-size: 38px; margin-bottom: 18px; }
.about-story-grid p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; }

.values { padding: var(--section-y) 0; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-card { padding-top: 26px; border-top: 3px solid var(--navy); }
.value-card h3 { font-size: 22px; margin-bottom: 12px; }
.value-card p { font-size: 15px; line-height: 1.6; }

/* ===== SERVICES PAGE ===== */
.services-hero { padding: 100px 0 70px; }
.services-hero h1 { font-size: 56px; max-width: 800px; margin-bottom: 24px; }
.services-hero .lead { font-size: 21px; line-height: 1.5; color: var(--slate); max-width: 740px; }

.service-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:nth-child(even) { background: var(--offwhite); }
.service-detail-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
.service-detail-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  opacity: 0.15;
  margin-bottom: 16px;
}
.service-detail h2 { font-size: 38px; margin-bottom: 14px; }
.service-detail .service-lead { font-size: 18px; color: var(--slate); line-height: 1.5; }
.service-detail-content h3 { font-size: 20px; margin: 24px 0 12px; }
.service-detail-content ul { padding-left: 20px; }
.service-detail-content li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
}
.service-detail-content li::marker { color: var(--navy); }
.service-detail .btn { margin-top: 28px; }

/* ===== CASE STUDIES INDEX PAGE ===== */
.cs-hero { padding: 100px 0 70px; }
.cs-hero h1 { font-size: 56px; max-width: 820px; margin-bottom: 24px; }
.cs-hero .lead { font-size: 21px; line-height: 1.5; color: var(--slate); max-width: 740px; }

.cs-list { padding: 20px 0 var(--section-y); }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cs-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}
.cs-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(31, 58, 95, 0.08);
}
.cs-card .case-tag { margin-bottom: 2px; }
.cs-card h3 { font-size: 23px; color: var(--navy); line-height: 1.25; }
.cs-card p { color: var(--slate); font-size: 15px; line-height: 1.55; flex: 1; }
.cs-card .case-link { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 8px; }

/* ===== ARTICLE / POST PAGE ===== */
.post-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 70px;
}
.post-hero .eyebrow { color: rgba(255,255,255,0.6); }
.post-hero h1 {
  color: var(--white);
  font-size: 48px;
  line-height: 1.12;
  max-width: 880px;
  margin-bottom: 20px;
}
.post-hero .post-standfirst {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 720px;
}
.post-meta {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-weight: 600;
}

.post-body { padding: 70px 0 90px; }
.post-body .post-inner { max-width: 720px; margin: 0 auto; }
.post-body h2 {
  font-size: 32px;
  margin: 48px 0 16px;
  line-height: 1.2;
}
.post-body h3 {
  font-size: 22px;
  margin: 36px 0 12px;
}
.post-body p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 22px;
}
.post-body ul, .post-body ol {
  margin: 0 0 24px 22px;
}
.post-body li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 12px;
}
.post-body li::marker { color: var(--navy); }
.post-body strong { color: var(--navy); }
.post-body .post-lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--navy);
  font-family: var(--font-display);
  margin-bottom: 32px;
}
.post-body blockquote {
  border-left: 3px solid var(--navy);
  padding: 6px 0 6px 26px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
}
.post-body .post-keytakeaway {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 4px;
}
.post-body .post-keytakeaway h4 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.post-body .post-keytakeaway p { font-size: 18px; margin-bottom: 0; }
.post-disclaimer {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 48px;
}
.post-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-grid, .case-grid, .testimonial-grid, .value-grid, .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-hero h1 { font-size: 38px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-title { font-size: 48px; }
  .section-title, .cta-title { font-size: 36px; }
}

@media (max-width: 720px) {
  :root { --section-y: 64px; }
  .container { padding: 0 20px; }

  .main-nav { display: none; }
  .header-inner > .btn { display: none; }
  .mobile-menu-toggle { display: flex; }

  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  }

  .hero { padding: 70px 0 60px; }
  .hero-title { font-size: 36px; line-height: 1.1; }
  .hero-sub { font-size: 17px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }

  .section-title, .cta-title { font-size: 30px; }
  .service-grid, .case-grid, .testimonial-grid, .value-grid, .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-hero h1 { font-size: 36px; }
  .post-body h2 { font-size: 26px; }
  .post-body p, .post-body li { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }

  .form-wrap, .about-story-grid, .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .field-row { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .trust-logos { gap: 14px; }
}
