@import "tailwindcss";

:root {
  --black: #050506;
  --panel: #0b0b0d;
  --panel-soft: #111114;
  --line: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.25);
  --text: #f7f7f8;
  --muted: #aaaab0;
  --red: #e30613;
  --red-bright: #ff1d2b;
  --red-dark: #98000a;
  --success: #32d583;
  --shadow-red: 0 0 38px rgba(227, 6, 19, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.estimate-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 34%, rgba(117, 0, 7, 0.12), transparent 26rem),
    linear-gradient(180deg, #050506, #080809 56%, #050506);
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1440px, calc(100% - 56px));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.055em;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.wordmark strong {
  color: var(--red-bright);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 52px);
}

.desktop-nav a {
  color: #d7d7da;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: #fff;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.header-phone svg {
  width: 20px;
  color: var(--red-bright);
}

.estimate-hero {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 72px max(28px, calc((100vw - 1440px) / 2 + 28px));
  background-image:
    linear-gradient(90deg, #050506 4%, rgba(5, 5, 6, 0.97) 35%, rgba(5, 5, 6, 0.45) 65%, rgba(5, 5, 6, 0.05) 100%),
    linear-gradient(180deg, transparent 65%, #050506 100%),
    url("/assets/hero-art.jpg");
  background-size: cover;
  background-position: center right;
}

.estimate-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.8), transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: 15%;
  top: 48%;
  width: 360px;
  height: 180px;
  background: rgba(227, 6, 19, 0.17);
  filter: blur(100px);
}

.hero-copy {
  width: min(660px, 54vw);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: var(--red-bright);
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: #d2d2d6;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 32px;
}

.hero-points > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e7e7e9;
  font-size: 13px;
}

.hero-points svg {
  width: 21px;
  height: 21px;
  color: var(--red-bright);
}

.scroll-to-form,
.primary-button {
  min-height: 52px;
  border: 1px solid var(--red-bright);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 25px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  box-shadow: 0 7px 28px rgba(227, 6, 19, 0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.scroll-to-form {
  margin-top: 36px;
}

.scroll-to-form svg,
.primary-button svg {
  width: 21px;
}

.scroll-to-form:hover,
.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px rgba(227, 6, 19, 0.36);
  background: linear-gradient(135deg, #b2000b, #f00a19);
}

.estimate-content {
  position: relative;
  width: min(1320px, calc(100% - 56px));
  margin: 74px auto;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(560px, 1.24fr);
  gap: 68px;
  align-items: start;
}

.estimate-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -160px;
  top: 0;
  width: 560px;
  height: 560px;
  background: rgba(130, 0, 8, 0.12);
  filter: blur(120px);
}

.process-panel {
  position: sticky;
  top: 32px;
  padding-top: 22px;
}

.process-panel h2,
.form-card h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.process-list {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 0 0 32px;
}

.process-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 48px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--red), rgba(227, 6, 19, 0.12));
}

.process-number {
  width: 58px;
  height: 42px;
  border: 1px solid rgba(227, 6, 19, 0.52);
  display: grid;
  place-items: center;
  color: var(--red-bright);
  font-size: 17px;
  font-weight: 800;
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.preliminary-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 15px;
  margin-top: 8px;
  padding: 19px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.preliminary-note svg {
  width: 23px;
  color: var(--red-bright);
}

.preliminary-note p {
  margin: 0;
  color: #babac0;
  font-size: 13px;
  line-height: 1.55;
}

.form-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 45, 57, 0.82);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 46px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 38%),
    rgba(10, 10, 12, 0.94);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.52), var(--shadow-red);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 8%;
  width: 33%;
  height: 1px;
  background: #ff2633;
  box-shadow: 0 0 18px 3px rgba(255, 22, 36, 0.7);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.form-heading .eyebrow {
  margin-bottom: 12px;
}

.form-heading-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border: 1px solid rgba(227, 6, 19, 0.64);
  color: var(--red-bright);
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.upload-field {
  display: block;
  margin-bottom: 22px;
}

.field > span,
.upload-label > span {
  display: block;
  margin: 0 0 9px;
  color: #dddddf;
  font-size: 13px;
  font-weight: 700;
}

.field b,
.upload-label b {
  color: var(--red-bright);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  outline: none;
  background: #070708;
  color: #fff;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input,
.field select {
  height: 50px;
  padding: 0 15px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 14px 15px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #66666c;
}

.field select:invalid {
  color: #73737a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 29, 43, 0.9);
  background: #0b0b0d;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.upload-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.upload-label small {
  color: #828289;
  font-size: 11px;
}

.drop-zone {
  min-height: 128px;
  border: 1px dashed rgba(255, 47, 60, 0.57);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 10% 50%, rgba(227, 6, 19, 0.12), transparent 32%),
    rgba(227, 6, 19, 0.025);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--red-bright);
  outline: none;
  background: rgba(227, 6, 19, 0.08);
}

.drop-zone > svg {
  width: 42px;
  color: var(--red-bright);
}

.drop-zone strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.drop-zone p {
  margin: 0;
  color: #85858b;
  font-size: 12px;
}

.upload-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: #e8e8ea;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-hint {
  margin: 9px 0 0;
  color: #73737a;
  font-size: 11px;
}

.field-error {
  margin: 10px 0 0;
  color: #ff6570;
  font-size: 12px;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.file-chip {
  min-width: 0;
  height: 43px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.file-chip > svg {
  width: 18px;
  color: var(--red-bright);
}

.file-chip > span {
  overflow: hidden;
  color: #c9c9cd;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip small {
  color: #74747a;
  font-size: 9px;
}

.file-chip button {
  border: 0;
  background: transparent;
  color: #94949a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.file-chip button:hover {
  color: #fff;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 11px;
  margin: 3px 0 24px;
  color: #99999f;
  font-size: 11px;
  line-height: 1.5;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--red);
}

.consent-row a {
  color: #d1d1d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  width: 100%;
  min-height: 56px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-footnote {
  margin: 12px 0 0;
  color: #6f6f76;
  font-size: 10px;
  text-align: center;
}

.submit-error {
  margin: 0 0 18px;
  border-left: 2px solid var(--red-bright);
  padding: 12px 14px;
  background: rgba(227, 6, 19, 0.08);
  color: #ffb3b8;
  font-size: 12px;
  line-height: 1.5;
}

.submit-error a {
  color: #fff;
  font-weight: 700;
}

.success-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.success-card h2 {
  margin-bottom: 20px;
}

.success-card > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 12px;
  color: #b8b8be;
  font-size: 15px;
  line-height: 1.65;
}

.success-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  border: 1px solid rgba(50, 213, 131, 0.52);
  display: grid;
  place-items: center;
  color: var(--success);
  box-shadow: 0 0 30px rgba(50, 213, 131, 0.14);
}

.success-icon svg {
  width: 34px;
  stroke-width: 2;
}

.success-card .primary-button {
  margin-top: 22px;
}

.text-phone {
  margin-top: 20px;
  color: #d5d5d8;
  font-size: 13px;
}

.trust-strip {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.02);
}

.trust-strip > div {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 25px;
}

.trust-strip > div + div {
  border-left: 1px solid var(--line);
}

.trust-strip span {
  color: var(--red-bright);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.trust-strip p {
  max-width: 220px;
  margin: 0;
  color: #bebec2;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 180px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer .wordmark {
  font-size: 28px;
}

.site-footer p {
  margin: 13px 0 0;
  color: #77777d;
  font-size: 12px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #bbbcc0;
  font-size: 13px;
}

.footer-contact a:hover {
  color: #fff;
}

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

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .estimate-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .process-panel {
    position: static;
  }

  .process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .process-list li::before {
    display: none;
  }

  .preliminary-note {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 32px);
    height: 68px;
  }

  .wordmark {
    font-size: 25px;
  }

  .header-phone span {
    display: none;
  }

  .header-phone svg {
    width: 23px;
  }

  .estimate-hero {
    min-height: 690px;
    align-items: flex-end;
    padding: 70px 22px 54px;
    background-image:
      linear-gradient(180deg, rgba(5, 5, 6, 0.1) 20%, rgba(5, 5, 6, 0.72) 53%, #050506 88%),
      url("/assets/hero-art.jpg");
    background-size: auto 65%, auto 65%;
    background-repeat: no-repeat;
    background-position: top right;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-points {
    display: grid;
    gap: 10px;
  }

  .estimate-content,
  .trust-strip,
  .site-footer {
    width: calc(100% - 32px);
  }

  .estimate-content {
    margin: 52px auto;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 52px 1fr;
  }

  .field-grid.two-columns,
  .file-list {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    grid-template-columns: 38px 1fr;
  }

  .upload-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    justify-content: flex-start;
  }

  .trust-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    min-height: 240px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.legal-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 80% 5%, rgba(227, 6, 19, 0.14), transparent 30rem),
    var(--black);
}

.legal-header {
  width: min(1020px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-back {
  color: #aaaab0;
  font-size: 13px;
}

.legal-back:hover {
  color: #fff;
}

.legal-card {
  width: min(860px, calc(100% - 40px));
  margin: 64px auto 0;
  border: 1px solid var(--line);
  border-top-color: rgba(255, 29, 43, 0.85);
  padding: clamp(28px, 6vw, 64px);
  background: rgba(11, 11, 13, 0.96);
}

.legal-card h1 {
  margin: 0 0 32px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.045em;
}

.legal-card section {
  margin-top: 32px;
}

.legal-card h2 {
  margin: 0 0 11px;
  font-size: 19px;
}

.legal-card p {
  margin: 0;
  color: #b8b8be;
  font-size: 14px;
  line-height: 1.75;
}

.legal-card a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.legal-operator {
  border-left: 3px solid var(--red-bright);
  padding: 16px 18px;
  background: rgba(227, 6, 19, 0.09);
  color: #d9d9dd;
  font-size: 13px;
  line-height: 1.55;
}

.legal-operator strong,
.legal-operator span {
  display: block;
}

.legal-operator strong {
  margin-bottom: 7px;
  color: #fff;
}
