/* EuME Solutions — site stylesheet
   Brand: navy #102B4E, steel #315A82, silver #A7B0BA, white, accent red #B82E35 */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #102B4E;
  --navy-deep: #0C2240;
  --steel: #315A82;
  --silver: #A7B0BA;
  --silver-soft: #C9D1DA;
  --white: #FFFFFF;
  --red: #B82E35;
  --red-dark: #9A252B;
  --ink: #1A2B40;          /* body text on light */
  --muted: #4E5F73;        /* secondary text on light */
  --surface: #F2F5F8;      /* cool light section background */
  --rule: #D9DFE6;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--steel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.05; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: 0;
  border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-ghost-dark { border-color: var(--steel); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--surface); color: var(--navy); }
.btn-navy:hover { background: var(--steel); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }
.nav-menu { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  position: relative; display: inline-block; padding: .5rem 0;
  color: var(--navy); font-weight: 500; text-decoration: none; font-size: 1rem;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: 6px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  .brand img { height: 48px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(16,43,78,.35);
  }
  .js .nav-menu[hidden] { display: none; }
  .js .nav-menu a { display: block; padding: .9rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--rule); }
  .js .nav-menu li:last-child a { border-bottom: 0; }
  .js .nav-menu a::after { display: none; }
  .js .nav-menu a[aria-current="page"] { color: var(--red); }
  .nav-menu { gap: 1.25rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #1B3D66 0%, var(--navy) 48%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(5rem, 12vw, 9.5rem);
}
.hero-art {
  position: absolute; z-index: -1; pointer-events: none;
  right: -4%; bottom: 0; width: min(1000px, 88%); height: auto;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13.5em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--silver-soft); }
.hero h1 span:last-child { color: var(--white); }
.hero-copy { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.075rem, 1.5vw, 1.2rem); line-height: 1.65; color: #D3DAE3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* one orchestrated load moment: the monogram bands slide into place once */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .band { animation: band-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-art .b1 { animation-delay: .15s; }
  .hero-art .b2 { animation-delay: .3s; }
  .hero-art .b3 { animation-delay: .45s; }
  .hero-art .b4 { animation-delay: .8s; }
}
@keyframes band-in { from { opacity: 0; transform: translate(-90px, 50px); } }

/* ---------- Page heading band (About / Contact) ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.page-head h1 { color: var(--white); max-width: 16em; }
.page-head p { margin-top: 1.25rem; max-width: 40rem; color: #D3DAE3; font-size: clamp(1.075rem, 1.5vw, 1.2rem); }
.page-head-art { position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-50%); width: min(640px, 70%); opacity: .9; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--surface); }
.section.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { margin-top: 1rem; }

/* Areas of expertise: a ruled 2x2 matrix rather than floating cards */
.expertise {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 720px) { .expertise { grid-template-columns: 1fr 1fr; } }
.expertise li {
  position: relative; background: var(--white);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: background-color .25s ease;
}
.expertise li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--steel); transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.expertise li:hover { background: #FAFBFD; }
.expertise li:hover::before { transform: scaleY(1); }
.expertise .icon { width: 44px; height: 44px; color: var(--steel); margin-bottom: 1.5rem; }
.expertise h3 { margin-bottom: .6rem; }
.expertise p { color: var(--muted); max-width: 34rem; }

/* Our approach: a genuine three-step sequence */
.steps { display: grid; gap: 2.5rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { position: relative; counter-increment: step; }
.step-mark {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.step-mark::before {
  content: counter(step);
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--steel); color: var(--navy); background: var(--white);
  font: 600 1.05rem/1 var(--font-display);
}
.step-mark::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--silver), rgba(167,176,186,0)); }
.steps li:last-child .step-mark::before { border-color: var(--red); }
.steps li:last-child .step-mark::after { display: none; }
.steps h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); }

/* Closing call to action */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 1rem; color: #D3DAE3; max-width: 36rem; font-size: 1.125rem; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.cta-art { position: absolute; z-index: -1; right: -6%; bottom: -70%; width: min(760px, 110%); opacity: .45; }

/* ---------- About ---------- */
.about-intro { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.15fr .85fr; } }
.about-intro .lede { color: var(--ink); }
.about-intro figure { margin: 0; }
.brand-panel { background: linear-gradient(160deg, var(--navy) 0%, #071a33 100%); border-radius: 10px; padding: clamp(1rem, 3vw, 1.75rem) clamp(.75rem, 2.5vw, 1.5rem); }
.brand-panel img { width: 100%; height: auto; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; } }
.split .lede { margin-top: 1.25rem; }

.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.principles li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
  font: 600 clamp(1.125rem, 2vw, 1.35rem)/1.3 var(--font-display); color: var(--navy); letter-spacing: -0.01em;
}
.principles li::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border: 2px solid var(--red); border-radius: 50%; }

.foundations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 720px) { .foundations { grid-template-columns: 1fr 1fr; } }
.foundations li {
  display: flex; gap: .9rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; color: var(--ink);
}
.foundations li::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; background: var(--steel); transform: translateY(-2px) rotate(45deg);
}
.note { margin-top: 1.75rem; font-size: .95rem; color: var(--muted); }

.closing-statement {
  font: 600 clamp(1.5rem, 3vw, 2.25rem)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--navy);
  max-width: 30em; margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 3px solid var(--red);
}
.closing-actions { margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }

.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-weight: 600; font-size: .975rem; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C2CC; border-radius: 6px;
  padding: .8rem .9rem; min-height: 50px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23315A82' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(49,90,130,.25);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .9rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: .9rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { margin: 0; padding: 1rem 1.15rem; border-radius: 6px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E9F3EC; color: #1E5631; border: 1px solid #B9D9C2; }
.form-status.is-error { background: #FBECEC; color: #8A1F24; border: 1px solid #EBC3C5; }
.form-status.is-info { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }

.contact-aside { display: grid; gap: 1.25rem; }
.aside-block { background: var(--surface); border-radius: 10px; padding: 1.75rem; }
.aside-block h2 { font-size: 1.25rem; margin-bottom: .6rem; letter-spacing: -0.01em; }
.aside-block p, .aside-block li { color: var(--muted); font-size: .985rem; }
.aside-block ul { margin: 0; padding-left: 1.1rem; }
.aside-block li + li { margin-top: .35rem; }
.aside-block.privacy { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--silver-soft); padding-block: 3.5rem 2.5rem; font-size: .975rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(167,176,186,.25); }
.footer-name { font: 700 1.35rem/1.2 var(--font-display); color: var(--white); letter-spacing: -0.01em; margin: 0; }
.footer-tag { margin: .35rem 0 0; color: var(--silver); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 0; list-style: none; margin: 0; padding: 0; }
.footer-nav li + li::before { content: "|"; color: rgba(167,176,186,.5); margin: 0 .9rem; }
.footer-nav a { color: var(--silver-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { margin: 1.75rem 0 0; color: var(--silver); font-size: .9rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
