/* ============================================================
   PRIMECHAIN SOLUTIONS — INDEX PAGE STYLES
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(140deg, rgba(4,12,30,0.88) 0%, rgba(0,36,36,0.82) 100%),
    url('/assets/empower.jpeg') center 30% / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,128,128,0.08), transparent);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 760px;
  padding: 9rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 5rem);
  line-height: 1.04;
  color: white;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.58);
  max-width: 520px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Stat strip in hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.hstat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hstat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.hstat-l {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* Problem section */
.problem {
  padding: 8rem 0;
  background: white;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.problem-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-body {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.pain-item {
  background: white;
  padding: 2rem 1.75rem;
  transition: background var(--ease);
}

.pain-item:hover {
  background: var(--teal-lt);
}

.pain-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(10,31,68,0.07);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.pain-text h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.pain-text p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.pain-closing {
  margin-top: 2.5rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.75;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  font-weight: 400;
}

/* Convergence */
.convergence {
  padding: 7rem 0;
  background: var(--off);
}

.convergence-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.convergence-sticky {
  position: sticky;
  top: 100px;
}

.convergence-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.convergence-body strong {
  font-weight: 600;
  color: var(--navy-mid);
}

.convergence-body p:last-child {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
}

/* Services */
.services {
  padding: 8rem 0;
  background: white;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.svc-card {
  background: white;
  padding: 2.5rem 2rem;
  transition: background var(--ease);
}

.svc-card:hover {
  background: var(--teal-lt);
}

.svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ebebeb;
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.svc-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.svc-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Case studies */
.cases {
  padding: 8rem 0;
  background: var(--off);
}

.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.case-card {
  background: white;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background var(--ease);
}

.case-card:hover {
  background: #fafafa;
}

.case-industry {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: block;
}

.case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

.case-problem {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 300;
  flex: 1;
}

.case-outcome {
  font-size: 0.83rem;
  font-weight: 500;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  color: var(--text);
}

.case-outcome::before {
  content: "→";
  color: var(--gold);
  flex-shrink: 0;
}

.case-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  transition: color var(--ease);
}

.case-link:hover {
  text-decoration: underline;
}

/* Testimonial */
.testimonial {
  background: var(--navy);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,128,128,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.testimonial-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 0.8;
  color: rgba(201,168,76,0.15);
  margin-bottom: 1.5rem;
  display: block;
}

.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: white;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.testimonial cite::before,
.testimonial cite::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* How we work */
.how {
  padding: 8rem 0;
  background: white;
}

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.how-sticky {
  position: sticky;
  top: 100px;
}

.how-intro {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 1.25rem;
  font-weight: 300;
}

.how-intro + .how-intro {
  margin-top: 0.75rem;
}

.how-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.how-step:first-child {
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #dde0e5;
  transition: color var(--ease);
  line-height: 1;
  padding-top: 0.15rem;
}

.how-step:hover .step-num {
  color: var(--teal);
}

.step-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* Contact */
.contact {
  padding: 8rem 0;
  background: var(--off);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-info a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--ease);
  font-weight: 300;
}

.contact-info a i {
  color: var(--teal);
  font-size: 0.8rem;
}

.contact-info a:hover {
  color: var(--teal);
}

.contact-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.75;
  font-weight: 300;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: white;
  color: var(--text);
  transition: border-color var(--ease);
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy-mid);
  color: white;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease);
}

.form-submit:hover {
  background: var(--teal);
}

/* Responsive */
@media (max-width: 1024px) {
  .problem-layout,
  .how-layout,
  .contact-layout,
  .convergence-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .convergence-sticky,
  .how-sticky {
    position: static;
  }

  .svc-grid,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .problem-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .pain-list,
  .svc-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-header,
  .cases-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding: 8rem 0 4rem;
  }
}
