/*
Theme Name: Rick at Overturf
Theme URI: https://rickatoverturf.com
Author: Rick G.
Description: Responsive personal KIA buyer guides — form-first, no raw phone.
Version: 1.3.0
Text Domain: rickatoverturf
*/

:root {
  --line: #1a1a1a;
  --muted: #555;
  --fill: #f3f3f3;
  --bg: #ececec;
  --card: #fff;
  --max: 420px; /* phone-first; widens on larger screens */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--line);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--line); }
a:hover { text-decoration-thickness: 2px; }

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--card);
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}

.site-brand {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--line);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  font-size: 11px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--line); font-weight: 600; }
.site-nav a.nav-book { color: var(--line); font-weight: 700; }

.site-main { padding: 0; }

.section {
  padding: 22px 16px;
  border-bottom: 1px solid #ddd;
}

.section-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}

.hero { text-align: center; }
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin: 0 auto 14px;
  display: block;
  overflow: hidden;
  object-fit: cover;
  background: #1a1a1a;
}

.hero h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 800;
}

.hero .sub {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  border: 2px solid var(--line);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
}
.btn.primary { background: var(--line); color: #fff; }
.btn:hover { opacity: .92; }

.micro {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.soft-inv { font-weight: 600; }
.faq-soft { margin: 0 0 6px; font-size: 14px; }
.faq-soft a { font-weight: 600; }
.crumb span[aria-current="page"] { color: var(--line); }

.steps { display: grid; gap: 8px; }
.step {
  border: 1.5px dashed var(--line);
  padding: 12px;
  background: var(--fill);
}
.step strong { display: block; font-size: 13px; margin-bottom: 2px; }
.step span { font-size: 13px; color: var(--muted); }

.cards { display: grid; gap: 10px; }
.card {
  border: 2px solid var(--line);
  padding: 14px;
  background: #fff;
}
.card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.25; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

#book-a-drive, #book { background: var(--fill); }
#book-a-drive h2, #book h2 { margin: 0 0 8px; font-size: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.form-legal { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; max-width: 420px; }
.form-legal a { color: var(--muted); text-decoration: underline; }
.wpcf7-acceptance { font-size: 12px; color: var(--muted); margin: 10px 0; line-height: 1.4; }
.wpcf7-list-item { margin: 0; }

/* CF7 polish */
.wpcf7 { margin: 0; }
.wpcf7 label,
.rot-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea,
.rot-form input,
.rot-form select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--line);
  font: inherit;
  background: #fff;
  margin-bottom: 12px;
}
.wpcf7 input[type="submit"],
.rot-form button[type="submit"] {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--line);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
}
.wpcf7-response-output { margin: 12px 0 0 !important; font-size: 13px; }

.site-footer {
  padding: 18px 16px 28px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
.site-footer a { color: var(--muted); }

/* Article */
.crumb {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid #eee;
}
.crumb a { color: var(--muted); text-decoration: none; }
.article {
  padding: 20px 16px 28px;
  max-width: 100%;
}
.article h1 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.article .byline {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}
.article h2 { font-size: 16px; margin: 22px 0 8px; }
.article h3 { font-size: 14px; margin: 16px 0 6px; }
.article p, .article li { font-size: 14px; }
.article ul, .article ol { padding-left: 1.2em; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 12px 0;
}
.article th, .article td {
  border: 1.5px solid var(--line);
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}
.article th { background: var(--fill); }
.mid-cta {
  border: 2px dashed var(--line);
  background: var(--fill);
  padding: 14px;
  text-align: center;
  margin: 20px 0;
}
.mid-cta h2 { margin-top: 0; font-size: 15px; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (min-width: 480px) {
  body { padding: 16px 0 32px; }
  .site-shell { border: 1px solid #ccc; }
}


/* Accent (warranty callouts) */
.article h2.accent,
.entry-content h2.accent {
  border-left: 4px solid var(--line);
  padding-left: 10px;
  background: linear-gradient(90deg, var(--fill), transparent);
}
.article table th {
  background: var(--fill);
}

#visit p { margin: 0 0 6px; font-size: 14px; }
#visit .micro { margin-top: 4px; }

/* Tablet: wider column, still one content stream */
@media (min-width: 640px) {
  :root { --max: 640px; }
  body { font-size: 16px; }
  .hero h1 { font-size: 26px; }
  .site-nav { font-size: 12px; gap: 8px 12px; }
  .section { padding: 28px 22px; }
  .article { padding: 24px 22px 32px; }
  .article h1 { font-size: 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* Desktop: readable width, auto-scales via viewport */
@media (min-width: 900px) {
  :root { --max: 760px; }
  body { padding: 24px 0 48px; background: #e4e4e4; }
  .site-shell {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
  }
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 17px; }
  .cards { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .site-header { padding: 14px 22px; }
  .site-footer { padding: 22px 22px 36px; font-size: 12px; }
  #book .wpcf7 form { max-width: 420px; margin: 0 auto; }
}

@media (min-width: 1200px) {
  :root { --max: 880px; }
}


/* ROT CTA highlight — Book a drive / Bring your trade */
.btn.primary,
a.nav-book,
.mid-cta .btn.primary,
.entry-content a[href*="#book-a-drive"],
.entry-content a[href*="book-a-drive"] {
  background: #f5c518;
  border-color: #1a1a1a;
  color: #1a1a1a;
  box-shadow: 0 2px 0 #1a1a1a;
}
.btn.primary:hover,
a.nav-book:hover,
.mid-cta .btn.primary:hover,
.entry-content a[href*="#book-a-drive"]:hover {
  background: #ffd84d;
  opacity: 1;
}
.btn:not(.primary),
.entry-content a[href*="#bring-your-trade"],
.entry-content a[href*="bring-your-trade"] {
  background: #fff8d6;
  border-color: #1a1a1a;
  color: #1a1a1a;
}
.wpcf7 input[type="submit"] {
  background: #f5c518 !important;
  border-color: #1a1a1a !important;
  color: #1a1a1a !important;
}
.entry-content a[href*="#book-a-drive"],
.entry-content a[href*="#bring-your-trade"] {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px 0;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #1a1a1a;
  border-radius: 2px;
}


/* V1.3.0 polish — who/where, related guides, soft 404 */
.hero .who-where {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--line);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}
.top-cta {
  margin: 0 0 16px;
  padding: 12px;
  background: var(--fill);
  border: 1px solid #ddd;
}
.top-cta .btn { margin: 0 4px 4px 0; }
.related-guides {
  margin: 24px 0 8px;
  padding: 16px;
  background: var(--fill);
  border: 1px solid #ddd;
}
.related-list {
  margin: 0 0 10px;
  padding-left: 1.15em;
}
.related-list li { margin: 0 0 6px; }
.related-list a { font-weight: 600; }
.related-soft { margin: 0; }
.soft-404 .sub { margin-bottom: 14px; }
#book-a-drive .micro { margin: 0 0 12px; }
