/* =============================================
   VECTA SEARCH — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122a52;
  --navy-light: #2a508f;
  --white:      #ffffff;
  --off-white:  #f7f8fc;
  --light-grey: #eef0f5;
  --mid-grey:   #8a94a6;
  --dark:       #111827;
  --body-text:  #374151;
  --accent:     #1B3A6B;
  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(27,58,107,0.10);
  --shadow-lg:  0 12px 48px rgba(27,58,107,0.16);
  --transition: 0.25s ease;
  --max-w:      1140px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--font-serif); }
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.text-mid   { color: var(--mid-grey); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* --- Section spacing --- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-label-white {
  color: rgba(255,255,255,0.7);
}

.section-header { max-width: 640px; }
.section-header-center { max-width: 640px; margin: 0 auto; text-align: center; }
.underline-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--navy);
  margin-top: 14px;
  border-radius: 2px;
}
.underline-accent-white { background: rgba(255,255,255,0.5); }
.underline-accent-center { margin: 14px auto 0; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-grey);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(27,58,107,0.10); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 62px; width: auto; }
.nav-logo-text { font-weight: 700; font-size: 1rem; color: var(--dark); letter-spacing: 0.1em; }
.nav-logo span {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 16px; padding: 10px 22px; font-size: 0.88rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  padding-top: 144px;
  padding-bottom: 96px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #2a508f 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.hero-card-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 20px 0; }
.hero-card-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.hero-card-item:last-child { margin-bottom: 0; }
.hero-card-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: white;
  margin-top: 2px;
}
.hero-card-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }

/* --- Stats bar --- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--mid-grey);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: var(--light-grey);
  height: 100%;
}

/* --- What We Do --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 36px 32px;
}
.service-card-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 16px;
}
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--body-text); }

/* --- Why Vecta --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-content {}
.why-list { margin-top: 32px; }
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--light-grey);
}
.why-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.why-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.2rem;
}
.why-text h4 { color: var(--dark); margin-bottom: 4px; font-size: 1rem; }
.why-text p { font-size: 0.9rem; color: var(--mid-grey); margin: 0; }

.why-image-wrap {
  position: relative;
}
.why-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
  filter: grayscale(100%) contrast(1.05);
}
.why-image-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
}
.why-image-badge .badge-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.why-image-badge .badge-text { font-size: 0.8rem; opacity: 0.8; margin-top: 4px; }

/* --- Candidate split section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-panel {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-panel-navy {
  background: var(--navy);
}
.split-panel-navy h2, .split-panel-navy h3, .split-panel-navy p { color: var(--white); }
.split-panel-navy p { opacity: 0.85; }
.split-panel-light { background: var(--off-white); }

/* --- Testimonials preview --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testimonial-quote {
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.3;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--body-text);
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--light-grey);
}
.testimonial-author-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.testimonial-author-role { font-size: 0.82rem; color: var(--mid-grey); }
.stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 8px; }

/* --- Resources section --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition);
  text-decoration: none;
}
.resource-card:hover { box-shadow: var(--shadow); border-color: var(--navy); transform: translateY(-3px); }
.resource-icon {
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.resource-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.resource-card p { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }
.resource-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Contact form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a94a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 140px 0 72px;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* --- About page --- */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  filter: grayscale(20%);
}
.about-photo-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-photo-badge .badge-num { font-size: 1.8rem; font-weight: 700; }
.about-photo-badge .badge-label { font-size: 0.78rem; opacity: 0.8; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.value-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.value-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-grey);
  margin-bottom: 12px;
}
.value-card h3 { color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--body-text); }

/* --- Testimonials page --- */
.testimonials-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--navy);
  color: var(--white);
}
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card-full {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 36px;
  transition: all var(--transition);
}
.testimonial-card-full:hover { box-shadow: var(--shadow); }

/* --- Resources page --- */
.faq-list { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--light-grey);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--navy); }
.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--light-grey);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  background: var(--navy);
  color: white;
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo span { font-weight: 700; font-size: 1rem; color: white; letter-spacing: 0.06em; }
.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom-links a:hover { color: white; }

/* --- Blog listing --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.blog-card-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) brightness(0.7);
}
.blog-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,42,82,0.85) 0%, rgba(18,42,82,0.2) 60%, transparent 100%);
}
.blog-tag {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}
.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: var(--body-text);
  line-height: 1.7;
  flex: 1;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 20px;
  transition: gap var(--transition);
}
.blog-card-link:hover { gap: 10px; }

/* --- Blog post page --- */
.post-header {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 144px 0 72px;
  position: relative;
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.post-header-inner { position: relative; z-index: 1; max-width: 800px; }
.post-header .blog-tag { background: rgba(255,255,255,0.12); font-size: 0.75rem; }
.post-header h1 { color: white; margin-top: 16px; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.post-meta-divider { width: 4px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 50%; }

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}
.post-body h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
}
.post-body h3 { font-size: 1.15rem; color: var(--dark); margin-top: 32px; margin-bottom: 12px; }
.post-body p { font-size: 0.97rem; line-height: 1.85; color: var(--body-text); margin-bottom: 20px; }
.post-body ul { margin: 0 0 20px 0; padding-left: 0; }
.post-body ul li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--body-text);
  padding: 6px 0 6px 28px;
  position: relative;
  border-bottom: 1px solid var(--light-grey);
}
.post-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.post-body ul li:last-child { border-bottom: none; }
.post-callout {
  background: var(--off-white);
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.97rem;
  color: var(--body-text);
  line-height: 1.75;
}
.post-callout strong { color: var(--navy); }
.post-salary-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
}

.post-salary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 0.9rem;
}
.post-salary-table th {
  background: var(--navy);
  color: white;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.post-salary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-grey);
  color: var(--body-text);
}
.post-salary-table tr:nth-child(even) td { background: var(--off-white); }
.post-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-top: 64px;
}
.post-cta h3 { color: white; font-size: 1.4rem; margin-bottom: 12px; }
.post-cta p { color: rgba(255,255,255,0.78); margin-bottom: 28px; }
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 48px;
  transition: gap var(--transition);
}
.post-back-link:hover { gap: 12px; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } .post-cta { padding: 32px 24px; } }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex-gap { display: flex; gap: 16px; }
.pill {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* --- Scroll fade-in --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
/* --- Approach grid --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Sectors grid --- */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* --- Specialise grid --- */
.specialise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Process grid --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Resource grids --- */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: 1fr; }
  .specialise-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-image-wrap { display: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { display: none; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-content.active { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .approach-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .specialise-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-mobile {
    display: inline-block;
    background: var(--navy);
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    margin-top: 4px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--light-grey);
    gap: 20px;
    box-shadow: var(--shadow);
  }
  .services-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-panel { padding: 56px 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .contact-form { padding: 28px 20px; }
  .resources-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }

  /* Blog post mobile fixes */
  .post-header { padding: 100px 0 56px; }
  .post-meta { flex-wrap: wrap; gap: 12px; }
  .post-meta-divider { display: none; }
  .post-cta { padding: 32px 24px; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Table scroll wrapper */
  .post-salary-table {
    font-size: 0.85rem;
  }
  .post-salary-table th,
  .post-salary-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; padding-bottom: 56px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .split-panel { padding: 40px 24px; }

  /* Blog post header mobile */
  .post-header { padding: 84px 0 48px; }
  .post-header h1 { font-size: 1.4rem; }

  /* Table responsive */
  .post-salary-table {
    font-size: 0.8rem;
  }
  .post-salary-table th,
  .post-salary-table td {
    padding: 8px 10px;
  }

  /* Button sizing */
  .btn { min-height: 44px; display: inline-flex; align-items: center; }

  /* Hero buttons wrap */
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Additional mobile fixes for inline grids */
  .page-hero { padding: 100px 0 56px; }
  .page-hero h1 { font-size: 1.6rem; }

  /* Fix small screen nav */
  .nav-inner { height: auto; padding: 12px 0; }
  .nav-logo img { height: 48px; }

  /* Fix contact form on very small screens */
  .contact-form { padding: 20px 16px; }

  /* Reduce section padding on small screens */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
}
