:root {
  --accent: #64b4fa;
  --accent-ink: #0b365c;
  --canvas: #ffffff;
  --surface: #1a1a1a;
  --ink: #16181c;
  --ink-soft: #55606c;
  --line: rgba(22, 24, 28, 0.1);
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  font: 600 0.95rem/1 var(--font);
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg { padding: 15px 24px; font-size: 1.05rem; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: #7fc1fb; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 26, 26, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark { width: 28px; height: auto; }

.brand-word {
  display: grid;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-word em { display: contents; font-style: normal; color: var(--accent); }
.brand-word small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.nav-phone { font-variant-numeric: tabular-nums; font-weight: 600 !important; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-phone) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: #f3f0e9; /* base wall-paint tone shown until the canvas boots */
  color: #fff;
  overflow: hidden;
}

.paint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* stirring is tracked on the hero itself */
  /* Soft feather into the page below — no hard bottom edge */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.65) 72%,
    rgba(0, 0, 0, 0.25) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.65) 72%,
    rgba(0, 0, 0, 0.25) 88%,
    transparent 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42%, 220px);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.85) 78%,
    var(--canvas) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 88px 92px;
}

.hero-copy {
  max-width: 640px;
  padding: clamp(28px, 4.5vw, 46px);
  border-radius: calc(var(--radius) * 2);
  background: rgba(17, 19, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(10, 12, 16, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.hero-hint {
  margin: 26px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero-hint { display: none; }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 span { color: rgba(255, 255, 255, 0.55); font-weight: 700; }

.lede {
  margin: 0 0 30px;
  max-width: 34rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.75);
}

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

@media (max-width: 860px) {
  .hero-inner { padding-block: 60px 64px; }
}

/* ---------- services bento ---------- */

.services { padding-block: 88px; }

.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2, .area h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(100, 180, 250, 0.05), transparent 45%),
    #fff;
}
.card-wide { grid-column: span 2; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
}

.card-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(100, 180, 250, 0.13);
  color: #2b7cc4;
  margin-bottom: 14px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- area ---------- */

.area {
  background: var(--surface);
  color: #fff;
}
.area-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 64px;
}
.area p { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 32rem; }
.area-cta { text-align: center; }
.area-note { margin: 10px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- footer ---------- */

.site-footer {
  background: #111214;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 34px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-contact {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 0.92rem;
}
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 560px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-contact { justify-items: center; }
}

/* ---------- estimate dialog ---------- */

.estimate-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}
.estimate-dialog::backdrop {
  background: rgba(10, 12, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-card {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  margin: clamp(16px, 6vh, 64px) auto;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 24px 80px rgba(10, 12, 16, 0.35);
  padding: 28px;
}

.dialog-card h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.dialog-sub { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; }

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.dialog-close svg { width: 16px; height: 16px; }
.dialog-close:hover { color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-size: 0.85rem; font-weight: 600; }
.req { color: #b04632; font-weight: 500; font-size: 0.75rem; }
.opt { color: var(--ink-soft); font-weight: 500; font-size: 0.75rem; }

.field input,
.field textarea,
.field select {
  font: 400 0.95rem/1.4 var(--font);
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid rgba(22, 24, 28, 0.18);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input.invalid,
.field textarea.invalid { border-color: #b04632; }

.form-status {
  margin: 0 0 12px;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok { color: #1c7c43; }
.form-status.err { color: #b04632; }

.btn-submit { width: 100%; }
.btn-submit[disabled] { opacity: 0.6; cursor: default; }

.dialog-alt { margin: 14px 0 0; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }
.dialog-alt a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, .dialog-close, .field input, .field textarea, .field select {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  }
  .estimate-dialog[open] .dialog-card {
    animation: dialog-in 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  @keyframes dialog-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }
}

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