/*
Theme Name: Salient Autos
Theme URI: https://mindanao.autos
Description: Quick lube, detailing and collision care booking for Mindanao drivers and fleets. — custom vertical theme for the Mindanao platform suite.
Author: Market Hive Engineering
Version: 1.0.0
Text Domain: salient-autos
*/

:root {
  --accent: #ea580c;
  --accent-2: #7c2d12;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --wa: #25d366;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand em { color: var(--accent); font-style: normal; }
.main-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--accent-2) 60%, var(--accent) 100%); color: #fff; padding: 72px 0 84px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; max-width: 720px; }
.hero p { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; font-weight: 700; padding: 13px 22px; border-radius: 999px; text-decoration: none !important; border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.55); color: #fff !important; }
.btn-wa { background: var(--wa); }
.btn-dark { background: var(--ink); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.section .sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 10px; }

.tile { text-align: center; padding: 26px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-weight: 700; display: block; color: var(--ink) !important; }
.tile:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(2,6,23,.08); text-decoration: none; }
.tile .n { color: var(--muted); font-weight: 500; font-size: 0.85rem; }

/* Pricing / service matrix */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--bg); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-table td.price { font-weight: 800; white-space: nowrap; }
.price-table .btn-sm { padding: 8px 14px; font-size: 0.88rem; }

/* Badges */
.badge-verified { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.badge-demo { display: inline-flex; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* Listings / properties */
.listing-card { display: flex; flex-direction: column; gap: 10px; }
.listing-card h3 a { color: var(--ink); }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.specs { display: flex; gap: 14px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.price-big { font-size: 1.3rem; font-weight: 800; color: var(--accent); }

/* Search bar */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); box-shadow: 0 12px 34px rgba(2,6,23,.10); }
.searchbar input[type=search], .searchbar select { flex: 1 1 180px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; background: var(--bg); }

/* Content pages */
.page-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 820px; margin: 40px auto; }
.page-content h1 { margin-bottom: 14px; letter-spacing: -0.01em; }
.entry-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.page-content p { margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 44px 0 96px; margin-top: 56px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .07em; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.82rem; color: #94a3b8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Sticky mobile action bar (Sprint-1 mandate) */
.mi-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,23,42,.96); backdrop-filter: blur(8px); }
.mi-sticky a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 8px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; color: #fff !important; text-decoration: none !important; }
.mi-sticky .act-call { background: var(--accent); }
.mi-sticky .act-wa { background: var(--wa); }
@media (max-width: 760px) { .mi-sticky { display: grid; } .hero { padding: 52px 0 64px; } }

@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
