/* EWG Solutions — site styles */

:root {
  /* Brand blue, sampled from the logo. Adjust here if it's off. */
  --brand: #1263c6;
  --brand-dark: #0e4fa0;
  --brand-tint: #eaf1fc;

  --ink: #18181b;
  --ink-mid: #52525b;
  --ink-soft: #71717a;
  --line: #e4e4e7;
  --bg: #fafafa;
  --surface: #ffffff;

  --dark: #18181b;
  --dark-surface: #232326;
  --dark-line: #3f3f46;
  --dark-text: #a1a1aa;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;

  --wrap: 1120px;
  --gutter: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1rem; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 5rem 0; }
.section--light { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.section--dark .eyebrow { color: #6ba4ea; }

.centered { text-align: center; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { margin-top: 0.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ea; }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--lg { padding: 0.9rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  color: var(--ink-mid);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--brand); }
.nav__toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 7rem 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(9, 14, 26, 0.72), rgba(9, 14, 26, 0.78)),
    url('img/intro-bg.jpg') center / cover no-repeat;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #dbe4f0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about h2 { margin-bottom: 1.5rem; }
.about__body { color: var(--ink-mid); }
.about__body p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.about__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.about__person { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.about__avatar {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--radius);
  font-size: 1.35rem;
}
.about__name { font-weight: 600; line-height: 1.3; }
.about__role { font-size: 0.85rem; color: var(--ink-soft); }
.about__card p { margin: 0; color: var(--ink-mid); font-size: 0.95rem; }

/* ---- Expertise ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.18s ease;
}
.card:hover { border-color: var(--brand); }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  background: rgba(18, 99, 198, 0.16);
  color: #6ba4ea;
  border-radius: var(--radius);
  font-size: 1.15rem;
}
.card h3 { margin-bottom: 0.65rem; }
.card p { margin: 0; color: var(--dark-text); font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta { background: var(--brand); color: #fff; padding: 4rem 0; text-align: center; }
.cta h2 { margin-bottom: 0.85rem; }
.cta p { max-width: 38rem; margin: 0 auto 2rem; color: #d8e6f9; font-size: 1.1rem; }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; }
.contact h2 { margin-bottom: 1rem; }
.contact__lead { color: var(--ink-mid); font-size: 1.05rem; margin-bottom: 2rem; }
.contact__item { display: flex; align-items: center; gap: 0.9rem; }
.contact__item i { color: var(--brand); font-size: 1.15rem; width: 1.4rem; text-align: center; }
.contact__label { font-size: 0.8rem; color: var(--ink-soft); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4d4d8;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 99, 198, 0.16);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Honeypot — must stay reachable to bots, invisible to people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.form-status:empty { display: none; }
.form-status.is-ok { background: #e8f6ee; color: #14663c; border: 1px solid #b7e0c8; }
.form-status.is-error { background: #fdecec; color: #99201d; border: 1px solid #f3c2c0; }

/* ---- Footer ---- */
.footer { background: var(--dark); color: var(--dark-text); padding: 3rem 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__logo img { height: 24px; width: auto; }
.footer__meta { font-size: 0.85rem; line-height: 1.6; }

.footer__brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; font-weight: 600; }
.footer__brand img { height: 26px; width: 26px; }
.footer__social a { color: var(--dark-text); font-size: 1.35rem; text-decoration: none; }
.footer__social a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0; }
  .nav__toggle { display: block; }
  .nav__inner { flex-wrap: wrap; }
  .nav__links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .nav__links .btn { margin-top: 0.75rem; border-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
