/* ==========================================================================
   UpkarHub — TV Setup & TV Mounting Guides
   Design tokens, layout system, and components
   ========================================================================== */

:root {
  /* Color scheme: deep navy base, electric-blue primary, amber accent */
  --bg:          #0b1120;
  --bg-2:        #0f172a;
  --surface:     #131c31;
  --surface-2:   #1b2740;
  --border:      #24314f;
  --text:        #e6ecf7;
  --text-muted:  #9aa8c4;
  --primary:     #3b82f6;
  --primary-2:   #2563eb;
  --accent:      #f59e0b;
  --accent-2:    #fbbf24;
  --success:     #34d399;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 18px 40px -20px rgba(0, 0, 0, .7);
  --maxw:        1140px;
  --font:        "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 26px -12px var(--primary);
}
.btn--primary:hover { transform: translateY(-2px); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--text); }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand b { color: var(--accent-2); }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.active { color: var(--text); background: var(--surface-2); }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  width: 42px; height: 40px; cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; margin: auto; }

/* -------- Hero -------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(245,158,11,.14), transparent 55%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero h1 span { color: var(--accent-2); }
.hero p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__stats div span { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero__stats div small { color: var(--text-muted); font-size: .85rem; }

.hero__art {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero__screen {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(59,130,246,.35), rgba(245,158,11,.25)),
    #0a0f1d;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  position: relative;
}
.hero__screen svg { width: 72px; height: 72px; color: #fff; opacity: .95; }
.hero__stand { width: 34%; height: 10px; margin: 14px auto 0; border-radius: 6px; background: var(--surface-2); }
.hero__base  { width: 52%; height: 8px; margin: 6px auto 0; border-radius: 6px; background: var(--border); }

/* -------- Grid cards -------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,.25), rgba(245,158,11,.2));
  color: var(--accent-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* -------- Split feature -------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  min-height: 280px;
  display: grid; place-items: center;
}
.split__media svg { width: 96px; height: 96px; color: var(--primary); }

/* -------- Checklist / steps -------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 34px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
}
.checklist li b { color: var(--text); }

.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step__num {
  counter-increment: step;
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* -------- Comparison / info tiers (replaces pricing) -------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.tier--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier__tag { font-size: .8rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tier h3 { margin: 8px 0; }
.tier__meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 12px; }
.tier ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.tier ul li { padding: 7px 0; color: var(--text-muted); font-size: .92rem; border-top: 1px solid var(--border); }

/* -------- Notice / disclaimer -------- */
.notice {
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(59,130,246,.08));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.notice h3 { color: var(--accent-2); }
.notice p { color: var(--text-muted); margin: 0; }

/* -------- FAQ -------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 14px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; margin: 0; }

/* -------- Forms -------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
}
.form__note { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert--ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #a7f3d0; }

/* -------- Contact info list -------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.contact-list b { display: block; color: var(--text); }
.contact-list span { color: var(--text-muted); font-size: .95rem; }

/* -------- CTA band -------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-2), #1e293b);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 46px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 22px; }

/* -------- Footer -------- */
.site-footer { background: #080d18; border-top: 1px solid var(--border); padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__grid h4 { color: var(--text); font-size: 1rem; margin: 0 0 16px; }
.footer__grid p { color: var(--text-muted); font-size: .92rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--text-muted); font-size: .92rem; }
.footer__links a:hover { color: var(--accent-2); }
.footer__bottom {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: .88rem;
}

/* -------- Footer payment icons -------- */
.footer__pay {
  margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer__pay-label { color: var(--text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__pay-icons { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.footer__pay-icons svg {
  width: 44px; height: auto; display: block;
  border: 1px solid var(--border); border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.footer__pay-icons li:hover svg { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* -------- Page hero (inner pages) -------- */
.page-hero { padding: 64px 0 40px; text-align: center; background:
    radial-gradient(700px 360px at 50% -20%, rgba(59,130,246,.22), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }

.prose p { color: var(--text-muted); }
.prose h2 { margin-top: 1.6em; }
.prose ul { color: var(--text-muted); padding-left: 20px; }
.prose ul li { margin-bottom: 8px; }

/* -------- Real photography -------- */
.hero__photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* Image inside a split__media block */
.split__media--img { padding: 0; overflow: hidden; }
.split__media--img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.about-portrait img { min-height: 380px; }

/* Photo page hero with dark overlay for readable text */
.page-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 96px 0 72px;
}
.page-hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,.74), rgba(11,17,32,.90));
}
.page-hero--photo .container { position: relative; z-index: 1; }

/* Image thumbnail on top of a card */
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; height: 170px; object-fit: cover; }
.card--photo .card__body { padding: 22px 26px 26px; }
.card--photo .card__body h3 { margin-bottom: 8px; }
.card--photo .card__body p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4, .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 10px 16px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 10px; border-radius: 8px; }
  .nav__toggle { display: block; }
  .grid--3, .grid--4, .tiers, .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 32px 20px; }
}
