/* ==========================================================================
   Vendistax — static site styles
   Palette and type are defined once, here. Change the values in :root and
   the whole site follows.
   ========================================================================== */

:root {
  /* Surfaces */
  --concrete:        #e8eae7;  /* page background */
  --concrete-raised: #f5f6f4;  /* panels on light bands */
  --graphite:        #141c20;  /* dark bands: hero, stack, footer */
  --graphite-raised: #1e292e;

  /* Ink */
  --text:            #171d1f;
  --text-dim:        #5a6669;
  --text-on-dark:    #eef1ef;
  --text-on-dark-dim:#9dadb2;

  /* Rules */
  --line:            #ccd1cd;
  --line-dark:       rgba(255, 255, 255, 0.14);

  /* Accent: equipment-status amber */
  --signal:          #d2841b;
  --signal-bright:   #e8a33d;

  /* Type */
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --gutter: 24px;
  --band-pad: clamp(64px, 9vw, 118px);
}

/* ---------- Reset ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--band-pad);
}

.band-dark {
  background: var(--graphite);
  color: var(--text-on-dark);
}

.band-raised {
  background: var(--concrete-raised);
}

.prose { max-width: 68ch; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.58;
  color: var(--text-dim);
}

.band-dark .lead { color: var(--text-on-dark-dim); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--signal);
  color: var(--graphite);
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: #120d05;
  border-color: var(--signal);
}
.btn-primary:hover { background: var(--signal-bright); border-color: var(--signal-bright); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

.band-dark .btn-ghost,
.site-hero .btn-ghost {
  color: var(--text-on-dark);
  border-color: var(--line-dark);
}
.band-dark .btn-ghost:hover,
.site-hero .btn-ghost:hover { border-color: var(--text-on-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span {
  color: var(--text-on-dark);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  color: var(--text-on-dark);
  padding: 9px 13px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 9px 14px;
  color: var(--text-on-dark-dim);
  font-size: 0.96rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text-on-dark); }

.site-nav a[aria-current="page"] {
  color: var(--text-on-dark);
  border-bottom-color: var(--signal);
}

.site-nav .nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: var(--signal);
  color: #120d05;
  font-weight: 600;
  border-radius: 2px;
  border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--signal-bright); color: #120d05; }
.site-nav .nav-cta[aria-current="page"] { border-bottom: none; color: #120d05; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--graphite);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--signal); }
  .site-nav .nav-cta {
    margin: 16px 0 0;
    text-align: center;
    border-bottom: none;
  }
}

/* ---------- Hero ---------- */

.site-hero {
  position: relative;
  background: var(--graphite) center / cover no-repeat;
  color: var(--text-on-dark);
  isolation: isolate;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(12, 18, 21, 0.94) 0%,
    rgba(12, 18, 21, 0.82) 42%,
    rgba(12, 18, 21, 0.42) 100%
  );
}

.site-hero .container {
  padding-block: clamp(84px, 13vw, 168px);
}

.hero-body { max-width: 40rem; }

.hero-body h1 {
  font-size: clamp(2.25rem, 5.4vw, 3.9rem);
  letter-spacing: -0.032em;
  line-height: 1.05;
  max-width: 17ch;
}

.hero-body .lead {
  margin-top: 24px;
  max-width: 56ch;
  color: var(--text-on-dark-dim);
}

.hero-rule {
  width: 54px;
  height: 3px;
  background: var(--signal);
  margin-bottom: 28px;
}

/* Compact hero for interior pages without a large photo */
.site-hero.is-compact .container { padding-block: clamp(60px, 8vw, 96px); }

/* ---------- Section headings ---------- */

.section-head { margin-bottom: 48px; max-width: 62ch; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
}

.section-head p { margin-top: 18px; }

/* ---------- The "stack": four platform layers ---------- */

.stack {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.stack-layer {
  display: grid;
  grid-template-columns: minmax(180px, 15rem) 1fr;
  gap: 16px 48px;
  padding: 30px 0 30px 22px;
  border-bottom: 1px solid var(--line-dark);
  border-left: 3px solid var(--signal);
}

.stack-layer h3 {
  font-size: 1.22rem;
  color: var(--text-on-dark);
}

.stack-layer p {
  color: var(--text-on-dark-dim);
  font-weight: 300;
  max-width: 60ch;
}

.stack-note {
  margin-top: 40px;
  max-width: 68ch;
  color: var(--text-on-dark-dim);
  font-weight: 300;
}

@media (max-width: 720px) {
  .stack-layer { grid-template-columns: 1fr; gap: 10px; padding-left: 18px; }
}

/* ---------- Gallery strip ---------- */

.gallery { margin-top: 8px; }

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-controls { display: flex; gap: 10px; flex: none; }

.gallery-controls button {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.gallery-controls button:hover { border-color: var(--text); }
.gallery-controls button:disabled { opacity: 0.35; cursor: default; }
.gallery-controls button:disabled:hover { border-color: var(--line); }

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(400px, 78vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 14px;
}

.gallery-track figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #cfd5d1;
  border-radius: 2px;
}

.gallery-track figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ---------- Definition lists (applications, capabilities) ---------- */

.spec-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 76px);
}

.spec h3 {
  font-size: 1.3rem;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--signal);
}

.spec dl { margin: 0; }

.spec dt {
  margin-top: 26px;
  font-weight: 600;
  font-size: 1.02rem;
}

.spec dd {
  margin: 5px 0 0;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 52ch;
}

/* ---------- Alternating feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.feature-row:first-of-type { border-top: none; padding-top: 0; }

.feature-row img {
  width: 100%;
  /* Portrait source images (the hotel shot is 683x1024) would otherwise make
     their row twice as tall as the rest. Crop instead. */
  max-height: 440px;
  object-fit: cover;
  border-radius: 2px;
  background: #cfd5d1;
}

.feature-row h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.feature-row .feature-text p { margin-top: 18px; color: var(--text-dim); font-weight: 300; }
.feature-row .feature-text p:first-of-type { margin-top: 20px; }

.feature-row.is-flipped .feature-media { order: -1; }

@media (max-width: 700px) {
  .feature-row.is-flipped .feature-media { order: 0; }
}

.plain-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  margin-top: 12px;
  color: var(--text-dim);
  font-weight: 300;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--signal);
}

/* ---------- FAQ ---------- */

.faq { max-width: 76ch; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--signal);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }

.faq .faq-body { padding: 0 0 24px; color: var(--text-dim); font-weight: 300; }
.faq .faq-body ul { margin: 12px 0 0; padding-left: 20px; }
.faq .faq-body li { margin-top: 8px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .contact-grid { align-items: stretch; }
  .map-frame { height: 100%; }
  .map-frame iframe { height: 100%; }
}

.contact-details {
  background: var(--graphite);
  color: var(--text-on-dark);
  padding: 34px;
  border-radius: 2px;
}

.contact-details h2 { font-size: 1.4rem; }

.contact-details dl { margin: 26px 0 0; }
.contact-details dt {
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--signal-bright);
}
.contact-details dd { margin: 4px 0 0; }
.contact-details dd a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-details dd a:hover { border-bottom-color: var(--signal-bright); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Article / long-form pages ---------- */

.article { max-width: 72ch; }
.article h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin-top: 48px; }
.article h3 { font-size: 1.22rem; margin-top: 36px; }
.article h4 { font-size: 1.06rem; margin-top: 30px; }
.article > h2:first-child { margin-top: 0; }
.article p { margin-top: 14px; }
.article ul { margin: 18px 0 0; padding-left: 22px; }
.article li { margin-top: 12px; }
.article a { color: var(--text); text-decoration-color: var(--signal); text-underline-offset: 3px; }

.article-meta {
  font-size: 0.93rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.press-item {
  border-top: 3px solid var(--signal);
  padding-top: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--graphite);
  color: var(--text-on-dark-dim);
  padding-block: 64px 34px;
  font-size: 0.96rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px;
}

.site-footer h2 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-top: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text-on-dark); }

.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; font-weight: 300; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}
