/* ==========================================================================
   CRSC Concept A: "Operations Center"
   Dark, bold, technical. Condensed display type + mono labels + orange signal.
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --bg-2: #101317;
  --panel: #14181d;
  --line: #262c34;
  --line-2: #323a44;
  --text: #e8eaed;
  --muted: #a3acb7;
  --orange: #ff7a1a;
  --orange-2: #ff9a4d;
  --green: #3ddc84;
  --logo-orange: #ec5d01;   /* sampled from the original CRSC logo */
  --logo-gray: #7e7e7e;
  --radius: 6px;
  --wrap: 1180px;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--orange-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.big { font-size: 1.25rem; }
.accent { color: var(--orange); }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--orange); color: #000; padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.icon { flex: none; vertical-align: middle; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 36px; height: 36px; color: var(--orange); }
.icon--xl { width: 96px; height: 96px; stroke-width: 1.25; }

/* Utility bar ------------------------------------------------------------ */
.utility { background: #07080a; border-bottom: 1px solid var(--line); font: .78rem/1 var(--font-mono); color: var(--muted); }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.utility__status { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .08em; }
.utility__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.utility a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 0; }
.utility a:hover { color: var(--orange); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
/* Wordmark modeled on the original logo: orange "CRSC" over the name,
   with "Cossey Road" in the logo orange and "Solution Center" in its gray. */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; }
.brand__mark { font: 900 2.35rem/.85 var(--font-display); letter-spacing: .05em; color: var(--logo-orange); }
.brand__name { font: 400 .8rem/1 Arial, Helvetica, sans-serif; color: var(--logo-gray); margin-top: .3rem; white-space: nowrap; }
.brand__accent { color: var(--logo-orange); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; padding: .6rem .85rem; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; border-radius: 4px; }
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.site-nav li:last-child a { background: var(--orange); color: #0b0d10; font-weight: 600; margin-left: .5rem; border-radius: 4px; box-shadow: none; }
.site-nav li:last-child a:hover { background: var(--orange-2); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 4px; padding: .45rem; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; gap: 0; }
  .site-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: .85rem; }
  .site-nav li:last-child a { margin: 1rem 0 0; text-align: center; border: 0; }
  .no-js .site-nav { display: block; position: static; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header__inner { flex-wrap: wrap; }
}

/* Buttons ---------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.3rem; border-radius: 4px; font: 600 .95rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--orange); color: #0b0d10; }
.btn--primary:hover { background: var(--orange-2); color: #0b0d10; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Hero ------------------------------------------------------------------- */
/* Background photos are AI-generated illustrations, not the actual facility.
   Dark gradients keep the left side quiet so the headline stays readable. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(11, 13, 16, .97) 0%, rgba(11, 13, 16, .9) 38%, rgba(11, 13, 16, .45) 70%, rgba(11, 13, 16, .25) 100%), linear-gradient(0deg, rgba(11, 13, 16, .9) 0%, transparent 35%), url("../assets/img/hero-home.jpg") center right / cover no-repeat, var(--bg); }
.hero__inner { position: relative; z-index: 1; padding-top: clamp(4.5rem, 11vw, 9.5rem); padding-bottom: clamp(4.5rem, 11vw, 9.5rem); }
.hero h1 { max-width: 12ch; }
.hero .lead { color: #c3cad2; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 2.5rem; }

.intro { border-bottom: 1px solid var(--line); }
.intro__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.intro__title { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.intro__body p:first-child { font-size: 1.1rem; }
.intro + .section { padding-top: clamp(3.5rem, 7vw, 6rem); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 2rem 1.75rem 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; border-radius: var(--radius) var(--radius) 0 0; }
.card:hover { border-color: var(--line-2); background: #171c22; transform: translateY(-3px); color: var(--text); }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card h3 { margin-top: 1.25rem; }
.card p { color: var(--muted); flex: 1; }
.card__num { position: absolute; top: 1.5rem; right: 1.5rem; color: #5b6570; font-size: .85rem; }
.card__link { color: var(--orange); font-size: .85rem; display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; letter-spacing: .06em; }

.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.partners--single { grid-template-columns: 1fr; }
.partner { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem 1.75rem; border-left: 3px solid var(--orange); }
.partner .eyebrow { margin-bottom: .75rem; }
.partner h3 { font-size: 1.75rem; }
.partner p.muted { max-width: 60ch; }
.partner .btn { margin-top: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* Contact panel ---------------------------------------------------------- */
.contact-panel__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; padding: clamp(1.75rem, 4vw, 3rem); background: linear-gradient(135deg, rgba(23, 27, 33, .94), rgba(17, 20, 24, .8)), url("../assets/img/texture-grid.jpg") right center / cover no-repeat, #111418; position: relative; overflow: hidden; }
.contact-panel__inner::after { content: ""; position: absolute; inset: auto -80px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .16), transparent 70%); }
.contact-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; position: relative; z-index: 1; }
.contact-list dt { display: flex; align-items: center; gap: .5rem; font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.contact-list dt .icon { width: 16px; height: 16px; color: var(--orange); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--orange); }

/* Interior pages --------------------------------------------------------- */
.page-hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, rgba(255, 122, 26, .14), transparent 55%), var(--bg-2); }
.page-hero__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.page-hero--photo { --photo: none; background: linear-gradient(90deg, rgba(11, 13, 16, .97) 0%, rgba(11, 13, 16, .88) 42%, rgba(11, 13, 16, .35) 75%, rgba(11, 13, 16, .2) 100%), var(--photo) center right / cover no-repeat, var(--bg-2); }
.page-hero--photo .page-hero__inner { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.page-hero--photo .lead { color: #c3cad2; max-width: 52ch; }
.page-hero--sbs { --photo: url("../assets/img/hero-small-business-support.jpg"); }
.page-hero--dcfl { --photo: url("../assets/img/hero-data-center-for-less.jpg"); }
.page-hero--dcs { --photo: url("../assets/img/hero-data-center-support.jpg"); }
.page-hero--contact { --photo: url("../assets/img/texture-grid.jpg"); }
.page-hero__icon { color: var(--orange); opacity: .9; padding: 1.5rem; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 122, 26, .05); }
.crumb { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.crumb a { color: var(--orange); text-decoration: none; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--panel); padding: 2rem 1.75rem; }
.feature__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.feature__num { color: #5b6570; font-size: .85rem; }
.feature p { color: var(--muted); }
.feature strong { color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.split--top { align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.checklist .icon { color: var(--orange); margin-top: .3rem; }
.checklist strong { color: var(--text); }

.spec { padding: 1.75rem; }
.spec__title { color: var(--orange); font-size: .8rem; letter-spacing: .12em; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line-2); }
.spec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.spec__list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.spec__list h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.spec__list p { color: var(--muted); margin: 0; }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: phase; }
.phase { position: relative; padding: 2rem 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.phase:not(:last-child)::after { content: ""; position: absolute; top: 3.1rem; right: -1.25rem; width: 1.25rem; height: 1px; background: var(--orange); }
.phase__num { display: block; color: var(--orange); font-size: .78rem; letter-spacing: .12em; margin-bottom: 1.25rem; }
.phase h2 { font-size: 1.75rem; margin-top: 1.25rem; }
.phase p { color: var(--muted); margin: 0; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--orange); color: #0b0d10; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 56ch; color: #2a1505; font-weight: 500; }
.cta .btn--primary { background: #0b0d10; color: #fff; white-space: nowrap; }
.cta .btn--primary:hover { background: #22272e; color: #fff; }
.cta:focus-within { outline: none; }
.cta .btn:focus-visible { outline-color: #0b0d10; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { display: flex; flex-direction: column; gap: .5rem; padding: 2rem 1.75rem; color: var(--text); text-decoration: none; transition: border-color .2s; overflow-wrap: anywhere; }
a.contact-card:hover { border-color: var(--orange); color: var(--text); }
.contact-card h2 { font-size: 1.6rem; margin: 1rem 0 .25rem; }
.contact-card p { margin: 0; }
.visit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); overflow: hidden; }
.visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 2rem 1.75rem; }
.visit__info h2 { font-size: 1.6rem; margin: 1rem 0 .25rem; }
.visit__info address { line-height: 1.5; margin-bottom: 1.25rem; }
.visit__map { position: relative; min-height: 300px; border-left: 1px solid var(--line); background: var(--bg-2); }
/* Google's embed is light-only; invert + hue-rotate gives a dark map with natural-looking colors. */
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.8) brightness(.95); }

/* Prose (privacy policy) ------------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 2.5rem; }
.prose p { color: #c3cad2; }

/* 404 -------------------------------------------------------------------- */
.not-found-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.not-found-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s; }
.not-found-links a:hover { border-color: var(--orange); color: var(--orange); }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #07080a; margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.brand--footer { margin-bottom: 1rem; }
.footer-heading { font: 500 .75rem/1 var(--font-mono); letter-spacing: .1em; color: var(--orange); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; line-height: 2; overflow-wrap: anywhere; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--orange); text-decoration: underline; }
.site-footer__base { border-top: 1px solid var(--line); padding-top: 1.25rem; padding-bottom: 1.5rem; color: #8a939e; }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: #8a939e; }
.site-footer__base a:hover { color: var(--orange); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .intro__inner, .split, .contact-panel__inner { grid-template-columns: 1fr; }
  .cards, .features, .phases, .contact-grid, .partners { grid-template-columns: 1fr; }
  .phase:not(:last-child)::after { top: auto; bottom: -1.25rem; right: auto; left: 2.6rem; width: 1px; height: 1.25rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .page-hero--photo { --photo: none; background: linear-gradient(90deg, rgba(11, 13, 16, .97) 0%, rgba(11, 13, 16, .88) 42%, rgba(11, 13, 16, .35) 75%, rgba(11, 13, 16, .2) 100%), var(--photo) center right / cover no-repeat, var(--bg-2); }
.page-hero--photo .page-hero__inner { padding-top: clamp(4rem, 9vw, 7.5rem); padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.page-hero--photo .lead { color: #c3cad2; max-width: 52ch; }
.page-hero--sbs { --photo: url("../assets/img/hero-small-business-support.jpg"); }
.page-hero--dcfl { --photo: url("../assets/img/hero-data-center-for-less.jpg"); }
.page-hero--dcs { --photo: url("../assets/img/hero-data-center-support.jpg"); }
.page-hero--contact { --photo: url("../assets/img/texture-grid.jpg"); }
.page-hero__icon { display: none; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 260px; border-left: 0; border-bottom: 1px solid var(--line); order: -1; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .cards, .contact-grid { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero { background: linear-gradient(180deg, rgba(11, 13, 16, .7) 0%, rgba(11, 13, 16, .88) 55%, rgba(11, 13, 16, .97) 100%), url("../assets/img/hero-home.jpg") 70% center / cover no-repeat, var(--bg); }
  .page-hero--photo { background: linear-gradient(180deg, rgba(11, 13, 16, .72) 0%, rgba(11, 13, 16, .93) 100%), var(--photo) 75% center / cover no-repeat, var(--bg-2); }
}
@media (max-width: 560px) {
  .utility__status { display: none; }
  .utility__inner { justify-content: center; }
  .utility__links { gap: 1rem; justify-content: center; }
  .contact-list { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
