/* --------------------------------------------------------------
   ROOT VARIABLES
   Color, typography, spacing tokens
-------------------------------------------------------------- */

:root {
  --bg-page: #f3f4f6;
  --bg-soft: #f9fafb;
  --bg-hero: #f5f7fb;
  --bg-card: #ffffff;

  --border-subtle: #e5e7eb;

  --primary: #0b3a5c;        /* Deep consulting blue */
  --primary-soft: #1f4e79;

  --accent: #0e9fba;         /* Teal accent */
  --accent-soft: rgba(14, 159, 186, 0.1);
  --accent-strong: #0891b2;

  --text-main: #0f172a;
  --text-soft: #4b5563;
  --muted: #6b7280;

  --danger: #ef4444;
  --success: #16a34a;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);

  --max-width: 1120px;
}

/* --------------------------------------------------------------
   GLOBAL RESET / BASE
-------------------------------------------------------------- */

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* --------------------------------------------------------------
   LAYOUT WRAPPERS
-------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* --------------------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 20%, #ffffff 0, #dbeafe 35%, #0e9fba 85%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 8px;
  border: 2px solid rgba(15, 23, 42, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* CTA area in nav (desktop) */
.nav-cta {
  display: none; /* hidden on mobile, shown on tablet/desktop */
  align-items: center;
  gap: 0.75rem;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Mobile nav menu */
.nav-menu-mobile {
  display: none;
  flex-direction: column;
  padding: 0 0 0.9rem;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.nav-menu-mobile a {
  padding: 0.35rem 0.15rem;
  color: var(--muted);
}

.nav-menu-mobile a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------
   NAV DROPDOWN (DESKTOP MENU)
   - Lives inside .nav-cta, next to primary CTA
-------------------------------------------------------------- */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown toggle button */
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
  background: rgba(14, 159, 186, 0.08);
}

/* Dropdown menu panel */
.nav-dropdown-menu {
  display: none; /* toggled via JS and hover */
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  z-index: 50;
}

/* Dropdown menu links */
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(14, 159, 186, 0.08);
  color: var(--primary);
}

/* Hover behavior for desktop only */
@media (min-width: 768px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
}

/* Hide desktop dropdown on mobile (nav-cta is hidden anyway) */
@media (max-width: 767px) {
  .nav-dropdown {
    display: none;
  }
}

/* --------------------------------------------------------------
   BUTTONS
-------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(14, 159, 186, 0.8);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(14, 159, 186, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(14, 159, 186, 0.5);
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.25);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(15, 23, 42, 0.02);
}

.btn .icon {
  font-size: 1rem;
}

/* --------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------- */

main {
  flex: 1;
}

.hero {
  background: radial-gradient(circle at top, #e5edff 0, #f5f7fb 42%, #f9fafb 100%);
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  padding: 2.5rem 0 2.75rem;
  display: grid;
  gap: 2rem;
}

/* Hero eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--accent-strong), transparent);
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.9);
}

/* Hero main headline */
.hero h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.hero h1 span.highlight {
  background: linear-gradient(120deg, #111827, #0e9fba);
  -webkit-background-clip: text;
  color: transparent;
}

/* Hero subtext */
.hero-sub {
  max-width: 32rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.hero-sub strong {
  color: var(--primary-soft);
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}

/* Hero meta (chips + KPIs) */
.hero-meta {
  display: grid;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #166534;
  font-size: 0.8rem;
}

.hero-chip .icon {
  font-size: 0.9rem;
}

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

.kpi {
  padding-right: 1rem;
  border-right: 1px solid #e5e7eb;
}

.kpi:last-child {
  border-right: none;
}

.kpi strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-soft);
}

.kpi span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Right side hero card (ops snapshot) */
.hero-right {
  display: grid;
  gap: 0.9rem;
}

.hero-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.hero-card-header h2 {
  font-size: 0.95rem;
  color: var(--primary-soft);
}

.hero-card-header span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #ecfeff;
  color: var(--accent-strong);
  border: 1px solid rgba(8, 145, 178, 0.3);
  white-space: nowrap;
}

/* Snapshot values */
.pipeline-table {
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.pipeline-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.pipeline-row span.label {
  color: var(--muted);
}

.pipeline-row span.value {
  font-weight: 600;
  color: var(--text-main);
}

.pipeline-row span.value.good {
  color: var(--success);
}

.pipeline-row span.value.warn {
  color: #f59e0b;
}

/* Simple "sparkline" background bar */
.sparkline {
  margin-top: 0.3rem;
  width: 100%;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(14, 159, 186, 0.1),
    rgba(8, 145, 178, 0.2),
    rgba(34, 197, 94, 0.16)
  );
  position: relative;
  overflow: hidden;
}

.sparkline::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.05),
    rgba(8, 145, 178, 0.3),
    rgba(148, 163, 184, 0.07)
  );
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------
   SECTIONS BASE STYLING
-------------------------------------------------------------- */

section {
  padding: 2.6rem 0 2.2rem;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 1.7rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.section-header h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------
   TRUST STRIP (CLIENT LOGOS)
-------------------------------------------------------------- */

.trust-strip {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-inner {
  padding: 1.15rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.trust-pill {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px dashed #e5e7eb;
  color: #9ca3af;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------
   RESULTS / OUTCOMES SECTION
-------------------------------------------------------------- */

.two-col {
  display: grid;
  gap: 1.6rem;
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.metric-card {
  min-width: 150px;
  flex: 1 1 140px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.8rem;
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 0.15rem;
}

.metric-card span.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.metric-card span.value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-soft);
}

.metric-card span.helper {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Testimonial quote card */
.quote-card {
  margin-top: 0.7rem;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  border-radius: var(--radius-lg);
  border: 1px solid #dbeafe;
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "“";
  position: absolute;
  font-size: 4.5rem;
  top: -1.2rem;
  left: 0.55rem;
  color: rgba(148, 163, 184, 0.35);
  font-weight: 700;
}

.quote-card p {
  font-size: 0.9rem;
  color: #111827;
  margin-bottom: 0.35rem;
}

.quote-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------
   SERVICES SECTION (CARDS GRID)
-------------------------------------------------------------- */

.cards-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(148, 163, 184, 0.18);
  padding: 1rem 1rem 1.05rem;
  display: grid;
  gap: 0.5rem;
}

.card h3 {
  font-size: 1rem;
  color: var(--primary-soft);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.card ul {
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.card ul li::before {
  content: "• ";
  color: var(--accent);
}

/* --------------------------------------------------------------
   PROCESS SECTION (STEPS)
-------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
  font-size: 0.88rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 0.8rem;
  align-items: flex-start;
}

.step-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-soft);
}

.step-body h3 {
  font-size: 0.96rem;
  color: var(--primary-soft);
  margin-bottom: 0.1rem;
}

.step-body p {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------
   ABOUT / FIT SECTION
-------------------------------------------------------------- */

.about-list {
  font-size: 0.88rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.3rem;
}

.about-list ul {
  list-style: disc;
  margin-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}

/* --------------------------------------------------------------
   FAQ SECTION
-------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 0.9rem;
  font-size: 0.86rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 0.9rem;
}

.faq-item h3 {
  font-size: 0.95rem;
  color: var(--primary-soft);
  margin-bottom: 0.1rem;
}

.faq-item p {
  color: var(--text-soft);
}

/* --------------------------------------------------------------
   CONTACT / CTA SECTION
-------------------------------------------------------------- */

.cta {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
}

.cta h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.cta p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

/* Contact card wrapper */
.contact-card {
  margin-top: 0.6rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

/* Contact form elements */
.contact-card form {
  display: grid;
  gap: 0.7rem;
  font-size: 0.85rem;
}

.form-group {
  display: grid;
  gap: 0.25rem;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text-main);
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.15);
}

/* Helper text under submit button */
.form-helper {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Form status messages */
.form-status {
  display: none;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.form-status--success {
  display: block;
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #166534;
}

.form-status--error {
  display: block;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #b91c1c;
}

.form-helper a {
  color: #2563eb; /* modern blue */
  text-decoration: underline;
}

.form-helper a:hover {
  color: #1d4ed8; /* slightly darker on hover */
  text-decoration: underline;
}

/* --------------------------------------------------------------
   FOOTER
-------------------------------------------------------------- */

footer {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------
   RESPONSIVE LAYOUT
-------------------------------------------------------------- */

/* Tablet and up */
@media (min-width: 768px) {
  /* Show nav CTA & dropdown; hide mobile nav toggle / menu */
  .nav-cta {
    display: flex;
  }

  .nav-toggle,
  .nav-menu-mobile {
    display: none !important;
  }

  /* Hero layout becomes two-column */
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    padding: 3rem 0 3.4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Services cards in three columns */
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Two-column sections */
  .two-col {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: flex-start;
  }

  /* Steps: three columns */
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  /* Footer alignment */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Desktop large */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}
