/* ============================================================
   Pathway Digital — Landing Page Styles
   Design source: designs.pen (Desktop Light + Mobile Light)
   ============================================================ */

:root {
  /* Brand Colors */
  --primary: #3CB371;
  --accent: #2D8B57;
  --bg-white: #FFFFFF;
  --bg-alt: #F2F6F4;
  --bg-footer: #EEF2F0;
  --card-bg: #F2F6F4;
  --heading: #2A2A2A;
  --body: #4A5550;
  --body-light: #4F5855;
  --muted: #8A918E;
  --muted-light: #A0A8A4;
  --muted-body: #6B7370;
  --border: #D0D6D3;
  --input-border: #C4CBC7;
  --input-bg: #FFFFFF;

  /* Typography */
  --font: 'Montserrat', sans-serif;

  /* Spacing */
  --section-pad-x: 120px;
  --section-pad-y: 100px;

  /* Radius */
  --radius: 8px;
  --radius-sm: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Utility ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  border-radius: var(--radius-sm);
}
.btn--primary {
  background: var(--primary);
  color: #FFFFFF;
  height: 52px;
  padding: 0 40px;
}
.btn--primary:hover { background: var(--accent); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  height: 48px;
  padding: 0 32px;
}
.btn--ghost:hover { background: var(--primary); color: #FFFFFF; text-decoration: none; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Section base ---- */
/* Sections go full-width for edge-to-edge backgrounds.
   Each section uses padding for spacing; content grids/rows
   inside are capped at 1200px via .section__content wrapper. */
.section {
  width: 100%;
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.section--hero {
  background: var(--bg-white);
  padding: 80px var(--section-pad-x);
}
.section--hero > .section__content {
  align-items: stretch;
}
.hero__inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__logo { width: 200px; height: auto; }
.hero__headline {
  font-size: 52px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero__subheadline {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
}
.hero__trust-signals {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__trust-signals span {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hero Form Card */
.hero__form-card {
  width: 440px;
  min-width: 440px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Mobile hero CTA + mobile form ---- */
.mobile-hero-cta,
.section--mobile-form {
  display: none;
}

/* ---- Form shared styles ---- */
.form__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
}
.form__micro {
  font-size: 14px;
  color: var(--body);
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__name-row {
  display: flex;
  gap: 12px;
}
.form__name-row .form__field { flex: 1; }
.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
  letter-spacing: 0.5px;
}
.form__field input,
.form__field textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--heading);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 44px;
  outline: none;
  transition: border-color 0.2s;
}
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--primary);
}
.form__field input.invalid,
.form__field textarea.invalid {
  border-color: #DC2626;
}
.form__field textarea {
  height: 90px;
  padding: 12px;
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.form__reassurance {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.form__success,
.form__error {
  text-align: center;
  padding: 24px;
}
.form__success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.form__success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.form__success p { color: var(--body); }
.form__error p { color: #DC2626; font-size: 14px; }
.form__error a { color: var(--primary); }

/* ============================================================
   Section 2 — Problem
   ============================================================ */
.section--problem {
  background: var(--bg-alt);
}
.section__headline {
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  text-align: center;
}
.pain-grid {
  display: flex;
  gap: 24px;
  width: 100%;
}
.pain-grid__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pain-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pain-card__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.pain-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-light);
}
.section__transition {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
}

/* ============================================================
   Section 3 — Solution Bridge
   ============================================================ */
.section--solution {
  background: var(--bg-alt);
  padding: 120px var(--section-pad-x);
  text-align: center;
}
.section--solution > .section__content {
  gap: 24px;
}
.section__headline--large { font-size: 48px; line-height: 1.15; }
.solution__image {
  width: 900px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 900/400;
}
.section__subheadline {
  font-size: 18px;
  color: var(--body);
  max-width: 800px;
  line-height: 1.6;
}
.section__body {
  font-size: 16px;
  color: var(--muted-body);
  max-width: 700px;
  line-height: 1.7;
}

/* ============================================================
   Section 4 — Services
   ============================================================ */
.section--services {
  background: var(--bg-white);
}
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.services-grid__row {
  display: flex;
  gap: 24px;
}
.service-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-card__icon { flex-shrink: 0; }
.service-card__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
}
.service-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.service-card__desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

/* ============================================================
   Section 5 — Differentiator
   ============================================================ */
.section--differentiator {
  background: var(--bg-alt);
}
.differentiator__image {
  width: 1000px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1000/300;
}
.diff-row {
  display: flex;
  gap: 32px;
  width: 100%;
}
.diff-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
}
.diff-block__num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
  line-height: 1;
}
.diff-block__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
}
.diff-block__text {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

/* ============================================================
   Section 6 — Trust / How We Work
   ============================================================ */
.section--trust {
  background: var(--bg-white);
}
.trust__image {
  width: 1000px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1000/250;
}
.process-row {
  display: flex;
  gap: 24px;
  width: 100%;
}
.process-step {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-step__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
  line-height: 1;
}
.process-step__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 3px;
}
.process-step__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}
.trust__line {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  line-height: 1.5;
  max-width: 600px;
}

/* ============================================================
   Section 7 — Final CTA
   ============================================================ */
.section--cta {
  background: var(--bg-alt);
}
.section--cta > .section__content {
  gap: 32px;
}
.cta-form-card {
  width: 520px;
  max-width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.cta-form-card .lead-form { gap: 20px; }
.cta__email-fallback {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 40px var(--section-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo { width: 140px; height: auto; }
.footer__email {
  font-size: 13px;
  color: var(--primary);
}
.footer__copy {
  font-size: 12px;
  color: var(--muted);
}
.footer__privacy {
  font-size: 11px;
  color: var(--muted-light);
}

/* ============================================================
   Loading spinner for form buttons
   ============================================================ */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Responsive — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-pad-x: 24px;
    --section-pad-y: 64px;
  }

  /* Hero */
  .section--hero { padding: 48px 24px; }
  .hero__inner { flex-direction: column; gap: 32px; }
  .hero__left { gap: 24px; }
  .hero__logo { width: 140px; }
  .hero__headline { font-size: 32px; letter-spacing: -0.5px; }
  .hero__subheadline { font-size: 15px; }
  .hero__form-card { display: none; }
  .hero__trust-signals { display: none; }

  /* Show mobile-only elements */
  .mobile-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px 32px;
    background: var(--bg-white);
  }
  .mobile-trust-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .mobile-trust-row span {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .section--mobile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-alt);
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* Section headlines */
  .section__headline { font-size: 28px; }
  .section__headline--large { font-size: 28px; }

  /* Problem */
  .pain-grid { flex-direction: column; }

  /* Solution */
  .section--solution { padding: 64px 24px; }
  .section__subheadline { font-size: 15px; }
  .section__body { font-size: 14px; }
  .solution__image { aspect-ratio: auto; height: 200px; }

  /* Services */
  .services-grid__row { flex-direction: column; }
  .service-card { padding: 28px; }
  .service-card__title { font-size: 20px; }

  /* Differentiator */
  .diff-row { flex-direction: column; gap: 32px; }
  .diff-block { padding-top: 24px; }
  .section--differentiator .section__headline { font-size: 26px; }

  /* Trust */
  .process-row { flex-direction: column; }
  .trust__line { font-size: 16px; }
  .trust__image { display: none; }

  /* CTA */
  .section--cta .section__headline { font-size: 26px; }
  .cta-form-card { padding: 24px; }

  /* Form name row stacks */
  .form__name-row { flex-direction: column; gap: 20px; }

  /* Footer */
  .footer { padding: 32px 24px; }
  .footer__logo { width: 120px; }
  .footer__email { font-size: 12px; }
  .footer__copy { font-size: 11px; text-align: center; }
  .footer__privacy { font-size: 10px; }

  /* Differentiator image hidden on mobile */
  .differentiator__image { display: none; }
}

/* ============================================================
   Tablet (768px - 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --section-pad-x: 48px;
  }
  .hero__headline { font-size: 40px; }
  .hero__form-card { width: 380px; min-width: 380px; padding: 28px; }
  .hero__inner { gap: 40px; }
  .section__headline--large { font-size: 36px; }
  .section--solution { padding: 100px 48px; }
}
