/* Mara One IT — single stylesheet, no framework, mobile-first, accessible */
/* Blue theme: white text on blue, brushed-silver buttons */

:root {
  /* Blues */
  --color-bg: #0a2472;
  --color-bg-deep: #071a52;
  --color-surface: #103080;
  --color-card: #143a94;
  --color-border: #3a63c4;

  /* Text */
  --color-text: #ffffff;
  --color-text-muted: #cfdcff;
  --color-link: #a8c6ff;
  --color-link-hover: #ffffff;

  /* Accents */
  --color-accent: #46e6b8;

  /* Silver (buttons) */
  --silver-hi: #ffffff;
  --silver-light: #f7f9fa;
  --silver: #d9dee3;
  --silver-mid: #c3cad1;
  --silver-dark: #aeb6bf;
  --silver-edge: #8e979f;
  --silver-text: #0a1a3f;

  --max-width: 72rem;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(2, 8, 30, 0.35);
  font-size: 100%;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif, system-ui;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--color-link-hover); }

/* Visible focus ring that reads against the dark blue background */
:focus-visible {
  outline: 3px solid var(--silver-light);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.5rem; }
h3 { font-size: 1.2rem; margin-top: 1.75rem; }

p { margin: 0 0 1rem; }

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--silver-light);
  color: var(--silver-text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  color: var(--silver-text);
}

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-deep);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}
.nav__brand:hover { color: var(--color-link); }
.nav__logo { width: 32px; height: 32px; flex-shrink: 0; }

.nav__toggle {
  display: none;
}
.nav__toggle-label {
  display: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.nav__toggle-label:hover { border-color: var(--silver); }

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nav__list a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__list a:hover, .nav__list a[aria-current="page"] {
  color: var(--color-link);
}

/* Nav CTA — silver, matching the buttons */
.nav__cta {
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver) 52%, var(--silver-dark) 100%);
  color: var(--silver-text) !important;
  padding: 0.5rem 1rem;
  border: 1px solid var(--silver-edge);
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 var(--silver-hi), 0 1px 3px rgba(2, 8, 30, 0.4);
}
.nav__cta:hover {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 52%, var(--silver-mid) 100%);
  color: var(--silver-text) !important;
}

@media (max-width: 720px) {
  .nav__toggle-label { display: inline-block; }
  .nav__list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.75rem;
    padding: 1rem 0 0.5rem;
  }
  .nav__toggle:checked ~ .nav__list { display: flex; }
  .nav { flex-wrap: wrap; }
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(122, 162, 255, 0.35) 0%, transparent 60%),
    var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Buttons — brushed silver with dark navy label */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver) 48%, var(--silver-dark) 100%);
  color: var(--silver-text) !important;
  border-color: var(--silver-edge);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 var(--silver-hi),
    inset 0 -1px 0 rgba(2, 8, 30, 0.12),
    0 2px 6px rgba(2, 8, 30, 0.4);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, var(--silver-light) 48%, var(--silver-mid) 100%);
  box-shadow:
    inset 0 1px 0 var(--silver-hi),
    inset 0 -1px 0 rgba(2, 8, 30, 0.12),
    0 4px 12px rgba(2, 8, 30, 0.45);
}
.btn--primary:active {
  background: linear-gradient(180deg, var(--silver-mid) 0%, var(--silver) 52%, var(--silver-light) 100%);
  box-shadow: inset 0 2px 4px rgba(2, 8, 30, 0.3);
  transform: translateY(1px);
}
.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-light) !important;
  border-color: var(--silver-dark);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--silver-light);
  color: #ffffff !important;
}
.btn--secondary:active {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn--primary:active, .btn--secondary:active { transform: none; }
}

/* Sections */
section { padding: 2.5rem 0; }
.section--alt { background: var(--color-surface); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--color-text-muted); }
.card__icon { font-size: 1.6rem; }

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
}
th { background: var(--color-card); color: var(--color-text); }
td { color: var(--color-text-muted); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--color-link-hover); }

details.faq {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
  background: var(--color-card);
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: "+ ";
  color: var(--color-accent);
  font-weight: 800;
}
details.faq[open] summary::before { content: "− "; }
details.faq p { margin-top: 0.6rem; color: var(--color-text-muted); }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-methods .card { text-align: left; }

.cta-band {
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, #05123c 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: #ffffff;
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: #ffffff; margin-top: 0; }
.cta-band p { color: var(--color-text-muted); }

footer.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-grid h4 {
  color: #ffffff;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: var(--color-text-muted); text-decoration: none; }
.footer-grid a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  text-align: center;
  color: var(--color-text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

main:focus { outline: none; }
