/* DSMS Digital Signage — Managed Services website
   Brand: Netflix red / Tricorn black / bright white
   Shared across all pages: nav, footer, hero, cards, clock, ticker */

:root {
  --red: #E50914;
  --red-dim: #b0060f;
  --red-glow: rgba(229, 9, 20, 0.35);
  --black: #0b0b0a;
  --panel: #1a1a18;
  --panel-2: #201f1c;
  --tricorn: #2b2b28;
  --tricorn-light: #3a3936;
  --white: #ffffff;
  --gray: #9a9a95;
  --gray-light: #cfcfca;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 6px;
  --header-h: 9vh;
  --header-h-min: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Segoe UI', Arial, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 5vw;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.section {
  padding: clamp(3rem, 7vh, 6rem) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 0.8rem;
  font-weight: 800;
}

.section-head p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.section-alt { background: var(--panel); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dim); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ============ SITE HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h-min);
  height: var(--header-h);
  padding: 0 5vw;
  background: linear-gradient(180deg, var(--tricorn) 0%, var(--black) 100%);
  border-bottom: 3px solid var(--red);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6vw;
  flex: none;
}

.brand .mark {
  color: var(--red);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

.brand .sub {
  color: var(--white);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}

.fullscreen-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.6em 0.9em;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}
.fullscreen-btn:hover { border-color: var(--red); color: var(--red); }

.nav-history-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1;
  width: 2.4em;
  height: 2.4em;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-history-btn:hover { border-color: var(--red); color: var(--red); }
.nav-history-btn:disabled { opacity: 0.35; cursor: default; }
.nav-history-btn:disabled:hover { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 1400px (not 980px) because the full desktop header — brand + 6-item nav +
   Get a Quote + Back/Forward + Full Screen — measures ~1375px wide on its
   own and was overflowing past the right edge on ordinary 1366×768 laptop
   screens (one of the most common laptop resolutions) with everything still
   showing inline; 980px only covered phones/small tablets. */
@media (max-width: 1400px) {
  .nav-links {
    position: fixed;
    top: var(--header-h-min);
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 3px solid var(--red);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 60vh; }
  .nav-links a { width: 100%; padding: 1rem 5vw; border-bottom: 1px solid var(--border); }
  .nav-links a.active { border-left: 3px solid var(--red); border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-actions .fullscreen-btn span.label { display: none; }
  /* Below this width, nav-links no longer takes row space (it's a hidden
     dropdown now), but brand + Get a Quote + Back/Forward + fullscreen-icon
     + hamburger together still don't fit one row — was overflowing the
     header ~300px past the right edge, forcing a horizontal scrollbar on
     every page. Back/Forward duplicate the browser's own gesture nav on
     mobile, and requestFullscreen() isn't reliably supported on mobile
     Safari anyway, so both are dropped here rather than shrunk further. */
  .brand .sub { display: none; }
  .header-actions .nav-history-btn,
  .header-actions .fullscreen-btn { display: none; }
}

/* ============ HOME HERO — "the screen" ============ */
.hero-screen {
  position: relative;
  margin: 3vh 3vw 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 30px 80px rgba(0,0,0,0.6), 0 0 120px var(--red-glow);
  aspect-ratio: 16 / 9;
  max-height: 82vh;
}

.hero-screen::before {
  /* subtle bezel edge */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 20;
}

.hero-stand {
  width: 14vw;
  max-width: 160px;
  height: 3.2vh;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--tricorn) 0%, var(--black) 100%);
  border-radius: 0 0 8px 8px;
}
.hero-stand-foot {
  width: 22vw;
  max-width: 240px;
  height: 0.8vh;
  margin: 0 auto 4vh;
  background: var(--tricorn);
  border-radius: 4px;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6%;
  text-align: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 8s ease;
  background: radial-gradient(circle at 30% 20%, var(--panel-2), var(--black) 70%);
}

.slide.active { opacity: 1; transform: scale(1); z-index: 2; }

.slide-tagline .eyebrow { justify-self: center; }
.slide-tagline h1 {
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  font-weight: 900;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.slide-tagline h1 span { color: var(--red); }
.slide-tagline p {
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  color: var(--gray-light);
  max-width: 40em;
  margin: 0 auto;
}

.slide-services .services-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
  max-width: 900px;
}
.svc-mini {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1rem;
}
.svc-mini .icon { color: var(--red); margin-bottom: 0.6rem; }
.svc-mini .icon svg { width: 34px; height: 34px; }
.svc-mini h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.svc-mini p { font-size: 0.82rem; color: var(--gray); margin: 0; line-height: 1.4; }

.slide-data {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.data-block { text-align: left; }
.data-block .eyebrow { text-align: left; }
.data-block.center { text-align: center; }

.dt-loc { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.dt-temp { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1; }
.dt-desc { color: var(--gray-light); margin-top: 0.3rem; }
.dt-days { display: flex; gap: 0.6rem; margin-top: 1rem; }
.dt-day { background: rgba(255,255,255,0.05); border-radius: 6px; padding: 0.5rem 0.6rem; font-size: 0.75rem; text-align: center; flex: 1; }
.dt-day .n { color: var(--gray); display: block; margin-bottom: 0.3rem; }
.dt-day .hi { color: var(--white); font-weight: 700; }
.dt-day .lo { color: var(--gray); margin-left: 0.3rem; }

.market-list { display: flex; flex-direction: column; gap: 0.6rem; }
.market-row { display: flex; justify-content: space-between; align-items: baseline; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 0.55rem 0.9rem; }
.market-row .sym { font-weight: 700; font-size: 0.9rem; }
.market-row .val { font-size: 0.9rem; color: var(--gray-light); }
.market-row .chg { font-size: 0.85rem; font-weight: 700; margin-left: 0.5rem; }
.market-row .chg.up { color: #2ecc71; }
.market-row .chg.down { color: var(--red); }
.market-note { font-size: 0.68rem; color: var(--gray); margin-top: 0.5rem; text-align: right; }

/* Analog clock */
.analog-clock {
  width: clamp(90px, 9vw, 140px);
  height: clamp(90px, 9vw, 140px);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  position: relative;
  margin: 0 auto 0.8rem;
  background: radial-gradient(circle, var(--panel-2) 0%, var(--black) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 30px rgba(0,0,0,0.5);
}
.analog-clock .tick {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 2px;
  height: 6%;
  background: rgba(255,255,255,0.4);
  transform-origin: 50% 1150%;
}
.analog-clock .hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  background: var(--white);
  border-radius: 2px;
}
.analog-clock .hand.hour { width: 4px; height: 26%; margin-left: -2px; margin-top: -26%; }
.analog-clock .hand.minute { width: 3px; height: 37%; margin-left: -1.5px; margin-top: -37%; background: var(--white); }
.analog-clock .hand.second { width: 1.5px; height: 40%; margin-left: -0.75px; margin-top: -40%; background: var(--red); }
.analog-clock .pin { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--red); }
.digital-clock { text-align: center; font-size: 0.85rem; color: var(--gray-light); letter-spacing: 0.05em; }
.digital-clock .time { font-size: 1.3rem; font-weight: 800; color: var(--white); display: block; }

.hero-dots {
  position: absolute;
  bottom: 6.5vh;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; padding: 0; cursor: pointer;
}
.hero-dots button.active { background: var(--red); width: 22px; border-radius: 4px; }

.hero-ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5.2vh;
  min-height: 40px;
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.85);
  border-top: 2px solid var(--red);
  overflow: hidden;
  z-index: 10;
}
.hero-ticker .tag {
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  font-weight: 900; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 1.2rem; white-space: nowrap; flex: none;
}
.hero-ticker .viewport { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.hero-ticker .track {
  display: flex; align-items: center; white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
  padding-left: 100%;
}
.hero-ticker .track span { font-size: 0.85rem; color: var(--white); margin-right: 3rem; }
.hero-ticker .track span::before { content: "\25CF"; color: var(--red); margin-right: 0.6rem; font-size: 0.6rem; vertical-align: middle; }

@keyframes ticker-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-100%,0,0); }
}

.hero-live-badge {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  z-index: 10;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  padding: 0.4rem 0.7rem; border-radius: 20px;
}
.hero-live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ============ HERO (interior pages, non-signage) ============ */
.page-hero {
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  background: linear-gradient(180deg, var(--panel) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 900; margin: 0 0 0.8rem; }
.page-hero p { color: var(--gray-light); max-width: 640px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

/* ============ SERVICE CARDS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card .icon { color: var(--red); margin-bottom: 1rem; }
.card .icon svg { width: 36px; height: 36px; }
.card h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.card p { color: var(--gray-light); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ============ FEATURE / SPLIT SECTIONS ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split .copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 1rem; }
.split .copy p { color: var(--gray-light); line-height: 1.7; margin: 0 0 1rem; }
.split .copy ul { margin: 0 0 1.4rem; padding-left: 1.1rem; color: var(--gray-light); line-height: 1.9; }
.split .copy ul li::marker { color: var(--red); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.device-mock {
  position: relative;
  background: var(--black);
  border-radius: 12px;
  aspect-ratio: 16/10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6%;
  text-align: center;
  background: radial-gradient(circle at 25% 15%, var(--panel-2), var(--black) 75%);
}
.device-mock .mock-badge {
  color: var(--red); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.06em; margin-bottom: 0.6rem;
}
.device-mock .mock-sub { color: var(--gray-light); font-size: 0.95rem; }
.device-mock .mock-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(circle, var(--red-glow), transparent 60%);
  opacity: 0.5;
}

/* ============ STATS / VALUES ============ */
.value-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  text-align: center;
}
.value-row .v-icon { color: var(--red); margin-bottom: 0.7rem; }
.value-row .v-icon svg { width: 30px; height: 30px; }
.value-row h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.value-row p { color: var(--gray); font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}
.contact-info .info-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.contact-info .info-row .icon { color: var(--red); flex: none; margin-top: 0.15rem; }
.contact-info .info-row .icon svg { width: 22px; height: 22px; }
.contact-info .info-row h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.contact-info .info-row p, .contact-info .info-row a { margin: 0; color: var(--gray-light); font-size: 0.92rem; }
.contact-info .info-row a:hover { color: var(--red); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 0.35rem; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--border); color: var(--white);
  padding: 0.8em 1em; border-radius: 4px; font-size: 0.95rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-note { font-size: 0.78rem; color: var(--gray); }
.contact-form .form-success, .contact-form .form-error {
  display: none; font-size: 0.88rem; padding: 0.8em 1em; border-radius: 4px; line-height: 1.5;
}
.contact-form .form-success.is-visible, .contact-form .form-error.is-visible { display: block; }
.contact-form .form-success { background: rgba(60,180,100,0.12); border: 1px solid rgba(60,180,100,0.4); color: #6fd89a; }
.contact-form .form-error { background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.4); color: #ff9a92; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }

/* ============ SITE FOOTER ============ */
.site-footer {
  background: var(--tricorn);
  border-top: 3px solid var(--red);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .mark { color: var(--red); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.05em; }
.footer-brand p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; margin: 0.9rem 0 0; max-width: 30em; }
.footer-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--gray); font-size: 0.9rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.3rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
}
.footer-bottom p { margin: 0; color: var(--gray); font-size: 0.8rem; }

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-data { grid-template-columns: 1fr; gap: 1.5rem; }
  .slide-services .services-grid-mini { grid-template-columns: 1fr; }
  .hero-screen { aspect-ratio: 3/4; max-height: none; }
}

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