/* ═══════════════════════════════════════
   HEMET MOBILE MECHANIC — GLOBAL STYLES
   shared.css
═══════════════════════════════════════ */

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

:root {
  /* Brand color system: safety yellow accent on deep navy */
  --yellow: #FFC400;       /* primary accent — safety yellow */
  --yellow-hot: #FFD84D;   /* hover */
  --yellow-deep: #E0A800;  /* deep yellow for gradients */

  /* Dark industrial surface system */
  --navy: #0A1929;         /* primary background */
  --navy-soft: #0F2438;    /* alternating section bg */
  --panel: #122C44;        /* card background */
  --border: rgba(255,255,255,0.09);  /* subtle border for cards / sections */
  --white: #F2F6FA;        /* primary text color */
  --grey: #8FA3B5;         /* secondary text */

  /* Deepest dark for contrast bands (footer, CTAs) */
  --ink: #050D16;
  --ink-soft: #0B1826;

  --font-head: 'Bebas Neue', sans-serif;
  --font-sub: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HAZARD STRIPE ── industrial accent divider */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}

/* ── GLASS PACK ── dark frosted glass */
.glass {
  background: rgba(15, 36, 56, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.glass-strong {
  background: rgba(10, 25, 41, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.glass-yellow {
  background: rgba(15, 36, 56, 0.75);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 196, 0, 0.22);
  box-shadow: 0 4px 24px rgba(255, 196, 0, 0.06);
}

/* ── NAV ── dark glass */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(10, 25, 41, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 13px 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--white); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(242,246,250,0.62);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 1px solid var(--yellow); padding-bottom: 2px; }
.nav-cta {
  color: var(--ink) !important;
  background: var(--yellow) !important;
  padding: 10px 28px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--yellow-hot) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(10,25,41,0.98); z-index: 199;
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 2.8rem;
  letter-spacing: 0.04em; text-decoration: none;
  color: var(--white); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--yellow); }


/* ── NAV DROPDOWN ── */
.nav-drop { position: relative; }
.nav-drop > a::after { content: ' \25BE'; font-size: 0.75em; }
.nav-drop::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 18px; }
.drop-menu {
  position: absolute; top: calc(100% + 16px); left: -20px; min-width: 250px;
  background: rgba(10, 25, 41, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--yellow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  list-style: none; padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu li { display: block; }
.drop-menu a {
  display: block; padding: 10px 22px;
  border-bottom: none !important;
  font-size: 0.8rem;
}
.drop-menu a:hover { background: rgba(255, 196, 0, 0.07); color: var(--yellow) !important; }
.drop-all { border-top: 1px solid var(--border); margin-top: 8px; }
.drop-all a { color: var(--yellow) !important; padding-top: 14px; }
@media (max-width: 768px) { .drop-menu { display: none; } }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 160px 56px 80px;
  background: var(--navy-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(to left, rgba(255,196,0,0.06), transparent);
}
.page-tag {
  font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--yellow); }
.page-h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.9; letter-spacing: 0.02em;
  max-width: 800px;
}
.page-h1 span { color: var(--yellow); }
.page-sub {
  font-size: 1.05rem; color: var(--grey);
  max-width: 560px; line-height: 1.75; margin-top: 24px;
}

/* ── SECTION SHARED ── */
section { padding: 96px 56px; }
.section-tag {
  font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--yellow); }
h2 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.93; letter-spacing: 0.02em; margin-bottom: 20px;
}
h3 {
  font-family: var(--font-sub); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: var(--yellow);
  padding: 15px 44px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
  display: inline-block; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,196,0,0.18);
}
.btn-primary:hover { background: var(--yellow-hot); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,196,0,0.25); }
.btn-ghost {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: rgba(242,246,250,0.7);
  border: 1px solid rgba(242,246,250,0.22);
  padding: 15px 44px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: color 0.2s, border-color 0.2s, transform 0.15s, background 0.2s;
  display: inline-block; background: transparent;
}
.btn-ghost:hover { color: var(--yellow); border-color: var(--yellow); background: rgba(255,196,0,0.05); transform: translateY(-2px); }

/* ── TICKER ── */
.ticker-wrap { background: var(--yellow); overflow: hidden; padding: 11px 0; }
.ticker-track { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; }
.ticker-item {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); padding: 0 40px;
  display: flex; align-items: center; gap: 14px;
}
.ticker-item::after { content: '◆'; font-size: 0.45rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── CTA BAND ── */
.cta-band { background: var(--yellow); padding: 80px 56px; text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(5,13,22,0.75); font-size: 1.05rem; margin: 14px 0 36px; }
.btn-dark {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--yellow);
  background: var(--ink);
  padding: 17px 52px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  display: inline-block; transition: background 0.2s;
}
.btn-dark:hover { background: #0f1e30; }

/* ── FOOTER ── deepest dark */
footer {
  background: var(--ink);
  padding: 60px 56px 28px;
  border-top: 1px solid var(--ink-soft);
  color: #E8EEF4;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { font-size: 0.88rem; color: rgba(232,238,244,0.55); line-height: 1.7; margin: 14px 0 20px; max-width: 260px; }
.footer-email { font-family: var(--font-sub); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; color: var(--yellow); text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col-title { font-family: var(--font-sub); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(232,238,244,0.45); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(232,238,244,0.65); font-size: 0.86rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(232,238,244,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.78rem; color: rgba(232,238,244,0.4); }

/* ── FADE UP ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s, transform 0.65s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── CONTACT FORM ── dark theme */
.cf { display: flex; flex-direction: column; gap: 14px; }
.cf input, .cf textarea, .cf select {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--white); padding: 13px 18px;
  font-family: var(--font-body); font-size: 0.92rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.cf input:focus, .cf textarea:focus, .cf select:focus { border-color: var(--yellow); }
.cf input::placeholder, .cf textarea::placeholder { color: rgba(242,246,250,0.35); }
.cf select { color: rgba(242,246,250,0.7); appearance: none; }
.cf textarea { resize: vertical; min-height: 130px; }
.cf-btn {
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 40px; border: none; cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s; align-self: flex-start;
  box-shadow: 0 4px 16px rgba(255,196,0,0.18);
}
.cf-btn:hover { background: var(--yellow-hot); transform: translateY(-2px); }

/* ── SERVICE PAGE SHARED ── pricing cards + includes lists */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.price-card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 40px 32px; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.price-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--yellow); transition: width 0.4s; }
.price-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255,196,0,0.08); }
.price-card:hover::after { width: 100%; }
.price-card.featured { border-color: rgba(255,196,0,0.4); }
.price-vehicle { font-family: var(--font-sub); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.price-n { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--yellow); margin-bottom: 6px; }
.price-unit { font-family: var(--font-sub); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 22px; }
.price-includes { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.price-includes li { font-size: 0.9rem; color: rgba(242,246,250,0.75); padding-left: 22px; position: relative; }
.price-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq-q { font-family: var(--font-sub); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.faq-a { font-size: 0.95rem; color: var(--grey); line-height: 1.75; max-width: 680px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 24px; }
  .page-header { padding: 120px 24px 60px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
