/* Texas Property Solutions Group — site styles
   Design concept: a property surveyor's / land-title crest identity —
   a house-shaped monogram, hairline rules, corner registration marks,
   numbered legends — carried through real project photography rather
   than illustration, for a more established, enterprise presentation. */

:root {
  --ink: #20241f;
  --ink-soft: #454b42;
  --limestone: #efe9dc;
  --limestone-deep: #e2dac7;
  --paper: #faf8f2;
  --oxide: #a3432c;
  --oxide-deep: #7f3220;
  --steel: #47585a;
  --line: #c9bd9e;
  --white: #ffffff;

  --serif: "Zilla Slab", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

:focus-visible { outline: 2px solid var(--oxide); outline-offset: 2px; }

/* ---------- corner registration mark, used sparingly ---------- */
.mark { position: relative; }
.mark::before, .mark::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid var(--white); opacity: 0.85; z-index: 2;
}
.mark::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.mark::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 500; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: 0.95rem; }
.site-nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--oxide); }
.header-phone {
  font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); padding: 0.5rem 0.9rem;
}
.header-phone:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero (photographic) ---------- */
.hero-photo {
  position: relative;
  min-height: clamp(420px, 62vw, 640px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.88;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(18,20,16,0.58), rgba(18,20,16,0.58)),
    linear-gradient(100deg, rgba(18,20,16,0.7) 0%, rgba(18,20,16,0.55) 35%, rgba(18,20,16,0.25) 60%, rgba(18,20,16,0) 80%),
    linear-gradient(180deg, rgba(18,20,16,0.1) 0%, rgba(18,20,16,0.2) 55%, rgba(18,20,16,0.5) 100%);
}
.hero-photo .wrap { position: relative; z-index: 1; padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.hero-photo .eyebrow { color: #f0b79c; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-photo h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; margin-bottom: 1.1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.45); }
.hero-photo .lede { color: var(--white); max-width: 50ch; font-size: 1.12rem; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.hero-photo p:not(.lede) { color: #ece9de; max-width: 56ch; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.hero-photo .btn { margin-top: 0.5rem; }
.hero-credit {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 0.75rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
}
.hero-credit a { color: rgba(255,255,255,0.7); }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--ink); border-bottom: none; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.trust-strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.trust-item { color: var(--limestone); font-size: 0.9rem; border-left: 1px solid rgba(255,255,255,0.2); padding-left: 1rem; }
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--white); margin-bottom: 0.15rem; }

/* ---------- section rhythm ---------- */
section { padding-top: clamp(2.75rem, 6vw, 4.75rem); padding-bottom: clamp(2.75rem, 6vw, 4.75rem); border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: clamp(1.85rem, 4vw, 2.75rem); max-width: 62ch; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head .eyebrow { margin-bottom: 0.6rem; }
.eyebrow { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--oxide-deep); font-weight: 600; display: block; }

/* ---------- services index (3-up, photo + legend) ---------- */
.services-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
.service-col { border-top: 2px solid var(--ink); }
.service-photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.1rem; background: var(--limestone-deep); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-col h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.service-col > p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.tick-list { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.tick-list li { position: relative; padding-left: 1.1rem; margin-bottom: 0.55rem; color: var(--ink); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 2px; background: var(--oxide); }

/* ---------- process steps (legitimate sequence) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.step .num { font-family: var(--serif); font-size: 0.95rem; color: var(--oxide); display: block; margin-bottom: 0.5rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- photo-with-text feature rows (about page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.feature-row.reverse .feature-photo { order: 2; }
.feature-photo { aspect-ratio: 5 / 4; overflow: hidden; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-text p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--paper); border-bottom: none; }
.cta h2 { color: var(--paper); font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 20ch; margin-bottom: 1rem; }
.cta p { color: #cfd3ca; max-width: 52ch; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.cta-contact { font-size: 0.95rem; color: #cfd3ca; line-height: 1.7; }
.cta-contact a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-block; background: var(--oxide); color: var(--white); text-decoration: none;
  font-weight: 600; padding: 0.85rem 1.7rem; border: 1px solid var(--oxide); font-size: 0.98rem; margin-top: 0.5rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--oxide-deep); border-color: var(--oxide-deep); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { padding: 2.25rem 0; font-size: 0.85rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-credit { font-size: 0.72rem; color: var(--line); width: 100%; text-align: center; margin-top: 1.25rem; }
.footer-credit a { color: var(--line); }

/* ---------- about-page specific ---------- */
.about-hero { background: var(--limestone); border-bottom: 1px solid var(--line); }
.about-hero .wrap { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.lede-block { max-width: 68ch; }
.lede-block .lede { font-size: 1.15rem; color: var(--ink-soft); }
.note { border-left: 2px solid var(--oxide); padding-left: 1rem; margin-top: 1.25rem; font-size: 0.96rem; color: var(--ink-soft); max-width: 58ch; }
.note strong { color: var(--ink); }
.service-area strong.place { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
form.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.cta .field label { color: var(--paper); }
.cta .form-note { color: #cfd3ca; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink-soft); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--oxide); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form button { justify-self: start; font-family: var(--sans); cursor: pointer; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -0.3rem; }
.form-success { padding: 1.5rem; border: 1px solid rgba(250,248,242,0.35); }
.form-success h3 { color: var(--paper); font-size: 1.2rem; margin-bottom: 0.5rem; }
.form-success p { color: #cfd3ca; margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
  .services-index { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process.steps-5 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-photo { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; }
}

@media (max-width: 480px) {
  .process, .process.steps-5 { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 1rem; }
  .header-phone { display: none; }
}
