/* ============================================================
   SilverBridge Design — shared stylesheet
   Dark theme: matte black / chrome silver / electric blue
   Mobile-first. No frameworks, no external fonts.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #0f0f13;
  --card: #131318;
  --card-raised: #17171d;
  --border: #24242c;
  --border-bright: #34343e;
  --text: #e8eaee;
  --text-dim: #a3a8b3;
  --text-faint: #767c88;
  --silver: #c9ced6;
  --blue: #1e7fe0;
  --blue-bright: #4da3ff;
  --blue-glow: rgba(30, 127, 224, 0.35);
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(30, 127, 224, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(30, 127, 224, 0.05), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

/* Big titles are all-caps (matches the brand flyer); descriptions stay sentence case */
h1, h2 { text-transform: uppercase; letter-spacing: 0.025em; }

h1 { font-size: clamp(1.9rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.chrome {
  background: linear-gradient(180deg, #f7f9fc 0%, #cfd5dd 45%, #8f97a3 75%, #c4cad3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent { color: var(--blue-bright); -webkit-text-fill-color: var(--blue-bright); }

.lead { font-size: 1.08rem; color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
              border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px var(--blue-glow);
}
.btn-primary:hover { box-shadow: 0 6px 32px var(--blue-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--silver); background: rgba(255, 255, 255, 0.04); }

.btn-block { width: 100%; }

.btn svg { flex-shrink: 0; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand em { font-style: normal; color: var(--blue-bright); }

.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.site-nav.open { display: flex; }

.site-nav a {
  color: var(--text-dim);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav a.active { color: var(--blue-bright); }
.site-nav .nav-cta-mobile { margin-top: 10px; }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
  }
  .site-nav a { padding: 8px 14px; font-size: 0.95rem; }
  .site-nav .nav-cta-mobile { display: none; }
  .nav-cta { display: inline-flex; padding: 10px 20px; font-size: 0.92rem; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; text-align: center; }

.hero-logo {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(30, 127, 224, 0.25);
}

.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 560px; margin: 0 auto 14px; }

.hero-price-anchor {
  font-size: 0.95rem;
  color: var(--text-faint);
  margin-bottom: 30px;
}
.hero-price-anchor strong { color: var(--silver); }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 340px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero { padding: 96px 0 72px; }
  .hero-ctas { flex-direction: row; justify-content: center; max-width: none; }
  .hero-ctas .btn { min-width: 210px; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: center;
}
.trust-item strong { display: block; font-size: 1.02rem; color: var(--text); }
.trust-item span { font-size: 0.88rem; color: var(--text-faint); }

@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 127, 224, 0.12);
  border: 1px solid rgba(30, 127, 224, 0.3);
  margin-bottom: 16px;
  color: var(--blue-bright);
}

/* ---------- Package cards ---------- */

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 860px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }

.pkg {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.pkg-popular {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(30, 127, 224, 0.18);
  background: linear-gradient(180deg, rgba(30, 127, 224, 0.08), var(--card) 40%);
}

.pkg-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pkg-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}

.pkg-price { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pkg-price sup { font-size: 1.3rem; font-weight: 700; vertical-align: 14px; margin-right: 2px; }

.pkg-tagline { font-size: 0.9rem; color: var(--text-faint); margin: 10px 0 20px; }

.pkg ul { list-style: none; margin-bottom: 26px; flex: 1; }
.pkg li {
  padding: 9px 0 9px 30px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pkg li:last-child { border-bottom: none; }
.pkg li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M3.5 8.5l3 3 6-6.5" stroke="%234da3ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 14px no-repeat,
    rgba(30, 127, 224, 0.12);
}

/* ---------- Care plan band ---------- */

.care-band {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 28px;
}
.care-band .tag {
  align-self: flex-start;
  background: rgba(30, 127, 224, 0.14);
  border: 1px solid rgba(30, 127, 224, 0.35);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.care-band h3 { font-size: 1.3rem; }
.care-band h3 span { color: var(--blue-bright); }
.care-band p { color: var(--text-dim); font-size: 0.95rem; }

@media (min-width: 860px) {
  .care-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .care-band > div { max-width: 640px; }
  .care-band .btn { flex-shrink: 0; }
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-bright);
  opacity: 0.85;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Owner / story block ---------- */

.story {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1.2fr; } }

.story-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: center;
}
.story-visual img {
  width: 100%;
  max-width: 280px;
  border-radius: 18px;
  box-shadow: 0 0 50px rgba(30, 127, 224, 0.2);
}
.story-copy h2 { margin-bottom: 16px; }
.story-copy p { color: var(--text-dim); margin-bottom: 14px; }
.story-copy .btn { margin-top: 8px; }

blockquote.pull {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--silver);
}

/* ---------- Work / concept mockups ---------- */

.work-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.work-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }

.work-meta { padding: 18px 20px 22px; }
.work-meta h3 { margin-bottom: 4px; }
.work-meta p { font-size: 0.9rem; color: var(--text-dim); }
.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* Featured build — full-width card with a real screenshot (see the
   commented template in work.html) */
.work-card.featured { grid-column: 1 / -1; }
.work-shot { border-bottom: 1px solid var(--border); background: #0d0d11; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) {
  .work-card.featured { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .work-card.featured .work-shot { border-bottom: none; border-right: 1px solid var(--border); }
}

/* Browser-frame mockup, pure CSS */
.mock {
  background: #0d0d11;
  border-bottom: 1px solid var(--border);
  padding: 20px 20px 0;
}
.mock-window {
  background: #16161c;
  border: 1px solid var(--border-bright);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #1c1c23;
  border-bottom: 1px solid var(--border);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a44;
}
.mock-bar i:first-child { background: var(--blue); }
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; min-height: 150px; }

.m-nav { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.m-nav b { width: 34px; height: 8px; border-radius: 3px; background: var(--blue); }
.m-nav i { width: 20px; height: 5px; border-radius: 3px; background: #2c2c35; margin-left: 6px; }

.m-hero { border-radius: 6px; height: 56px; background: linear-gradient(120deg, rgba(30,127,224,0.45), rgba(77,163,255,0.12)); }
.m-hero.warm { background: linear-gradient(120deg, rgba(200,205,214,0.35), rgba(30,127,224,0.18)); }
.m-hero.tall { height: 74px; }

.m-line { height: 6px; border-radius: 3px; background: #2c2c35; }
.m-line.w60 { width: 60%; }
.m-line.w40 { width: 40%; }
.m-line.w80 { width: 80%; }

.m-btn { width: 64px; height: 16px; border-radius: 8px; background: var(--blue); }

.m-cols { display: flex; gap: 8px; }
.m-cols div { flex: 1; height: 34px; border-radius: 5px; background: #23232b; }
.m-cols div:nth-child(2) { background: rgba(30,127,224,0.25); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue-bright);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(30, 127, 224, 0.14), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 28px; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .contact-row { flex-direction: row; justify-content: center; max-width: none; }
  .contact-row .btn { min-width: 190px; }
}

/* ---------- Contact page ---------- */

.contact-cards { display: grid; gap: 14px; margin-bottom: 40px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.contact-card .card-icon { margin-bottom: 6px; }
.contact-card strong { font-size: 1rem; }
.contact-card span { font-size: 0.88rem; color: var(--text-dim); word-break: break-all; }

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
}
@media (min-width: 640px) { .form-shell { padding: 40px; } }

.picked-note {
  display: none;
  background: rgba(30, 127, 224, 0.1);
  border: 1px solid rgba(30, 127, 224, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.picked-note.show { display: block; }
.picked-note strong { color: var(--blue-bright); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--silver);
}
.field label .opt { font-weight: 400; color: var(--text-faint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" fill="none"><path d="M1 1.5l5 5 5-5" stroke="%23a3a8b3" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 127, 224, 0.2);
}

.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 22px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.check span { font-size: 0.92rem; color: var(--text-dim); }
.check strong { color: var(--text); }

.form-note { font-size: 0.85rem; color: var(--text-faint); text-align: center; margin-top: 16px; }

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.form-status.error {
  display: block;
  background: rgba(224, 62, 62, 0.1);
  border: 1px solid rgba(224, 62, 62, 0.4);
  color: #ff9d9d;
}
.form-status.sending {
  display: block;
  background: rgba(30, 127, 224, 0.1);
  border: 1px solid rgba(30, 127, 224, 0.35);
  color: var(--blue-bright);
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 90px; /* bottom padding clears the floating email button */
  font-size: 0.92rem;
}

.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand em { font-style: normal; color: var(--blue-bright); }

.site-footer p { color: var(--text-faint); }
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--text-dim); }
.site-footer li a:hover { color: var(--blue-bright); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Floating chat widget (all screen sizes) ---------- */

.chat-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 28px rgba(30, 127, 224, 0.5);
  transition: transform 0.15s ease;
}
.chat-fab:active { transform: scale(0.95); }
.chat-fab:hover { transform: translateY(-1px); }
.chat-fab svg { flex-shrink: 0; }

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 61;
  width: min(360px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
}
.chat-head img { width: 38px; height: 38px; border-radius: 9px; }
.chat-head strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.chat-head span { display: block; font-size: 0.78rem; opacity: 0.85; }
.chat-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.28); }

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
}
.chat-bubble {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
  align-self: flex-start;
  max-width: 92%;
}
.chat-bubble.me {
  align-self: flex-end;
  background: rgba(30, 127, 224, 0.16);
  border-color: rgba(30, 127, 224, 0.4);
  border-radius: 12px 12px 4px 12px;
  color: var(--text);
  white-space: pre-wrap;
}

.chat-form { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 9px; }
.chat-form input,
.chat-form textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 10px 12px;
  -webkit-appearance: none;
  appearance: none;
}
.chat-form textarea { min-height: 68px; resize: vertical; }
.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 127, 224, 0.2);
}
.chat-send {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px;
  cursor: pointer;
}
.chat-send:disabled { opacity: 0.6; cursor: default; }
.chat-form textarea.chat-input { min-height: 46px; }

.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 16px; }
.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: chat-blink 1.2s infinite both;
}
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.chat-alt {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  padding: 0 16px 14px;
}
.chat-alt a { color: var(--text-dim); }

@media (min-width: 860px) {
  .site-footer { padding-bottom: 96px; } /* chat button shows on desktop too */
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero { padding: 56px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Reveal animation ---------- */

/* Reveal only activates when JS is running (html.js), so content is
   never hidden if scripts fail to load */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.error-hero { padding: 110px 0; text-align: center; }
.error-hero .big {
  font-size: clamp(4.5rem, 20vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
