/* ==========================================================================
   SF Probate & Partition Real Estate — mini-site
   ========================================================================== */

:root {
  --bg-cream: #F7F6F1;
  --bg-cream-alt: #F0ECE1;
  --text-charcoal: #191818;
  --text-gray: #5B564E;
  --accent-gold: #C9A876;
  --accent-gold-hover: #B8935E;
  --dark-bg: #18171A;
  --dark-text: #F5F3EC;
  --dark-hairline: rgba(245, 243, 236, 0.16);
  --hairline: #E2DCCB;
  --white: #FFFFFF;
  --card-shadow: 0 8px 30px rgba(25, 24, 24, 0.07);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text-charcoal);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  color: var(--text-gray);
}

.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}

/* --------------------------------------------------------------------- */
/* Eyebrow labels                                                          */
/* --------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
}

.dark-band .eyebrow {
  color: var(--dark-text);
}

/* --------------------------------------------------------------------- */
/* Buttons / CTAs                                                          */
/* --------------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--text-charcoal);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-charcoal);
  border-color: var(--text-charcoal);
}

.btn-secondary:hover {
  background: var(--text-charcoal);
  color: var(--bg-cream);
}

.dark-band .btn-secondary {
  color: var(--dark-text);
  border-color: rgba(245, 243, 236, 0.5);
}

.dark-band .btn-secondary:hover {
  background: var(--dark-text);
  color: var(--dark-bg);
}

/* --------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-line1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--text-charcoal);
  white-space: nowrap;
}

.logo-line2 {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold-hover);
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.mobile-only {
  display: none;
}

.main-nav a.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-charcoal);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.active {
  border-bottom-color: var(--text-charcoal);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-contact {
  background: var(--text-charcoal);
  color: var(--bg-cream);
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pill-contact:hover {
  background: #000;
}

.phone-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.phone-icon-btn:hover {
  background: var(--accent-gold-hover);
}

.phone-icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-charcoal);
  margin: 5px 0;
}

/* --------------------------------------------------------------------- */
/* Hero                                                                    */
/* --------------------------------------------------------------------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.hero .eyebrow {
  justify-content: center;
}

.hero h1 {
  margin-bottom: 26px;
}

.hero .subheading {
  font-size: 1.1rem;
  max-width: 660px;
  margin: 0 auto;
}

.hero .btn-row {
  justify-content: center;
}

/* Dark trust / stat band */

.dark-band {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.dark-band h2, .dark-band h3 {
  color: var(--dark-text);
}

.dark-band p {
  color: rgba(245, 243, 236, 0.72);
}

.stat-band {
  padding: 52px 0;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-item .stat-number {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.86rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.dark-band .stat-item .stat-label {
  color: rgba(245, 243, 236, 0.72);
}

/* --------------------------------------------------------------------- */
/* Testimonial card                                                        */
/* --------------------------------------------------------------------- */

.testimonial-section {
  padding: 72px 0;
}

.testimonial-card {
  background: var(--white);
  border-left: 3px solid var(--accent-gold);
  border-radius: 2px;
  box-shadow: var(--card-shadow);
  padding: 48px 56px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: var(--sans);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 4px;
  display: block;
}

.testimonial-card p.quote-text {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-charcoal);
  line-height: 1.5;
  margin-bottom: 22px;
}

.testimonial-card .attribution {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
}

/* --------------------------------------------------------------------- */
/* Intro / Lede                                                            */
/* --------------------------------------------------------------------- */

.lede-section {
  padding: 24px 0 64px;
}

.lede-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 48px 56px;
  max-width: 860px;
  margin: 0 auto;
}

.lede-section p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.12rem;
  color: var(--text-charcoal);
  text-align: center;
}

/* --------------------------------------------------------------------- */
/* Service sections                                                        */
/* --------------------------------------------------------------------- */

.service-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 100px;
}

.service-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.service-copy {
  max-width: 600px;
}

.service-photo {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  height: 360px;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(25, 24, 24, 0.78);
  color: var(--dark-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 3px;
}

.service-section h2 {
  margin-bottom: 20px;
}

.service-list {
  max-width: 600px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.check-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.check-header .check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-header .check-icon svg {
  width: 12px;
  height: 12px;
}

.check-header span.label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 0.96rem;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* --------------------------------------------------------------------- */
/* Why Allison section                                                     */
/* --------------------------------------------------------------------- */

.why-section {
  padding: 80px 0;
}

.why-section h2 {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.why-section .body-copy {
  max-width: 700px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------- */
/* FAQ                                                                     */
/* --------------------------------------------------------------------- */

.faq-section {
  padding: 80px 0 44px;
  border-top: 1px solid var(--hairline);
}

.faq-section h2 {
  margin-bottom: 44px;
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-charcoal);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-charcoal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .faq-icon::before {
  width: 14px;
  height: 1.5px;
}

.faq-question .faq-icon::after {
  width: 1.5px;
  height: 14px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 26px;
  padding-right: 40px;
  font-size: 0.97rem;
}

.faq-disclaimer {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 0.82rem;
  color: #8A867E;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------- */
/* Closing CTA (dark band)                                                 */
/* --------------------------------------------------------------------- */

.closing-cta {
  padding: 88px 0;
  text-align: center;
}

.closing-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing-cta h2 {
  margin-bottom: 18px;
}

.closing-cta .btn-row {
  justify-content: center;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                  */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-cream-alt);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-grid h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-brand .logo-lockup {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-contact p,
.footer-contact a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-charcoal);
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: #8A867E;
}

/* --------------------------------------------------------------------- */
/* Page 2 — About                                                          */
/* --------------------------------------------------------------------- */

.about-hero {
  padding: 72px 0 56px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.about-hero .eyebrow-subhead {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 28px;
  font-family: var(--sans);
  font-weight: 500;
}

.about-portrait {
  border-radius: 6px;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  object-fit: cover;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  font-weight: 500;
}

.credentials-section {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.credentials-section h2 {
  margin-bottom: 32px;
  text-align: center;
}

.stat-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 16px;
}

.stat-table-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  padding: 32px;
}

.stat-table-card h4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-table-card .table-intro {
  font-size: 0.86rem;
  margin-bottom: 22px;
}

.bar-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.bar-row .bar-name {
  font-size: 0.86rem;
  color: var(--text-gray);
}

.bar-row.highlight .bar-name {
  font-weight: 700;
  color: var(--text-charcoal);
}

.bar-row .bar-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-charcoal);
  width: 32px;
  text-align: right;
}

.bar-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-cream-alt);
  overflow: hidden;
  margin-top: -8px;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--text-gray);
}

.bar-row.highlight .bar-fill {
  background: var(--accent-gold);
}

.footnote {
  font-size: 0.78rem;
  color: #8A867E;
  max-width: 700px;
  margin: 16px auto 0;
  text-align: center;
}

.supporting-stats {
  max-width: 760px;
  margin: 40px auto 0;
}

.court-section {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

.court-section .body-copy {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

.court-section .testimonial-card {
  margin-bottom: 20px;
}

.read-more-link {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.news-section h2 {
  margin-bottom: 24px;
  text-align: center;
}

.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 700px;
}

.news-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: var(--text-gray);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* --------------------------------------------------------------------- */
/* Map                                                                     */
/* --------------------------------------------------------------------- */

.map-wrap iframe {
  border-radius: 6px;
  width: 100%;
}

/* --------------------------------------------------------------------- */
/* Responsive                                                              */
/* --------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .pill-contact { display: none; }
  .logo-line1 { font-size: 0.94rem; }
  .mobile-only { display: block; }
  .main-nav .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
  }
  .main-nav .nav-links.mobile-open { display: flex; }
  .main-nav .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .main-nav .nav-links li:last-child { border-bottom: none; }
  .service-top { grid-template-columns: 1fr; }
  .service-photo { order: -1; height: 240px; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; order: -1; }
  .stat-tables { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-header .container { height: 72px; }
  .stat-bar { grid-template-columns: 1fr; gap: 28px; }
  .testimonial-card { padding: 32px 24px; }
  .lede-card { padding: 32px 24px; }
  .hero { padding: 56px 0 40px; }
  .service-tabs { flex-wrap: wrap; border-radius: 16px; }
}
