/* ═══════════════════════════════════════════════════════
   RANK-AND-RENT SITE TEMPLATE - style.css
   Deliberately plain. Functional structure, not styling.
   Light mode, mobile-first, no frameworks, no dependencies.
   Goal: fast load (LCP < 2.5s), readable, click-to-call dominant.
   ═══════════════════════════════════════════════════════ */

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

:root {
  --text:    #1a1a1a;
  --muted:   #444;
  --cta:     #c0392b;   /* call button, high contrast, not decorative */
  --cta-dark:#992d22;
  --link:    #1a5276;
  --bg-alt:  #f4f4f4;
  --border:  #cccccc;
  --max:     800px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1 { font-size: 1.7rem; line-height: 1.25; margin-bottom: 10px; }
h2 { font-size: 1.3rem; margin-bottom: 12px; }
h3 { font-size: 1.05rem; margin-bottom: 4px; }

section { padding: 28px 0; border-bottom: 1px solid var(--border); }

p { margin-bottom: 12px; }
.answer { font-weight: 400; }
.price { color: var(--muted); font-size: 0.95rem; }

/* ── PREVIEW BANNER (only rendered while fields are pending) ── */
.preview-banner {
  background: #fff3cd;
  border-bottom: 2px solid #e0a800;
  color: #5c4500;
  padding: 10px 16px;
  font-size: 0.9rem;
  text-align: center;
}

/* ── CALL BUTTONS ── */
.btn-call {
  display: inline-block;
  background: var(--cta);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call:hover { background: var(--cta-dark); }
.btn-large { padding: 14px 24px; font-size: 1.15rem; }

.btn-secondary {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff !important;
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-submit:hover { background: var(--cta-dark); }

/* ── HEADER (sticky so call button is always reachable) ── */
header {
  background: var(--text);
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-size: 1rem; font-weight: 700; color: #fff; }
.logo-img { display: block; height: 36px; width: auto; }
.header-cta { padding: 8px 14px; font-size: 0.95rem; }

/* ── HERO (dark fallback; optional photo bg injected inline by the worker) ── */
.hero {
  background: var(--text);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  padding: 56px 0;
}
.hero h1 { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-sub { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero a { color: #fff; }
.hero-sub { font-size: 1.05rem; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.trust-bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }

/* ── TL;DR ── */
.tldr { background: var(--bg-alt); }
.tldr-text { font-size: 1.05rem; margin-bottom: 0; }

/* ── SERVICES / ANSWER BLOCKS ── */
.service-block { margin-bottom: 18px; }
.service-block:last-child { margin-bottom: 0; }

/* ── HOW IT WORKS ── */
.steps { margin: 0 0 0 20px; }
.steps li { margin-bottom: 6px; }

/* ── SERVICE AREA ── */
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.area-list li::before { content: "\2713 "; color: var(--cta); }

/* ── ABOUT / OWNER ── */
.owner { display: flex; gap: 16px; align-items: flex-start; }
.owner-photo { border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.owner-name { margin-bottom: 6px; }

/* ── FAQ ── */
.faq-item { margin-bottom: 16px; }
.faq-item:last-child { margin-bottom: 0; }

/* ── PHOTOS ── */
.photos-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.site-photo { flex: 1 1 220px; max-width: 320px; margin: 0; }
.site-photo img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; }
.site-photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ── CTA STRIP (closer before the form) ── */
.cta-strip { background: var(--text); color: #fff; text-align: center; }
.cta-line { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.cta-attribution { color: #bbb; font-size: 0.95rem; margin-bottom: 16px; }
.cta-strip .btn-call { font-size: 1.15rem; padding: 14px 26px; }

/* ── CONTACT FORM ── */
.contact { background: var(--bg-alt); }
.contact-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin-top: 14px; }
.contact-form[hidden] { display: none; }
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

/* ── FORM SUCCESS (inline confirmation after AJAX submit) ── */
.form-success {
  max-width: 520px;
  margin-top: 14px;
  padding: 16px;
  background: #e8f6ec;
  border: 1px solid #2e7d46;
  border-radius: 4px;
}
.form-success p { margin-bottom: 6px; }
.form-success p:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer { background: var(--text); color: #ddd; text-align: left; border-bottom: none; }
footer strong { color: #fff; }
footer a { color: #fff; }
.footer-small { font-size: 0.85rem; margin-top: 12px; color: #aaa; }
.footer-disclaimer { font-size: 0.75rem; margin-top: 8px; color: #888; }

/* ── MOBILE ── */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .owner { flex-direction: column; }
  .header-cta { font-size: 0.85rem; padding: 7px 10px; }
}
