/* ===================================================================
   Pragmatic Services — Stylesheet
   Brand: Orange #F7941D + Indigo #36459B (from logo)
   =================================================================== */

:root {
  --orange: #f7941d;
  --orange-dark: #e07d00;
  --indigo: #36459b;
  --indigo-dark: #2a3680;
  --indigo-deep: #1d2557;
  --ink: #16203b;
  --slate: #5b6b8c;
  --muted: #7c8aa5;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2fb;
  --line: #e6ebf5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(29, 37, 87, .06);
  --shadow: 0 18px 40px rgba(29, 37, 87, .10);
  --shadow-lg: 0 30px 70px rgba(29, 37, 87, .16);
  --grad: linear-gradient(120deg, var(--indigo) 0%, var(--orange) 130%);
  --grad-warm: linear-gradient(120deg, var(--orange) 0%, #ffb454 100%);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name { font-family: 'Poppins', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 50px; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px rgba(247,148,29,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(247,148,29,.45); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all .3s var(--ease);
  background: rgba(255,255,255,.72); backdrop-filter: blur(12px);
}
.site-header.scrolled { padding: 10px 0; box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--indigo); }
.brand-sub { font-size: 11px; letter-spacing: 4px; color: var(--slate); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-weight: 500; font-size: 15px; color: var(--ink); padding: 8px 14px; border-radius: 8px;
  position: relative; transition: color .2s;
}
.nav-link:not(.nav-cta):hover { color: var(--orange); }
.nav-link:not(.nav-cta)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--grad-warm); color: #fff !important; padding: 10px 20px; margin-left: 8px;
  box-shadow: 0 8px 18px rgba(247,148,29,.3); transition: transform .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--indigo); border-radius: 3px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(247,148,29,.14), transparent 60%),
    radial-gradient(70% 90% at 10% 0%, rgba(54,69,155,.12), transparent 55%),
    var(--bg-soft);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange-dark); background: rgba(247,148,29,.12); padding: 7px 16px; border-radius: 50px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; color: var(--ink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: var(--slate); margin: 22px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--slate); }
.hero-points .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-warm); }

/* hero visual */
.hero-visual { position: relative; height: 440px; }
.hero-ring {
  position: absolute; inset: 30px; border-radius: 50%;
  border: 2px dashed rgba(54,69,155,.25);
  animation: spin 38s linear infinite;
}
.hero-ring::after {
  content: ''; position: absolute; inset: 36px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(247,148,29,.18), rgba(54,69,155,.16));
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 120px; height: 120px; background: rgba(247,148,29,.35); top: 0; right: 40px; animation: float 6s ease-in-out infinite; }
.orb-2 { width: 80px; height: 80px; background: rgba(54,69,155,.3); bottom: 20px; left: 10px; animation: float 7s ease-in-out infinite reverse; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff;
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); width: max-content; max-width: 235px;
  animation: float 6s ease-in-out infinite;
}
.hero-card strong { display: block; font-size: 14px; font-family: 'Poppins'; }
.hero-card small { font-size: 12px; color: var(--muted); }
.hc-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-tint); font-size: 20px; }
.card-a { top: 50px; left: -10px; }
.card-b { top: 175px; right: -15px; animation-delay: 1.5s; }
.card-c { bottom: 35px; left: 40px; animation-delay: .8s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stats { background: var(--indigo-deep); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat { position: relative; }
.stat:not(:last-child)::after { content:''; position:absolute; right:-12px; top:10%; height:80%; width:1px; background:rgba(255,255,255,.14); }
.stat-num, .stat-suffix { font-family: 'Poppins'; font-size: 2.6rem; font-weight: 800; color: var(--orange); }
.stat p { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 14px;
}
.section-tag.light { color: var(--orange); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--ink); }
.section-sub { color: var(--slate); margin-top: 14px; font-size: 1.05rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.about-media { position: relative; min-height: 380px; }
.about-shape {
  position: absolute; inset: 0; border-radius: 26px;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.about-shape::after {
  content: ''; position: absolute; inset: 0; border-radius: 26px; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.6) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.about-badge {
  position: absolute; bottom: -22px; right: -18px; background: #fff; border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow); text-align: center;
}
.about-badge strong { display: block; font-family: 'Poppins'; font-size: 1.5rem; color: var(--orange); }
.about-badge span { font-size: 13px; color: var(--slate); }
.about-text p { color: var(--slate); margin-bottom: 16px; }
.about-text .section-title { margin-bottom: 18px; }
.about-features { display: grid; gap: 16px; margin: 26px 0 30px; }
.af { display: flex; gap: 14px; align-items: flex-start; }
.af-ico { font-size: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-tint); flex-shrink: 0; }
.af strong { font-family: 'Poppins'; font-size: 15px; }
.af p { font-size: 14px; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-warm); box-shadow: 0 12px 22px rgba(247,148,29,.28);
  transition: transform .3s var(--ease);
}
.service-card:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }
.svc-icon svg { width: 30px; height: 30px; fill: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.service-card p { color: var(--slate); font-size: 15px; }

/* ---------- Why Us ---------- */
.why { background: var(--indigo-deep); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content:''; position:absolute; top:-120px; right:-120px; width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, rgba(247,148,29,.22), transparent 70%);
}
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.why-text .section-title { color: #fff; }
.why-lead { color: rgba(255,255,255,.78); margin: 18px 0 26px; }
.why-list { display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); }
.check { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 26px 22px; transition: transform .3s var(--ease), background .3s; }
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.wc-num { font-family: 'Poppins'; font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.why-card h4 { margin: 8px 0 6px; font-size: 1.1rem; }
.why-card p { font-size: 14px; color: rgba(255,255,255,.7); }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
.ind {
  text-align: center; padding: 30px 14px; border-radius: var(--radius-sm); background: var(--bg-soft);
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.ind:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.ind-ico { font-size: 32px; display: block; margin-bottom: 12px; }
.ind p { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); padding: 64px 0; color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .section-title { margin-bottom: 14px; }
.contact-info > p { color: var(--slate); margin-bottom: 26px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-ico { font-size: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-tint); flex-shrink: 0; }
.contact-list strong { font-family: 'Poppins'; font-size: 15px; }
.contact-list p { font-size: 14px; color: var(--slate); margin: 0; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  font-size: 15px; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(247,148,29,.12);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; min-height: 20px; }
.form-note.ok { color: #1a9d54; }
.form-note.err { color: #d33; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1530; color: rgba(255,255,255,.72); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--orange); }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,.62); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-warm); color: #fff; display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 10px 24px rgba(247,148,29,.4); opacity: 0; pointer-events: none;
  transform: translateY(16px); transition: all .3s var(--ease); z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; }
  .about-media { min-height: 280px; max-width: 420px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .stat:nth-child(2)::after { display: none; }
  .ind-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .main-nav {
    position: fixed; top: 70px; right: 16px; left: 16px; flex-direction: column; align-items: stretch;
    background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .services-grid, .why-cards { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .hero-card { max-width: 200px; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
}
