/* Fort Meade Data Center: warm, calm palette carried over from the original site. */
:root {
  --bg: #f3eee3;
  --surface: #fbf8f1;
  --sand: #e6e0d2;
  --line: #d9d2c0;
  --ink: #26281a;
  --muted: #5d5e52;
  --brand: #5a5c33;
  --brand-deep: #383c22;
  --accent: #66323b;
  --accent-dark: #4f262d;
  --highlight: #c9b98c;
  --footer-bg: #2a2d19;
  --hero-shade: #1a1c10;
  --on-accent: #ffffff;
  --error: #a42c2c;
  --success: #2f5d34;

  --radius: 14px;
  --btn-radius: 999px;
  --h1-weight: 800;
  --head-tracking: -0.02em;
  --shadow: 0 1px 2px rgb(38 40 26 / .06), 0 8px 28px rgb(38 40 26 / .08);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: var(--head-tracking); margin: 0 0 .5em; color: var(--brand-deep); }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: var(--h1-weight); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .75rem;
}
.eyebrow-light { color: var(--highlight); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-deep); font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.wordmark strong { font-weight: 800; }
.wordmark-mark { width: 32px; height: 32px; color: var(--brand-deep); flex: none; }
.wordmark-mark .mark-lines { stroke: var(--bg); }
.wordmark-mark .mark-dots { fill: var(--highlight); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--btn-radius); }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav .nav-cta { background: var(--accent); color: var(--on-accent); padding-inline: 18px; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--accent-dark); color: var(--on-accent); }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .wordmark { font-size: .98rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--btn-radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { border-color: rgb(255 255 255 / .75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand-deep); }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero-shade) 25%, transparent) 0%, color-mix(in srgb, var(--hero-shade) 50%, transparent) 40%, color-mix(in srgb, var(--hero-shade) 85%, transparent) 100%);
}
.hero-content { padding: 120px 0 28px; }
.hero h1 { color: #fff; max-width: 14ch; text-wrap: balance; }
.hero-lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); max-width: 60ch; color: rgb(255 255 255 / .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-caption { font-size: .8rem; color: rgb(255 255 255 / .75); margin-top: 0; padding-bottom: 20px; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--sand); }
.section-dark { background: var(--brand-deep); color: rgb(255 255 255 / .9); }
.section-dark h2 { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }

/* Overview */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 32px 0 24px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 24px; }
.fact dt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--brand-deep); line-height: 1.25; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; } }

.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.location-card { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.location-card p { margin: 0; color: var(--muted); }
.location-card strong { color: var(--ink); }
.icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 12px; }
@media (max-width: 760px) { .location-grid { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-form { align-items: start; }
.split-text p { max-width: 52ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.plan { margin: 0; }
.plan-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plan figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }


/* Contact details */
.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius); text-decoration: none; transition: background-color .15s; }
.contact-item:hover { background: rgb(255 255 255 / .06); }
.contact-item .icon { margin: 0; color: var(--highlight); flex: none; }
.contact-label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.contact-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; overflow-wrap: anywhere; }

/* Forms */
.card { background: #fff; color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; font-size: .875rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235d5e52' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--line), var(--ink) 20%); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff8f7; }
.field-error { color: var(--error); font-size: .875rem; margin: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: -4px 0 0; text-align: center; }
.form-status:empty { display: none; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 500; outline: none; }
.form-status.is-error { background: #fbeceb; color: var(--error); }
.form-status.is-success { background: #eaf2e8; color: var(--success); }
.form.is-sent .field, .form.is-sent .form-row, .form.is-sent button, .form.is-sent .form-note { display: none; }
.form.is-sent .form-status { font-size: 1.05rem; padding: 22px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--footer-bg); color: rgb(255 255 255 / .72); padding: 40px 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 6px; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin-bottom: 4px !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px !important; }
.site-footer a { color: #fff; }
.footer-legal { margin-top: 18px !important; font-size: .85rem; color: rgb(255 255 255 / .5); }

/* Simple notice pages (404) */
.notice-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.notice { max-width: 520px; text-align: center; }
.notice h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); }

@media (max-width: 520px) {
  .contact-value { font-size: clamp(.9rem, 4.2vw, 1.1rem); overflow-wrap: normal; }
  .contact-item { padding: 14px; gap: 12px; }
  .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--hero-shade) 25%, transparent) 0%, color-mix(in srgb, var(--hero-shade) 60%, transparent) 40%, color-mix(in srgb, var(--hero-shade) 90%, transparent) 100%); }
}

@media (max-width: 380px) {
  .wordmark { font-size: .9rem; gap: 8px; }
  .wordmark-mark { width: 28px; height: 28px; }
  .site-nav .nav-cta { padding: 7px 14px; margin-left: 0; font-size: .9rem; }
}
