/* Silverback Rental — Static site styles */
:root {
  --primary: #1a1a1a;
  --primary-hover: #000;
  --accent: #6c7684;
  --accent-hover: #4a525c;
  --accent-light: #9ca3af;
  --accent-grad: linear-gradient(135deg, #b8bec6 0%, #8a929c 45%, #4a525c 100%);
  --accent-grad-hover: linear-gradient(135deg, #c6ccd2 0%, #9aa2ac 45%, #5a616b 100%);
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --bg-dark: #1a1a1a;
  --text: #222;
  --text-muted: #555;
  --text-inverse: #fff;
  --border: #e4e6eb;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --maxw: 1180px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

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

/* Top bar */
.top-bar {
  background: var(--bg-dark);
  color: #e5e3dd;
  font-size: .85rem;
  padding: 10px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar a { color: #e5e3dd; text-decoration: none; }
.top-bar a:hover { color: var(--accent); }
.top-bar strong { color: var(--accent); }
.top-bar .phone-line { font-size: 1.15rem; font-weight: 700; letter-spacing: .3px; }
.top-bar .phone-line a { color: #fff; }
.top-bar .phone-line a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .top-bar .container { justify-content: center; }
  .top-bar .phone-line { font-size: 1.25rem; }
}

/* Navigation */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.25rem; font-family: var(--font-head); }
.logo svg { width: 40px; height: 40px; }
.logo img { height: 52px; width: auto; display: block; border-radius: 4px; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  background: var(--accent-grad);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  border: 1px solid #6c7684;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px rgba(0,0,0,.12);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.nav-cta:hover { background: var(--accent-grad-hover); color: #fff !important; filter: brightness(1.04); transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(26,26,26,.75), rgba(26,26,26,.55)), url('../images/hero-trailer.jpg') center/cover no-repeat;
  color: var(--text-inverse);
  padding: 110px 0 130px;
  text-align: center;
  position: relative;
}
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero p.lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto 30px; color: #f0ede4; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-logo { display: block; margin: 0 auto 28px; max-width: 300px; width: 72%; height: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.55)); border-radius: 10px; }
@media (max-width: 600px) { .hero-logo { max-width: 220px; } }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s, background .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: 1px solid #5a616b;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 2px 8px rgba(0,0,0,.18);
}
.btn-primary:hover { background: var(--accent-grad-hover); color: #fff; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 14px rgba(0,0,0,.22); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* Trust strip */
.trust-strip {
  background: var(--bg-soft);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.trust-item svg { width: 36px; height: 36px; color: var(--accent); margin: 0 auto 8px; display: block; }
.trust-item strong { display: block; color: var(--primary); margin-bottom: 4px; }
.trust-item span { color: var(--text-muted); font-size: .9rem; }

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; font-size: .85rem; text-transform: uppercase; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-grid-single { max-width: 420px; margin: 0 auto; grid-template-columns: 1fr; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.service-card-img { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); flex: 1; font-size: .95rem; }
.service-card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; }
.service-card-meta .price { color: var(--accent); font-weight: 700; }
.service-card-meta .link { color: var(--primary); font-size: .9rem; font-weight: 600; }

/* Detail page layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; gap: 30px; } }
.detail-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--bg-soft); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-specs {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row strong { color: var(--primary); }
.spec-row span { color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: .9rem; color: var(--text-muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #bbb; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item h3 { margin-bottom: 12px; color: var(--primary); font-family: var(--font-body); font-size: 1.1rem; }
.faq-item p { color: var(--text-muted); margin-bottom: 0; }

/* Pricing */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricing-table th, .pricing-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table thead { background: var(--bg-dark); color: #fff; }
.pricing-table thead th { font-family: var(--font-head); font-size: 1.05rem; }
.pricing-table tbody tr:hover { background: var(--bg-soft); }
.pricing-table td:last-child, .pricing-table th:last-child { text-align: right; color: var(--accent); font-weight: 700; }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-section .contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-section .contact-intro h2 { margin-bottom: 14px; }
.contact-section .contact-intro p { color: var(--text-muted); font-size: 1.05rem; }
.contact-section .contact-info-block { margin-top: 28px; }
.contact-section .contact-info-block h3 { margin-bottom: 8px; color: var(--primary); font-family: var(--font-head); font-size: 1.35rem; }
.contact-section .contact-info-block p { margin-bottom: 4px; color: var(--text); }
.contact-section .contact-info-block a { color: var(--primary); text-decoration: none; font-weight: 600; }
.contact-section .contact-info-block a:hover { color: var(--accent); }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.success { display: block; background: #edf7ee; color: #1e6b28; border: 1px solid #bfe1c3; }
.form-status.error { display: block; background: #fdecec; color: #8a1e1e; border: 1px solid #f0c6c6; }
.contact-info strong { display: block; color: var(--primary); margin-bottom: 4px; }
.contact-info a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-info p { margin-bottom: 22px; font-size: 1.05rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: .95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,118,132,.22);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #ccc; font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

/* Footer */
footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 60px 0 24px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #ccc; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { color: #999; max-width: 320px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #888; font-size: .85rem; }
.footer-bottom a { color: #888; }

/* Booking flow */
.booking-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.booking-card h3 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 14px; color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.quote-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.quote-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .98rem; }
.quote-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.quote-table tr:last-child td { border-bottom: none; padding-top: 14px; font-weight: 700; color: var(--primary); }
.quote-table tr:last-child td:last-child { color: var(--accent); }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; margin: 12px 0; }
.alert-info { background: #eef2f7; color: #2a3540; border: 1px solid #d6dde6; }
.alert-success { background: #edf7ee; color: #1e6b28; border: 1px solid #bfe1c3; }
.alert-error { background: #fdecec; color: #8a1e1e; border: 1px solid #f0c6c6; }
.alert-warn { background: #fdf6e3; color: #6b4f1e; border: 1px solid #ead9a8; }
.info-box { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 18px 20px; border-radius: 6px; margin-top: 28px; }
.info-box h4 { font-family: var(--font-body); margin-bottom: 8px; font-size: 1rem; color: var(--primary); }
.info-box ol, .info-box ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.info-box li { margin-bottom: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--bg); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
.admin-table thead { background: var(--bg-dark); color: #fff; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.admin-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.admin-filters .form-group { margin-bottom: 0; min-width: 140px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.status-pending_payment { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-completed { background: #cfe2ff; color: #084298; }
.status-no_show { background: #e2e3e5; color: #41464b; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* STRIPE_TEST_MODE indicator. Visible only when /api/config returns
   {testMode:true} — toggled by site.js. Yellow chrome borrowed from the Stripe
   test-mode banner so testers see it before entering data. */
.test-mode-banner {
  background: #fef3c7;
  color: #78350f;
  border-top: 2px solid #f59e0b;
  border-bottom: 2px solid #f59e0b;
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.test-mode-banner strong { letter-spacing: 0.05em; }
.test-mode-banner code {
  background: rgba(120, 53, 15, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.test-mode-banner a { color: inherit; text-decoration: underline; }
