/*
 * Ruihe visual reset v12
 * A restrained appraisal-house system: cool white, ink, and one forest accent.
 * This layer intentionally supersedes the earlier burgundy / cream / gold rounds
 * while leaving page content, images, forms, modals, and JavaScript behaviour intact.
 */

:root {
  color-scheme: light;
  --cream: #f5f6f3;
  --cream-soft: #ffffff;
  --cream-glass: rgba(255, 255, 255, 0.94);
  --wine: #174638;
  --wine-rich: #174638;
  --wine-deep: #171b19;
  --gold: #174638;
  --gold-bright: #174638;
  --gold-pale: #e7e9e5;
  --green: #174638;
  --green-deep: #0f3328;
  --ink: #171b19;
  --ink-soft: #343b37;
  --muted: #555d59;
  --line: rgba(23, 27, 25, 0.13);
  --line-gold: #d4d8d3;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --shadow-soft: 0 24px 64px rgba(16, 24, 20, 0.09);
  --shadow-card: 0 12px 32px rgba(16, 24, 20, 0.08);
  --shadow-lift: 0 24px 52px rgba(16, 24, 20, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 4px;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --display: var(--sans);
  --wrap: min(1240px, calc(100% - 64px));
  --header-height: 72px;
  --section-space: clamp(76px, 8vw, 124px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: var(--cream);
}

body {
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.72;
}

::selection {
  color: #ffffff;
  background: var(--green);
}

:focus-visible {
  outline-color: rgba(23, 70, 56, 0.52);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

h1 {
  font-size: clamp(3rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2.35rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.78;
}

.eyebrow {
  display: none;
}

.skip-link {
  color: #ffffff;
  background: var(--ink);
  border-radius: 4px;
}

/* Header and primary controls */

.utility-bar {
  color: var(--ink-soft);
  background: #e7e9e5;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.utility-inner {
  min-height: 34px;
}

.utility-bar a {
  color: var(--ink-soft);
  border-bottom-color: rgba(23, 27, 25, 0.28);
}

.utility-bar a:hover {
  color: var(--green);
  border-color: var(--green);
}

.site-header,
.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(105%);
}

.header-inner {
  gap: 30px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-copy strong {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.site-nav {
  gap: clamp(18px, 2.2vw, 32px);
}

.site-nav a {
  padding: 24px 0 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-nav a::after {
  bottom: 15px;
  height: 1px;
  background: var(--green);
}

.header-action,
.btn,
.form-submit {
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 200ms var(--ease-out);
}

.header-action,
.btn-primary,
.form-submit,
.btn-light,
.btn-dark,
.btn-line {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: none;
}

.header-action:hover,
.btn-primary:hover,
.form-submit:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-line:hover {
  color: #ffffff;
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: rgba(23, 27, 25, 0.36);
}

.btn-outline:hover {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  transform: translateY(-2px);
}

.text-link {
  color: var(--green);
  border-bottom-color: rgba(23, 70, 56, 0.46);
}

.text-link:hover {
  color: var(--green-deep);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 4px;
}

/* Shared page rhythm */

.section-warm,
.restored-trust-section.is-soft,
.restored-process-estimate,
.home-split,
.home-process,
.home-questions {
  background: #e7e9e5;
}

.section-dark,
.home-valuation,
.cta-band,
.restored-trust-contact-band,
.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.section-dark::before,
.section-dark::after,
.cta-band::before,
.page-hero::after {
  display: none;
}

.section-dark h2,
.section-dark h3,
.home-valuation h2,
.home-valuation h3,
.cta-band h2,
.restored-trust-contact-band h2 {
  color: #ffffff;
}

.section-dark .lead,
.home-valuation p,
.cta-band p,
.restored-trust-contact-band p {
  color: rgba(255, 255, 255, 0.68);
}

.page-hero {
  padding: clamp(64px, 7vw, 104px) 0 clamp(70px, 8vw, 114px);
  color: var(--ink);
  background: #e7e9e5;
}

.breadcrumbs {
  margin-bottom: clamp(40px, 5vw, 64px);
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--green);
}

.breadcrumbs a::after {
  color: rgba(23, 27, 25, 0.3);
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: var(--ink);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1.12;
}

.page-hero-side {
  padding-left: 30px;
  border-left-color: rgba(23, 27, 25, 0.25);
}

.page-hero-side p {
  color: var(--muted);
}

.page-hero .text-link {
  color: var(--green);
  border-bottom-color: rgba(23, 70, 56, 0.5);
}

.page-hero .text-link:hover {
  color: var(--green-deep);
}

/* Home */

.home-hero {
  padding: clamp(62px, 7vw, 108px) 0 clamp(70px, 8vw, 118px);
  background: #ffffff;
}

.home-hero::after,
.home-storefront::before {
  display: none;
}

.home-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(52px, 7vw, 104px);
}

.home-hero-copy h1 {
  max-width: 11ch;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(3.45rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.home-service-line,
.restored-trust-line {
  max-width: 600px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  font-weight: 500;
  line-height: 1.58;
}

.hero-store-info {
  gap: 0 30px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-store-info > a,
.hero-store-info > span,
.hero-store-info > button {
  min-height: 72px;
  padding: 13px 0;
}

.hero-store-info > :nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.hero-store-info svg,
.hero-store-info > button svg {
  width: 23px;
  height: 23px;
  color: var(--green);
}

.hero-store-info small {
  color: var(--muted);
}

.hero-store-info strong {
  color: var(--ink);
}

.home-hero-actions {
  margin-top: 30px;
}

.home-storefront img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e7e9e5;
  box-shadow: 0 22px 54px rgba(16, 24, 20, 0.13);
}

.home-storefront figcaption {
  padding-top: 12px;
  color: var(--muted);
}

.home-split-grid,
.restored-trust-identity,
.restored-trust-store {
  gap: clamp(50px, 7vw, 100px);
}

.home-split-image img,
.restored-trust-identity figure img,
.restored-trust-store figure img,
.evidence-image img {
  box-shadow: 0 18px 48px rgba(16, 24, 20, 0.1);
}

.home-split-copy h2,
.home-section-heading h2,
.home-process-head h2,
.restored-trust-heading h2,
.restored-trust-store h2,
.restored-process-estimate-layout > div > h2 {
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  line-height: 1.12;
}

.home-split-copy p,
.home-section-heading > p,
.home-process-head p,
.restored-trust-heading p,
.restored-trust-store > div > p {
  color: var(--muted);
}

.home-services,
.home-proof,
.home-reviews,
.restored-trust-section,
.restored-process-flow {
  background: #f5f6f3;
}

.home-services .service-grid,
.service-grid {
  gap: clamp(18px, 2vw, 28px);
}

.home-services .service-card,
.service-card {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-services .service-card:hover,
.home-services .service-card:focus-visible,
.service-card:hover,
.service-card:focus-visible {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}

.home-services .service-card-media,
.service-card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e7e9e5;
  border-radius: 4px;
}

.service-card-media::after {
  background: linear-gradient(180deg, transparent 70%, rgba(23, 27, 25, 0.12));
}

.home-services .service-card-body,
.service-card-body {
  min-height: 0;
  padding: 20px 0 4px;
}

.service-card-body small {
  display: none;
}

.home-services .service-card-body h3,
.service-card-body h3 {
  color: var(--ink);
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
}

.home-services .service-card-body p,
.service-card-body p {
  display: none;
}

.service-card:hover .service-card-body h3,
.service-card:focus-visible .service-card-body h3 {
  color: var(--green);
}

.home-process-layout,
.restored-process-layout {
  gap: clamp(60px, 8vw, 116px);
}

.home-process-head,
.restored-process-head {
  top: 116px;
}

.home-process-head h2,
.restored-process-head h1 {
  white-space: normal;
}

.home-process-list article,
.restored-process-list article {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 30px;
  padding: 34px 0 38px;
  border-color: rgba(23, 27, 25, 0.18);
}

.home-process-list > article > span,
.restored-process-list > article > span,
.restored-trust-summary > article > span {
  color: rgba(23, 70, 56, 0.48);
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.home-process-list h3,
.restored-process-list h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
}

.home-process-list p,
.restored-process-list p,
.restored-process-head p {
  color: var(--muted);
}

.reviews-section {
  background: #ffffff;
}

.review-card,
.restored-trust-reviews article {
  min-height: 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.review-card > p,
.restored-trust-reviews p {
  font-family: var(--serif);
  line-height: 1.75;
}

.review-summary span,
.review-person p,
.restored-trust-reviews > article > span {
  color: var(--green);
}

.home-valuation {
  background: var(--ink);
}

.home-valuation-grid {
  gap: clamp(58px, 8vw, 112px);
}

.home-valuation-list article,
.home-valuation-list article:last-child {
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-valuation-list article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-valuation-list span {
  color: rgba(255, 255, 255, 0.52);
}

.home-valuation-list h3 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
}

.home-proof-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-proof-grid h3 {
  color: var(--green);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.question-grid {
  gap: clamp(32px, 4vw, 58px);
}

.question-grid article {
  min-height: 0;
  padding: 0;
  border: 0;
}

.question-grid .person-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
  border: 1px solid rgba(23, 70, 56, 0.3);
  border-radius: 50%;
}

.question-grid p {
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 600;
}

.home-contact {
  background: #f5f6f3;
  border-color: var(--line);
}

.home-contact-grid h2,
.restored-trust-contact-band h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.15rem);
}

/* Service pages: photo-led opening, editorial condition interaction */

.service-hero {
  padding-bottom: clamp(68px, 8vw, 112px);
  color: #ffffff;
  background: var(--ink);
}

.service-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.54);
}

.service-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.84);
}

.service-hero .breadcrumbs a::after {
  color: rgba(255, 255, 255, 0.28);
}

.service-hero h1,
.service-hero h2,
.service-hero h3 {
  color: #ffffff;
}

.service-hero-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(54px, 8vw, 112px);
}

.service-hero-copy .lead {
  color: rgba(255, 255, 255, 0.68);
}

.service-hero .btn-line {
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.service-hero .btn-line:hover {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.service-hero .btn-light {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
}

.service-hero .btn-light:hover {
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.service-hero-media,
.service-hero-media img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.service-hero-media img {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.service-valuation {
  background: #f5f6f3;
}

.service-valuation-head h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
}

.valuation-condition::after,
.valuation-mobile-tab::after {
  background: var(--green);
}

.valuation-condition:focus-visible {
  outline: 0;
}

.valuation-condition > span,
.valuation-mobile-panel-number {
  color: rgba(23, 70, 56, 0.42);
  font-family: var(--sans);
  font-style: normal;
}

.valuation-condition:is(:hover, :focus-visible, .is-active) > span,
.valuation-condition:is(:hover, :focus-visible, .is-active) h3,
.valuation-mobile-tab[aria-selected="true"],
.valuation-mobile-panel h3,
.valuation-mobile-tab-number {
  color: var(--green);
}

.valuation-subject-halo {
  background: radial-gradient(ellipse at center, rgba(23, 70, 56, 0.09), rgba(23, 27, 25, 0.035) 44%, transparent 72%);
  filter: blur(10px);
}

.valuation-subject img,
.valuation-stage:has(.valuation-condition:is(:hover, :focus-visible, .is-active)) .valuation-subject img {
  filter: drop-shadow(0 28px 26px rgba(16, 24, 20, 0.17));
}

.valuation-mobile-tab {
  border-bottom-color: var(--line);
}

.valuation-boundary {
  color: var(--muted);
}

.split-panel > article + article::before {
  background: var(--line);
}

.clean-list li::before {
  background: var(--green);
}

/* Trust, process, FAQ, estimate, and privacy */

.restored-process-head h1,
.restored-trust-hero h1 {
  font-size: clamp(3rem, 5vw, 4rem);
}

.restored-trust-hero {
  padding: clamp(68px, 8vw, 116px) 0;
  background: #ffffff;
}

.restored-trust-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(58px, 8vw, 116px);
}

.restored-trust-summary article {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.restored-trust-summary article + article {
  margin-top: 0;
}

.restored-trust-summary article:last-child {
  border-bottom: 1px solid var(--line);
}

.restored-trust-summary h2 {
  font-size: clamp(1.32rem, 1.8vw, 1.62rem);
}

.restored-trust-links a,
.restored-trust-timeline article,
.restored-trust-guarantees article {
  border-color: var(--line);
}

.restored-trust-links span,
.restored-trust-timeline span {
  color: var(--green);
}

.restored-trust-contact svg {
  color: var(--green);
}

.restored-trust-reviews {
  gap: 18px;
}

.restored-trust-contact-band {
  background: var(--ink);
  border-top: 0;
}

.restored-trust-contact-band .btn-line {
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.restored-trust-contact-band .btn-primary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.restored-trust-contact-band .text-link {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.faq-groups,
.faq-list {
  border-color: var(--line);
}

.faq-list details {
  border-color: var(--line);
}

.faq-list summary > span:first-child {
  color: var(--green);
  font-family: var(--sans);
}

.faq-list summary::after {
  color: var(--green);
  border-color: rgba(23, 70, 56, 0.28);
}

.faq-answer p {
  color: var(--muted);
}

.cta-band {
  background: var(--ink);
}

.cta-grid {
  min-height: 360px;
}

.cta-grid p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.cta-grid .btn-line {
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.cta-grid .btn-line:hover {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.cta-grid .btn-light {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.contact-choice {
  padding: 16px 0 24px;
}

.contact-choice::after {
  background: var(--green);
}

.contact-choice > span {
  color: var(--green);
  font-family: var(--sans);
}

.estimate-form {
  padding: clamp(28px, 4vw, 48px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 20, 0.08);
}

.estimate-note,
.notice-box {
  color: var(--ink-soft);
  background: transparent;
  border-left-color: var(--green);
  border-radius: 0;
}

.field input,
.field select,
.field-wide textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  background: #f5f6f3;
  border-color: rgba(23, 27, 25, 0.18);
  border-radius: 4px;
}

.field input:focus,
.field select:focus,
.field-wide textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 70, 56, 0.1);
}

.privacy-check input {
  accent-color: var(--green);
}

.privacy-check a,
.privacy-nav a:hover {
  color: var(--green);
}

.privacy-updated {
  color: var(--muted) !important;
}

/* Persistent contact controls and modal surfaces */

.site-footer {
  background: var(--ink);
}

.site-footer .brand-copy strong {
  color: #ffffff;
}

.site-footer .brand-copy small,
.footer-column h2 {
  color: rgba(255, 255, 255, 0.62);
}

.footer-brand > p,
.footer-column a {
  color: rgba(255, 255, 255, 0.66);
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.floating-actions {
  right: 20px;
  bottom: 22px;
  gap: 8px;
}

.floating-action,
.floating-action:first-child,
.floating-action.is-map {
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(16, 24, 20, 0.18);
}

.floating-action.is-line {
  color: #ffffff;
  background: var(--green);
}

.floating-action:hover,
.floating-action:first-child:hover,
.floating-action.is-map:hover {
  color: #ffffff;
  background: var(--green-deep);
  box-shadow: 0 16px 34px rgba(16, 24, 20, 0.24);
}

.modal-backdrop {
  background: rgba(16, 20, 18, 0.72);
  backdrop-filter: blur(16px) saturate(80%);
}

.modal-panel {
  width: min(78vw, 1180px);
  max-height: min(88vh, 920px);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.34);
}

.modal-close {
  color: var(--ink);
  background: rgba(245, 246, 243, 0.94);
  border-color: var(--line);
}

.modal-close:hover {
  color: #ffffff;
  background: var(--ink);
}

.line-qr,
.asset-modal-image {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.line-id,
.line-id span,
.copy-status,
.modal-kicker {
  color: var(--green);
}

.modal-form {
  background: #f5f6f3;
  border-color: var(--line);
  border-radius: 8px;
}

.asset-callout {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(16, 24, 20, 0.1);
}

.asset-callout::before {
  background: var(--green);
}

.asset-action {
  border-radius: 4px;
}

.asset-action-primary,
.asset-action-line {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.asset-action-detail {
  color: var(--ink);
  background: transparent;
  border-color: rgba(23, 27, 25, 0.3);
}

/* Responsive reset */

@media (max-width: 1100px) {
  .home-hero-grid,
  .service-hero-layout,
  .restored-trust-hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
    gap: 52px;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  :root {
    --wrap: min(100% - 40px, 760px);
    --section-space: 76px;
  }

  .utility-bar {
    display: none;
  }

  .site-nav {
    justify-content: stretch;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--line);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(16, 24, 20, 0.14);
    text-align: left;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 2px;
    text-align: left;
  }

  .home-hero-grid,
  .home-split-grid,
  .home-process-layout,
  .home-valuation-grid,
  .home-contact-grid,
  .service-hero-layout,
  .page-hero-grid,
  .restored-process-layout,
  .restored-process-estimate-layout,
  .restored-trust-hero-grid,
  .restored-trust-identity,
  .restored-trust-store,
  .restored-trust-contact-band-inner,
  .estimate-layout,
  .privacy-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .home-process-head,
  .restored-process-head,
  .estimate-aside,
  .privacy-nav {
    position: static;
  }

  .home-storefront,
  .service-hero-media {
    width: min(100%, 720px);
  }

  .home-storefront {
    order: -1;
  }

  .service-hero-layout {
    align-items: start;
  }

  .service-hero-media {
    order: -1;
  }

  .page-hero-side {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid rgba(23, 27, 25, 0.2);
    border-left: 0;
  }

  .home-services .service-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-proof-grid,
  .question-grid,
  .restored-trust-reviews,
  .contact-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-grid {
    min-height: 0;
    gap: 34px;
    padding-block: 72px;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: calc(100% - 32px);
    --header-height: 64px;
    --section-space: 64px;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    font-size: 16px;
  }

  h1,
  .home-hero-copy h1,
  .page-hero h1,
  .restored-process-head h1,
  .restored-trust-hero h1 {
    font-size: clamp(2.55rem, 11.5vw, 3rem);
    line-height: 1.08;
  }

  h2,
  .home-split-copy h2,
  .home-section-heading h2,
  .home-process-head h2,
  .service-valuation-head h2,
  .restored-trust-heading h2,
  .restored-trust-store h2,
  .restored-process-estimate-layout > div > h2 {
    font-size: clamp(2.05rem, 9.5vw, 2.55rem);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    display: none;
  }

  .home-hero,
  .page-hero,
  .service-hero,
  .restored-trust-hero,
  .restored-process-flow {
    padding-top: 46px;
    padding-bottom: 60px;
  }

  .home-hero-grid,
  .home-split-grid,
  .home-process-layout,
  .home-valuation-grid,
  .service-hero-layout,
  .restored-process-layout,
  .restored-process-estimate-layout,
  .restored-trust-hero-grid,
  .restored-trust-identity,
  .restored-trust-store,
  .estimate-layout,
  .cta-grid {
    gap: 42px;
  }

  .home-storefront {
    order: 0;
  }

  .home-service-line,
  .restored-trust-line {
    font-size: 1.13rem;
  }

  .hero-store-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 28px;
  }

  .hero-store-info > a,
  .hero-store-info > span,
  .hero-store-info > button {
    min-height: 70px;
    gap: 9px;
    padding: 12px 0;
  }

  .hero-store-info svg {
    width: 20px;
    height: 20px;
  }

  .hero-store-info small {
    font-size: 0.68rem;
  }

  .hero-store-info strong {
    font-size: 0.88rem;
  }

  .home-hero-actions,
  .home-contact .button-row,
  .cta-grid .button-row,
  .restored-trust-contact-band .button-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-hero-actions .btn,
  .home-contact .btn,
  .cta-grid .btn,
  .restored-trust-contact-band .btn {
    width: 100%;
  }

  .home-services .service-grid,
  .service-grid {
    display: flex;
    width: calc(100% + 16px);
    gap: 16px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-services .service-grid::-webkit-scrollbar,
  .service-grid::-webkit-scrollbar {
    display: none;
  }

  .home-services .service-card,
  .service-card {
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: start;
  }

  .home-services .service-card-media,
  .service-card-media {
    aspect-ratio: 4 / 3;
  }

  .home-process-list article,
  .restored-process-list article {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 27px 0 30px;
  }

  .home-process-list > article > span,
  .restored-process-list > article > span {
    font-size: 1.35rem;
  }

  .home-process-list h3,
  .restored-process-list h2 {
    font-size: 1.48rem;
  }

  .reviews-grid,
  .restored-trust-reviews {
    display: flex;
    width: calc(100% + 16px);
    gap: 14px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .review-card,
  .restored-trust-reviews article {
    min-width: min(78vw, 330px);
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: start;
  }

  .home-proof-grid,
  .question-grid,
  .restored-trust-timeline,
  .restored-trust-guarantees,
  .contact-choice-grid,
  .field-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .home-proof-grid,
  .question-grid {
    display: flex;
    width: calc(100% + 16px);
    gap: 18px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-proof-grid::-webkit-scrollbar,
  .question-grid::-webkit-scrollbar {
    display: none;
  }

  .home-proof-grid article,
  .question-grid article {
    min-width: min(78vw, 330px);
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: start;
  }

  .home-valuation-list h3 {
    font-size: 1.4rem;
  }

  .service-hero-media {
    order: 0;
  }

  .service-hero-media,
  .service-hero-media img {
    aspect-ratio: 4 / 3;
  }

  .service-valuation {
    padding-block: 64px;
  }

  .valuation-subject-halo {
    width: 104%;
    height: 72%;
  }

  .valuation-mobile-tabs {
    gap: 18px;
  }

  .valuation-mobile-tab {
    flex-basis: 112px;
  }

  .valuation-mobile-panel {
    min-height: 140px;
  }

  .restored-trust-summary article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .restored-trust-links,
  .restored-trust-timeline,
  .restored-trust-guarantees {
    display: flex;
    width: calc(100% + 16px);
    gap: 18px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .restored-trust-links::-webkit-scrollbar,
  .restored-trust-timeline::-webkit-scrollbar,
  .restored-trust-guarantees::-webkit-scrollbar {
    display: none;
  }

  .restored-trust-links a,
  .restored-trust-timeline article,
  .restored-trust-guarantees article {
    min-width: min(78vw, 330px);
    flex: 0 0 min(78vw, 330px);
    padding: 22px 0 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .reviews-grid,
  .restored-trust-reviews,
  .question-grid,
  .restored-trust-timeline,
  .restored-trust-guarantees {
    width: calc(100% - 16px);
    margin-right: 0;
    margin-left: 16px;
  }

  .restored-trust-identity figure img,
  .restored-trust-store figure img {
    box-shadow: 0 14px 34px rgba(16, 24, 20, 0.1);
  }

  .faq-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-group-head {
    position: static;
  }

  .estimate-form {
    padding: 24px 18px;
  }

  .privacy-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .privacy-nav a {
    flex: 0 0 auto;
  }

  .floating-actions {
    display: none;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    padding: 50px 0 38px;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-brand > p {
    margin-top: 18px;
  }

  .footer-column h2 {
    margin-bottom: 14px;
  }

  .footer-bottom {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.74);
    background: rgba(23, 27, 25, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
  }

  .mobile-dock a,
  .mobile-dock button {
    color: inherit;
    background: transparent;
    border: 0;
  }

  .mobile-dock > :last-child {
    color: #ffffff;
    background: var(--green);
    border-radius: 4px;
  }

  .modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }

  .modal-body {
    padding: 38px 20px 28px;
  }

  .line-modal,
  .estimate-modal-layout,
  .asset-modal-grid {
    grid-template-columns: 1fr;
  }

  .line-qr {
    width: min(68vw, 250px);
    margin-inline: auto;
  }

  .asset-modal-head {
    padding-right: 42px;
  }
}

@media (max-width: 360px) {
  .hero-store-info {
    grid-template-columns: 1fr;
  }

  .hero-store-info > :nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .service-card:focus-visible,
  .header-action:hover,
  .btn:hover,
  .form-submit:hover {
    transform: none;
  }
}
