/* ==========================================================
   One Stop Property Solutions – site styles
   Clean black-on-white look. Colors are set once here.
   ========================================================== */
:root {
  --ink: #111111;           /* main text and dark buttons */
  --muted: #555555;         /* secondary text */
  --line: #E4E1DD;          /* thin divider lines */
  --soft: #F4F2EF;          /* soft gray card / section background */
  --white: #FFFFFF;
  /* Brand accent color (phone buttons, stars, icons). Change these 3 lines to recolor the site. */
  --accent: #F7801F;
  --accent-hover: #FF9133;
  --accent-text: #B85200;   /* darker shade for small text on white */
  --radius: 18px;
  --header-h: 72px;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon-sm { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons (rounded pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: .95rem; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--muted);
}
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.header-actions { display: flex; gap: 8px; flex: none; }
.phone-short { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .header-quote { display: none; }   /* the hero ZIP box is right below */
  .phone-full { display: none; }
  .phone-short { display: inline; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); }
.hero-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  background: var(--soft); border-radius: var(--radius); overflow: hidden;
}
.hero-copy { padding: clamp(28px, 5vw, 56px); align-self: center; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
/* The drawing sits on the soft background instead of filling edge to edge like a photo */
.hero-art { object-fit: contain; padding: 24px; }
.hero-alt { margin: 14px 0 0; color: var(--muted); font-size: .98rem; }
.hero-alt a { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 28px 22px; }
  .hero-art { padding: 0 22px 22px; margin-top: -8px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}

/* ZIP box: input and button joined in one pill */
.zip-form {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; max-width: 460px; margin-top: 22px;
}
.zip-form:focus-within { border-color: var(--ink); }
.zip-form input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: transparent;
  padding: 0 16px; font: inherit; font-size: 1.1rem; color: var(--ink); letter-spacing: .04em;
}
.zip-form input:focus { outline: none; }
.zip-form .btn { min-height: 48px; }
@media (max-width: 400px) {
  .zip-form input { padding: 0 10px; font-size: 1rem; }
  .zip-form .btn { padding: 10px 16px; }
}
.zip-msg:empty { display: none; }
.zip-msg { margin: 8px 0 0 6px; font-size: .95rem; font-weight: 500; }
.zip-msg.ok { color: #11743B; }
.zip-msg.warn { color: #9A5B00; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 36em; }
.eyebrow { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: .6em; }

/* ---------- How it works ---------- */
.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; gap: 36px; grid-template-columns: repeat(3, 1fr);
}
.steps li { border-top: 0; }
.step-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 14px; }
.steps h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.review {
  margin: 0; background: var(--white); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.review blockquote { margin: 0 0 16px; color: #333; flex: 1; }
.review figcaption { color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.15rem; margin-bottom: 10px; }
/* Visible label on the sample reviews. Delete the tag in index.html once you add real reviews. */
.sample-tag {
  align-self: flex-start; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px;
  background: #FFE9A8; color: #6B4E00; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 12px; }
.service { padding: 22px 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: .25em; }
.service p { color: var(--muted); margin-bottom: 14px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Partners (investors, contractors, landlords) ---------- */
.partner-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
}
.partner-card p:not(.eyebrow) { color: var(--muted); max-width: 40em; }
.partner-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partner-tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; }
@media (max-width: 760px) { .partner-card { flex-direction: column; align-items: flex-start; } }

/* ---------- FAQ (simple lines) ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 4px; font-size: 1.08rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #BBB;
  display: grid; place-items: center; font-size: 1.1rem; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 4px 20px; margin: 0; }

/* ---------- Quote (3 steps) ---------- */
.quote-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start;
  background: var(--soft); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
}
.quote-copy p { color: var(--muted); }
.quote-copy a { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) { .quote-card { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.quote-form { min-width: 0; }
.progress { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.step-panel { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.step-panel legend { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; padding: 0; margin-bottom: 4px; }
.step-panel .zip-form { margin-top: 12px; }
.step-panel > label { display: block; font-weight: 500; font-size: .95rem; margin: 16px 0 6px; }
.optional { font-weight: 400; color: var(--muted); }
.step-panel > input:not([type="file"]),
.step-panel > select,
.step-panel > textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.step-panel > textarea { resize: vertical; min-height: 96px; }
.step-panel > input:focus, .step-panel > select:focus, .step-panel > textarea:focus { outline: none; border-color: var(--ink); }
.step-panel > .form-note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }
.step-panel > .form-note a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.step-panel .btn-row { margin-top: 20px; }
.step-panel .btn-row .btn { flex: 1; }
.step-panel [aria-invalid="true"] { border-color: #B3261E !important; }
.form-status { margin: 0; font-weight: 500; }
.form-status.success { color: #11743B; font-size: 1.1rem; }
.form-status.error { color: #B3261E; }

/* With JavaScript on, show one step at a time. Without it, all steps show as one form. */
.js .progress { display: block; }
.progress { display: none; }
.js .step-panel { display: none; }
.js .step-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 0; font-size: .96rem; color: var(--muted); }
.site-footer h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
.footer-logo { width: 200px; margin-bottom: 14px; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
}
.social a:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 96px; } /* room for the floating call button */
}

/* ---------- Phone-only simplifications ----------
   Anything with class="hide-on-phone" in index.html (the truck drawing) is
   hidden on phones to keep the page short and fast.
   Remove the class from an element to show it on phones again. */
@media (max-width: 768px) { .hide-on-phone { display: none !important; } }

/* ---------- Floating call button (phones only) ---------- */
.floating-call {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 150;
  display: none; align-items: center; gap: 8px;
  padding: 0 22px; height: 56px; border-radius: 999px;
  background: var(--accent); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.floating-call svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .floating-call { display: inline-flex; } }
