/* Hitchcock Comfort Air - demo site styles
   Pure CSS, no frameworks. Visuals are gradients and inline SVG only. */

:root {
  --navy: #10263f;
  --navy-2: #17375c;
  --sky: #2e7fc2;
  --flame: #e86a2c;
  --flame-dark: #c9551d;
  --amber: #f5a623;
  --ink: #1d2733;
  --muted: #5b6b7c;
  --line: #dde5ec;
  --bg: #f6f9fc;
  --card: #ffffff;
  --good: #1e8e5a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 38, 63, 0.12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sky); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f0;
  font-size: 0.86rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--sky), var(--navy-2));
  display: grid; place-items: center;
}
.logo-name { color: var(--navy); font-weight: 800; font-size: 1.18rem; line-height: 1.15; }
.logo-sub { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

nav.main { display: flex; gap: 4px; align-items: center; }
nav.main a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 9px;
}
nav.main a:hover { background: var(--bg); }
nav.main a.active { color: var(--sky); }
nav.main a.cta {
  background: var(--flame); color: #fff; margin-left: 8px;
  padding: 10px 16px; border-radius: 10px;
}
nav.main a.cta:hover { background: var(--flame-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px; font-size: 1.05rem; cursor: pointer; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 11px; font-size: 1rem; border: 0; cursor: pointer;
}
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover { background: var(--flame-dark); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(46, 127, 194, 0.5), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(232, 106, 44, 0.35), transparent 55%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 60%, #1d4a75 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px;
  padding-top: 58px; padding-bottom: 58px; align-items: center;
}
.hero h1 { font-size: 2.55rem; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero h1 .hl { color: var(--amber); }
.hero p.lede { font-size: 1.13rem; color: #d7e5f2; margin: 0 0 24px; max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; color: #cfe0f0; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-art {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px; padding: 22px;
}
.hero-card {
  background: #fff; color: var(--ink); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.02rem; }
.hero-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.hero-card .row:last-child { border-bottom: 0; }
.pill { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill-green { background: #e3f4ec; color: var(--good); }
.pill-blue { background: #e4effa; color: var(--sky); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--flame); font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 6px; }
h2.title { color: var(--navy); font-size: 1.85rem; margin: 0 0 10px; letter-spacing: -0.01em; }
p.sub { color: var(--muted); max-width: 44rem; margin: 0 0 30px; font-size: 1.03rem; }

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 3px 12px rgba(16, 38, 63, 0.05);
}
.card h3 { margin: 12px 0 7px; color: var(--navy); font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.icon-chip {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e4effa, #f3f8fd);
}
.icon-chip.warm { background: linear-gradient(135deg, #fdeadd, #fdf3ec); }

.steps { counter-reset: step; }
.step { display: flex; gap: 16px; }
.step-num {
  counter-increment: step; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin: 6px 0 5px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.cta-band {
  background: linear-gradient(120deg, var(--flame), var(--flame-dark));
  color: #fff; border-radius: 20px; padding: 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { margin: 0; color: #ffe8d9; }
.cta-band .btn { background: #fff; color: var(--flame-dark); }

/* ---------- Reviews ---------- */
.rating-summary {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 24px;
}
.big-score { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1.05rem; }
.review-card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--sky), var(--navy-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.who .name { font-weight: 700; color: var(--navy); }
.who .meta { color: var(--muted); font-size: 0.83rem; }
.sample-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--flame-dark); background: #fdeadd;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.owner-response {
  margin-top: 14px; background: var(--bg); border-left: 3px solid var(--sky);
  border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 0.92rem; color: var(--muted);
}
.owner-response strong { color: var(--navy); }

/* ---------- Forms / contact ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky);
}
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  display: none; background: #e3f4ec; border: 1px solid #bfe6d2; color: #145c39;
  border-radius: 12px; padding: 16px 18px; font-weight: 600;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-weight: 700; color: var(--navy); min-width: 92px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.area-tags span { background: #e4effa; color: var(--navy-2); font-size: 0.86rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #b9cee2; margin-top: 0; }
footer.site .wrap { padding-top: 40px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
footer.site a { color: #b9cee2; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; font-size: 0.94rem; }
.demo-line {
  border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px;
  font-size: 0.83rem; color: #8fa9c2; text-align: center;
}

/* ---------- Chatbot widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--flame); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(201, 85, 29, 0.4);
}
.chat-fab:hover { background: var(--flame-dark); }
.chat-panel {
  position: fixed; right: 20px; bottom: 82px; z-index: 91;
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 38, 63, 0.3);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; gap: 11px;
}
.chat-head .avatar { background: rgba(255, 255, 255, 0.18); }
.chat-head .t { font-weight: 800; line-height: 1.2; }
.chat-head .s { font-size: 0.8rem; color: #bcd3e8; }
.chat-head button {
  margin-left: auto; background: none; border: 0; color: #fff;
  font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 4px;
}
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 0.93rem; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--sky); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 14px 10px; background: var(--bg); }
.chip {
  font: inherit; font-size: 0.83rem; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--navy-2); border: 1.5px solid var(--sky);
  padding: 6px 12px; border-radius: 999px;
}
.chip:hover { background: #e4effa; }
.chat-input { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input {
  flex: 1; font: inherit; font-size: 0.94rem; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; min-width: 0;
}
.chat-input button {
  font: inherit; font-weight: 700; background: var(--flame); color: #fff;
  border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
}
.chat-input button:hover { background: var(--flame-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  nav.main.open { display: flex; }
  nav.main a.cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  header.site .wrap { position: relative; }
  .cta-band { padding: 26px; }
}
