
:root {
  --dark: #032456;
  --teal: #45818e;
  --teal-soft: #e6f2f4;
  --text: #17304f;
  --muted: #66788c;
  --line: rgba(69,129,142,.22);
  --paper: #ffffff;
  --section: #f6f9fb;
  --shadow: 0 18px 55px rgba(3,36,86,.16);
  --header-height: 126px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); line-height: 1.58; background: #fff; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--teal); }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 1000; min-height: var(--header-height); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 22px rgba(3,36,86,.06); }
.header-inner { width: 100%; min-height: var(--header-height); margin: 0; padding: 0 18px 0 10px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img { width: clamp(560px, 43vw, 760px); max-height: 118px; object-fit: contain; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.35vw, 24px); font-size: 16px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; min-width: max-content; }
.site-nav a { padding: 9px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a.is-active, .site-nav a:hover { border-color: var(--teal); }
.language-switch { font-size: 16px; font-weight: 800; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.menu-toggle { display: none; background: none; border: 0; font-size: 28px; color: var(--dark); }
.section-anchor { scroll-margin-top: calc(var(--header-height) + 18px); }
.hero { min-height: calc(100vh - var(--header-height)); position: relative; overflow: hidden; display: grid; align-items: center; background: var(--dark); }
.hero-media { position: absolute; inset: 0; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; filter: saturate(1.02) contrast(1.04); }
.hero-image.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,36,86,.95) 0%, rgba(3,36,86,.82) 34%, rgba(3,36,86,.35) 64%, rgba(3,36,86,.1) 100%); }
.hero-content { position: relative; z-index: 2; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0; }
.hero-card { max-width: 620px; color: white; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.hero-card .eyebrow { color: #7fd6df; }
h1 { font-size: clamp(38px, 5.3vw, 68px); line-height: .98; margin: 0 0 24px; color: white; letter-spacing: -.04em; }
h2 { font-size: clamp(31px, 3.4vw, 48px); line-height: 1.05; margin: 0 0 20px; color: var(--dark); letter-spacing: -.025em; }
h3 { font-size: 24px; line-height: 1.2; margin: 0 0 16px; color: var(--teal); }
h4 { font-size: 21px; margin: 0 0 10px; color: var(--dark); }
.hero-card p { font-size: 18px; color: rgba(255,255,255,.9); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 800; letter-spacing: .02em; border: 1px solid transparent; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: #336a75; color: white; }
.button-secondary { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.35); }
.button-secondary:hover { background: white; color: var(--dark); }
.content-section { padding: 96px 0; background: white; }
.section-soft { background: linear-gradient(180deg, #f7fbfc, #fff); }
.section-heading { max-width: none; width: 100%; margin-bottom: 46px; }
.section-heading p { font-size: 18px; color: #3e536b; max-width: none; width: 100%; }
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.expertise-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 12px 35px rgba(3,36,86,.06); }
.expertise-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: all .2s ease; }
.expertise-icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; }
.keywords { margin-top: 18px; font-size: 14px; font-weight: 800; color: var(--dark); }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.application-card { overflow: hidden; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(3,36,86,.08); }
.application-card img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; display: block; }
.application-content { padding: 26px; }
.about-block { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-block:first-of-type { margin-top: 0; }
.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.founder-card { background: var(--section); border-left: 4px solid var(--teal); padding: 24px; border-radius: 12px; }
.section-contact { background: linear-gradient(135deg, rgba(3,36,86,.97), rgba(3,36,86,.88)), url('../hero/hero-12-engineering-consultancy-training.jpg'); background-size: cover; background-position: center; color: white; }
.section-contact h2, .section-contact .eyebrow { color: white; }
.section-contact p { color: rgba(255,255,255,.86); }
.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: start; }
.contact-card { background: rgba(255,255,255,.98); color: var(--text); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.contact-card p { color: var(--text); }
.legal-section { padding: 60px 0; background: #f8fafc; }
.legal-section ul { columns: 2; padding-left: 20px; }
.site-footer { background: #071b3b; color: rgba(255,255,255,.74); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: white; }
@media (max-width: 980px) {
  :root { --header-height: 110px; }
  .header-inner { padding: 0 16px 0 10px; }
  .brand img { width: min(520px, 72vw); max-height: 92px; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-height); background: white; flex-direction: column; align-items: flex-start; padding: 18px 28px 26px; gap: 14px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(3,36,86,.12); display: none; }
  .site-nav.is-open { display: flex; }
  .language-switch { margin-left: auto; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,36,86,.96), rgba(3,36,86,.74)); }
  .expertise-grid, .application-grid, .founder-grid, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-height: 92px; }
  .container, .hero-content { width: min(100% - 30px, 1220px); }
  .header-inner { width: 100%; padding: 0 14px 0 8px; }
  .brand img { width: min(360px, 76vw); max-height: 74px; }
  .content-section { padding: 72px 0; }
  .hero-content { padding: 60px 0; }
  .hero-card p { font-size: 16px; }
  .legal-section ul { columns: 1; }
}

.founder-role { display: block; margin-top: 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 800; }

/* ── Contact Form ─────────────────────────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  letter-spacing: .02em;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(69,129,142,.18);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .field-error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
}

.contact-form .form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.contact-form .form-feedback.is-visible {
  display: block;
}

.contact-form .form-feedback.is-success {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid rgba(69,129,142,.35);
}

.contact-form .form-feedback.is-error {
  background: #fdf0ef;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,.3);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 28px;
  background: var(--teal);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .18s ease;
}

.contact-form button[type="submit"]:hover:not(:disabled) {
  background: #336a75;
}

.contact-form button[type="submit"]:disabled {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
