/* ============================================================
   Shane Rampy's Autos — Master Stylesheet
   Single source of truth. Loaded by every page.
   ============================================================ */

:root {
  --black: #0A0A0A;
  --char: #131313;
  --char-2: #1B1B1B;
  --line: #2A2A2A;
  --line-2: #3A3A3A;
  --bone: #F2EDE3;
  --bone-dim: #B9B2A4;
  --gold: #C9A961;
  --gold-2: #A78B47;
  --gold-soft: rgba(201, 169, 97, 0.15);
  --text: #ECE7DA;
  --text-dim: #8C8576;
  --error: #C5594B;
  --success: #6FA77F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--black); color: var(--text);
  font-weight: 300; letter-spacing: 0.01em; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif { font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 38px; height: 38px; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; letter-spacing: 0.04em;
}
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; letter-spacing: 0.03em; color: var(--text); }
.brand-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: none; align-items: center; gap: 36px; }
@media (min-width: 980px) { .nav-links { display: flex; } }
.nav-link {
  color: var(--bone-dim); font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  transition: color 0.2s ease; padding: 8px 0; position: relative;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--gold);
}
.nav-cta {
  padding: 10px 22px; border: 1px solid var(--gold); color: var(--gold);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500; transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  background: transparent; border: none; cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--bone); transition: all 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: var(--black); border-top: 1px solid var(--line);
  padding: 14px 28px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .nav-cta { margin-top: 14px; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-compact {
  min-height: auto; padding: 160px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 169, 97, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--black) 0%, var(--char) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 920px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.02em;
  color: var(--bone); margin-bottom: 28px;
}
h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65;
  color: var(--bone-dim); max-width: 620px; font-weight: 300;
  margin-bottom: 48px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px; background: var(--gold); color: var(--black);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.25s ease; font-family: inherit;
}
.btn-gold:hover { background: var(--bone); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 169, 97, 0.18); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; background: transparent; color: var(--bone);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500; border: 1px solid var(--line-2);
  transition: all 0.25s ease; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 12px 22px; font-size: 11px; }

/* ============================================================
   STATS
   ============================================================ */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--line);
}
.stat { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; padding-right: 0; padding-left: 24px; }
.stat:nth-child(2) { padding-left: 24px; padding-right: 24px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 40px);
  color: var(--gold); font-weight: 500; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-compact { padding: 70px 0; }
.section-dark { background: var(--black); }
.section-char { background: var(--char); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 26px;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.8vw, 54px); font-weight: 300;
  line-height: 1.08; letter-spacing: -0.015em; color: var(--bone);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub {
  font-size: 17px; line-height: 1.7; color: var(--bone-dim);
  max-width: 620px; font-weight: 300;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 880px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--char); padding: 50px 40px; transition: background 0.3s ease; }
.pillar:hover { background: var(--char-2); }
.pillar-num {
  font-family: 'Cormorant Garamond', serif; font-size: 14px;
  color: var(--gold); letter-spacing: 0.3em; margin-bottom: 28px;
}
.pillar-title {
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
  color: var(--bone); font-weight: 400; margin-bottom: 16px; line-height: 1.2;
}
.pillar-body {
  color: var(--bone-dim); font-size: 15px; line-height: 1.7; font-weight: 300;
}

/* ============================================================
   TABS (Services page)
   ============================================================ */
.tabs-container { border: 1px solid var(--line); background: var(--char); }
.tabs {
  display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
.tab {
  padding: 26px 24px; cursor: pointer; text-align: center;
  border-right: 1px solid var(--line); position: relative;
  transition: background 0.25s ease;
}
.tab:last-child { border-right: none; }
@media (max-width: 639px) {
  .tab { border-right: none; border-bottom: 1px solid var(--line); }
  .tab:last-child { border-bottom: none; }
}
.tab:hover { background: var(--char-2); }
.tab.active::after {
  content: ''; position: absolute; left: 50%; bottom: -1px;
  width: 60px; height: 2px; background: var(--gold);
  transform: translateX(-50%);
}
.tab-num {
  font-family: 'Cormorant Garamond', serif; color: var(--gold);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 8px;
}
.tab-title {
  font-family: 'Cormorant Garamond', serif; color: var(--bone);
  font-size: 21px; font-weight: 400; margin-bottom: 4px;
}
.tab.active .tab-title { color: var(--gold); }
.tab-desc { font-size: 12px; color: var(--text-dim); letter-spacing: 0.05em; }

.form-panel { display: none; padding: 50px 40px; animation: fadeUp 0.4s ease; }
@media (max-width: 639px) { .form-panel { padding: 36px 24px; } }
.form-panel.active { display: block; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   FORMS
   ============================================================ */
.form-intro {
  border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 36px;
}
.form-intro-title {
  font-family: 'Cormorant Garamond', serif; font-size: 30px;
  color: var(--bone); font-weight: 400; margin-bottom: 12px; line-height: 1.15;
}
.form-intro-sub { color: var(--bone-dim); font-size: 15px; font-weight: 300; line-height: 1.65; max-width: 580px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.full { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; }
.field-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin-bottom: 10px;
}
.field-label .req { color: var(--gold); }
input, select, textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  padding: 12px 0; color: var(--bone); font-size: 15px; font-family: inherit;
  font-weight: 300; transition: border-color 0.2s ease;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  border-radius: 0; width: 100%;
}
textarea { min-height: 80px; resize: vertical; }
select { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A961' stroke-width='1.5'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
input::placeholder, textarea::placeholder { color: var(--text-dim); font-weight: 300; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }

.form-subsection {
  grid-column: 1 / -1; padding-top: 16px;
  font-family: 'Cormorant Garamond', serif; font-size: 16px;
  color: var(--gold); letter-spacing: 0.24em; text-transform: uppercase;
}

.form-submit-row {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px; margin-top: 14px; border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .form-submit-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-disclaimer { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; max-width: 420px; line-height: 1.6; }

.form-success { display: none; text-align: center; padding: 60px 20px; }
.form-success.show { display: block; animation: fadeUp 0.4s ease; }
.success-mark {
  width: 64px; height: 64px; border: 1px solid var(--gold);
  border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; margin: 0 auto 28px;
  color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 36px;
}
.success-title {
  font-family: 'Cormorant Garamond', serif; font-size: 32px;
  color: var(--bone); font-weight: 400; margin-bottom: 14px;
}
.success-body { color: var(--bone-dim); font-size: 15px; max-width: 460px; margin: 0 auto 36px; line-height: 1.7; }

/* ============================================================
   VEHICLE GRID
   ============================================================ */
.vehicle-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }

.vehicle-card {
  background: var(--char); border: 1px solid var(--line);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.vehicle-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }

.vehicle-image {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--char-2) 0%, var(--char) 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
}
.vehicle-image .placeholder {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  color: var(--text-dim); font-style: italic; text-align: center; padding: 20px;
  letter-spacing: 0.02em;
}
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 6px 14px; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600; border-radius: 0;
}
.vehicle-badge.sold { background: var(--gold); color: var(--black); }
.vehicle-badge.available { background: var(--success); color: var(--black); }
.vehicle-badge.pending { background: var(--bone-dim); color: var(--black); }

.vehicle-body { padding: 28px 26px; }
.vehicle-year {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 10px;
}
.vehicle-name {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  color: var(--bone); font-weight: 400; line-height: 1.2;
  margin-bottom: 6px;
}
.vehicle-trim { color: var(--bone-dim); font-size: 13px; margin-bottom: 22px; font-weight: 300; }

.vehicle-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.spec { display: flex; flex-direction: column; }
.spec-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.spec-value { color: var(--bone); font-size: 14px; font-weight: 400; }

.vehicle-price {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: 'Cormorant Garamond', serif; font-size: 26px;
  color: var(--gold); font-weight: 500;
}

/* ============================================================
   CTA BAR
   ============================================================ */
.cta-bar {
  background: var(--char); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 80px 0;
}
.cta-inner {
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
}
@media (min-width: 880px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.4vw, 40px);
  color: var(--bone); font-weight: 300; line-height: 1.2; max-width: 620px;
}
.cta-title em { font-style: italic; color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-title {
  font-family: 'Cormorant Garamond', serif; font-size: 12px;
  color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-text { color: var(--bone-dim); font-size: 14px; line-height: 1.8; font-weight: 300; }
.footer-link { display: block; color: var(--bone-dim); padding: 6px 0; font-size: 14px; transition: color 0.2s ease; }
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ============================================================
   UTILITY
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bone); color: var(--black); padding: 14px 28px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; opacity: 0; transition: all 0.3s ease;
  z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.gold-line { width: 56px; height: 1px; background: var(--gold); margin: 24px 0; }

.text-gold { color: var(--gold); }
.text-bone { color: var(--bone); }

/* Empty state for inventory */
.empty-state {
  text-align: center; padding: 80px 30px; background: var(--char);
  border: 1px solid var(--line);
}
.empty-state-title {
  font-family: 'Cormorant Garamond', serif; font-size: 30px;
  color: var(--bone); font-weight: 400; margin-bottom: 14px;
}
.empty-state-body { color: var(--bone-dim); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }

/* About page specifics */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 50px; align-items: start;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; } }
.about-body p {
  color: var(--bone-dim); font-size: 16px; line-height: 1.8; margin-bottom: 20px;
}
.about-body p:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif; font-size: 64px;
  color: var(--gold); float: left; line-height: 0.9; margin: 8px 12px 0 0;
}
.about-credentials { background: var(--char); padding: 40px 36px; border: 1px solid var(--line); }
.credential { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.credential:last-child { border-bottom: none; padding-bottom: 0; }
.credential:first-child { padding-top: 0; }
.cred-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); }
.cred-value { font-family: 'Cormorant Garamond', serif; color: var(--bone); font-size: 18px; }

/* Contact specifics */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.contact-block { padding: 36px; background: var(--char); border: 1px solid var(--line); }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item:first-child { padding-top: 0; }
.contact-item-label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 500; }
.contact-item-value { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--bone); font-weight: 400; }
.contact-item-value a { color: inherit; transition: color 0.2s ease; }
.contact-item-value a:hover { color: var(--gold); }

/* Inventory filter row */
.inventory-toolbar {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 0; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .inventory-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.inventory-count { font-size: 12px; color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.inventory-tabs { display: flex; gap: 0; border: 1px solid var(--line); }
.inv-tab {
  padding: 12px 22px; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--bone-dim); cursor: pointer;
  background: transparent; border: none; border-right: 1px solid var(--line);
  transition: all 0.2s ease; font-family: inherit;
}
.inv-tab:last-child { border-right: none; }
.inv-tab.active { background: var(--gold); color: var(--black); }
.inv-tab:hover:not(.active) { background: var(--char); color: var(--gold); }
