/* TheHouseBuyers.com — static site stylesheet
   No build step, no framework — just plain CSS. */

:root {
  --accent: #e14a2b;
  --accent-dark: #c73d21;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --paper: #ffffff;
  --paper-soft: #f7f6f4;
  --line: #e7e3df;
  --footer-bg: #16161a;
  --footer-line: rgba(255, 255, 255, 0.08);
  --radius: 5px;
  --max: 1170px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: none;
  letter-spacing: .02em;
  margin-bottom: 8px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 17.5px 35px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }

/* Header / nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.logo .reg { font-size: .7em; vertical-align: super; }
.logo .tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: .55em;
  margin-left: 10px;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Page header banner (used on inner pages) */
.page-banner {
  position: relative;
  background: #7a7a7a url("https://thehousebuyers.com/wp-content/uploads/2025/05/ThehousebC63a-A02aT03a-Z.jpg") center/cover no-repeat;
  color: #fff;
  padding: 70px 0 46px;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20, 20, 20, .55);
}
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-weight: 600; color: #fff; opacity: .85; }
.breadcrumb a { color: #fff; }
.breadcrumb .sep { margin: 0 6px; opacity: .7; }
.breadcrumb .current { color: var(--accent); opacity: 1; }

/* Hero (home) */
.hero {
  position: relative;
  background: #333 url("https://thehousebuyers.com/wp-content/uploads/2025/05/InheritProperty.jpg") center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.25) 100%);
}
.hero .container {
  position: relative;
  padding: 110px 24px 130px;
  max-width: 720px;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 560px; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--paper-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.card .kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.card h3 { margin-bottom: 8px; }
.card .rule {
  width: 46px; height: 3px;
  background: var(--accent);
  margin-top: 14px;
  border: none;
}

/* Process / two-col with image */
.process-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-grid .process-img { order: -1; }
}
.process-img img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.35);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-col { padding: 48px; }
.contact-info-col {
  background: var(--ink);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.contact-info-col h3 { color: #fff; }
.contact-info-col p { color: rgba(255,255,255,.85); }
.contact-info-col .phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* CTA strip */
.cta-strip {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.8); max-width: 560px; margin-inline: auto; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #cfcfd2;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-line);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-grid p { color: #b7b7bd; font-size: .92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #cfcfd2; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-social { margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.footer-social a:hover { background: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: .85rem;
  color: #93939a;
}
.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Responsive nav */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-social { padding-top: 6px; }
}

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
