/* ==========================================================================
   WP FARMS LIMITED — Stylesheet
   ========================================================================== */

:root {
  --navy-950: #070C16;
  --navy-900: #0B1220;
  --navy-800: #101B30;
  --navy-700: #1A2B45;
  --navy-600: #233252;

  --blue-500: #2E7DFF;
  --teal-400: #17C3B2;

  --paper: #F7F9FC;
  --paper-2: #FFFFFF;
  --ink: #0B1220;
  --muted: #5B6B85;
  --muted-2: #8C9AB5;

  --line-light: rgba(11, 18, 32, 0.08);
  --line-dark: rgba(255, 255, 255, 0.09);

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
p { margin: 0 0 var(--space-2); color: var(--muted); }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-500);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: var(--space-2);
  display: inline-block;
}
.eyebrow-dark { color: var(--blue-500); }

.section-lead {
  max-width: 640px;
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(46, 125, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(46, 125, 255, 0.6); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 22, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s var(--ease);
}
.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
}
.main-nav ul {
  display: flex;
  gap: var(--space-4);
}
.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400));
  transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.header-cta-mobile { display: none; }

.header-cta { margin-left: var(--space-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, #101d38 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff;
  padding-top: var(--space-7);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.circuit-svg { width: 100%; height: 100%; }
.circuit-nodes .node {
  animation: pulse 3.6s ease-in-out infinite;
}
.circuit-nodes .node:nth-child(2n) { animation-delay: 0.8s; }
.circuit-nodes .node:nth-child(3n) { animation-delay: 1.6s; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; r: 3; }
  50% { opacity: 1; r: 5; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.hero-inner .eyebrow { color: var(--teal-400); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.grad-text {
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto var(--space-4);
  font-size: 19px;
  color: rgba(255, 255, 255, 0.72);
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.stat-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: var(--space-6);
}
.stat {
  padding: var(--space-4) var(--space-2);
  text-align: center;
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Services ---------- */
.services { padding: var(--space-7) 0; background: var(--paper); }
.services h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 640px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.service-card {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(11, 18, 32, 0.2);
  border-color: transparent;
}
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 125, 255, 0.12), rgba(23, 195, 178, 0.12));
  color: var(--blue-500);
  margin-bottom: var(--space-3);
}
.service-card h3 { font-size: 21px; margin-bottom: var(--space-1); }
.card-list { margin-top: var(--space-2); border-top: 1px solid var(--line-light); padding-top: var(--space-2); }
.card-list li {
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0 5px 20px;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 2px;
  background: var(--teal-400);
}

/* ---------- Why Us ---------- */
.why-us { padding: var(--space-7) 0; background: var(--navy-900); color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.why-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.why-copy > p { color: rgba(255, 255, 255, 0.68); max-width: 520px; }

.why-points { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.why-point { display: flex; gap: var(--space-2); }
.why-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal-400);
  flex-shrink: 0;
  width: 32px;
  padding-top: 3px;
}
.why-point h4 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.why-point p { color: rgba(255, 255, 255, 0.6); margin: 0; font-size: 15px; }

.why-graphic { display: flex; align-items: center; justify-content: center; }
.why-graphic svg { max-width: 340px; }

/* ---------- About ---------- */
.about { padding: var(--space-7) 0; background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
.about-graphic { display: flex; align-items: center; justify-content: center; }
.about-graphic svg { max-width: 320px; }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); max-width: 560px; }

.credential-list {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line-light);
  padding-top: var(--space-3);
}
.credential-list dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.credential-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Process ---------- */
.process { padding: var(--space-7) 0; background: var(--paper-2); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.process h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.process-step { max-width: 320px; }
.process-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
}
.process-step h3 { font-size: 19px; }
.process-connector {
  height: 2px;
  margin-top: 20px;
  width: 100%;
  min-width: 24px;
  background: repeating-linear-gradient(90deg, var(--line-light) 0 6px, transparent 6px 12px);
}

/* ---------- Contact ---------- */
.contact { padding: var(--space-7) 0; background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
}
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.contact-info { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info svg { color: var(--blue-500); flex-shrink: 0; }
.contact-info a:hover { color: var(--blue-500); }

.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: 0 24px 48px -32px rgba(11, 18, 32, 0.25);
}
.form-row { margin-bottom: var(--space-2); }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.optional { color: var(--muted-2); font-weight: 400; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line-light);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(46, 125, 255, 0.15);
}
.form-note {
  margin: var(--space-2) 0 0;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding-top: var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { max-width: 280px; margin-top: var(--space-2); font-size: 14px; }
.footer-nav h5, .footer-legal h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-2);
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-legal a { font-size: 14px; transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--teal-400); }
.footer-legal p { font-size: 14px; line-height: 1.7; margin-bottom: var(--space-2); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: var(--space-3) var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.footer-bottom a:hover { color: var(--teal-400); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(46, 125, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-graphic, .about-graphic { order: -1; max-width: 260px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .process-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .main-nav.open ul { flex-direction: column; gap: var(--space-2); }
  .header-cta-mobile { display: block; margin-top: var(--space-2); }
  .header-cta-mobile .btn { width: 100%; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line-dark); }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
