/* ==========================================================================
   NEUMAN SOLUTIONS — Components (header, hero, footer, sections)
   ========================================================================== */

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--grey-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--navy-600); letter-spacing: .01em; }
.brand__sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: #5b6472; font-weight: 700; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 8px; text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--navy-600); background: var(--grey-100); }
.nav__links a[aria-current="page"] { color: var(--accent-600); font-weight: 600; }

.nav__right { display: flex; align-items: center; gap: .6rem; }
.nav__phone {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--navy-600); font-weight: 600; font-size: .92rem;
  padding: .5rem .7rem; border-radius: 8px; text-decoration: none;
}
.nav__phone:hover { background: var(--grey-100); text-decoration: none; }
.nav__phone svg { width: 16px; height: 16px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--grey-300);
  background: #fff; border-radius: 10px; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; color: var(--navy-600); }

@media (max-width: 940px) {
  .nav__links, .nav__right .btn, .nav__phone .nav__phone-text { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__right .nav__phone { display: inline-flex; padding: .5rem; }
  .nav__phone .nav__phone-text { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--navy-900); color: #fff;
  flex-direction: column;
  padding: 1.25rem clamp(1.1rem,5vw,2rem) 2rem;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
  visibility: hidden;
  display: none;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.mobile-menu__close { width: 44px; height: 44px; background: rgba(255,255,255,.08); border: none; border-radius: 10px; display: grid; place-items: center; }
.mobile-menu__close svg { width: 24px; height: 24px; color: #fff; }
.mobile-menu__links { display: flex; flex-direction: column; gap: .25rem; margin-top: 1.5rem; }
.mobile-menu__links a {
  color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none;
}
.mobile-menu__links a:hover { color: var(--accent-400); }
.mobile-menu__cta { margin-top: auto; display: flex; flex-direction: column; gap: .75rem; padding-top: 2rem; }
.mobile-menu__contact { color: var(--ink-invert-soft); font-size: .95rem; display: flex; flex-direction: column; gap: .35rem; }
.mobile-menu__contact a { color: #fff; }

/* ------------------------------ Hero ------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, #1b3a63 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--accent-400); }
.hero__lead { color: var(--ink-invert-soft); font-size: clamp(1.05rem,1.7vw,1.28rem); max-width: 42ch; margin-bottom: 1.1rem; }
.hero__sub { color: var(--ink-invert-soft); max-width: 52ch; margin-bottom: 1.9rem; font-size: 1rem; }
.hero .btn-row { margin-bottom: 1.5rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ink-invert-soft); font-size: .9rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent-400); }

/* Compass visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.compass { width: min(420px, 78vw); aspect-ratio: 1; }
.compass .ring { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.compass .ring--dash { stroke-dasharray: 3 7; stroke: rgba(255,255,255,.22); }
.compass .star-major { fill: rgba(255,255,255,.9); }
.compass .star-minor { fill: rgba(120,140,180,.55); }
.compass .needle { fill: var(--accent-400); }
.compass .spin { transform-origin: 50% 50%; animation: compass-spin 60s linear infinite; }
@keyframes compass-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .compass .spin { animation: none; } }
.hero__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47,111,214,.35), transparent 65%); filter: blur(20px); z-index: 1; }

/* ---------------------------- Problem section --------------------------- */
.problem-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem 2rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-item { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.problem-item svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--steel-400); margin-top: 2px; }
.problem-item span { color: var(--ink-soft); font-size: .97rem; }

/* ---------------------------- Approach steps ---------------------------- */
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; margin-top: 1rem; }
.steps--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1000px) { .steps, .steps--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps, .steps--4 { grid-template-columns: 1fr; } }

.contact-layout { grid-template-columns: 1.3fr .9fr; gap: clamp(1.5rem,4vw,3rem); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem 1.25rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform var(--transition), background var(--transition); }
.step:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.step__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent-400); font-weight: 600; line-height: 1; }
.step h3 { color: #fff; margin: .6rem 0 .4rem; }
.step p { font-size: .9rem; color: var(--ink-invert-soft); }

/* ---------------------------- Solution cards ---------------------------- */
.solution-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.solution-card__top { padding: clamp(1.4rem,2.5vw,1.9rem); border-bottom: 1px solid var(--grey-200); background: linear-gradient(180deg, var(--grey-050), #fff); }
.solution-card__body { padding: clamp(1.4rem,2.5vw,1.9rem); display: flex; flex-direction: column; flex: 1; }
.solution-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.solution-card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.solution-card .caps { margin: 1rem 0 1.4rem; display: grid; gap: .5rem; }
.solution-card .caps li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.solution-card .caps svg { width: 17px; height: 17px; color: var(--accent-500); flex: 0 0 auto; margin-top: 3px; }
.solution-card .btn-row { margin-top: auto; }
.solution-card__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-400); margin-bottom: .35rem; }

/* --------------------------- Why / feature list ------------------------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-050); color: var(--accent-600); display: grid; place-items: center; flex: 0 0 auto; }
.section--dark .feature__icon { background: rgba(77,138,232,.16); color: var(--accent-400); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3rem; }
.feature p { font-size: .95rem; }

/* ------------------------------ CTA band -------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: var(--ink-invert-soft); max-width: 46ch; margin: 0 auto 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-900); color: var(--ink-invert-soft); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand__name, .footer-brand .brand__sub { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; max-width: 34ch; color: var(--ink-invert-soft); }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--ink-invert-soft); font-size: .95rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: var(--ink-invert-soft); }

/* --------------------------- Breadcrumb / page hero --------------------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding-block: clamp(2.75rem,6vw,4.5rem); }
.page-hero h1 { color: #fff; margin-bottom: .8rem; }
.page-hero p { color: var(--ink-invert-soft); max-width: 56ch; }
.breadcrumb { font-size: .85rem; color: var(--ink-invert-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-invert-soft); }
.breadcrumb a:hover { color: #fff; }

/* ------------------------------ Forms ----------------------------------- */
.form-wrap { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.5rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy-600); margin-bottom: .4rem; }
.field .req { color: var(--accent-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  border: 1.5px solid var(--grey-300); border-radius: 10px; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-050);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--error input, .field--error textarea, .field--error select { border-color: #d43d3d; }
.field__error { color: #c62d2d; font-size: .84rem; margin-top: .35rem; display: none; }
.field--error .field__error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form-status.is-success { display: block; background: #e6f5ec; color: #1f6b3e; border: 1px solid #b8e0c6; }
.form-status.is-error { display: block; background: #fdecec; color: #b02525; border: 1px solid #f3c4c4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------ Contact info ---------------------------- */
.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info__item .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-050); color: var(--accent-600); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info__item .ic svg { width: 20px; height: 20px; }
.contact-info__item h4 { margin-bottom: .15rem; }
.contact-info__item a, .contact-info__item p { color: var(--ink-soft); font-size: .96rem; }

/* ------------------------------ 404 ------------------------------------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-page .big { font-family: var(--font-display); font-size: clamp(4rem,14vw,8rem); color: var(--navy-600); line-height: 1; }

/* prose for legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: .8rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { font-size: .9rem; color: #5b6472; }
