/* ==========================================================================
   Redline Auto Detail — Sault Ste Marie
   Brand color: #ff8635
   ========================================================================== */

:root {
  --brand: #ff8635;
  --brand-soft: #ffa766;
  --brand-deep: #d96a1f;
  --bg: #0a0a0a;
  --bg-2: #131313;
  --bg-3: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #b3b3b3;
  --glow: 0 0 12px rgba(255, 134, 53, .55), 0 0 24px rgba(255, 134, 53, .25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.accent { color: var(--brand); }

/* ---------- Countdown bar ---------- */
.countdown-bar {
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-deep));
  color: #0a0a0a;
  text-align: center;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  letter-spacing: .3px;
}

.countdown-label { font-weight: 900; }

.countdown { display: inline-flex; gap: 10px; }
.countdown span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,.18);
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 44px;
}
.countdown b { font-family: 'Orbitron', sans-serif; font-size: 16px; line-height: 1; }
.countdown i { font-style: normal; font-size: 9px; opacity: .85; letter-spacing: 1px; }

/* ---------- Scrolling payments header ---------- */
.payments-bar {
  background: #050505;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.payments-bar::before,
.payments-bar::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.payments-bar::before { left: 0; background: linear-gradient(90deg, #050505, transparent); }
.payments-bar::after { right: 0; background: linear-gradient(270deg, #050505, transparent); }

.payments-track {
  display: flex;
  width: max-content;
  animation: scroll-payments 28s linear infinite;
}
.payments-set {
  display: flex;
  gap: 18px;
  padding-right: 18px;
  white-space: nowrap;
}
.pay-chip {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255,134,53,.06);
  box-shadow: var(--glow);
  text-shadow: 0 0 8px rgba(255,134,53,.5);
  animation: pulse-glow 2.4s ease-in-out infinite;
  letter-spacing: .4px;
}
.pay-chip:first-child {
  background: var(--brand);
  color: #0a0a0a;
  text-shadow: none;
}

@keyframes scroll-payments {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,134,53,.35), 0 0 16px rgba(255,134,53,.15); }
  50%      { box-shadow: 0 0 16px rgba(255,134,53,.75), 0 0 32px rgba(255,134,53,.4); }
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 48px; width: auto; }
.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--brand);
  font-weight: 700;
  margin-top: 4px;
}
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.nav nav a:hover { color: var(--brand); }

.cta-btn {
  background: var(--brand);
  color: #0a0a0a !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(255,134,53,.4);
  font-size: 14px;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,134,53,.6); }
.cta-btn.big { padding: 16px 36px; font-size: 16px; }

.ghost-btn {
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 800;
  transition: background .2s;
  display: inline-block;
}
.ghost-btn:hover { background: rgba(255,134,53,.1); }
.ghost-btn.big { font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 6% 120px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero .eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero .lede { font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,134,53,.18), transparent 60%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 90px 6%; max-width: 1200px; margin: 0 auto; }
.section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}
.subtitle { text-align: center; color: var(--muted); margin-bottom: 50px; }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 24px;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(255,134,53,.2);
}
.card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255,134,53,.08), var(--bg-2));
  box-shadow: var(--glow);
}
.card-icon { font-size: 38px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.price { color: var(--brand); font-weight: 800; font-size: 17px; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand);
  color: #0a0a0a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* AS SEEN ON */
.seen-on {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 50px 6%;
  text-align: center;
}
.seen-label {
  color: var(--muted);
  letter-spacing: 5px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 24px;
}
.seen-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.seen-logo {
  opacity: .85;
  transition: opacity .2s, transform .2s;
}
.seen-logo:hover { opacity: 1; transform: scale(1.05); }
.seen-logo svg { height: 60px; width: auto; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-grid h2 { text-align: left; font-size: clamp(28px, 4vw, 42px); }
.about-grid p { color: var(--muted); margin-bottom: 24px; }
.checks { list-style: none; }
.checks li { padding: 6px 0; color: var(--text); font-weight: 500; }
.about-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-stat div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
}
.about-stat b {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 4px;
}
.about-stat span { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

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

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.contact-card .ci { font-size: 32px; }
.contact-card b { font-size: 16px; margin-top: 4px; }
.contact-card span { color: var(--muted); font-size: 14px; }
.contact-card.highlight { background: linear-gradient(180deg, rgba(255,134,53,.12), var(--bg-2)); border-color: var(--brand); }

/* Footer */
footer {
  background: #050505;
  padding: 30px 6%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: var(--brand); }

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.popup-overlay.active { display: flex; animation: fadeIn .3s; }
.popup {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--brand);
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 460px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(255,134,53,.4);
  animation: popIn .35s cubic-bezier(.5,1.5,.5,1);
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.popup-close:hover { color: var(--brand); }
.popup-badge {
  display: inline-block;
  background: var(--brand);
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.popup h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 14px;
}
.popup p { color: var(--muted); margin-bottom: 26px; }
.popup small { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Booking page ---------- */
.booking-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 6%;
}
.booking-wrap h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  text-align: center;
  margin-bottom: 12px;
}
.promo-banner {
  background: linear-gradient(90deg, rgba(255,134,53,.2), rgba(255,134,53,.05));
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 700;
}
.promo-banner b { color: var(--brand); }

form.booking-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); letter-spacing: .5px; }
.field input, .field select, .field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,134,53,.15);
}
.field textarea { min-height: 90px; resize: vertical; }

.checks-group {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0 26px;
}
.checks-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}
.checks-group input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}
.submit-btn {
  width: 100%;
  background: var(--brand);
  color: #0a0a0a;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  font-family: inherit;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,134,53,.6); }

.success-msg {
  background: #0e2818;
  border: 1px solid #1a6e3f;
  color: #6ee08e;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  display: none;
}
.success-msg.show { display: block; }

/* ---------- Admin page ---------- */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 6%; }
.admin-wrap h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  margin-bottom: 8px;
}
.admin-sub { color: var(--muted); margin-bottom: 32px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.admin-stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.admin-stat b {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 4px;
}
.admin-stat span { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
}
.admin-tab.active { background: var(--brand); color: #0a0a0a; border-color: var(--brand); }

.admin-table {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  background: var(--bg-3);
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,134,53,.04); }
.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,134,53,.15);
  color: var(--brand);
}
.tag.yes { background: rgba(110,224,142,.15); color: #6ee08e; }
.tag.no { background: rgba(220,220,220,.1); color: var(--muted); }

.admin-actions { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-actions button {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
}
.admin-actions button:hover { border-color: var(--brand); color: var(--brand); }
.admin-actions button.danger:hover { border-color: #ff4d4d; color: #ff4d4d; }

.login-wrap {
  max-width: 400px;
  margin: 120px auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.login-wrap h1 { font-family: 'Orbitron', sans-serif; margin-bottom: 8px; }
.login-wrap p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.login-wrap input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 14px;
}
.login-wrap .hint { color: var(--muted); font-size: 12px; margin-top: 14px; }

/* Mobile nav tweaks */
@media (max-width: 720px) {
  .nav { padding: 14px 4%; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.cta-btn) { display: none; }
  .countdown-bar { font-size: 12px; }
  .countdown b { font-size: 14px; }
  .hero { padding: 60px 6% 80px; }
  .section { padding: 60px 6%; }
}
