/* ============================================================
   Implementation Partners — modern responsive stylesheet
   Brand: navy #19275F · red #D80E1D
   ============================================================ */

:root {
  --navy: #19275f;
  --navy-dark: #111c49;
  --navy-deep: #0c1435;
  --red: #d80e1d;
  --red-dark: #b30b18;
  --ink: #1b2140;
  --muted: #5b6178;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --border: #e4e8f3;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(17, 28, 73, 0.08);
  --shadow-md: 0 10px 30px -10px rgba(17, 28, 73, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(17, 28, 73, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); max-width: 58ch; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 232, 243, 0.7);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active { color: var(--red); }

.nav-cta {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--navy-dark) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  color: var(--navy);
}
.nav-toggle svg { display: block; }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; text-align: center; display: grid; gap: 0.4rem; }
.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-nav a.active { color: #ff8b94; }
.mobile-nav .drawer-social { display: flex; gap: 1rem; }
.mobile-nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.mobile-nav-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 82vh, 760px);
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #fff;
}
.hero.hero-compact { min-height: clamp(320px, 46vh, 440px); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 65%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(12, 20, 53, 0.92) 0%, rgba(25, 39, 95, 0.72) 46%, rgba(25, 39, 95, 0.28) 100%);
}

.hero-content { max-width: 640px; padding-block: 5rem; }
.hero.hero-compact .hero-content { padding-block: 3rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb3b9;
  background: rgba(216, 14, 29, 0.18);
  border: 1px solid rgba(255, 179, 185, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: #ff6b76; }

.hero p {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px rgba(216, 14, 29, 0.55); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -8px rgba(25, 39, 95, 0.5); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(2.2rem, 2rem + 2vw, 3.5rem); }

/* ---------- services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-dark));
  color: #fff;
  flex-shrink: 0;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--red);
}
.service-link svg { transition: transform 0.2s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ---------- feature / reason cards (Why Choose Us, Industries) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.feature-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(216, 14, 29, 0.09);
  color: var(--red);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; }

/* ---------- testimonials ---------- */
.testimonials { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.testimonials .section-title { color: #fff; }
.testimonials .section-eyebrow { color: #ff8b94; }
.testimonials .section-eyebrow::before { background: #ff8b94; }

.testimonial-viewport { position: relative; max-width: 760px; margin-inline: auto; text-align: center; }

.testimonial-slide {
  display: none;
  animation: fadeUp 0.5s var(--ease);
}
.testimonial-slide.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 1.4rem;
}
.testimonial-quote::before { content: "“"; color: #ff6b76; }
.testimonial-quote::after { content: "”"; color: #ff6b76; }

.testimonial-name { font-weight: 800; font-size: 1.05rem; }
.testimonial-role { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }

.testimonial-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s var(--ease);
}
.testimonial-dots button.active { background: var(--red); width: 30px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-soft); }
.cta-card {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 70%);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.4rem, 2rem + 3vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 14, 29, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); margin-bottom: 0.5rem; }
.cta-card p { color: rgba(255, 255, 255, 0.8); max-width: 46ch; }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1.1rem; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-list .ci {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(25, 39, 95, 0.08);
  color: var(--navy);
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.97rem; }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 39, 95, 0.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form button { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); }
.footer-inner {
  padding-block: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; }
.footer-brand .dot { color: var(--red); }

.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.social-btn:hover { background: var(--red); transform: translateY(-3px); }
.social-btn svg { width: 18px; height: 18px; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}
.footer-legal a { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.footer-legal a:hover { color: #ff8b94; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), background 0.2s, visibility 0.3s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand img { height: 46px; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-card { text-align: left; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; text-align: center; }
}
