/* ============================================================
   JTtv — Global Stylesheet
   Classic, mobile-first OTT support website
   ============================================================ */

:root {
  --navy: #0d1f3c;
  --navy-mid: #132a4e;
  --navy-light: #1a3a6e;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --light-gray: #e8ecf4;
  --mid-gray: #8a9bb5;
  --dark-gray: #4a5568;
  --text: #1a2332;
  --red: #e53e3e;
  --green: #38a169;
  --font-main: Georgia, "Times New Roman", serif;
  --font-ui: Arial, Helvetica, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--gold-dark); text-decoration: underline; }
a:hover { color: var(--navy); }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 64px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wrap img {
  width: 60px;
  height: 60px;
}

.logo-name {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}

.logo-tagline {
  font-size: 0.6rem;
  color: var(--mid-gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

/* Desktop nav */
#site-nav { display: flex; align-items: center; }

#site-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

#site-nav ul li a {
  display: block;
  padding: 22px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

#site-nav ul li a:hover,
#site-nav ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
}

@media (max-width: 700px) {
  #nav-toggle { display: block; }

  #site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    z-index: 99;
  }

  #site-nav.open { display: block; }

  #site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #site-nav ul li a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--navy-light);
    border-left: 4px solid transparent;
  }

  #site-nav ul li a:hover,
  #site-nav ul li a.active {
    border-bottom: 1px solid var(--navy-light);
    border-left-color: var(--gold);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  background: linear-gradient(160deg, var(--navy) 0%, #1a3a6e 60%, #0a1628 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #b0c4de;
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); text-decoration: none; }

.btn-call {
  background: var(--gold);
  color: var(--navy);
}

.btn-chat {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-chat:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.hero-note {
  color: var(--mid-gray);
  font-size: 0.82rem;
}

/* ============================================================
   MOBILE FLOATING BUTTONS
   ============================================================ */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
}

.mobile-call-bar:hover { background: var(--gold-dark); color: var(--navy); text-decoration: none; }

.chat-fab {
  position: fixed;
  bottom: 76px;
  right: 18px;
  z-index: 201;
  width: 58px;
  height: 58px;
  background: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s;
  text-decoration: none;
}

.chat-fab:hover { transform: scale(1.1); text-decoration: none; }

.chat-fab svg { width: 28px; height: 28px; fill: var(--gold); }

@media (max-width: 700px) {
  .mobile-call-bar { display: block; }
  .chat-fab { display: flex; }
  body { padding-bottom: 60px; }

  /* Hero — fill the screen, bigger text, hide redundant CTAs */
  .hero {
    min-height: calc(100vh - 60px);
    justify-content: center;
    padding: 48px 24px 80px;
  }

  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.12;
    margin-bottom: 18px;
  }

  .hero-sub {
    font-size: 1.08rem;
    margin-bottom: 0;
  }

  /* Bottom bar + chat fab are the mobile CTAs — hero buttons are redundant */
  .hero-cta-row { display: none; }
  .hero-note    { display: none; }
}

@media (min-width: 701px) {
  .chat-fab { display: none; }
}

/* ============================================================
   CHAT MODAL (user-facing)
   ============================================================ */
.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.7);
  z-index: 300;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 80px;
}

.chat-overlay.open { display: flex; }

@media (max-width: 700px) {
  .chat-overlay { padding: 0 0 60px; align-items: flex-end; justify-content: stretch; }
}

.chat-box {
  width: 360px;
  max-width: 100%;
  background: var(--white);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  max-height: 560px;
}

@media (max-width: 700px) {
  .chat-box { width: 100%; border-radius: 12px 12px 0 0; max-height: 75vh; }
}

.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header strong { font-size: 1rem; }
.chat-header span { font-size: 0.78rem; color: var(--mid-gray); display: block; }

#chat-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Start form */
#chat-start-form { display: flex; flex-direction: column; gap: 10px; }
#chat-start-form label { font-size: 0.83rem; color: var(--dark-gray); font-weight: bold; }
#chat-start-form input,
#chat-start-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.93rem;
  font-family: var(--font-ui);
  resize: vertical;
}
#chat-start-form input:focus,
#chat-start-form textarea:focus { outline: none; border-color: var(--gold); }

#chat-start-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Messages */
.chat-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg.user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-msg.admin {
  background: var(--light-gray);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg .msg-time {
  font-size: 0.68rem;
  color: var(--mid-gray);
  margin-top: 4px;
  display: block;
}

.chat-msg.user .msg-time { color: #a0b4ce; }

.chat-footer {
  border-top: 1px solid var(--light-gray);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
}

#chat-input {
  flex: 1;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  resize: none;
}

#chat-input:focus { outline: none; border-color: var(--gold); }

#chat-send {
  background: var(--gold);
  border: none;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 4px solid var(--gold);
  padding: 44px 20px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--white);
}

.page-banner p {
  color: #b0c4de;
  margin-top: 8px;
  font-size: 1rem;
}

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--navy);
  margin-bottom: 12px;
  border-left: 5px solid var(--gold);
  padding-left: 14px;
}

.section-sub {
  color: var(--dark-gray);
  margin-bottom: 28px;
  font-size: 1rem;
  padding-left: 19px;
}

.divider {
  border: none;
  border-top: 2px solid var(--light-gray);
  margin: 44px 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 20px;
}

.card h3 {
  font-family: var(--font-main);
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p { color: var(--dark-gray); font-size: 0.92rem; line-height: 1.55; }

/* ============================================================
   TABLE OF DEVICES
   ============================================================ */
.device-table { width: 100%; border-collapse: collapse; margin-top: 20px; }

.device-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.device-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: top;
}

.device-table tr:nth-child(even) td { background: var(--off-white); }

/* ============================================================
   TROUBLESHOOTING STEPS
   ============================================================ */
.steps-list {
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-gray);
  align-items: flex-start;
}

.steps-list li::before {
  content: counter(steps);
  min-width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.steps-list li .step-body strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.steps-list li .step-body span {
  font-size: 0.88rem;
  color: var(--dark-gray);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--navy);
  display: block;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #c8d4e8;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--navy-light); }

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 22px 0;
}

.info-box p { font-size: 0.93rem; color: var(--dark-gray); }
.info-box strong { color: var(--navy); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-body h2 {
  font-family: var(--font-main);
  color: var(--navy);
  font-size: 1.2rem;
  margin: 28px 0 8px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 4px;
}

.legal-body p {
  color: var(--dark-gray);
  font-size: 0.93rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-body ul {
  margin: 0 0 14px 22px;
  color: var(--dark-gray);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: var(--mid-gray);
  border-top: 3px solid var(--gold);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col ul { font-size: 0.85rem; line-height: 1.8; }

.footer-col ul { list-style: none; }

.footer-col ul li a {
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--navy-light);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo img { width: 30px; height: 30px; border-radius: 4px; }
.footer-logo span { color: var(--gold); font-weight: bold; font-family: var(--font-main); font-size: 1.1rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.gold { color: var(--gold); }

.cta-band {
  background: var(--gold);
  padding: 36px 20px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-main);
  color: var(--navy);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  margin-bottom: 16px;
}

.cta-band .btn-call {
  background: var(--navy);
  color: var(--gold);
  margin: 0 8px 8px;
}

.cta-band .btn-chat {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  margin: 0 8px 8px;
}

.cta-band .btn-chat:hover { background: rgba(13,31,60,0.08); color: var(--navy); }
