/* ===== McTech Support: SHARED styles =====
   Loaded on every page. Covers the banner, navigation, content blocks,
   cards, buttons, and footer. Edit here once and every page updates.
   Page-specific styles belong in that page's own CSS file. */

* {
  box-sizing: border-box;
}

:root {
  --bg: #2a2a2b;
  --block: #3a3a3c;
  --block-alt: #333335;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --nav-bg: #3a3a3c;
  --nav-text: #ffffff;
  --nav-text-hover: #f38120;
  --button-text: #3a3a3c;
  --logo-max-h: 120px;
  --nav-h: 52px;
  --nav-gap: 2.5rem; /* space from an option to the separator, doubled */
}

html, body {
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a, a:link, a:visited, a:active {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Banner ===== */
.banner {
  position: relative;
  padding: 0.75rem 0;
  background-color: #f38120; /* fallback if the image is missing */
  background-image: url("/website/images/banner.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* White fade over the left side so the logo stays readable.
   Fully white through the left third, then eased out (smoothstep). */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1)     0%,
    rgba(255, 255, 255, 1)     33.333%,
    rgba(255, 255, 255, 0.957) 40.4%,
    rgba(255, 255, 255, 0.844) 47.5%,
    rgba(255, 255, 255, 0.684) 54.6%,
    rgba(255, 255, 255, 0.5)   61.7%,
    rgba(255, 255, 255, 0.316) 68.8%,
    rgba(255, 255, 255, 0.156) 75.8%,
    rgba(255, 255, 255, 0.043) 82.9%,
    rgba(255, 255, 255, 0)     90%
  );
}

.logo-link {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  margin-left: 1.5rem;
  max-width: calc(33.333% - 1.5rem); /* right edge never passes the left third */
}

.logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--logo-max-h);
}

/* ===== Navigation =====
   The flex gap puts equal space on both sides of every separator.
   Each separator is drawn in the middle of that gap, so it sits
   between two options instead of attached to one of them. */
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--nav-gap);
  min-height: var(--nav-h);
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 2px solid #e3e3e6;
}

.site-nav a {
  position: relative;
  color: var(--nav-text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--nav-text-hover);
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--nav-gap) / -2);
  width: 2px;
  height: 1.1em;
  background: var(--nav-text);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ===== Content area ===== */
.content {
  flex: 1 0 auto; /* fills whatever is left of the screen below banner + nav */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 3rem;
}

.block {
  flex: 0 1 auto;
  background: var(--block);
  border-radius: 12px;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
}

.block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.block p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.block p:last-child {
  margin-bottom: 0;
}

.block a {
  color: var(--text);
}

/* Card grid inside a block */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--block-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--button-text) !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.25rem 1rem 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  padding: 1rem 0 0 0
}

/* ===== Small screens ===== */
@media (max-width: 600px) {
  :root {
    --banner-h: 140px;
    --nav-gap: 1.5rem;
  }
}
