/* M Tech website — mobile-first; the min-width queries at the bottom widen it up. */
:root {
  --brand: #d22027;
  --brand-dark: #a8181e;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #e4e6ea;
  --bg: #fff;
  --alt: #f6f7f9;
  --radius: 12px;
  --logo-fill: #231f20;   /* the logo's TECH / COMPUTERS lettering; the "m" and rule stay red */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }

/* ── Header ──
   Phone: the horizontal logo at 80vw on its own line, then "phone · email" with the address centred below.
   Desktop (min-width query below): the vertical logo left, "Phone: / Email: / address" stacked right.
   Both logos are inlined; CSS shows one. Only the black nav bar under it is sticky. */
.site-header { background: #fff; }
.masthead { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; padding-bottom: 14px; }
.brand { display: block; line-height: 0; }
.brand svg, .brand img { display: block; width: 100%; height: auto; }
.brand .logo-black { fill: var(--logo-fill); }
.logo-h { display: block; width: 80vw; max-width: 420px; }
.logo-v { display: none; }
.head-contact { font-style: normal; text-align: center; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.head-contact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.head-contact a:hover { color: var(--brand); }
.head-contact .lbl { display: none; }
.head-contact > span + span::before { content: " \00B7  "; color: var(--muted); }   /* " · " between phone and email on phones */
.head-contact > span:last-child { display: block; }                                  /* the address on its own centred line below them */
.head-contact > span:last-child::before { content: none; }

/* The black nav bar — sticky, scrolls sideways on narrow phones */
.mainnav { background: #111; position: sticky; top: 0; z-index: 10; }
.mainnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  flex: none; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 12px 12px; border-bottom: 3px solid transparent;
}
.mainnav a:hover { background: #262626; color: #fff; }
.mainnav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* ── Hero ── */
.hero { padding: 40px 0 36px; background: linear-gradient(180deg, #fff 0%, var(--alt) 100%); }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin: 8px 0 14px; max-width: 28ch; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button {
  display: inline-block; text-decoration: none; font-weight: 700; text-align: center;
  background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 10px; border: 2px solid var(--brand);
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--brand); }
.button.ghost:hover { background: var(--brand); color: #fff; }

/* ── Sections ── */
.section { padding: 44px 0; scroll-margin-top: 56px; }   /* land below the sticky nav bar */
.section.alt { background: var(--alt); }
.section h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 12px; }
.section h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--brand); border-radius: 2px; margin-top: 10px; }
.section p + p { margin-top: 12px; }
.intro { color: var(--muted); max-width: 62ch; }
.quote { margin-top: 22px; border-left: 4px solid var(--brand); padding: 4px 0 4px 16px; font-size: 1.1rem; font-style: italic; color: var(--ink); max-width: 52ch; }
/* Offer strip (SuperGold card discount, under the IT support section) */
/* SuperGold brand rules: logo on a plain light background, never recoloured, min 75px wide, clear space
   of one cap-"S" width (~11% of the logo's width ≈ 13px at 114px) on every side — the padding covers it. */
.offer { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 20px; }
.offer img { height: 56px; width: auto; min-width: 75px; flex: none; }
.offer p { margin: 0; flex: 1 1 260px; font-size: 1.05rem; }
.small { font-size: 0.85rem; color: var(--muted); }
.split { display: grid; gap: 28px; }

/* Featured project */
.feature {
  margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px; display: grid; gap: 22px; border-top: 4px solid var(--brand);
}
.tag { display: inline-block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.feature h3 { font-size: 1.25rem; margin: 10px 0; }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.stats li, .live-stats li { background: var(--alt); border-radius: 10px; padding: 12px 14px; }
.stats b, .live-stats b { display: block; font-size: 1.4rem; line-height: 1.2; color: var(--brand); }
.stats span, .live-stats span { font-size: 0.85rem; color: var(--muted); }

/* Cards: an icon (Web/Icons.cs) in a pale brand circle, a heading and one line of text.
   .cards.two stays two across (used inside a .split column beside a panel). */
.cards { display: grid; gap: 14px; margin-top: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; display: flex; flex-direction: column; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fdf0f0; color: var(--brand); margin-bottom: 12px; }
.card-icon .icon { width: 24px; height: 24px; }

/* Side panels (remote support, live solar) */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.panel h3 { font-size: 1.1rem; margin-bottom: 10px; }
.remote .button, .button.block { display: block; margin-top: 10px; }
.card .more { margin-top: auto; padding-top: 12px; }   /* links line up along the bottom of a row */
.remote .small { margin-top: 12px; }
.live-stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.live-stats b { font-size: 1.2rem; white-space: nowrap; }   /* "12.4 kWh" on one line in a narrow tile */
.more { font-weight: 700; text-decoration: none; }

/* About */
.badges { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fb { font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-top: 6px; }
.contact dt { color: var(--muted); font-weight: 600; }
.map { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.85rem; color: var(--muted); }
.site-footer p + p { margin-top: 6px; }
.solar-line a { color: var(--muted); }

@media (min-width: 720px) {
  .masthead { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
  .logo-h { display: none; }
  .logo-v { display: block; width: auto; }
  .logo-v svg, .logo-v img { height: 120px; width: auto; }
  .head-contact { text-align: right; font-size: 0.95rem; line-height: 1.7; }
  .head-contact > span { display: block; }
  .head-contact > span + span::before { content: none; }
  .head-contact .lbl { display: inline; color: var(--muted); }
  .mainnav a { padding: 13px 16px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.6rem; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 1.8rem; }
  .split { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .feature { grid-template-columns: 1.5fr 1fr; padding: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .map { height: 340px; }
}
@media (min-width: 980px) {
  .cards:not(.two) { grid-template-columns: repeat(3, 1fr); }
}
