:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --window: #3b82f6;
  --window-dark: #2563eb;
  --moving: #8b5cf6;
  --renovation: #06b6d4;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  font-family: "Heebo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 32rem),
    var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 86vh;
  padding: 22px 0 64px;
}

.topbar,
.hero-card,
.form-card,
.summary-card,
.service-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 999px;
}

.brand,
.topbar-actions,
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--window), var(--renovation));
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--muted);
}

.ghost-link {
  color: var(--muted);
  font-weight: 600;
}

.contact-pill,
.btn,
.card-link {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-pill {
  padding: 10px 16px;
  color: var(--window-dark);
  background: #dbeafe;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
}

.btn:hover,
.card-link:hover,
.quantity button:hover {
  transform: translateY(-1px);
}

.btn-window {
  color: #fff;
  background: linear-gradient(135deg, var(--window), var(--window-dark));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-soft {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding-top: 82px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  color: #0f766e;
  font-weight: 800;
  border-radius: 999px;
  background: #ccfbf1;
}

.eyebrow.blue {
  color: var(--window-dark);
  background: #dbeafe;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p,
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.75;
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: calc(var(--radius) + 8px);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.hero-card-header strong {
  color: var(--text);
}

.service-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px;
  border-radius: 22px;
  font-weight: 800;
}

.service-mini span {
  color: var(--text);
}

.service-mini strong {
  color: #fff;
}

.service-mini.window {
  background: linear-gradient(135deg, #dbeafe, var(--window));
}

.service-mini.moving {
  background: linear-gradient(135deg, #ede9fe, var(--moving));
}

.service-mini.renovation {
  background: linear-gradient(135deg, #cffafe, var(--renovation));
}

.section {
  padding: 60px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 20px;
  font-size: 1.8rem;
}

.service-card.window .service-icon {
  background: #dbeafe;
}

.service-card.moving .service-icon {
  background: #ede9fe;
}

.service-card.renovation .service-icon {
  background: #cffafe;
}

.card-link {
  width: fit-content;
  margin-top: auto;
  padding: 12px 18px;
  color: #fff;
  background: var(--window);
}

.service-card.moving .card-link {
  background: var(--moving);
}

.service-card.renovation .card-link {
  background: var(--renovation);
}

.card-link.muted {
  color: var(--muted);
  background: #f1f5f9;
}

.order-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.form-card,
.summary-card {
  padding: 22px;
  border-radius: var(--radius);
}

.order-form .form-card:first-child {
  grid-column: 1 / 2;
}

.window-list {
  display: grid;
  gap: 14px;
}

.window-row {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
}

.window-row.is-selected {
  border-color: rgba(59, 130, 246, 0.55);
  background: #eff6ff;
}

.window-check {
  width: 24px;
  height: 24px;
  accent-color: var(--window);
}

.window-photo {
  width: 86px;
  height: 72px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

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

.window-info strong,
.window-info span {
  display: block;
}

.window-info span {
  color: var(--window-dark);
  font-weight: 800;
}

.quantity {
  display: grid;
  grid-template-columns: 42px 48px 42px;
  overflow: hidden;
  border: 1px solid var(--window);
  border-radius: 14px;
}

.quantity button {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: var(--window);
  font-size: 1.35rem;
  font-weight: 800;
}

.quantity output {
  display: grid;
  min-height: 42px;
  place-items: center;
  background: #fff;
  font-weight: 800;
}

.raise-option {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  color: var(--muted);
  border-radius: 18px;
  background: #f8fafc;
}

.raise-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--window);
}

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

label {
  color: var(--text);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.summary-card {
  position: sticky;
  top: 96px;
}

.summary-card span {
  color: var(--muted);
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--window-dark);
  font-size: 3rem;
  line-height: 1;
}

.summary-card p,
.form-status {
  color: var(--muted);
}

.submit-btn {
  width: 100%;
  margin-top: 16px;
}

.form-status {
  margin-top: 14px;
  font-weight: 700;
}

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #dc2626;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.photo-modal.is-open {
  display: flex;
}

.photo-modal img {
  max-width: min(92vw, 680px);
  max-height: 84vh;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.photo-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  font-size: 2rem;
}

@media (hover: hover) and (pointer: fine) {
  .window-photo {
    position: relative;
  }

  .window-photo:hover::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 20px, 620px);
  }

  .topbar {
    align-items: stretch;
    border-radius: 26px;
  }

  .topbar-actions .ghost-link {
    display: none;
  }

  .hero-grid,
  .service-cards,
  .order-form,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .hero-grid {
    padding-top: 38px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .window-row {
    grid-template-columns: auto 68px minmax(0, 1fr);
  }

  .window-photo {
    width: 68px;
    height: 62px;
  }

  .quantity {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 420px) {
  .contact-pill {
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .brand small {
    display: none;
  }

  .window-row {
    gap: 10px;
    padding: 12px;
  }

  .quantity {
    grid-template-columns: 44px 56px 44px;
  }
}
