/* Masski Industrial — static site
   Layout adapted from the Optimal IT / coolMaster (Mesmerize-style) mockup.
   Palette: charcoal + crimson. Font: IBM Plex Sans. */

:root {
  --charcoal-950: #17191b;
  --charcoal-900: #1f2124;
  --charcoal-800: #2b2e33;
  --charcoal-700: #3a3d42;
  --gray-600: #5a5e65;
  --gray-500: #6f737a;
  --gray-300: #c9ccd1;
  --gray-200: #dfe1e5;
  --gray-100: #f2f3f5;
  --white: #ffffff;
  --text: #33363b;
  --text-muted: #555960;
  --crimson: #b3122e;
  --crimson-hover: #8f0e25;
  --crimson-soft: #f8e7ea;
  --shadow: 0 8px 28px rgba(23, 25, 27, 0.08);
  --shadow-hover: 0 14px 36px rgba(23, 25, 27, 0.14);
  --radius: 6px;
  --max: 1160px;
  --header-h: 72px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--crimson-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }

h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--charcoal-900); font-weight: 700; line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h5 { font-size: 1.08rem; margin-bottom: .45rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.lead { font-size: 1.07rem; line-height: 1.75; color: var(--text-muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: .6rem;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--crimson); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; color: #fff; }

/* —— Top bar —— */
.top-bar { background: var(--charcoal-950); color: rgba(255,255,255,.85); font-size: .85rem; padding: .5rem 0; }
.top-bar-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.top-bar a { color: rgba(255,255,255,.88); }
.top-bar a:hover { color: #fff; }
.top-item { display: inline-flex; align-items: center; gap: .45rem; }
.top-item svg { width: 14px; height: 14px; flex-shrink: 0; color: #e0475f; }

/* —— Header / nav (sticky, white, crimson active underline) —— */
.logo { display: inline-flex; align-items: center; flex-shrink: 1; min-width: 0; }
.logo-img { height: 48px; width: auto; max-width: min(280px, 62vw); object-fit: contain; object-position: left center; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--gray-200); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(23,25,27,.10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.main-nav { display: flex; gap: .25rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--charcoal-800); font-size: .95rem; font-weight: 600; padding: .4rem 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--crimson); border-bottom-color: var(--crimson); }
.nav-toggle {
  display: none; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--gray-300);
  color: var(--charcoal-800); border-radius: 4px; padding: .45rem .7rem; cursor: pointer; font: 600 .85rem var(--font);
}
.nav-toggle svg { width: 18px; height: 18px; }

/* —— Hero —— */
.hero {
  position: relative; color: #fff; padding: 6rem 0 8rem; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(23,25,27,.93) 0%, rgba(31,33,36,.86) 50%, rgba(43,46,51,.80) 100%),
    url("../images/site/hero.jpg") center / cover no-repeat;
  background-color: var(--charcoal-900);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--crimson); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; text-align: center; margin: 0 auto; }
.hero .eyebrow { color: #ff8a9c; }
.hero h1 { color: #fff; margin-bottom: .9rem; }
.hero .subhead { font-size: clamp(1.12rem, 2.2vw, 1.38rem); font-weight: 500; color: rgba(255,255,255,.95); margin-bottom: .9rem; }
.hero .supporting { font-size: 1.04rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 1.9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.55rem; border-radius: 4px; font: 600 .95rem var(--font);
  border: 2px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-hover); border-color: var(--crimson-hover); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-dark { background: var(--charcoal-800); border-color: var(--charcoal-800); color: #fff; }
.btn-dark:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }

/* —— Highlights strip (overlapping hero) —— */
.features-strip { position: relative; z-index: 5; margin-top: -4rem; padding-bottom: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.features-grid.features-4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.features-4 .feature-card { padding: 1.6rem 1.25rem 1.4rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem; text-align: center; border-top: 4px solid var(--crimson);
}
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--charcoal-800); color: #fff; display: grid; place-items: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card p { font-size: .95rem; color: var(--text-muted); }

/* —— Sections —— */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-100); }
.section-title { text-align: center; max-width: 820px; margin: 0 auto 2.5rem; }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.about-prose p { font-size: 1.03rem; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.about-figure { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--gray-100); }
.about-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-list { margin-top: 1.5rem; }
.about-list li {
  background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--crimson);
  border-radius: var(--radius); padding: .85rem 1rem; font-weight: 500; color: var(--charcoal-800);
}
.section-alt .about-figure { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--gray-100); }
.about-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-list { margin-top: 1.5rem; }
.about-list li { background: var(--white); }

/* —— Lines we represent (logo cards) —— */
.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } /* 9 lines = 3 x 3 */
.line-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(179,18,46,.4); color: var(--text); }
.logo-plate { height: 120px; display: grid; place-items: center; padding: 1.1rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.logo-plate.dark { background: var(--charcoal-900); border-bottom-color: var(--charcoal-900); }
.logo-plate img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
.logo-plate img.logo-wide, .brand-logo img.logo-wide { max-width: 210px; }
.line-card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.line-card-body h5 { margin: 0; }
.line-card-body p { font-size: .9rem; color: var(--text-muted); margin: 0; flex: 1; }
.line-card-link { font-size: .85rem; font-weight: 600; color: var(--crimson); margin-top: .5rem; }

/* —— Featured brand sections —— */
.brand-feature { padding: 4.5rem 0; }
.brand-feature:nth-of-type(even) { background: var(--gray-100); }
.brand-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.brand-feature.reverse .brand-media { order: 2; }
.brand-media-main {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: var(--shadow);
  aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden;
}
.brand-media-main, .brand-thumbs figure { position: relative; }
.brand-media-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.brand-media-main.cover img { object-fit: cover; padding: 0; }
.brand-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.brand-thumbs figure {
  margin: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: 6px;
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
}
.brand-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.award-badge { display: inline-flex; align-items: center; gap: .45rem; margin: -.25rem 0 1rem; padding: .35rem .75rem; border: 1px solid rgba(179,18,46,.35); border-left: 3px solid var(--crimson); border-radius: 4px; background: rgba(179,18,46,.06); color: var(--charcoal-900); font-size: .85rem; font-weight: 600; line-height: 1.35; }
.brand-logo { height: 64px; display: flex; align-items: center; margin-bottom: 1rem; }
.brand-logo img { max-height: 64px; width: auto; max-width: 260px; object-fit: contain; }
.brand-logo.dark { background: var(--charcoal-900); border-radius: 6px; padding: .6rem .95rem; width: fit-content; height: auto; }
.brand-logo.dark img { height: 50px; width: 172px; max-height: none; }
.brand-copy p { color: var(--text-muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.6rem; padding: 0; }
.chips li { font-size: .82rem; font-weight: 500; color: var(--charcoal-800); background: var(--white); border: 1px solid var(--gray-300); border-radius: 999px; padding: .25rem .75rem; }
.brand-feature:nth-of-type(odd) .chips li { background: var(--gray-100); border-color: var(--gray-200); }

/* —— Industries —— */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.industry-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.25rem 1.2rem; box-shadow: var(--shadow);
}
.industry-card h5 { display: flex; align-items: flex-start; gap: .55rem; color: var(--charcoal-900); }
.industry-card h5::before { content: ""; margin-top: .38em; width: 10px; height: 10px; background: var(--crimson); border-radius: 2px; flex-shrink: 0; }
.industry-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* —— Territory —— */
.territory {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
}
.territory-visual {
  background:
    linear-gradient(160deg, rgba(23,25,27,.88), rgba(58,61,66,.82)),
    url("../images/site/hero.jpg") center / cover no-repeat;
  color: #fff; padding: 2.5rem 2.25rem; display: flex; flex-direction: column; justify-content: center;
}
.territory-visual h2 { color: #fff; }
.territory-visual p { color: rgba(255,255,255,.85); }
.territory-content { background: var(--white); padding: 2.5rem 2.25rem; }
.territory-content ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--text-muted); }

/* —— Contact —— */
.contact-band { background: linear-gradient(120deg, var(--charcoal-950), var(--charcoal-800)); color: #fff; padding: 4.25rem 0; }
.contact-band h2 { color: #fff; }
.contact-band .section-title p { color: rgba(255,255,255,.82); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-top: 4px solid var(--crimson);
  border-radius: 8px; padding: 1.75rem;
}
.contact-card h5 { color: #fff; font-size: 1.15rem; }
.contact-card p { color: rgba(255,255,255,.8); font-size: .95rem; }
.contact-card .btn { margin-top: .5rem; margin-right: .5rem; }
.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; margin-top: 2.25rem; font-size: 1.02rem; }
.contact-direct a { color: #fff; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.contact-direct a:hover { color: #ff8a9c; }
.contact-direct svg { width: 18px; height: 18px; color: #e0475f; }

/* —— Footer —— */
.footer { background: var(--charcoal-900); color: rgba(255,255,255,.82); padding: 3rem 0 0; border-top: 4px solid var(--crimson); }
.footer-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-box { padding: .5rem .75rem; }
.footer-box .big-icon { width: 48px; height: 48px; margin: 0 auto .85rem; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #e0475f; }
.footer-box .big-icon svg { width: 22px; height: 22px; }
.footer-box h5 { color: #fff; font-size: .95rem; margin-bottom: .4rem; }
.footer-box p, .footer-box a { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0; }
.footer-box a:hover { color: #fff; }
.footer-box.accent { background: var(--charcoal-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.1rem .75rem; }
.footer-logo-plate { margin: .25rem auto .75rem; width: fit-content; }
.footer-logo { width: 190px; max-width: 100%; height: auto; display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: 1.25rem 0; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom a:hover { color: #fff; }
.footer-note { font-size: .78rem; color: rgba(255,255,255,.5); padding-bottom: 1.5rem; margin: 0; }
.footer-note.footer-disclaimer { padding-bottom: .6rem; color: rgba(255,255,255,.62); }
.footer-note a { color: rgba(255,255,255,.8); text-decoration: underline; }
.rep-note { margin: 0 0 1rem; padding: .7rem .9rem; border-left: 3px solid var(--crimson); background: rgba(31,33,36,.05); border-radius: 4px; font-size: .92rem; line-height: 1.55; color: var(--charcoal-900); }
.legal h2[id] { scroll-margin-top: 90px; }

/* —— Legal pages —— */
.page-hero { background: var(--charcoal-900); color: #fff; padding: 3rem 0 2.75rem; border-bottom: 4px solid var(--crimson); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .35rem; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; }
.legal { max-width: 820px; margin: 0 auto; padding: 3rem 0 4rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; padding-top: .25rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }

/* —— Responsive —— */
/* —— Brand banner band (owner-supplied artwork, 1179×378 native) —— */
.brand-band-figure {
  margin: 0 auto; max-width: 1179px; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); background: #0d2a6b; line-height: 0;
}
.brand-band-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1179 / 378; object-fit: contain; }
#about .brand-band-figure { margin-bottom: 3rem; }
#about .about-grid { align-items: start; }
.about-aside { padding-top: 5.4rem; }
.about-aside .rep-note { margin-top: 0; }
@media (max-width: 860px) { .about-aside { padding-top: 0; } }
.about-aside .about-list { margin-top: 1.25rem; }
@media (max-width: 720px) { .brand-band-figure { border-radius: 4px; } #about .brand-band-figure { margin-bottom: 2rem; } }

@media (max-width: 1100px) {
  .features-grid.features-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .lines-grid { gap: 1.1rem; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { gap: 2rem; }
}
@media (max-width: 860px) {
  .features-grid, .features-grid.features-4 { grid-template-columns: 1fr; gap: 1rem; }
  .features-strip { margin-top: -2.5rem; }
  .about-grid, .brand-grid, .territory { grid-template-columns: 1fr; }
  .brand-feature.reverse .brand-media { order: 0; }
  .brand-copy { order: 2; }
  .about-figure img { aspect-ratio: 16 / 10; }
  .footer-boxes { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: .25rem 0 .75rem; }
  .main-nav.open { display: flex; }
  .main-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--gray-200); }
  .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--crimson); }
  .logo-img { height: 40px; }
  .top-bar-inner { flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; font-size: .8rem; white-space: nowrap; scrollbar-width: none; }
  .top-bar-inner::-webkit-scrollbar { display: none; }
  .top-item.hide-sm { display: none; }
  .hero { padding: 4rem 0 6.5rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .section, .brand-feature { padding: 3.25rem 0; }
  .lines-grid, .industries-grid { grid-template-columns: 1fr; }
  .footer-boxes { grid-template-columns: 1fr; }
  .territory-visual, .territory-content { padding: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
