/* ============================================
   MODERN METAL LIMITED — Site Stylesheet
   Palette and type follow the Metkim Metal group site.
   ============================================ */

:root {
  --navy-deep: #081526;
  --navy: #0c1f3f;
  --navy-light: #16305c;
  --steel: #2f5fa7;
  --red: #c81f2e;
  --red-dark: #a3121f;
  --grey-bg: #f2f3f6;
  --grey-line: #dde1e8;
  --ink: #101826;
  --ink-muted: #5b6577;
  --white: #ffffff;

  --font-head: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus { left: 8px; }

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

.section { padding: 88px 0; }
.section--grey { background: var(--grey-bg); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}

.rule {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 14px 0 24px;
}

.lede {
  font-size: 1.2rem;
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid currentColor;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--solid { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
}
.brand img { height: 54px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--red); border-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 21, 38, 0.97) 0%, rgba(12, 31, 63, 0.93) 55%, rgba(22, 48, 92, 0.9) 100%),
    repeating-linear-gradient(135deg, #16305c 0 2px, #0c1f3f 2px 26px);
  color: var(--white);
  padding: 120px 0 128px;
}
.hero::after {
  /* the ring of the mark, oversized, as a quiet backdrop */
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 34px solid transparent;
  border-top-color: rgba(47, 95, 167, 0.35);
  border-right-color: rgba(200, 31, 46, 0.35);
  border-left-color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero h1 span { color: var(--red); }
.hero .eyebrow { color: #e9a3aa; }
.hero .lede { color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Intro / focus ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-mark { width: 100%; max-width: 380px; margin: 0 auto; }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.focus-card {
  background: var(--white);
  border-top: 3px solid var(--red);
  padding: 32px 28px 26px;
}
.focus-card p { margin: 0; }
.focus-card .num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 10px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 72px 0; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* ---------- Contact ---------- */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 72px;
}
.page-head h1 { color: var(--white); margin: 0; }
.page-head .eyebrow { color: #e9a3aa; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-top: 3px solid var(--red);
  padding: 36px 34px;
}
.contact-card h2 { font-size: 1.6rem; }
.contact-card address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}
.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  word-break: break-all;
}
.contact-email:hover { color: var(--red); }
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.text-link:hover { color: var(--red-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grey-bg);
  border-top: 1px solid var(--grey-line);
  padding: 36px 0;
  font-size: 0.95rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img { height: 40px; width: auto; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--navy); }
.site-footer a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .intro-mark { max-width: 280px; order: -1; }
  .focus-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero::after { width: 420px; height: 420px; right: -200px; border-width: 24px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-header .container { height: 68px; }
  .brand img { height: 40px; }
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 0.92rem; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 88px; }
  .contact-card { padding: 28px 22px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
