/* ---------- Theme tokens ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #07090d;
  --bg-panel: #0f131b;
  --card-bg: #0f131b;
  --card-grad-from: #10204f;
  --card-grad-to: #12182a;
  --blue: #2f6fed;
  --blue-bright: #4c8bff;
  --text: #f4f6fa;
  --text-muted: #9aa5b8;
  --border: rgba(255, 255, 255, 0.08);
  --rule: rgba(255, 255, 255, 0.14);
  --logo-chip: transparent;
  --footer-dim: #555f70;

  /* Photo treatment: shop shots are dim and warm, so lift and cool them,
     then blend the edges into the dark panel. */
  --img-filter: brightness(1.28) contrast(1.08) saturate(0.75);
  --media-veil: radial-gradient(ellipse at center, transparent 45%, rgba(15, 19, 27, 0.88) 100%);
  --media-shadow: none;
  --media-ring: 1px solid var(--border);

  /* Hero fades down into the page background. */
  --hero-bottom-fade: linear-gradient(to top, #07090d 3%, rgba(7, 9, 13, 0.72) 26%, transparent 62%);

  --max-width: 1160px;
}

:root[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-panel: #ffffff;
  --card-bg: #ffffff;
  --card-grad-from: #e8eefb;
  --card-grad-to: #f6f8fb;
  --blue: #1d5bd6;
  --blue-bright: #1a4fc0;
  --text: #0c1320;
  --text-muted: #4f5b73;
  --border: rgba(12, 19, 32, 0.12);
  --rule: rgba(12, 19, 32, 0.14);
  --logo-chip: #07090d;
  --footer-dim: #7c8699;

  /* On white, washing the photo out reads as a mistake. Keep the image
     at close to true exposure and contain it with a ring and shadow
     instead of blending its edges away. */
  --img-filter: brightness(1.18) contrast(1.06) saturate(1.05);
  --media-veil: none;
  --media-shadow: 0 14px 34px rgba(12, 19, 32, 0.16);
  --media-ring: 1px solid rgba(12, 19, 32, 0.16);

  /* No fade to the page: a crisp bottom edge beats a white smear. */
  --hero-bottom-fade: linear-gradient(to top, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0.28) 30%, transparent 62%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin: 0 0 10px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { color: var(--text-muted); margin: 0 0 16px; }

section { padding: 88px 0; }

/* Lead sentence that carries the markets, sitting above the detail. */
.lede {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 720px;
  margin: 0 0 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-outline { border-color: var(--border); color: var(--text); background: rgba(127,127,127,0.12); }
.btn-outline:hover { border-color: var(--text); }
.btn-call { border: 1px solid var(--blue); color: var(--blue-bright); padding: 8px 16px; border-radius: 6px; }
.btn-call:hover { background: var(--blue); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--logo-chip);
}

.header-actions { display: flex; align-items: center; gap: 8px; order: 3; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue-bright); }

.theme-icon { grid-area: 1 / 1; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  order: 2;
  margin-left: auto;
}

.site-nav a:not(.btn) { color: var(--text-muted); transition: color 0.15s ease; }
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: var(--img-filter);
}

/* Scrim behind the copy keeps white text legible in both themes;
   the bottom treatment differs per theme (see --hero-bottom-fade). */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    var(--hero-bottom-fade),
    linear-gradient(to right, rgba(7, 9, 13, 0.72) 0%, rgba(7, 9, 13, 0.34) 48%, rgba(7, 9, 13, 0.12) 100%);
}

.hero-content {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 820px;
}

.hero .eyebrow { color: #8fb4ff; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }

.hero-sub {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  max-width: 700px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.1); }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.18); }

/* ---------- Intro ---------- */
.intro { padding: 64px 0; border-bottom: 1px solid var(--border); }
.intro-text {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Products (single combined block) ---------- */
.combo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-top: 30px;
}

.combo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.combo-grid h3 { font-size: 1.15rem; }
.combo-grid p { margin: 0; }

/* ---------- Standards / fabrication ---------- */
.fabrication {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fabrication-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fabrication-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--media-ring);
  box-shadow: var(--media-shadow);
}

.fabrication-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;
  filter: var(--img-filter);
}

.fabrication-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--media-veil);
  pointer-events: none;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  border-radius: 14px;
  overflow: hidden;
  border: var(--media-ring);
  box-shadow: var(--media-shadow);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-meta { color: var(--blue-bright); font-weight: 700; }

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-sub { max-width: 560px; margin: 0 auto 20px; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  text-align: left;
}

.contact-col { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.contact-col:first-child .contact-row { border-right: 1px solid var(--border); }
.contact-col .contact-row:last-child { border-bottom: none; }
a.contact-row:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); }

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}
.contact-value { font-size: 1.15rem; font-weight: 700; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--logo-chip);
}
.footer-info p { margin: 0 0 6px; font-size: 0.9rem; }
.footer-name { color: var(--text); font-weight: 700; }
.footer-info a:hover { color: var(--blue-bright); }
.footer-copyright { color: var(--footer-dim); font-size: 0.8rem; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .combo-grid { grid-template-columns: 1fr; gap: 28px; }
  .fabrication-inner, .about-inner { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-col:first-child .contact-row { border-right: none; }
  .contact-col:first-child .contact-row:last-child { border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .btn-call { align-self: flex-start; }
  section { padding: 60px 0; }
  .hero-content { padding-top: 100px; padding-bottom: 56px; }
}
