/* ============================================================
   The Oldsmobile FAQ — Modern Stylesheet
   Color scheme matched to outrightolds.com screenshot
   Warm cream content, deep burgundy header, dark red accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Code+Pro:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:             #f0ead8;      /* Warm cream — main content background */
  --bg-card:        #e8e0c8;      /* Slightly darker cream for cards */
  --bg-surface:     #ddd6c0;      /* Raised surface / table headers */
  --header-top:     #3d3535;      /* Top bar dark charcoal */
  --header-bg:      #8b1a10;      /* Deep burgundy header band */
  --header-nav:     #f2f0ec;      /* Light nav bar below header */
  --border:         #c8bfa8;      /* Warm tan border */
  --border-accent:  #8b1a10;      /* Burgundy accent border */
  --text:           #2a1510;      /* Very dark brown body text */
  --text-muted:     #5c3a30;      /* Mid-brown secondary text */
  --text-dim:       #8a6a60;      /* Dimmed / metadata */
  --accent:         #8b1a10;      /* Deep burgundy — primary accent */
  --accent-light:   #b02010;      /* Brighter red for hover */
  --gold:           #c9a020;      /* Gold — logo color of outrightolds */
  --link:           #8b1a10;      /* Burgundy links */
  --link-visited:   #6b3020;      /* Darker visited */
  --link-hover:     #c02010;      /* Brighter red on hover */
  --sidebar:        #4a3830;      /* Dark warm brown flanking sides — from screenshot */
  --font-display:   'Bebas Neue', 'Impact', sans-serif;
  --font-body:      'Libre Baskerville', Georgia, serif;
  --font-mono:      'Source Code Pro', 'Courier New', monospace;
  --radius:         3px;
  --max-width:      900px;
  --transition:     0.18s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--sidebar);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Page Wrapper ── */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.35);
}

/* ── Page Title Banner ── */
.page-title-banner {
  border-left: 5px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page-title-banner h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.1;
}

.page-title-banner .subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.page-title-banner .subtitle a {
  color: var(--text-muted);
}

.page-title-banner .subtitle a:hover {
  color: var(--link-hover);
}

/* ── Homepage Hero ── */
.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--header-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.hero img {
  max-height: 120px;
  width: auto;
  opacity: 0.95;
}

.hero-center {
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  letter-spacing: 0.12em;
  color: #f5f0e8;
  line-height: 1;
}

.hero-title .faq-word {
  color: var(--gold);
}

.hero-versions {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #d0c8b8;
  font-family: var(--font-mono);
  line-height: 1.8;
}

/* ── Horizontal Rule ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

h1 { font-size: 2.4rem; color: var(--accent); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.9rem; color: var(--accent); margin: 2rem 0 0.8rem; }
h3 { font-size: 1.4rem; color: var(--text-muted); margin: 1.5rem 0 0.6rem; }
h4 { font-size: 1.15rem; color: var(--text); margin: 1.2rem 0 0.5rem; }
h5 { font-size: 0.95rem; color: var(--text-dim); margin: 1rem 0 0.4rem; }

h2 a, h3 a, h4 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { color: var(--link-hover); }

/* ── Paragraphs ── */
p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* ── Links ── */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--accent-light);
}

a:visited {
  color: var(--link-visited);
}

/* ── Lists ── */
ul, ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text);
}

li { margin-bottom: 0.35rem; }

dl { margin: 0.75rem 0 1rem; }
dt { font-weight: bold; color: var(--accent); margin-top: 0.75rem; }
dd { margin-left: 1.5rem; color: var(--text); }

/* ── Data Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

th {
  background: var(--header-bg);
  color: #f0e8d8;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 2px solid var(--border-accent);
}

td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(139,26,16,0.05); }

/* ── Note / Alert Box ── */
.note-box {
  background: #f5e8e0;
  border: 1px solid #d0a090;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

img.float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 280px;
}

img.float-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 280px;
}

/* ── Named Anchors ── */
a[name] {
  display: block;
  position: relative;
  top: -20px;
  visibility: hidden;
}

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  border-top: 3px solid var(--header-bg);
  background: var(--header-top);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #c0b0a8;
  font-family: var(--font-mono);
}

.site-footer a { color: #c0b0a8; }
.site-footer a:hover { color: var(--gold); }

/* ── Utility ── */
.clearfix::after { content: ''; display: table; clear: both; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero img { max-height: 80px; margin: 0 auto; }
  .hero-title { font-size: 2.5rem; }
  img.float-right, img.float-left { float: none; margin: 0 0 1rem 0; max-width: 100%; }
  .page-title-banner h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}


/* ── Scroll To Top Button ── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--header-bg);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 999;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  background: var(--gold);
  color: var(--header-bg);
  transform: translateY(-3px);
}
