/* ==========================================================================
   Mark-it Company – site styles
   One stylesheet for every page. Brand colours come from the original
   logo (#b7e014 lime / black) and customer-logo banner (#3a318c purple).
   ========================================================================== */

:root {
  --purple: #3a318c;
  --purple-dark: #271f66;
  --purple-tint: #ecebf6;
  --lime: #b7e014;
  --lime-dark: #9cc10c;
  --black: #000;
  --ink: #1d1b26;
  --muted: #55536a;
  --line: #e2e1ec;
  --soft: #f6f6fa;
  --white: #fff;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 16, 60, .06), 0 6px 20px rgba(20, 16, 60, .08);
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.65 var(--font);
}

img { max-width: 100%; height: auto; }
address { font-style: normal; }

a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: var(--purple-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--black); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }

/* ---------- Header ---------------------------------------------------- */

/* The logo image is lime on top (30px) and black below (18px);
   the bar repeats that split so the logo blends in edge to edge. */
.brand-bar {
  background: linear-gradient(to bottom, var(--lime) 0 30px, var(--black) 30px 48px);
}
.brand-bar .container {
  display: flex; align-items: flex-start; justify-content: space-between;
  height: 48px;
}
.brand-bar .logo { display: block; line-height: 0; }
.brand-bar .logo img { width: 245px; height: 48px; }
.brand-bar .phone {
  height: 30px; display: flex; align-items: center;
  font-size: .9rem; font-weight: 600; color: var(--black); text-decoration: none;
}
.brand-bar .phone:hover { text-decoration: underline; }

.main-nav { background: var(--purple); }
.main-nav .container { display: flex; align-items: center; gap: 8px; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; flex: 1;
}
.main-nav a {
  display: block; padding: 14px 12px;
  color: var(--white); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { background: var(--purple-dark); color: var(--white); }
.main-nav a[aria-current="page"],
.main-nav a.is-section { border-bottom-color: var(--lime); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-dark); color: var(--black); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); color: var(--white); }
.btn-outline { border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.main-nav .btn { padding: 9px 18px; white-space: nowrap; }

.menu-toggle {
  display: none;
  background: none; border: 0; color: var(--white);
  font: 600 1rem var(--font); padding: 14px 0; cursor: pointer;
}
.menu-toggle span { display: inline-block; width: 20px; margin-right: 8px; vertical-align: -2px; }
.menu-toggle span::before, .menu-toggle span::after, .menu-toggle span i {
  content: ""; display: block; height: 2px; background: currentColor; margin: 4px 0;
}

@media (max-width: 900px) {
  .brand-bar .phone { display: none; }
  .main-nav .container { flex-wrap: wrap; justify-content: space-between; }
  .menu-toggle { display: block; }
  .main-nav ul { flex: 0 0 100%; flex-direction: column; padding-bottom: 10px; }
  .main-nav a { padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav a[aria-current="page"], .main-nav a.is-section {
    border-bottom-color: rgba(255,255,255,.12); box-shadow: inset 4px 0 var(--lime); padding-left: 14px;
  }
  /* Collapsed only when JavaScript is available to open it again */
  .js .main-nav ul { display: none; }
  .js .main-nav.is-open ul { display: flex; }
}

/* ---------- Home page ------------------------------------------------- */

.hero { padding: 56px 0 64px; }
.hero .container {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-tint); padding: 4px 10px; border-radius: 999px;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero figure { margin: 0; justify-self: center; }
.hero figure img {
  display: block; width: 230px; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--white);
}

.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--purple); font-size: .9rem; }
.card-substrate { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.card-substrate::after { content: "→"; color: var(--purple); font-weight: 700; }

.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.feature-grid .card { border-top: 4px solid var(--lime); }

.customers {
  background: var(--purple); color: var(--white); padding: 36px 0;
}
.customers .container { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.customers p { margin: 0; font-size: 1.15rem; font-weight: 600; }
.customers img { display: block; }

.cta-band { background: var(--lime); padding: 48px 0; }
.cta-band .container { display: flex; align-items: center; gap: 36px; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin-bottom: 18px; max-width: 640px; }
.cta-band .cta-image { flex: none; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Inner pages ----------------------------------------------- */

.page-hero { background: var(--purple); color: var(--white); padding: 30px 0 34px; }
.page-hero h1 { color: var(--white); margin: 0; }
.breadcrumb { list-style: none; margin: 0 0 8px; padding: 0; font-size: .875rem; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: #d9d6f5; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--lime); }

.page-body { padding: 44px 0 64px; }
.page-body .container { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }

.content { max-width: 720px; }
.content ul { padding-left: 1.2em; }
.content li { margin-bottom: .3em; }
.content .float-image { float: right; margin: 4px 0 20px 28px; border-radius: var(--radius); }
.content .two-col { columns: 2; column-gap: 32px; }
.content .two-col li { break-inside: avoid; }
.content .link-list { list-style: none; padding: 0; margin: 28px 0 0; clear: both; }
.content .link-list li { margin-bottom: 10px; }
.content .link-list a { font-weight: 600; }
.content .link-list a::after { content: " →"; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.side-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem;
}
.side-nav a:hover { background: var(--purple-tint); color: var(--purple); }
.side-nav a[aria-current="page"] { background: var(--purple); color: var(--white); font-weight: 600; }
.side-cta { background: var(--lime); border-radius: var(--radius); padding: 20px; }
.side-cta h2 { font-size: 1.15rem; margin-bottom: .4em; }
.side-cta p { font-size: .95rem; margin-bottom: 14px; }

/* Pages without a sidebar (disclaimer, site map, thank-you) */
.page-body.no-sidebar .container { grid-template-columns: minmax(0, 1fr); }

/* Images: a figure with caption, and a grid of thumbnails */
.content figure { margin: 0 0 24px; }
.content figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.content img { border-radius: 6px; }
.gallery {
  display: grid; gap: 18px; margin: 8px 0 28px; clear: both;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.gallery figure { margin: 0; text-align: center; }
.gallery img { display: block; margin: 0 auto; }
.gallery a { text-decoration: none; }
.zoom-hint { font-size: .8rem; color: var(--muted); }

/* Simple data table */
.content table { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: .95rem; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: var(--soft); }

/* Highlighted note / quote */
.note { background: var(--purple-tint); border-left: 4px solid var(--purple); padding: 14px 18px; border-radius: 6px; margin: 0 0 24px; }

/* Forms (contact_us, free_app) */
.form { margin: 8px 0 0; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 22px; }
.form legend { font-weight: 700; padding: 0 6px; }
.form .hint { font-size: .875rem; color: var(--muted); margin: 0 0 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field label small { display: block; font-weight: 400; color: var(--muted); }
.req { color: #b42318; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #c9c7d8; border-radius: 6px; background: var(--white);
}
.field input:focus, .field select:focus { border-color: var(--purple); outline: 2px solid var(--purple-tint); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.form-actions button { cursor: pointer; font: inherit; font-weight: 700; }
.form .captcha { margin: 4px 0 16px; min-height: 65px; }
.honeypot { position: absolute; left: -9999px; }

.content .contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.contact-list li { overflow-wrap: anywhere; background: var(--soft); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Downloads (PowerPoint, video) */
.downloads { list-style: none; padding: 0; }
.downloads li { margin-bottom: 8px; }
.downloads small { color: var(--muted); }

@media (max-width: 900px) {
  .page-body .container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .content .float-image { float: none; display: block; margin: 0 auto 20px; }
  .content .two-col { columns: 1; }
}

/* ---------- Footer ---------------------------------------------------- */

.site-footer { background: var(--black); color: #c9c8d4; font-size: .92rem; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding: 44px 20px 28px;
}
.site-footer h2 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e6e5ee; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #2a2a33; }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 18px;
  font-size: .82rem; color: #9897a6;
}
.footer-bottom a { color: #c9c8d4; }

@media (max-width: 760px) {
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 24px; }
}

/* Spacing for headings that follow other content, and sidebar images */
.content * + h2 { margin-top: 1.4em; }
.sidebar figure { margin: 0; }
.sidebar figure img { display: block; border-radius: var(--radius); }

/* Floated image with an "enlarge" link and caption */
.content figure.float-image { text-align: center; }
.content figure.float-image img { display: inline-block; }

/* Card grid inside page content (e.g. Substrates landing page) */
.content .card-grid { margin: 0 0 24px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Keep section headings below floated images */
.content p + h2, .content ul + h2, .content ol + h2, .content table + h2 { clear: both; }
.content .float-image + h2 { margin-top: 0; }
