/*
Theme Name: Adam Huber - Luxury Auto Mall
Theme URI: https://adamhubercarsales.com
Author: Adam Huber
Description: Personal-brand site for Adam Huber, luxury car consultant at Luxury Auto Mall in Sioux Falls, SD. Converts YouTube and local search traffic into calls and texts. Hi-fi custom theme (Jost / Manrope / JetBrains Mono, navy + copper).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adam-huber
*/

/* ============================================================
   ADAM HUBER CAR SALES — hi-fi homepage
   Editorial discipline (via Arete DS) · blue + copper palette
   Display: Jost (geometric) · Body: Manrope · Spec: JetBrains Mono
   ============================================================ */


:root {
  /* blues */
  --navy-900: #06152b;
  --navy-800: #0a1f3c;
  --navy-700: #11375d;
  --blue-600: #2f6fb0;
  --blue-500: #5b9bd5;
  --blue-300: #9cc4e8;
  --blue-100: #dcebf8;
  --blue-50:  #eef5fb;

  /* neutrals (cool, blue-tinted) */
  --ink:    #0d1726;
  --ink-2:  #33415a;
  --ink-3:  #61708a;
  --paper:  #ffffff;
  --bone:   #f4f7fb;
  --bone-2: #e8eff7;

  --line:   rgba(13,23,38,0.10);
  --line-2: rgba(13,23,38,0.18);

  /* on-dark */
  --on-navy:     #eaf1f9;
  --on-navy-dim: rgba(234,241,249,0.64);
  --line-d:      rgba(255,255,255,0.14);

  /* accent — copper (tweakable later) */
  --accent:       #b06a35;
  --accent-2:     #98592a;
  --accent-soft:  #f0e3d5;

  /* type */
  --font-display: 'Jost', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.plain::before { display: none; }
.eyebrow.dim { color: var(--blue-500); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.0;
  margin: 0;
}
.h1 { font-size: clamp(44px, 6.6vw, 92px); }
.h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.04; font-size: clamp(32px, 4.4vw, 56px); margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em; font-size: clamp(22px, 2.4vw, 28px); margin: 0; line-height: 1.1; }
.h4 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0; line-height: 1.15; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  font-weight: 400;
}
.muted { color: var(--ink-3); }
.spec {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec-head .row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--on-navy); border-color: var(--line-d); }
.btn-ghost.on-dark:hover { border-color: var(--on-navy); background: rgba(255,255,255,0.06); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-50); transform: translateY(-1px); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* link with arrow */
.tlink {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s var(--ease);
}
.tlink svg { width: 15px; height: 15px; }
.tlink:hover { gap: 11px; color: var(--accent); }
.tlink.on-dark { color: var(--on-navy); }
.tlink.on-dark:hover { color: var(--blue-300); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 5px;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
}
.brand b { font-weight: 600; }
.brand .thin { font-weight: 400; color: var(--ink-3); }
.nav-links { display: flex; gap: 28px; margin-left: 14px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(91,155,213,0.22), transparent 55%),
    radial-gradient(80% 80% at 0% 110%, rgba(17,55,93,0.55), transparent 60%),
    var(--navy-900);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { color: #fff; margin-top: 22px; }
.hero h1 .accent { color: var(--blue-300); }
.hero-lead { color: var(--on-navy-dim); max-width: 42ch; margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* video frame */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-d);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.video-frame image-slot { width: 100%; height: 100%; }
.video-badge {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
  background: rgba(6,21,43,0.6); border: 1px solid var(--line-d);
  padding: 6px 12px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
}
.video-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,0.25); }
.playbtn {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 76px; height: 76px; border-radius: 999px;
  background: rgba(255,255,255,0.94);
  display: grid; place-items: center;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.playbtn::after { content: ""; width: 0; height: 0; margin-left: 5px; border-left: 22px solid var(--navy-800); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video-cap { margin-top: 14px; text-align: center; color: var(--on-navy-dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- trust strip ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 30px 0; text-align: center; position: relative; }
.trust-item + .trust-item::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.trust-item b { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); color: var(--navy-800); display: block; line-height: 1; letter-spacing: -0.01em; }
.trust-item span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 10px; }
.trust-item b .star { color: var(--accent); }

/* ---------- video rail ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.vid-card { cursor: pointer; }
.vid-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bone-2);
}
.vid-thumb image-slot { width: 100%; height: 100%; }
.vid-card .playbtn { width: 48px; height: 48px; }
.vid-card .playbtn::after { border-left: 14px solid var(--navy-800); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.vid-card h4 { margin: 16px 0 0; font-size: 17px; }
.vid-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 6px; letter-spacing: 0.02em; }
.dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; color: #fff;
  background: rgba(6,21,43,0.78); padding: 3px 8px; border-radius: 4px;
}

/* ---------- inventory ---------- */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.car-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column;
}
.car-card:hover { border-color: var(--navy-700); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(10,31,60,0.4); }
.car-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bone-2); }
.car-photo image-slot { width: 100%; height: 100%; }
.car-brand {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--navy-800);
  padding: 6px 11px; border-radius: 4px;
}
.car-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-body .yr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.car-body h3 { margin-top: 2px; }
.car-specs { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.car-specs span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.car-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- about ---------- */
.about { background: var(--navy-900); color: var(--on-navy); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-d); box-shadow: 0 40px 80px -34px rgba(0,0,0,0.7); }
.about-photo image-slot { width: 100%; height: 100%; }
.about h2 { color: #fff; margin-top: 18px; }
.about .lead { color: var(--on-navy-dim); margin-top: 22px; }
.about-sign { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--blue-300); margin-top: 26px; font-style: italic; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.post { cursor: pointer; display: flex; flex-direction: column; }
.post-img { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bone-2); }
.post-img image-slot { width: 100%; height: 100%; }
.post-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 18px; }
.post h3 { margin-top: 10px; font-size: 22px; transition: color 0.2s var(--ease); }
.post:hover h3 { color: var(--accent); }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* ---------- contact band ---------- */
.contact {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(91,155,213,0.2), transparent 55%),
    var(--navy-800);
  color: var(--on-navy);
}
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { color: #fff; margin-top: 16px; max-width: 18ch; }
.contact .phone {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 7vw, 82px); color: #fff; letter-spacing: -0.01em;
  margin-top: 26px; line-height: 1;
}
.contact-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.contact-sub { color: var(--on-navy-dim); margin-top: 22px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: var(--on-navy-dim); padding-block: 56px 40px; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer .brand .thin { color: var(--on-navy-dim); }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-300); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--on-navy-dim); font-size: 15px; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-blurb { color: var(--on-navy-dim); font-size: 15px; line-height: 1.6; margin-top: 18px; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.footer-bottom span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--on-navy); transition: all 0.2s var(--ease); }
.socials a:hover { background: rgba(255,255,255,0.08); border-color: var(--on-navy); }
.socials svg { width: 18px; height: 18px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .vid-grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .vid-grid, .car-grid, .blog-grid, .trust-inner, .footer-top { grid-template-columns: 1fr; }
  .trust-item + .trust-item::before { display: none; }
  .trust-item { border-top: 1px solid var(--line); }
  .nav-phone { display: none; }
}


/* ============================================================
   WordPress content + UI (added for theme conversion)
   ============================================================ */
.post-content { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.post-content > * + * { margin-top: 20px; }
.post-content h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-top: 40px; }
.post-content h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); margin-top: 32px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-content ul, .post-content ol { padding-left: 22px; }
.post-content li + li { margin-top: 8px; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--ink-3); font-style: italic; }

/* Pagination — scoped + forced visible so it does not inherit the header .nav-links hide rule */
.pagination .nav-links { display: flex !important; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.pagination a, .pagination .current, .pagination .dots { font-family: var(--font-mono); font-size: 13px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.pagination a:hover { border-color: var(--navy-700); color: var(--ink); }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Accessibility helper */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }

/* Visible keyboard focus (prototype relied on browser defaults) */
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 2px; border-radius: 4px; }

/* ---- Recently Sold cards ---- */
.car-photo { overflow: hidden; }
.sold-badge { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.28); }

/* ---- My Picks photo slider (framework; active when a card has >1 image) ---- */
.car-slider { position: absolute; inset: 0; z-index: 0; }
.car-slides { display: flex; height: 100%; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-slides::-webkit-scrollbar { display: none; }
.car-slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slide-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.slide-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.55); box-shadow: 0 1px 3px rgba(0,0,0,0.4); cursor: pointer; transition: width .2s, background .2s; }
.slide-dots span.on { background: #fff; width: 18px; }
