/* ============================================================
   Nimble Solutions — modern single page
   Brand: orange #ff7a00 + charcoal
   ============================================================ */

:root {
  --orange: #f57005;
  --orange-soft: #ff9a3d;
  --ink: #ffffff;          /* page background */
  --ink-2: #f4f6fa;        /* alternate section bg */
  --panel: #ffffff;        /* card background */
  --panel-2: #eef1f6;      /* chips / inset */
  --line: rgba(20, 24, 35, 0.10);
  --text: #1b1e26;         /* charcoal — matches logo */
  --muted: #5d6473;
  --radius: 18px;
  --maxw: 1140px;
  --shadow: 0 18px 50px rgba(27, 30, 38, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

h1, h2, h3, .brand { font-family: "Sora", sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- animated background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.orb-1 { width: 520px; height: 520px; background: var(--orange); top: -180px; right: -120px; opacity: 0.16; animation: float 18s var(--ease) infinite; }
.orb-2 { width: 460px; height: 460px; background: #4f8bff; bottom: -200px; left: -150px; opacity: 0.12; animation: float 22s var(--ease) infinite reverse; }
.orb-3 { width: 360px; height: 360px; background: var(--orange-soft); top: 40%; left: 55%; opacity: 0.10; animation: float 26s var(--ease) infinite; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.12); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(27, 30, 38, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.25s; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: #1a1205 !important; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 122, 0, 0.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s 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); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); color: #1a1205; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 122, 0, 0.45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(27, 30, 38, 0.03); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 80px; text-align: center;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  border: 1px solid rgba(255, 122, 0, 0.3); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px; background: rgba(255, 122, 0, 0.07);
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em; }
.rotator {
  background: linear-gradient(120deg, var(--orange), var(--orange-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; margin: 24px auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 70px); margin-top: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num, .stat .plus { font-family: "Sora", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--text); }
.stat .plus { color: var(--orange); }
.stat p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.stat-num, .stat .plus { line-height: 1; display: inline; }
.stat .stat-num + .plus { margin-left: -2px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--orange); border-radius: 2px;
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
.section-head h2 em, .about-copy em { font-style: normal; color: var(--orange); }
.section-lead { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-cards { list-style: none; display: grid; gap: 16px; }
.info-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.info-card:hover { transform: translateX(6px); border-color: rgba(255, 122, 0, 0.4); }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--orange); border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.info-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 0, 0.14), transparent 60%);
  transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(255, 122, 0, 0.45); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-ico {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 14px; background: rgba(255, 122, 0, 0.12); color: var(--orange);
  border: 1px solid rgba(255, 122, 0, 0.25); margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-card > p { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item {
  padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); position: relative; transition: transform 0.3s var(--ease);
}
.why-item::before { content: ""; position: absolute; top: 0; left: 24px; width: 40px; height: 3px; background: var(--orange); border-radius: 3px; }
.why-item:hover { transform: translateY(-6px); }
.why-item h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.why-item p { color: var(--muted); font-size: 0.94rem; }

/* ---------- contact ---------- */
.contact-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 26px; padding: 50px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow);
}
.contact-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 12px 0 14px; }
.contact-copy > p { color: var(--muted); margin-bottom: 28px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-meta { list-style: none; display: grid; gap: 18px; }
.contact-meta li {
  display: flex; flex-direction: column; padding: 18px 22px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.contact-meta li:hover { transform: translateX(6px); border-color: rgba(245, 112, 5, 0.4); }
.contact-meta strong { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.contact-meta a, .contact-meta span { color: var(--text); font-size: 1.02rem; }
.contact-meta a:hover { color: var(--orange); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--ink-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner img { height: 46px; }
.footer-inner p { color: var(--muted); font-size: 0.9rem; }
.to-top {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text); transition: 0.25s var(--ease);
}
.to-top:hover { background: var(--orange); color: #1a1205; border-color: var(--orange); transform: translateY(-3px); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 76px; right: 0; width: min(78vw, 320px); height: calc(100vh - 76px);
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 26px;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
    box-shadow: -10px 0 40px rgba(27, 30, 38, 0.08);
    border-left: 1px solid var(--line); transform: translateX(110%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; width: 100%; padding: 8px 0; }
  .nav-cta { margin-top: 10px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .contact-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
