:root {
  --ink: #172124;
  --muted: #596669;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --mist: #e7f0ed;
  --line: #d7dfda;
  --teal: #0f766e;
  --teal-dark: #0b514d;
  --coral: #c65f4a;
  --amber: #b7791f;
  --sage: #7c9465;
  --blue: #315a72;
  --shadow: 0 18px 50px rgba(23, 33, 36, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

img,
svg {
  max-width: 100%;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 12px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 245, 0.9);
  border-bottom: 1px solid rgba(23, 33, 36, 0.12);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.06rem;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  background: linear-gradient(90deg, var(--coral) 0 48%, var(--teal) 48% 100%);
  border: 2px solid var(--ink);
  display: inline-block;
  height: 26px;
  position: relative;
  width: 34px;
}

.brand-mark::before,
.brand-mark::after {
  background: var(--ink);
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  right: 5px;
}

.brand-mark::before {
  top: 6px;
}

.brand-mark::after {
  bottom: 6px;
}

.nav-links {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.94rem;
  font-weight: 750;
  gap: clamp(12px, 2.2vw, 26px);
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--teal);
}

.header-actions {
  display: flex;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  background: #fff;
  border-color: rgba(23, 33, 36, 0.18);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--teal);
}

.button-ghost {
  background: transparent;
  border-color: rgba(23, 33, 36, 0.2);
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero {
  background: #152427;
  color: #fff;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background-image: url("/assets/hero-restoration.svg");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(9, 17, 19, 0.86) 0%, rgba(9, 17, 19, 0.68) 38%, rgba(9, 17, 19, 0.24) 72%, rgba(9, 17, 19, 0.56) 100%);
  inset: 0;
  position: absolute;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding: 120px clamp(20px, 6vw, 88px) 72px;
  position: relative;
  width: min(860px, 100%);
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8.9rem);
  line-height: 0.9;
  margin: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 730px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  padding-top: 24px;
  width: min(740px, 100%);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
}

.hero-stats dd {
  color: rgba(255, 255, 255, 0.74);
  margin: 4px 0 0;
}

.subhero {
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  padding: 136px clamp(18px, 6vw, 86px) clamp(54px, 8vw, 96px);
}

.subhero h1 {
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 1;
  margin: 0;
  max-width: 1050px;
}

.subhero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
  max-width: 790px;
}

.date-line {
  color: var(--muted);
  display: inline-block;
  font-weight: 750;
  margin-top: 12px;
}

.quote-band,
.section,
.portal-section,
.upscale-section,
.article-body {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 840px;
}

.section-heading h2,
.upscale-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  margin: 0;
}

.section-heading p:not(.eyebrow),
.upscale-section p,
.article-body p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.quote-band {
  align-items: start;
  background: var(--mist);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
}

.intake-panel,
.portal-shell,
.service-card,
.price-card,
.case-card,
.article-card,
.faq-grid article,
.queue-list article,
.project-item,
.note-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intake-panel,
.portal-shell {
  box-shadow: var(--shadow);
}

.intake-panel {
  padding: clamp(18px, 3vw, 28px);
}

.intake-panel.compact {
  box-shadow: none;
  padding: 0;
  border: 0;
}

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row.two {
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  margin-top: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.estimator {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  padding: 14px;
}

.label {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.rights-check {
  align-items: start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.rights-check input {
  flex: 0 0 auto;
  min-height: 18px;
  margin-top: 2px;
  width: 18px;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 12px 0 0;
}

.service-grid,
.pricing-grid,
.case-grid,
.article-grid,
.faq-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.service-card,
.case-card,
.article-card,
.faq-grid article,
.queue-list article {
  padding: 24px;
}

.service-card h3,
.price-card h3,
.case-card h3,
.article-card h3,
.faq-grid h3 {
  font-size: 1.22rem;
  line-height: 1.22;
  margin: 0 0 10px;
}

.service-card p,
.price-card p,
.case-card p,
.article-card p,
.faq-grid p,
.queue-list p {
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

.case-card span,
.article-card span,
.queue-list span {
  color: var(--blue);
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
  margin-top: 16px;
}

.icon {
  background: linear-gradient(135deg, var(--teal), var(--coral));
  display: block;
  height: 10px;
  margin-bottom: 18px;
  width: 54px;
}

.upscale-section {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
}

.comparison-meter {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  padding: 12px;
}

.meter-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 0 10px;
}

.meter-row:last-child {
  border-bottom: 0;
}

.meter-row span {
  color: rgba(255, 255, 255, 0.76);
}

.pricing-section {
  background: #f3f6f4;
}

.price-card {
  padding: 26px;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.price {
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin: 12px 0;
}

.price-card ul {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 22px;
  padding-left: 20px;
}

.portal-section {
  background: #fff;
}

.portal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  margin-top: 34px;
  overflow: hidden;
}

.portal-sidebar {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.portal-sidebar strong {
  margin-bottom: 12px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.tab-button.active {
  background: #fff;
  color: var(--ink);
}

.portal-content {
  min-height: 390px;
  padding: clamp(20px, 4vw, 34px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.42rem;
  margin: 0 0 14px;
}

.upload-zone {
  align-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 160px;
  padding: 24px;
  text-align: center;
}

.upload-zone input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.progress {
  background: #eef2ef;
  border-radius: 999px;
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--teal), var(--coral));
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.status-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-list li,
.project-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 14px;
}

.status-list b {
  color: var(--teal);
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.project-item {
  cursor: pointer;
}

.project-item.active {
  border-color: var(--teal);
}

.project-item div {
  display: grid;
  gap: 4px;
}

.project-item span,
.project-item small {
  color: var(--muted);
}

.workflow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.workflow article {
  border-top: 3px solid var(--teal);
  padding-top: 16px;
}

.workflow span {
  color: var(--coral);
  font-weight: 900;
}

.workflow h3 {
  margin: 10px 0 8px;
}

.workflow p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.article-body {
  background: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.article-body article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 12px;
}

.note-box {
  color: var(--muted);
  line-height: 1.6;
  padding: 20px;
}

.text-link {
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 850;
  margin-top: 24px;
}

.queue-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.site-footer {
  align-items: start;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 34px clamp(18px, 5vw, 76px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 620px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .quote-band,
  .upscale-section,
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .field-row,
  .field-row.two,
  .service-grid,
  .pricing-grid,
  .case-grid,
  .article-grid,
  .faq-grid,
  .workflow {
    grid-template-columns: 1fr 1fr;
  }

  .portal-sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .portal-sidebar strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-content {
    padding-top: 104px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .hero-stats,
  .field-row,
  .field-row.two,
  .estimator,
  .service-grid,
  .pricing-grid,
  .case-grid,
  .article-grid,
  .faq-grid,
  .workflow,
  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    padding: 16px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
