/* Molhad Mago Electronics LLP — shared stylesheet.
   White + steel-blue theme in the Magonics style (green swapped for a B2B blue).
   Plain static site: no JS, no build, no external requests. */

:root {
  --ink: #1c2a35;        /* headings, wordmark */
  --body: #45535e;       /* body text */
  --muted: #7b8790;
  --line: #e3e8ec;       /* hairline borders, Magonics-style */
  --panel: #f6f8fa;      /* soft section background */
  --blue: #1a5fb4;       /* the B2B accent (Magonics green's seat) */
  --blue-dark: #12467f;
  --blue-tint: #eef4fb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
a { color: var(--blue); }

/* ============ header ============ */
header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; flex-wrap: wrap; }

/* Wordmark in the Magonics style: MOLHAD ink + MAGO blue, line beneath. */
.logo { text-decoration: none; line-height: 1; display: inline-block; }
.logo .mark { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }
.logo .mark .a { color: var(--ink); }
.logo .mark .b { color: var(--blue); }
.logo .sub { display: block; margin-top: 2px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0.2px; }

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 8px 16px; border-radius: 6px;
}
nav a:hover { background: var(--blue-tint); color: var(--blue); }
nav a.active { background: var(--blue); color: #fff; }

/* ============ hero (white, Magonics-style) ============ */
.hero { border-bottom: 1px solid var(--line); padding: 64px 0 60px; background:
  radial-gradient(700px 320px at 90% 0%, var(--blue-tint), transparent 65%), #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 44px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-tint); border: 1px solid #d3e2f5; border-radius: 999px;
  padding: 5px 14px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 42px); line-height: 1.2; color: var(--ink);
  font-weight: 750; letter-spacing: -0.6px; margin-top: 18px;
}
.hero .lede { margin-top: 16px; font-size: 18px; max-width: 560px; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { text-align: center; }
.hero-art svg { max-width: 100%; height: auto; }
.hero-art img { max-width: 100%; height: auto; display: block; }

.btn {
  display: inline-block; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: 8px;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }

/* trust strip */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .wrap > div { display: flex; gap: 10px; align-items: center; padding: 16px 14px; border-left: 1px solid var(--line); }
.strip .wrap > div:first-child { border-left: 0; padding-left: 0; }
.strip svg { flex: none; }
.strip b { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.35; }
@media (max-width: 860px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ============ sections ============ */
section { padding: 56px 0 24px; }
section.tint { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; padding-bottom: 56px; }
.sechead { margin-bottom: 28px; }
.secno { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; }
h2 { font-size: clamp(23px, 2.8vw, 32px); color: var(--ink); font-weight: 720; letter-spacing: -0.4px; margin-top: 6px; line-height: 1.3; }
section p { max-width: 680px; margin-bottom: 14px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* cards */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 20px;
}
.tile:hover { border-color: #c9d8ea; }
.tile .ic {
  width: 44px; height: 44px; border-radius: 9px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.tile h3 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.tile p { font-size: 15.5px; margin: 0; }
.tile a { font-size: 14px; font-weight: 600; text-decoration: none; }
.tile a:hover { text-decoration: underline; }

/* brand logo grid — real logos on white cards, Magonics-style */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .brands { grid-template-columns: repeat(2, 1fr); } }
.brands div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 16px 22px;
}
.brands div:hover { border-color: #c9d8ea; }
/* Equal visual weight: cap BOTH height and width so square marks (TE) don't tower
   over wide wordmarks (Molex) and small files (KET) don't shrink. */
.brands img { height: 44px; width: auto; max-width: 68%; object-fit: contain; }
.tm { font-size: 12.5px; color: var(--muted); margin-top: 16px; max-width: 720px; }

/* strengths */
.strengths { max-width: 860px; counter-reset: s; }
.strengths li {
  list-style: none; counter-increment: s;
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.strengths li::before {
  content: "0" counter(s);
  font-size: 24px; color: var(--blue); font-weight: 800; line-height: 1; opacity: 0.35;
}
.strengths h3 { font-size: 16px; color: var(--ink); font-weight: 700; display: inline; }
.strengths span { font-size: 15.5px; display: block; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.steps svg { display: block; margin-bottom: 10px; }
.steps b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 700; }
.steps small { font-size: 14.5px; line-height: 1.55; display: block; margin-top: 2px; }
.steps span { font-size: 11.5px; letter-spacing: 1.5px; color: var(--blue); font-weight: 700; }

/* facts table */
.about-flex { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about-flex { grid-template-columns: 1fr; } }
dl.facts { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
dl.facts > div { display: grid; grid-template-columns: 145px 1fr; padding: 11px 16px; border-bottom: 1px solid var(--line); }
dl.facts > div:last-child { border-bottom: 0; }
dl.facts > div:nth-child(odd) { background: var(--panel); }
dl.facts dt { font-size: 13.5px; color: var(--muted); font-weight: 600; padding-top: 1px; }
dl.facts dd { font-size: 15.5px; color: var(--ink); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.office { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.office h3 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.office p { font-size: 16px; line-height: 1.9; margin: 0; }
/* The email and phone are what a purchaser came for — loudest text on the page. */
.office p a { font-size: 19px; font-weight: 700; text-decoration: none; }
.office p a:hover { text-decoration: underline; }
.office .btn { font-size: 15px; font-weight: 600; }

/* icon contact rows (contact cards) */
.clist { list-style: none; }
.clist li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; line-height: 1.6; }
.clist li.top { align-items: flex-start; }
.clist li.top svg { margin-top: 3px; }
.clist svg { flex: none; }
.clist a { font-size: 19px; font-weight: 700; text-decoration: none; }
.clist a:hover { text-decoration: underline; }

/* footer contact rows with icons */
.fcontact li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.fcontact svg { flex: none; margin-top: 4px; }

/* CTA band — light blue tint, not heavy */
.cta-band {
  background: var(--blue-tint); border-top: 1px solid #d3e2f5; border-bottom: 1px solid #d3e2f5;
  margin-top: 56px; padding: 44px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 4px 0 0; }

/* product photo cards (profile page 3) */
.pcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 960px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
.pcards > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: center; padding-bottom: 12px; }
.pcards > div:hover { border-color: #c9d8ea; }
.pcards .ph { height: 120px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #fff; }
.pcards img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcards b { font-size: 14.5px; color: var(--ink); font-weight: 700; letter-spacing: 0.6px; }

/* about page warehouse photo */
.photo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; background: var(--panel); border-top: 1px solid var(--line); }

/* product category chips (profile page 3) */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 860px) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .chips { grid-template-columns: repeat(2, 1fr); } }
.chips div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  text-align: center; padding: 18px 8px 14px;
}
.chips svg { display: block; margin: 0 auto 8px; }
.chips b { font-size: 13.5px; color: var(--ink); font-weight: 700; letter-spacing: 0.4px; }

.bulkline { margin-top: 22px; font-size: 14.5px; color: var(--ink); }
.bulkline b { color: var(--blue); letter-spacing: 0.5px; }

/* stats band */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .wrap > div { padding: 22px 16px; text-align: center; border-left: 1px solid var(--line); }
.stats .wrap > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 22px; color: var(--blue); font-weight: 800; letter-spacing: -0.3px; }
.stats small { font-size: 13px; color: var(--body); }
@media (max-width: 720px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stats .wrap > div:nth-child(3) { border-left: 0; }
}

/* sourcing flow line */
.flowline { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 1px; margin-top: 26px; }
.flowline span { color: var(--blue); }
.countries { text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 26px; }

/* customer tiles (text) */
.customers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .customers { grid-template-columns: repeat(2, 1fr); } }
.customers div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  text-align: center; padding: 20px 10px; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.customers div small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* CJT text tile inside brand grid */
.brands .cjt { font-size: 24px; font-weight: 800; color: #149a4e; font-style: italic; letter-spacing: 0.5px; }
.brands .cjt small { display: block; font-size: 9.5px; letter-spacing: 1.6px; color: #149a4e; font-style: normal; font-weight: 700; margin-top: 1px; }

/* ============ MAGONICS band (home page) ============ */
.mago-band {
  background: #f2faf5;
  border-top: 1px solid #d7ecdd; border-bottom: 1px solid #d7ecdd;
  margin-top: 56px; padding: 30px 0 34px; text-align: center;
}
.mago-band .label { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #1f9d4d; }
.mago-band .mm { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.4px; margin-top: 6px; line-height: 1; }
.mago-band .mm .a { color: var(--ink); }
.mago-band .mm .b { color: #2bb24c; }
.mago-band .points { margin-top: 10px; font-size: 14.5px; color: var(--body); }
.mago-band .points b { color: var(--ink); }
.btn-green { background: #2bb24c; color: #fff; }
.btn-green:hover { background: #1f9d4d; color: #fff; }
.mago-band .btn { margin-top: 14px; font-size: 14px; padding: 10px 24px; }

/* ============ full footer ============ */
footer { background: #1c2a35; color: #9fb0bd; font-size: 14px; margin-top: 0; }
.foot-main { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 40px; padding: 44px 0 34px; }
@media (max-width: 820px) { .foot-main { grid-template-columns: 1fr; gap: 26px; } }
.foot-logo .mark { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.foot-logo .mark .a { color: #ffffff; }
.foot-logo .mark .b { color: #6ea8e8; }
.foot-logo p { margin-top: 10px; font-size: 13.5px; line-height: 1.7; max-width: 300px; }
footer h4 { color: #ffffff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; }
footer a { color: #c3d0da; text-decoration: none; }
footer a:hover { color: #ffffff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid #2c3d4a; padding: 16px 0; font-size: 13px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* magonics link in the dark footer bar - visible, on-brand green */
.foot-bottom .mago-link { color: #5ec97a; font-weight: 700; }
.foot-bottom .mago-link:hover { color: #7ee49a; }
