/* =========================================================
   Birmingham Datacentre / VeloxServ — shared stylesheet
   Hand-written, lean CSS (no render-blocking CDN) for fast
   LCP/FCP. Brand tokens preserved from the original design.
   ========================================================= */

:root {
  --ink:        #16201F;   /* near-black brand blue */
  --ink-2:      #1C2526;   /* brand dark blue */
  --ink-soft:   #2A3536;
  --cyan:       #00A1D6;   /* connectivity accent */
  --cyan-deep:  #007FAA;
  --pink:       #E91E63;   /* CTA accent */
  --pink-deep:  #C2185B;
  --grey:       #E6ECEF;   /* page background */
  --line:       #D5DEE2;
  --surface:    #FFFFFF;
  --text:       #29302F;
  --text-soft:  #5A6566;
  --text-inv:   #EAF1F3;

  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(16,32,31,.06), 0 1px 1px rgba(16,32,31,.04);
  --shadow-md: 0 10px 30px rgba(16,32,31,.10);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--grey);
}

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

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink-2); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

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

.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;
}

a.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1200;
  background: var(--pink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s ease;
}
a.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

/* ---------- Eyebrows / technical labels (signature) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 .75rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); display: inline-block; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff;
  border-bottom: 1px solid rgba(0,161,214,.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--text-inv); padding: 8px 14px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; transition: background .2s, color .2s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav__link--active { color: #fff; box-shadow: inset 0 -2px 0 var(--pink); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
}
.nav__toggle svg { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px);
    background: var(--ink-2); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 84px 18px 24px; transform: translateX(100%);
    transition: transform .28s ease; box-shadow: -12px 0 40px rgba(0,0,0,.35);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { padding: 12px 14px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__close {
    position: absolute; top: 16px; right: 16px; background: none; border: 0; color: #fff; cursor: pointer;
  }
  .nav__close svg { width: 28px; height: 28px; }
}
.nav__close { display: none; }
@media (max-width: 860px) { .nav__close { display: inline-flex; } }

.scrim {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999;
}
.scrim.is-open { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .25s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-deep); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { background: var(--ink-2); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(0,161,214,.20), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff; padding: 64px 0 0;
}
.hero__inner { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: rgba(234,241,243,.86); font-size: 1.12rem; max-width: 64ch; }
.hero__lede { font-size: 1.18rem !important; color: #fff !important; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Spec bar (signature technical readout) ---------- */
.specbar {
  margin-top: 56px;
  border-top: 1px solid rgba(0,161,214,.3);
  background: rgba(0,0,0,.18);
}
.specbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.specbar__item { padding: 22px 20px; border-left: 1px solid rgba(255,255,255,.08); }
.specbar__item:first-child { border-left: 0; }
.specbar__val {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--cyan);
  letter-spacing: -.01em;
}
.specbar__label {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(234,241,243,.6); margin-top: 4px;
}
@media (max-width: 720px) {
  .specbar__grid { grid-template-columns: repeat(2, 1fr); }
  .specbar__item:nth-child(odd) { border-left: 0; }
  .specbar__item:nth-child(3), .specbar__item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section--ink { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: var(--text-inv); }
.section--ink h2 { color: #fff; }
.section--ink p { color: rgba(234,241,243,.82); }
.section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--cyan); display: inline-block; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.section--ink .lead { color: rgba(234,241,243,.82); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,161,214,.4); }
.card h3 { color: var(--ink-2); }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px; margin-bottom: 16px; color: var(--cyan-deep);
}
.card__icon svg { width: 100%; height: 100%; }
.section--alt .card { background: var(--grey); }
.card__link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--pink); }
.card__link:hover { color: var(--pink-deep); }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 14px 0;
  font-size: .85rem; color: var(--text-soft); font-family: var(--mono);
}
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--cyan-deep); }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- Prose blocks ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.factbox {
  background: var(--ink-2); color: var(--text-inv); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-md);
}
.factbox h3 { color: #fff; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.factbox dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.factbox .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.15); padding-bottom: 10px; }
.factbox dt { color: rgba(234,241,243,.7); font-size: .9rem; }
.factbox dd { margin: 0; font-family: var(--mono); color: var(--cyan); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  border: 1px solid rgba(255,255,255,.1); background: #0d1414;
}
.gallery__item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-family: var(--mono);
  font-size: .75rem; letter-spacing: .08em; color: #fff;
  background: linear-gradient(0deg, rgba(13,20,20,.92), transparent);
}

.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(8,12,12,.9);
  align-items: center; justify-content: center; z-index: 1100; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  color: #fff; text-align: center; padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.cta-band .btn--dark { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink-2);
  padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--cyan-deep); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: 20px; margin: 0; color: var(--text-soft); }

/* ---------- Contact / form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,161,214,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form__msg { margin-top: 14px; font-weight: 600; }

.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ico { color: var(--cyan-deep); flex: none; margin-top: 2px; }
.contact-info .ico svg { width: 24px; height: 24px; }
.contact-info a { color: var(--ink-2); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(234,241,243,.78); }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { color: rgba(234,241,243,.7); font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .82rem; color: rgba(234,241,243,.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .gallery__item:hover img { transform: none; }
}
