/* Insourcehire — shared stylesheet */

:root {
  --navy: #000054;
  --navy-dark: #000024;
  --orange: #ff9a01;
  --orange-dark: #e08a00;
  --grey: #5a5f7a;
  --grey-light: #f4f6fb;
  --border: #e6e8f0;
  --white: #ffffff;
  --radius: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", Helvetica, Arial, Verdana, sans-serif;
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* Header */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.logo img { height: 32px; }

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active { opacity: 1; border-bottom: 2px solid var(--orange); padding-bottom: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 72px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: #3a4bff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p.lead {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Segments */
.segments {
  background: var(--grey-light);
  padding: 64px 0;
}
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-heading h2 { font-size: 2rem; margin-bottom: 12px; }
.section-heading p { color: var(--grey); }

.segment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.segment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.segment-card .flag { font-size: 0.85rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.segment-card h3 { font-size: 1.4rem; margin: 0 0 12px; }
.segment-card p { color: var(--grey); margin-bottom: 0; }

/* Services */
.services { padding: 72px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.service-card .num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.service-card p { color: var(--grey); font-size: 0.92rem; margin: 0; }

/* Opportunity */
.opportunity { padding: 72px 0; }
.opportunity-grid { grid-template-columns: repeat(3, 1fr); }

/* Value pillars (two pain points) */
.pillars { background: var(--navy); color: var(--white); padding: 72px 0; }
.pillars .section-heading h2,
.pillars .section-heading p { color: var(--white); }
.pillars .section-heading p { opacity: 0.75; }
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.pillar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px;
}
.pillar-card .icon { font-size: 1.8rem; margin-bottom: 16px; }
.pillar-card h3 { font-size: 1.25rem; margin: 0 0 12px; }
.pillar-card p { opacity: 0.85; margin: 0; }

/* Why us */
.why { padding: 72px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card { padding: 8px; }
.why-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.why-card p { color: var(--grey); font-size: 0.95rem; margin: 0; }

/* Roles */
.roles { background: var(--grey-light); padding: 72px 0; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.role-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.role-chip h4 { margin: 0 0 6px; font-size: 0.98rem; }
.role-chip p { margin: 0; font-size: 0.85rem; color: var(--grey); }

/* Trusted by */
.trusted { padding: 56px 0; text-align: center; }
.trusted p { color: var(--grey); font-weight: 600; margin-bottom: 28px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }
.trusted-logos { display: flex; justify-content: center; align-items: stretch; gap: 24px; flex-wrap: wrap; }
.trusted-logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}
.trusted-logo-card img {
  max-height: 136px;
  max-width: 136px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.trusted-logo-card:hover img { filter: grayscale(0%); opacity: 1; }

@media (max-width: 480px) {
  .trusted-logo-card { width: 130px; height: 130px; }
  .trusted-logo-card img { max-height: 106px; max-width: 106px; }
}

/* Testimonials */
.testimonials { padding: 24px 0 72px; }
.testimonial-carousel { max-width: 820px; margin: 0 auto; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 4px;
}
.testimonial-card {
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.testimonial-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0,0,20,0.1);
}
.testimonial-quote {
  font-size: 1.02rem;
  color: var(--navy-dark);
  line-height: 1.7;
  margin: 0 0 24px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testimonial-meta > div { text-align: left; }
.testimonial-name { font-weight: 600; margin: 0; font-size: 0.95rem; }
.testimonial-role { color: var(--grey); margin: 2px 0 0; font-size: 0.85rem; }
.testimonial-logo { max-height: 56px; max-width: 140px; width: auto; opacity: 0.9; }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.testimonial-dot.active { background: var(--orange); }

@media (max-width: 640px) {
  .testimonial-card { padding: 28px 20px; }
  .testimonial-meta { flex-direction: column; text-align: center; }
  .testimonial-meta > div { text-align: center; }
}

/* CTA band */
.cta-band {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.8rem; }
.cta-band p { margin: 0 0 24px; opacity: 0.95; }
.cta-band .btn-navy:hover { background: var(--navy-dark); }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 16px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 28px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.55);
}

/* Generic page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.page-hero p { opacity: 0.8; max-width: 640px; margin: 0 auto; }

/* Pricing */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -28px auto 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,20,0.08);
}
.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--grey);
}
.pricing-toggle button.active { background: var(--navy); color: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.price-card.featured { border-color: var(--navy); box-shadow: 0 12px 32px rgba(0,0,84,0.08); }
.price-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.price-card .price { font-size: 2.2rem; font-weight: 700; margin: 12px 0 4px; }
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--grey); }
.price-card .note { color: var(--grey); font-size: 0.88rem; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card li { padding: 8px 0 8px 28px; position: relative; font-size: 0.92rem; color: var(--navy-dark); border-top: 1px solid var(--border); }
.price-card li:first-child { border-top: none; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.price-note-block {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.92rem;
  color: var(--grey);
  margin: 0 0 64px;
}

.hidden { display: none !important; }

/* About / team */
.about-block { padding: 64px 0; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0; padding: 0; list-style: none; }
.values-list li { padding-left: 26px; position: relative; color: var(--grey); font-size: 0.95rem; }
.values-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 1; object-fit: cover; }
.team-card h4 { margin: 0 0 4px; }
.team-card p { color: var(--grey); font-size: 0.9rem; margin: 0; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; padding-bottom: 64px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 20px 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 20px; color: var(--grey); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 64px 0;
}
.contact-info h3 { font-size: 1.4rem; margin-bottom: 24px; }
.contact-detail { margin-bottom: 24px; }
.contact-detail .label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.contact-detail p { margin: 0; color: var(--grey); }

.contact-form { background: var(--grey-light); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--grey); margin-top: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 8px 24px 20px;
    box-shadow: 0 16px 24px rgba(0,0,20,0.25);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    width: 100%;
  }
  nav.main-nav a:hover,
  nav.main-nav a.active { border-bottom-color: var(--orange); }

  .hero .container,
  .segment-grid,
  .pillar-grid,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .nav-wrap { padding: 14px 16px; }
  .container { padding: 0 16px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
  .role-grid,
  .card-grid,
  .footer-grid,
  .values-list { grid-template-columns: 1fr; }
  .pricing-toggle { flex-direction: column; width: 100%; border-radius: 16px; }
  .pricing-toggle button { width: 100%; }
  .hero h1 { font-size: 1.7rem; }
  .price-card .price { font-size: 1.8rem; }
}
