:root {
  color-scheme: dark;
  --orange: #ea6422;
  --orange-deep: #c64916;
  --graphite: #161d22;
  --ink: #0e1318;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.2);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif;
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.background-photo,
.background-treatment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-photo {
  z-index: -3;
  object-fit: cover;
  object-position: center 72%;
}

.background-treatment {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 13, 17, 0.64) 0%, rgba(8, 13, 17, 0.43) 38%, rgba(8, 13, 17, 0.06) 72%, rgba(8, 13, 17, 0.04) 100%),
    linear-gradient(180deg, rgba(5, 10, 14, 0.12) 0%, transparent 56%, rgba(5, 10, 14, 0.42) 100%);
}

.site-header,
.hero,
.site-footer {
  width: min(100% - 56px, 1300px);
  margin-inline: auto;
}

.site-header {
  padding-top: clamp(24px, 4vh, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: clamp(172px, 16vw, 228px);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.34));
}

.status {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero { display: flex; align-items: center; padding-block: 44px; }
.hero-copy {
  position: relative;
  z-index: 0;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #ffd7c3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 650;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.42);
}

.lead {
  margin: 28px 0 0;
  max-width: 610px;
  color: var(--soft-white);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
}

.lead strong { color: var(--white); font-weight: 600; }

.primary-action,
.send-button {
  border: 0;
  color: white;
  background: var(--orange);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  margin-top: 34px;
  min-height: 54px;
  padding: 0 21px 0 24px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 38px rgba(120, 42, 6, 0.26);
  font-weight: 700;
}

.primary-action svg,
.send-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-action:hover, .send-button:hover { background: #f27334; transform: translateY(-2px); }
.primary-action:focus-visible, .send-button:focus-visible, .chat-fab:focus-visible, .chat-head button:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.site-footer {
  padding-bottom: clamp(24px, 4vh, 44px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.site-footer p { margin: 0; }

.chat-fab {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 10;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.chat-fab:hover { transform: translateY(-3px) scale(1.02); }
.chat-fab svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }

.chat-card {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 20;
  width: min(380px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #20272b;
  background: #f4f1ec;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.chat-card.is-open { opacity: 1; pointer-events: auto; transform: none; }

.chat-head {
  min-height: 78px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: white;
  background: var(--graphite);
}

.chat-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f17a42, var(--orange-deep));
  font-size: 20px;
  font-weight: 800;
}

.chat-head strong { display: block; font-size: 14px; }
.chat-head span { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: rgba(255,255,255,.65); font-size: 11px; }
.chat-head span i { width: 6px; height: 6px; border-radius: 50%; background: #25d366; }
.chat-head button { align-self: start; width: 32px; height: 32px; border: 0; color: rgba(255,255,255,.7); background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }

.chat-body { padding: 18px; }
.message-bubble { margin-bottom: 18px; padding: 13px 14px; border-radius: 4px 15px 15px 15px; color: #343b3f; background: white; font-size: 13px; line-height: 1.5; box-shadow: 0 5px 18px rgba(30, 39, 43, 0.06); }
.chat-body label { display: block; margin: 0 0 7px; color: #666d70; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chat-body textarea { width: 100%; resize: none; min-height: 94px; padding: 12px 13px; border: 1px solid #d5d0c9; border-radius: 11px; color: #252b2e; background: #fff; font-size: 13px; line-height: 1.45; outline: none; }
.chat-body textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,100,34,.12); }
.send-button { width: 100%; min-height: 48px; margin-top: 12px; padding-inline: 17px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 750; }
.chat-note { margin: 9px 0 0; color: #7b7f80; font-size: 10px; text-align: center; }

@media (max-width: 720px) {
  .page-shell { min-height: 100svh; }
  .background-photo { object-position: 47% 74%; }
  .background-treatment { background: linear-gradient(180deg, rgba(8,13,17,.28) 0%, rgba(8,13,17,.05) 28%, rgba(8,13,17,.28) 68%, rgba(8,13,17,.6) 100%); }
  .site-header, .hero, .site-footer { width: min(100% - 34px, 1300px); }
  .site-header { padding-top: max(22px, env(safe-area-inset-top)); }
  .brand img { width: 172px; }
  .status { max-width: 130px; font-size: 10px; line-height: 1.35; text-align: right; }
  .hero { align-items: center; padding: 34px 0 76px; }
  .hero-copy { transform: translateY(-3vh); }
  h1 { font-size: clamp(43px, 13vw, 64px); }
  .lead { margin-top: 22px; font-size: 15px; line-height: 1.55; }
  .primary-action { width: 100%; justify-content: space-between; margin-top: 28px; }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); flex-direction: column; gap: 5px; }
  .chat-fab { width: 54px; height: 54px; }
}

@media (max-height: 700px) and (min-width: 721px) {
  h1 { font-size: clamp(48px, 5.5vw, 72px); }
  .lead { margin-top: 20px; line-height: 1.5; }
  .primary-action { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
