/* ==========================================================
   WillProcess4U Design System
   Palette: deep charcoal + brand crimson + warm neutrals
   ========================================================== */

:root {
  --ink: #1f242b;
  --ink-2: #2a313a;
  --ink-3: #353d48;
  --crimson: #be1e2d;
  --crimson-dark: #9d1624;
  --paper: #faf9f6;
  --white: #ffffff;
  --slate: #555f6b;
  --slate-light: #8b95a1;
  --line: #e8e5df;
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #e0a526;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(31, 36, 43, 0.07);
  --shadow-md: 0 8px 28px rgba(31, 36, 43, 0.1);
  --shadow-lg: 0 18px 48px rgba(31, 36, 43, 0.16);

  --container: 1160px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--crimson);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(190, 30, 45, 0.28);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--paper);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}

.eyebrow-light {
  color: #e98994;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--slate);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand-logo {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(190, 30, 45, 0.16), transparent 60%),
    radial-gradient(800px 420px at 12% 110%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--ink);
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 110px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 22px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: #f2b3ba;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 72px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.stat-unit {
  font-size: 1.3rem;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #ddd8cf;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.08em;
}

.service-icon,
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(190, 30, 45, 0.08);
  color: var(--crimson);
}

.service-icon svg,
.advantage-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3,
.advantage-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p,
.advantage-card p {
  font-size: 0.98rem;
}

.service-card-cta {
  background:
    radial-gradient(420px 220px at 90% -20%, rgba(255, 255, 255, 0.12), transparent 60%),
    var(--ink);
  border-color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.service-card-cta h3 {
  color: var(--white);
}

.service-card-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--crimson);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  margin-bottom: 20px;
}

/* ---------- Philosophy quote ---------- */
.philosophy {
  max-width: 820px;
  margin: 72px auto 0;
  text-align: center;
  padding: 0 16px;
}

.philosophy p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.philosophy p em {
  color: var(--crimson);
}

.philosophy cite {
  display: inline-block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.philosophy cite::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--crimson);
  margin: 0 auto 18px;
  border-radius: 2px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step:first-child .step-num {
  background: var(--crimson);
}

.step-link {
  display: block;
  color: inherit;
}

.step:first-child {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:first-child:hover {
  border-color: rgba(190, 30, 45, 0.45);
  box-shadow: var(--shadow-md);
}

.step-link h3,
.step-link p {
  color: var(--ink);
}

.step-link p {
  color: var(--slate);
}

.step-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--crimson);
}

.step-action svg {
  width: 16px;
  height: 16px;
}

.step-link:hover .step-action {
  text-decoration: underline;
}

.step h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
}

/* ---------- Broker packet band ---------- */
.packet-band {
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(190, 30, 45, 0.18), transparent 60%),
    radial-gradient(800px 420px at 12% 110%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--ink);
  padding: 72px 0;
}

.packet-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.packet-copy h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.packet-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  font-size: 1.05rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.team-body {
  padding: 30px 32px 34px;
}

.team-body h3 {
  font-size: 1.55rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 6px 0 16px;
}

.team-body > p:not(.team-role) {
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.team-body blockquote {
  border-left: 3px solid var(--crimson);
  padding-left: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-3);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 18px;
}

.stars svg {
  width: 19px;
  height: 19px;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.testimonial figcaption {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}


/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(900px 460px at 85% 0%, rgba(190, 30, 45, 0.14), transparent 60%),
    var(--ink);
}

.section-contact .section-head h2 {
  color: var(--white);
}

.section-contact .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

a.contact-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(190, 30, 45, 0.22);
  color: #f2a6ae;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
}

.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.45rem;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.14);
  background: var(--white);
}

.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--slate);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #181c22;
  color: rgba(255, 255, 255, 0.62);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer-wordmark span {
  color: var(--crimson);
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  color: #f2a6ae;
  margin: 6px 0 16px;
}

.footer-desc {
  font-size: 0.93rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .site-nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin: 16px 0 0;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 56px;
  }

  .section {
    padding: 72px 0;
  }

  .packet-inner {
    flex-direction: column;
    text-align: center;
  }

  .packet-copy p {
    margin: 0 auto;
  }

  .team-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .advantages-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 22px 14px;
  }

  .stat-number {
    font-size: 1.9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-form {
    padding: 30px 24px;
  }

  .brand-logo {
    height: 42px;
  }
}
