/* MehvozSoft — enterprise consultancy site */
:root {
  --paper: #f6f5f1;
  --paper-alt: #efece6;
  --white: #ffffff;
  --ink: #122033;
  --ink-soft: #2a3b50;
  --muted: #4d5b6c;
  --faint: #6b7786;
  --navy: #0d2b4a;
  --accent: #1a4f8c;
  --accent-hover: #163f70;
  --accent-soft: rgba(26, 79, 140, 0.08);
  --line: rgba(18, 32, 51, 0.10);
  --line-strong: rgba(18, 32, 51, 0.16);
  --focus: #1a4f8c;
  --ok: #1f6b45;
  --err: #9b2c2c;
  --wrap: 1120px;
  --gutter: 24px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --header-h: 72px;
  --shadow-hover: 0 8px 24px rgba(18, 32, 51, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { top: 12px; color: var(--white); text-decoration: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark:hover { color: var(--navy); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--navy); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary,
.btn-nav {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover,
.btn-nav:hover {
  background: var(--accent-hover);
  color: var(--white);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}

.btn-on-dark {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-on-dark:hover {
  background: var(--paper);
  color: var(--navy);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-on-dark:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 104px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 18ch;
  line-height: 1.12;
  color: var(--navy);
}

.lede {
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* What we do band */
.band {
  padding: 72px 0;
  background: var(--navy);
  color: #e8eef5;
}
.band .eyebrow { color: #9bb6d4; }
.band h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  max-width: 22ch;
  margin: 0 0 18px;
}
.band p:last-child {
  margin: 0;
  max-width: 68ch;
  color: #c5d0dc;
  font-size: 1.05rem;
}
.band-inner { max-width: 760px; }

/* Sections */
.section {
  padding: 96px 0;
}
.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  color: var(--navy);
}
.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Cards */
.cards,
.industry-grid,
.why-grid {
  display: grid;
  gap: 16px;
}
.cards-2x3,
.why-grid {
  grid-template-columns: repeat(2, 1fr);
}
.industry-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--navy);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}
.card-link {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.card-link::after { content: " →"; }
.card-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Practice sections */
.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.practice-head { max-width: 28ch; }
.practice-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 0;
  color: var(--navy);
}
.practice-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
}
.practice-body p:last-child { margin-bottom: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
}
.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--navy);
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.team-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.team-copy h3 {
  font-size: 1.7rem;
  margin: 0 0 4px;
  color: var(--navy);
}
.role {
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.team-copy p { color: var(--muted); margin: 0 0 12px; }
.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}
.team-links a {
  font-weight: 600;
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item h3 { margin: 0; font-weight: 600; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 4px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.faq-icon::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1.5px;
}
.faq-icon::after {
  top: 2px;
  left: 8px;
  width: 1.5px;
  height: 14px;
}
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-a {
  padding: 0 4px 20px;
  max-width: 62ch;
}
.faq-a p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.contact-email {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 8px;
  text-decoration: none;
}
.contact-email:hover { color: var(--accent); text-decoration: none; }
.contact-phone {
  display: block;
  color: var(--muted);
  margin-bottom: 28px;
  text-decoration: none;
  font-weight: 500;
}
.contact-phone:hover { color: var(--navy); }

.contact-form {
  display: grid;
  gap: 14px;
  position: relative;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 400;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 128px; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.4em;
}
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }

/* Bottom CTA */
.cta-band {
  background: var(--navy);
  color: #e8eef5;
  padding: 88px 0;
}
.cta-inner { max-width: 720px; }
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  max-width: 20ch;
}
.cta-band p {
  margin: 0 0 28px;
  color: #c5d0dc;
  max-width: 54ch;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  background: var(--paper);
  color: var(--faint);
  font-size: 0.88rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: start;
}
.footer-wordmark {
  display: block;
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.footer-brand p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.copyright {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: var(--faint);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .nav-inner,
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  .site-header { position: sticky; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(246, 245, 241, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 24px;
    color: var(--navy);
    font-size: 1rem;
  }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { padding: 72px 0 64px; }
  .section { padding: 72px 0; }
  .band, .cta-band { padding: 64px 0; }
  .cards-2x3,
  .why-grid,
  .industry-grid,
  .team { grid-template-columns: 1fr; }
  .team { gap: 24px; }
  .team-photo { width: 160px; height: 160px; }
  h1 { max-width: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover { transform: none; }
}

@media (min-width: 861px) {
  body.nav-open .nav-links { display: flex; }
}
