/* ETS Dominion Enterprise */
:root {
  --ink: #15232d;
  --ink-2: #243745;
  --steel: #4a5d6b;
  --line: #d9dcd6;
  --paper: #ffffff;
  --paper-2: #f4f3ee;
  --amber: #f2a900;
  --amber-dark: #c98c00;
  --green: #2e6b3f;
  --red: #a4262c;
  --radius: 4px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #7f1d22; color: #fff; }
.btn-small { padding: 9px 14px; font-size: .95rem; }
.text-link { font-weight: 700; }
.text-link::after { content: " \2192"; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 10px 0; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.brand-tag { font-size: .78rem; color: var(--steel); }
.brand-logo { max-height: 52px; width: auto; }

.nav-toggle {
  display: none;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--amber); }
.site-nav a:not(.btn):hover { border-bottom-color: var(--ink); color: var(--ink); }
.lang-switch { color: var(--steel); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 16px; }
  .js .site-nav.is-open { display: block; }
  .site-nav { width: 100%; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav li a:not(.btn)[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--amber); padding-left: 12px; }
  .site-nav .btn { display: block; text-align: center; margin-top: 14px; }
  .brand-tag { display: none; }
  .header-row { min-height: 64px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: .86rem; letter-spacing: 0; }
}

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 0 60px; }
.hero a:not(.btn) { color: #fff; }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: #fff; color: var(--ink); }
.hero-photo { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(21, 35, 45, .8); }
@media (min-width: 900px) { .hero-photo::before { background: rgba(21, 35, 45, .72); } }
.hero-photo .hero-grid { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 84px 0; } .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--amber); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: inherit; max-width: 62ch; }
.hero .lead { color: #d6dde2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-card { background: var(--ink-2); border: 1px solid #36505f; border-radius: var(--radius); padding: 24px; }
.hero-card h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: #d6dde2; margin-bottom: 16px; }
.small { font-size: .9rem; }
.hero-card .small { color: #b9c5cc; margin: 0; }
.area-big { font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 3px solid var(--amber); }
.area-list { margin: 0; }
.area-list > div { padding: 10px 0; border-bottom: 1px solid #36505f; }
.area-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.area-list dt { font-weight: 700; color: #fff; }
.area-list dd { margin: 0; color: #b9c5cc; font-size: .95rem; }

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0 64px; }
.section-alt { background: var(--paper-2); }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.section-title { margin-bottom: .8em; }
.measure { max-width: 70ch; }

.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { color: var(--steel); margin: 0; }
.meta { color: var(--steel); margin: 0; }

.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 24px; background: var(--paper); display: flex; flex-direction: column; }
.card p { flex: 1; color: var(--steel); }
.card-photo { display: block; margin: -24px -24px 20px; }
.card-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.side { display: grid; gap: 20px; }
.side-photo img, .pair-photo img, .scope-photo img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.side-photo img { aspect-ratio: 4 / 3; }
.photo-pair { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 760px) { .photo-pair { grid-template-columns: 1fr 1fr; } }
.pair-photo img { aspect-ratio: 16 / 9; }
.scope-photo { display: block; margin: -24px -24px 18px -24px; }
.scope-photo img { aspect-ratio: 16 / 7; border-radius: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.4rem; color: var(--amber-dark); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--steel); }

.scope-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .scope-grid { grid-template-columns: repeat(2, 1fr); } }
.scope { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.scope ul { flex: 1; color: var(--steel); }
.scope li { margin-bottom: .35em; }

.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.wa-icon { width: 22px; height: 22px; flex: none; color: #128c4a; }
.site-footer .wa-icon { color: #4fd18b; }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: #128c4a; color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 16px; border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(21, 35, 45, .3);
}
.wa-float:hover { background: #0e6f3a; color: #fff; }
.wa-float .wa-icon { color: #fff; width: 24px; height: 24px; }
@media (max-width: 599px) { .wa-float { padding: 12px; } .wa-float-text { display: none; } .footer-bottom { padding-bottom: 80px; } }
@media print { .wa-float { display: none; } }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .panel { background: var(--paper); }
.panel ul { padding-left: 1.1em; }
.panel-title { font-size: 1.2rem; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.columns { columns: 1; column-gap: 40px; }
@media (min-width: 760px) { .columns { columns: 2; } }
.columns li { break-inside: avoid; margin-bottom: .5em; }

.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.facts > div { display: grid; gap: 2px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 170px 1fr; } }
.facts dt { font-weight: 700; color: var(--steel); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts-wide { max-width: 760px; }

.cta { background: var(--amber); padding: 44px 0; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta .btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* Legal text */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* Forms */
.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 1.7fr 1fr; gap: 48px; } }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--steel); }
.hint { font-size: .9rem; color: var(--steel); margin: 6px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], input[type="search"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9aa5ad;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--amber); outline-offset: 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; border: 1px solid; border-left-width: 6px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-success { background: #eef6f0; border-color: var(--green); }
.notice-error { background: #fbeeee; border-color: var(--red); }
.notice h2 { font-size: 1.4rem; }
.ref { font-size: 1.2rem; letter-spacing: .03em; }

/* Footer */
.site-footer { background: var(--ink); color: #c8d1d7; font-size: .95rem; padding-top: 48px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; gap: 28px; padding-bottom: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1.2fr .8fr; } }
.footer-brand { margin-bottom: 14px; }
.footer-logo { width: 100%; max-width: 300px; height: auto; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-dl { margin: 0; }
.footer-dl dt { font-size: .82rem; color: #93a3ad; }
.footer-dl dd { margin: 0 0 8px; color: #fff; overflow-wrap: anywhere; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #2f4452; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #93a3ad; }

/* Admin */
.admin { background: var(--paper-2); }
.admin-header { background: var(--ink); color: #fff; }
.admin-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.admin-brand { color: #fff; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.admin-nav a, .link-button { color: #fff; font: inherit; font-size: .95rem; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.inline-form { display: inline; margin: 0; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-narrow { max-width: 480px; margin: 20px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-title-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-title-row h1 { margin: 0; font-size: 1.8rem; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.status-tabs a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font-size: .92rem; }
.status-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: 8px; margin-bottom: 20px; max-width: 640px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.data-table td:nth-child(4) { white-space: normal; min-width: 160px; }
.data-table th { background: var(--paper-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); }
.muted { color: var(--steel); }
.warn { color: var(--red); font-weight: 700; }
.empty { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.status { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: #e6e9ec; }
.status-new { background: var(--amber); color: var(--ink); }
.status-won { background: #d7ecdc; color: #1f4d2c; }
.status-lost, .status-closed { background: #eceae4; color: var(--steel); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a { padding: 6px 11px; border: 1px solid var(--line); background: #fff; text-decoration: none; border-radius: 3px; }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .admin-split { grid-template-columns: 1.4fr 1fr; } }
.admin-split > section:not(.panel) { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.admin .panel { background: #fff; }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 24px; }
.detail-list dt { font-weight: 700; color: var(--steel); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.check-inline { display: flex; gap: 8px; align-items: center; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .cta, .nav-toggle { display: none; } }
