/* ── WalkPunch Brand CSS — Dark/Industrial Theme ───────────────────────────── */

:root {
  --primary-color: #0d0d0d;
  --accent-color: #f5c518;
  --accent-hover: #d4a800;
  --bg-dark: #111111;
  --bg-card: #1a1a1a;
  --bg-alt: #161616;
  --text-main: #e8e8e8;
  --text-muted-custom: #888;
  --border-color: #2a2a2a;
  --gold: #f5c518;
  --gold-dark: #c9a200;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
html, body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-accent {
  background: var(--gold);
  color: #111 !important;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #111 !important;
}

.btn-accent:focus {
  box-shadow: 0 0 0 0.25rem rgba(245, 197, 24, 0.35);
}

.btn-outline-light:hover {
  color: #111 !important;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  background: #000 !important;
  border-bottom: 2px solid var(--gold);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar .nav-link:hover {
  color: var(--gold) !important;
}

.navbar-brand span {
  display: none; /* logo image does the branding */
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

section {
  border-bottom: 1px solid var(--border-color);
}

/* Section alternating backgrounds */
.section-dark  { background: var(--bg-dark) !important; }
.section-darker { background: var(--bg-alt) !important; }

/* Override inline background styles set in template */
section[style*="#fff"], section[style*="white"] {
  background: var(--bg-dark) !important;
}

section[style*="#f3f5fa"] {
  background: var(--bg-alt) !important;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero-section {
  background: #000 !important;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(245, 197, 24, 0.025) 12px,
    rgba(245, 197, 24, 0.025) 14px
  );
  pointer-events: none;
}

.hero-section h1 {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(245, 197, 24, 0.3);
}

.hero-tagline {
  font-size: 1.25rem;
  color: #bbb;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Section headings ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  color: var(--text-main);
}

.card-body h4, .card-body h5 {
  color: #fff;
}

.card-featured {
  border: 2px solid var(--gold) !important;
}

/* ── Step icons (How It Works) ─────────────────────────────────────────────── */
.step-number {
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: #111;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ── Punch list preview ────────────────────────────────────────────────────── */
.punch-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.punch-preview-header {
  background: #000;
  border-bottom: 2px solid var(--gold);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.punch-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.punch-item:last-child {
  border-bottom: none;
}

.punch-item .item-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.punch-item .item-meta {
  font-size: 0.78rem;
  color: var(--text-muted-custom);
}

.punch-item .item-seq {
  min-width: 28px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  padding-top: 3px;
}

/* ── Trade badges ──────────────────────────────────────────────────────────── */
.badge-trade {
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-plumbing   { background: #1a3a5c; color: #7ec8f5; }
.badge-electrical { background: #3a3010; color: #f5c518; }
.badge-tile       { background: #1a3a2a; color: #6debb8; }
.badge-painting   { background: #3a1a20; color: #f08090; }
.badge-hvac       { background: #1a2a3a; color: #7ab8f5; }
.badge-carpentry  { background: #2a1a0a; color: #d4956b; }
.badge-drywall    { background: #2a2a2a; color: #bbb; }
.badge-general    { background: #222; color: #999; }

/* ── Priority badges ───────────────────────────────────────────────────────── */
.priority-high     { background: #7f1d1d !important; color: #fca5a5 !important; }
.priority-medium   { background: #78350f !important; color: #fcd34d !important; }
.priority-low      { background: #1c3a1c !important; color: #86efac !important; }
.priority-critical { background: #f5c518 !important; color: #111 !important; font-weight: 800 !important; }

/* ── Accordion ─────────────────────────────────────────────────────────────── */
.accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
}

.accordion-button {
  background: var(--bg-card) !important;
  color: #fff !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: #1f1a00 !important;
  color: var(--gold) !important;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(10deg);
}

.accordion-body {
  background: var(--bg-card) !important;
  color: var(--text-muted-custom);
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing-popular-badge {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25em 0.75em;
  border-radius: 50px;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
}

.price-amount .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted-custom);
}

/* ── Benefits list ─────────────────────────────────────────────────────────── */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.benefit-item i {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: #000 !important;
  border-top: 2px solid var(--gold) !important;
  color: #999;
}

footer h5, footer h6 {
  color: var(--gold) !important;
}

.footer-link {
  color: #888;
  text-decoration: none;
  line-height: 2;
  display: block;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--gold);
}

/* ── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  background: #0a0800 !important;
  border-top: 1px solid #2a2200;
}

.cta-section h2 {
  color: #fff;
}

/* ── List group override ───────────────────────────────────────────────────── */
.list-group-item {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main);
}

/* ── Text overrides ────────────────────────────────────────────────────────── */
.text-muted {
  color: #888 !important;
}

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--gold);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
}
