/* Texas Real Property Law — black + bronze (#BB7C39), Playfair Display headings, Poppins body. */
:root {
  --black: #0b0b0b;
  --panel: #171717;
  --panel-2: #1f1f1f;
  --bronze: #bb7c39;
  --bronze-deep: #9c6328;
  --bronze-soft: #e9d3b8;
  --paper: #faf7f2;
  --paper-2: #f2ece2;
  --text: #f4efe8;
  --text-dark: #1d1a16;
  --muted: #b8afa3;
  --muted-dark: #5d554b;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #e3d9cb;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 16px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bronze); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.light .muted, .faq .muted { color: var(--muted-dark); }

.h1, .h2, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.h3 { font-size: 1.4rem; }
.lead { font-size: 1.2rem; font-weight: 500; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 600; margin: 0 0 0.7rem; }
.bronze { color: var(--bronze); }
.bronze-deep { color: var(--bronze-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.85em 1.4em; border-radius: 999px; font: 600 0.95rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-bronze { background: var(--bronze); color: #000; }
.btn-bronze:hover { background: var(--bronze-soft); }
.btn-dark { background: var(--black); color: var(--text); }
.btn-dark:hover { background: #2a2a2a; }
.btn-outline { border-color: rgba(244, 239, 232, 0.7); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--black); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo { display: block; width: 150px; flex: none; }
/* The logo PNG has a tall black margin; crop to the wordmark. */
.logo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li > a, .sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 0.92rem/1 var(--sans); background: none; border: 0; cursor: pointer; }
.menu > li > a:hover, .sub-toggle:hover, .sub-toggle[aria-expanded='true'] { background: rgba(255, 255, 255, 0.07); }
.menu a[aria-current] { color: var(--bronze); }
.sub-toggle svg { transition: transform 0.2s; }
.sub-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu { display: none; position: absolute; top: calc(100% + 10px); left: -12px; width: 720px; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.submenu.open { display: grid; }
.sub-h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bronze); font-weight: 600; margin: 0 0 10px; }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 0.93rem; }
.submenu a:hover { color: var(--bronze); }
.sub-feature { border-left: 1px solid var(--line); padding-left: 24px; }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-phone svg { color: var(--bronze); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--black); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.02rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .submenu { position: static; width: auto; grid-template-columns: 1fr; gap: 14px; padding: 12px 4px 16px 16px; background: none; border: 0; box-shadow: none; }
  .sub-feature { border: 0; padding-left: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 18px 0 0; gap: 12px; }
  .nav-phone { justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Home hero */
.hero { background-color: var(--black); background-position: center; background-size: cover; padding: clamp(72px, 12vw, 150px) 0; }
.hero-copy { max-width: 640px; }
.hero-copy .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 500; color: var(--bronze-soft); margin: 0 0 1rem; }
.hero-body { color: #ddd5ca; font-size: 1.05rem; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-call { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.95rem; }
.hero-call a { color: var(--text); font-weight: 600; }

/* Highlights strip */
.highlights { background: var(--bronze); color: var(--text-dark); padding: 34px 0; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hl h2 { font: 600 1.02rem/1.3 var(--sans); margin: 0 0 4px; }
.hl p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #3a2c1c; }

/* Sections */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.dark { background: var(--black); }
.light { background: var(--paper); color: var(--text-dark); }
.intro { max-width: 620px; margin: -0.3rem auto 3rem; }

/* Service groups + cards */
.group { margin-bottom: 48px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border-bottom: 1px solid var(--line-dark); padding-bottom: 12px; margin-bottom: 22px; }
.group-head .h3 { margin: 0; }
.group-head p { margin: 0; color: var(--muted-dark); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text-dark); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--bronze); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 40, 15, 0.12); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-title { font: 600 1.2rem/1.25 var(--serif); }
.card-tag { color: var(--muted-dark); font-size: 0.92rem; line-height: 1.5; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 0.4em; color: var(--bronze-deep); font-weight: 600; font-size: 0.9rem; transition: gap 0.2s; }
.card:hover .more, .feature:hover .more { gap: 0.7em; }

.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.feature { display: flex; flex-direction: column; gap: 8px; padding: 30px; border-radius: var(--radius); text-decoration: none; background: var(--bronze); color: var(--text-dark); transition: transform 0.2s; }
.feature:hover { transform: translateY(-3px); }
.feature-dark { background: var(--black); color: var(--text); }
.feature-k { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 600; opacity: 0.85; }
.feature-t { font: 600 1.6rem/1.2 var(--serif); }
.feature-d { font-size: 0.97rem; line-height: 1.6; opacity: 0.9; }
.feature .more { color: inherit; }
.feature-dark .more { color: var(--bronze); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; }
.steps h3 { font: 600 1.05rem/1.35 var(--sans); margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bronze); color: #000; font: 700 1.05rem/1 var(--serif); }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 2.4rem 0 2.6rem; }
.steps-3 li { flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps-compact { display: grid; gap: 18px; margin: 0 0 1.6rem; }
.steps-compact .step-n { width: 32px; height: 32px; font-size: 0.95rem; }

/* FAQ */
.faq { background: var(--paper-2); color: var(--text-dark); }
.faq-list { margin-top: 2rem; border-top: 1px solid #d8cdbd; }
.faq details { border-bottom: 1px solid #d8cdbd; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--bronze-deep); border-bottom: 2px solid var(--bronze-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted-dark); }
.faq-more { margin-top: 2rem; color: var(--muted-dark); }
.faq-more a { color: var(--bronze-deep); font-weight: 600; }

/* Service page hero */
.page-hero { padding: clamp(40px, 6vw, 80px) 0; background: radial-gradient(circle at 85% 20%, rgba(187, 124, 57, 0.18), transparent 55%), var(--black); }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-text > p { color: var(--muted); }
.page-hero-text .lead { font-family: var(--serif); font-style: italic; font-size: 1.4rem; margin: 0 0 0.8rem; color: var(--bronze); }
.page-hero .hero-actions { margin-top: 1.6rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 6px solid var(--bronze); }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.price { display: inline-block; font-family: var(--serif); font-size: 1.6rem; color: var(--text) !important; border: 1px solid var(--bronze); border-radius: 12px; padding: 6px 16px; }
.urgent { display: flex; gap: 12px; align-items: flex-start; margin: 1.4rem 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(187, 124, 57, 0.14); border: 1px solid rgba(187, 124, 57, 0.5); color: var(--text) !important; font-size: 0.95rem; }
.urgent svg { color: var(--bronze); font-size: 1.3rem; margin-top: 2px; }
.urgent a { color: var(--bronze-soft); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p { margin: 0 0 1.1rem; font-size: 1.04rem; }
.covers { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee5d8; }
.checks li:last-child { border-bottom: 0; }
.checks svg { color: var(--bronze-deep); margin-top: 0.35em; }

.related .h3 { margin-bottom: 1.6rem; }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related-note { margin: 2rem 0 0; color: var(--muted-dark); }
.related-note a { color: var(--bronze-deep); font-weight: 600; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-intro > p { color: var(--muted); }
.form-intro a { color: var(--text); }
.next-h { font: 600 0.8rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--bronze); margin: 1.6rem 0 1.2rem; }
.form-card { background: #fff; color: var(--text-dark); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); border-top: 6px solid var(--bronze); }
.fine { font-size: 0.82rem; }
.inquiry .field { display: block; margin-bottom: 16px; }
.inquiry .field span { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.inquiry .field em { color: var(--bronze-deep); font-style: normal; }
.inquiry .field small { color: var(--muted-dark); font-weight: 400; }
.inquiry input, .inquiry textarea, .inquiry select { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text-dark); background: #fbf9f6; border: 1px solid #d9cfc1; border-radius: 10px; padding: 12px 14px; }
.inquiry select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bronze-deep) 50%), linear-gradient(135deg, var(--bronze-deep) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.inquiry textarea { resize: vertical; min-height: 110px; }
.inquiry textarea::placeholder { color: #9b9184; }
.inquiry input:focus, .inquiry textarea:focus, .inquiry select:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(187, 124, 57, 0.25); background-color: #fff; }
.inquiry [aria-invalid='true'] { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inquiry .btn-block { padding: 1em; font-size: 1rem; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 500; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: #2e6b34; }
.dark-fine { color: var(--muted-dark); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry.sent .field, .inquiry.sent .field-row, .inquiry.sent button, .inquiry.sent .dark-fine { display: none; }
.inquiry.sent .form-status { font-size: 1.1rem; margin: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list svg { color: var(--bronze); margin-top: 0.4em; }
.contact-list a { text-decoration: none; color: var(--muted); }
.contact-list a:hover { color: var(--text); }
.contact-list.big { margin-top: 1.6rem; }
.contact-list.big li { font-size: 1.08rem; margin-bottom: 16px; }
.contact-list.big a { color: var(--text); }

.simple { min-height: 55vh; display: flex; align-items: center; }
.simple .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.logo-footer { width: 190px; margin-bottom: 0.6rem; }
.footer-h { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-footer .contact-list { margin-top: 1rem; font-size: 0.92rem; }
.legal { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px; font-size: 0.8rem; color: var(--muted); }
.legal p { margin: 0 0 0.6rem; }

/* Mobile call / book bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hl-grid { grid-template-columns: 1fr 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-hero-inner, .split, .form-wrap, .feature-pair { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .covers { position: static; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .logo { width: 120px; }
  .hl-grid, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 11, 0.97); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--line); color: var(--text); }
  .mobile-bar a.primary { background: var(--bronze); color: #000; border-color: var(--bronze); }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
