/* X Tank Co — Freedom Tool static site. Dark charcoal/navy + amber/copper. Sibling to robertcv amber. */
:root {
  --charcoal: #0e1624;
  --navy: #132038;
  --navy-2: #1a2b48;
  --card: #17253d;
  --steel: #8b97ab;
  --steel-2: #c5cedd;
  --line: rgba(232, 160, 60, 0.28);
  --line-soft: rgba(197, 206, 221, 0.12);
  --amber: #e8a03c;
  --amber-hot: #f2b85a;
  --amber-deep: #c47a1a;
  --ink: #e9eef6;
  --muted: #9aa6bb;
  --ok: #3dba7a;
  --danger: #e85d4c;
  --radius: 10px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--charcoal);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hot); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--charcoal); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 22, 36, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; min-height: var(--header-h); padding: .55rem 0;
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.brand-name .x { color: #fff; }
.brand-name .t { color: var(--amber); }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 8px;
  border: 1px solid var(--line-soft); background: var(--navy); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.site-nav { width: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: .35rem 0 .75rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.site-nav a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--steel-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.site-nav .nav-cta {
  color: var(--charcoal) !important; background: var(--amber); font-weight: 700; text-align: center; margin-top: .35rem;
}
.site-nav .nav-cta:hover { background: var(--amber-hot); color: var(--charcoal) !important; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; display: block !important; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .1rem; padding: 0; }
  .site-nav a { padding: .4rem .55rem; font-size: .9rem; white-space: nowrap; }
  .site-nav .nav-cta { margin-top: 0; margin-left: .4rem; padding: .45rem .85rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--amber); color: var(--charcoal) !important; }
.btn-primary:hover { background: var(--amber-hot); color: var(--charcoal) !important; }
.btn-ghost {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-hot) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: clamp(420px, 72vh, 640px);
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(14,22,36,.45) 0%, rgba(14,22,36,.78) 55%, rgba(14,22,36,.96) 100%),
    url("../assets/xtank-hero-bg-v2.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 4.5rem 0 3.25rem; }
.eyebrow {
  margin: 0 0 .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  line-height: 1.12; letter-spacing: -.02em; max-width: 18ch;
}
.hero-lead {
  margin: 1rem 0 0; max-width: 38rem; font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--steel-2); font-weight: 450;
}
.hero-actions { margin-top: 1.75rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--navy); border-block: 1px solid var(--line-soft); }
.section-tight { padding: 2.25rem 0; }
.section h2 {
  margin: 0 0 .75rem; font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -.01em;
}
.section .lede { margin: 0 0 1.5rem; color: var(--muted); max-width: 40rem; }
.kicker { color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .5rem; }

/* Cards / grids */
.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 1rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--amber); font-weight: 750; }
.card p { margin: 0; color: var(--steel-2); font-size: .98rem; }
.benefit-icon {
  width: 2.25rem; height: 2.25rem; margin-bottom: .75rem;
  border-radius: 8px; background: rgba(232,160,60,.12); color: var(--amber);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}

/* Calculator */
.calc-wrap {
  background: linear-gradient(160deg, #17130F 0%, #1c2436 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.calc-wrap h2 { margin: 0 0 .35rem; color: #fff; }
.calc-wrap .calc-note { margin: 0 0 1.25rem; color: var(--steel); font-size: .92rem; }
.calc-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) {
  .calc-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.calc-field { margin-bottom: 1.1rem; }
.calc-field label {
  display: flex; justify-content: space-between; gap: .75rem; align-items: baseline;
  font-size: .88rem; font-weight: 600; color: var(--steel-2); margin-bottom: .45rem;
}
.calc-field .val { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 800; }
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 0;
  background: #2C2620; outline: none; cursor: pointer; accent-color: #E8902E;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 2px;
  background: #E8902E; border: 2px solid #17130F;
  box-shadow: 0 0 0 1px #E8902E, 0 2px 6px rgba(0,0,0,.5); cursor: grab;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 2px; background: #E8902E; border: 2px solid #17130F; cursor: grab;
}
.calc-results {
  background: rgba(14,22,36,.55); border: 1px solid var(--line-soft); border-radius: 12px; padding: 1.1rem;
}
.calc-stat { margin-bottom: 1rem; }
.calc-stat:last-child { margin-bottom: 0; }
.calc-stat .lbl { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
.calc-stat .num {
  font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: .15rem;
}
.calc-stat .num.accent { color: var(--amber); }
.calc-stat .sub { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.calc-footnote { margin: 1rem 0 0; font-size: .8rem; color: var(--steel); }

/* Logos strip — original colors on light cards for contrast on navy */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 1.15rem; align-items: center; justify-content: center;
}
.logo-strip img {
  height: auto;
  width: auto;
  max-height: 56px;
  max-width: 170px;
  object-fit: contain;
  background: #fff;
  padding: .7rem .95rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Page hero (inner) */
.page-hero {
  padding: 2.75rem 0 2rem; background:
    radial-gradient(800px 280px at 90% -20%, rgba(232,160,60,.14), transparent 60%),
    linear-gradient(165deg, var(--charcoal), var(--navy));
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.page-hero p { margin: .75rem 0 0; color: var(--muted); max-width: 40rem; }

/* Prose */
.prose { max-width: 42rem; }
.prose p { color: var(--steel-2); }
.prose ul { color: var(--steel-2); padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.honesty {
  border-left: 3px solid var(--amber); padding: .75rem 1rem;
  background: rgba(232,160,60,.07); color: var(--steel-2); font-size: .95rem; margin: 1.25rem 0;
}

/* Testimonials */
.quote {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.35rem 1.25rem; margin: 0;
}
.quote p { margin: 0; color: var(--steel-2); font-size: 1.02rem; }
.quote footer { margin-top: .9rem; color: var(--amber); font-size: .9rem; font-weight: 700; }
.quote cite { font-style: normal; color: var(--steel); font-weight: 500; display: block; margin-top: .15rem; }

/* Gallery — single vertical column; full photos; larger video players */
.gallery-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  max-width: 960px; margin-inline: auto;
}
.gallery-grid figure {
  margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.gallery-grid img {
  width: 100%; height: auto; max-height: none;
  aspect-ratio: auto; object-fit: contain; background: #0a101a;
}
.gallery-grid figcaption { padding: .75rem 1rem; font-size: .9rem; color: var(--muted); }
.video-grid {
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
  max-width: 960px; margin-inline: auto;
}
.video-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.video-card .ratio { position: relative; aspect-ratio: 16/9; background: #000; min-height: clamp(280px, 48vw, 540px); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { margin: 0; padding: .95rem 1.1rem; font-size: 1.05rem; color: var(--steel-2); font-weight: 600; }

/* Map embed */
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  min-height: 640px;
}
.map-frame iframe { width: 100%; height: 720px; border: 0; display: block; }

/* Contact */
.contact-panel {
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) { .contact-panel { grid-template-columns: 1fr 1.2fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .85rem; }
.contact-list strong { display: block; color: var(--steel); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-list a, .contact-list span { color: #fff; font-size: 1.1rem; font-weight: 650; text-decoration: none; }
.bookings-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 560px;
}
.bookings-frame iframe { width: 100%; height: 600px; border: 0; }

/* Uranium cutaway */
.cutaway {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; padding: .5rem;
}
.cutaway img { margin: 0 auto; }

.install-overview { max-width: none; }
.install-layout { display: grid; gap: 1.5rem; align-items: start; }
.install-list { margin: 0; padding-left: 1.35rem; color: var(--steel-2); }
.install-list li { margin-bottom: .65rem; }
.install-list li:last-child { margin-bottom: 0; }
.install-cutaway { margin: 0; width: 100%; }
.install-cutaway img { width: 100%; max-height: 360px; object-fit: contain; }
@media (min-width: 760px) {
  .install-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); }
}

/* Footer */
.site-footer {
  margin-top: 2rem; padding: 2.25rem 0 2rem;
  background: #0a101a; border-top: 1px solid var(--line-soft); color: var(--steel);
  font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--steel-2); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer h3 { margin: 0 0 .65rem; color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); color: var(--steel); font-size: .82rem; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.stack-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.25rem; }


/* Uranium PDF page — full viewport embed under header */
.pdf-page main#main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.5rem);
  padding: 0;
}
.pdf-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
}
.pdf-embed-bar a { color: var(--amber); font-weight: 600; text-decoration: none; }
.pdf-embed-bar a:hover { text-decoration: underline; }
.pdf-embed-wrap {
  flex: 1;
  min-height: calc(100vh - 8.5rem);
  background: #0a101a;
}
.pdf-embed-wrap iframe,
.pdf-embed-wrap object {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 8.5rem);
  border: 0;
  display: block;
  background: #111;
}


/* Projects visual showcase (BD VA chart cards) */
.projects-visual-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .projects-visual-grid { grid-template-columns: repeat(2, 1fr); }
}
.projects-visual-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.projects-visual-card a.thumb {
  display: block;
  background: #0a101a;
  border-bottom: 1px solid var(--line-soft);
}
.projects-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  background: #0a101a;
}
.projects-visual-card figcaption {
  padding: .85rem 1.05rem 1.05rem;
}
.projects-visual-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  color: var(--amber);
  font-weight: 750;
}
.projects-visual-card p {
  margin: 0;
  color: var(--steel-2);
  font-size: .92rem;
}
