/* =========================================================
   BluePoint Plumbing — premium mockup
   Palette: deep navy + warm cream + soft copper accent
   Type:    Manrope (sans) + Fraunces (serif accents)
   ========================================================= */

:root {
  /* Core */
  --cream:        #f6f1e8;
  --cream-2:      #efe7d7;
  --paper:        #fbf7f0;
  --ink:          #0d1f33;        /* deep navy */
  --ink-2:        #15304d;
  --ink-soft:     #3a4a60;
  --muted:        #6a7689;
  --hairline:     rgba(13, 31, 51, 0.08);
  --hairline-2:   rgba(13, 31, 51, 0.14);

  /* Accent */
  --copper:       #c46a3a;        /* warm copper */
  --copper-soft:  #e9a079;
  --steel:        #2c5d8a;        /* steel blue */
  --steel-2:      #1f4d77;

  /* Effects */
  --shadow-sm:    0 1px 2px rgba(13, 31, 51, .06), 0 2px 6px rgba(13, 31, 51, .04);
  --shadow-md:    0 4px 14px rgba(13, 31, 51, .07), 0 18px 40px -16px rgba(13, 31, 51, .14);
  --shadow-lg:    0 20px 60px -20px rgba(13, 31, 51, .35), 0 8px 24px rgba(13, 31, 51, .08);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;

  --container:    1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.serif {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* =========================================================
   NAV
   ========================================================= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--ink), var(--ink-2) 60%, var(--steel-2));
  color: var(--cream);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.12);
}
.brand-mark.light { color: var(--cream); }
.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-word.light { color: var(--cream); }
.brand-dot { color: var(--copper); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease;
}
.btn-pill:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #5ce58e;
  box-shadow: 0 0 0 0 rgba(92, 229, 142, .55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(92,229,142,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(92,229,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,229,142,0); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(196, 106, 58, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(44, 93, 138, 0.08), transparent 60%),
    var(--paper);
  overflow: hidden;
  padding: 88px 0 110px;
  border-bottom: 1px solid var(--hairline);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline-2);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: none;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--copper);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(196,106,58,.18);
}

.display {
  /* Manrope (sans) for regular display text — Fraunces' default 'f' has
     a swooping top serif we don't want. Italic Fraunces is kept on the
     <em.serif> accent below where its expressive form is the goal. */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 18px;
  color: var(--ink);
}
.display em.serif {
  font-family: 'Fraunces', serif;
  color: var(--copper);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: "opsz" 144;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--shadow-md);
  transition: transform .2s ease, background .2s ease;
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-primary.large { padding: 17px 28px; font-size: 16px; border-radius: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(13,31,51,.04); border-color: rgba(13,31,51,.22); }
.btn-ghost.large { padding: 17px 26px; font-size: 16px; border-radius: 14px; }
.btn-ghost.light {
  color: var(--cream);
  border-color: rgba(246,241,232,.28);
}
.btn-ghost.light:hover { background: rgba(246,241,232,.08); border-color: rgba(246,241,232,.5); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stats strong span {
  font-size: 16px;
  color: var(--copper);
  font-weight: 500;
  margin-left: 2px;
}
.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.hero-divider {
  width: 1px;
  height: 36px;
  background: var(--hairline-2);
}

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, #1a3a5c 0%, #0d1f33 40%, #0a1828 100%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(196,106,58,.18), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}
.hero-photo-glow {
  position: absolute;
  width: 320px; height: 320px;
  bottom: -120px; left: -100px;
  background: radial-gradient(closest-side, rgba(44,93,138,.55), transparent);
  filter: blur(40px);
}
.photo-caption {
  position: absolute;
  top: 16px; left: 18px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(246,241,232,.55);
  background: rgba(246,241,232,.06);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246,241,232,.12);
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  min-width: 220px;
}
.hero-floating-card strong { display: block; color: var(--ink); font-size: 14px; }
.hero-floating-card span { color: var(--muted); font-size: 12.5px; }
.hero-floating-card:not(.alt) {
  bottom: 28px;
  left: -28px;
}
.hero-floating-card.alt {
  top: 32px;
  right: -22px;
}

.floating-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #e7f5ec;
  color: #1f8a4d;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--copper), #d2895c);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ai-pulse {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse-light 1.8s infinite;
}
.ai-pulse.small { background: var(--copper); }
@keyframes pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  position: relative;
  color: var(--ink);
}
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--hairline-2);
}
.trust-item svg { color: var(--copper); flex-shrink: 0; }
.trust-item strong { display: block; font-weight: 700; font-size: 14.5px; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); }

/* =========================================================
   SECTION CHROME
   ========================================================= */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--copper-soft); }
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-title.light { color: var(--cream); }
.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 110px 0;
  background: var(--paper);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 32px 28px 30px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,31,51,.16);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f6ece2, #efddc9);
  color: var(--copper);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.service-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.6;
}
.card-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--copper);
}
.card-link:hover { color: var(--steel-2); }

.service-card.highlight {
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--cream);
  border-color: transparent;
}
.service-card.highlight h3 { color: var(--cream); }
.service-card.highlight p { color: rgba(246,241,232,.78); }
.service-card.highlight .service-icon {
  background: rgba(246,241,232,.08);
  color: var(--copper-soft);
}
.service-card.highlight .card-link { color: var(--copper-soft); }

/* =========================================================
   WHY BLUEPOINT
   ========================================================= */
.why {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(196,106,58,0.13), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(44,93,138,0.18), transparent 60%),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,241,232,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,232,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.why-inner { position: relative; }
.why-head {
  text-align: center;
  margin-bottom: 56px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: rgba(246,241,232,0.04);
  border: 1px solid rgba(246,241,232,.10);
  padding: 32px 28px 30px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--copper), #b35a2d);
  color: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px -8px rgba(196,106,58,.6);
}
.why-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--cream);
}
.why-card p {
  font-size: 15px;
  color: rgba(246,241,232,.74);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews {
  padding: 110px 0;
  background: var(--cream);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stars {
  color: #e2a93a;
  font-size: 16px;
  letter-spacing: 2px;
}
.review-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.review-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--steel), var(--steel-2));
  color: var(--cream);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.review-card footer strong { display: block; font-size: 14px; }
.review-card footer span { display: block; font-size: 12.5px; color: var(--muted); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta {
  padding: 110px 0;
  background: var(--paper);
}
.cta-inner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(700px 350px at 20% 0%, rgba(196,106,58,.18), transparent 60%),
    radial-gradient(600px 350px at 100% 100%, rgba(44,93,138,.22), transparent 60%),
    linear-gradient(165deg, var(--ink), var(--ink-2));
  color: var(--cream);
  border-radius: 28px;
  padding: 88px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
  position: relative;
}
.cta-title em.serif { color: var(--copper-soft); }
.cta-sub {
  font-size: 17px;
  color: rgba(246,241,232,.78);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 22px;
}
.cta-foot {
  font-size: 12.5px;
  color: rgba(246,241,232,.55);
  letter-spacing: 0.04em;
  margin: 0;
  position: relative;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: rgba(246,241,232,.72);
  padding: 64px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,241,232,.08);
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 320px;
  font-size: 14px;
  color: rgba(246,241,232,.62);
  line-height: 1.6;
}
.footer h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--copper-soft);
  margin: 0 0 14px;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list a:hover { color: var(--cream); }
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(246,241,232,.45);
}

/* =========================================================
   AI CHAT WIDGET
   ========================================================= */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 30px 80px -20px rgba(13,31,51,.45),
    0 8px 24px rgba(13,31,51,.16),
    0 0 0 1px rgba(13,31,51,.05);
  overflow: hidden;
  z-index: 100;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(165deg, var(--ink), var(--ink-2));
  color: var(--cream);
  position: relative;
}
.chat-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(200px 100px at 90% 0%, rgba(196,106,58,.30), transparent 60%);
  pointer-events: none;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.chat-header-left strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.chat-status {
  font-size: 11.5px;
  color: rgba(246,241,232,.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.online-dot {
  width: 7px; height: 7px;
  background: #5ce58e;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(92,229,142,.18);
}

.ai-avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--copper), #b35a2d 65%, #8a4520);
  color: var(--cream);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px -4px rgba(196,106,58,.6);
}
.ai-avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1.5px solid rgba(196,106,58,.55);
  animation: ai-ring 2.2s infinite;
}
@keyframes ai-ring {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.25); opacity: 0; }
}

.chat-min {
  width: 28px; height: 28px;
  border-radius: 8px;
  color: rgba(246,241,232,.7);
  font-size: 18px;
  position: relative;
  transition: background .2s ease;
}
.chat-min:hover { background: rgba(246,241,232,.1); color: var(--cream); }

.chat-body {
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(196,106,58,.06), transparent 70%),
    var(--paper);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(13,31,51,.15); border-radius: 4px; }

.msg.bot.confirm .msg-bubble {
  background: linear-gradient(135deg, rgba(38, 132, 90, 0.12), rgba(196, 106, 58, 0.08));
  border-color: rgba(38, 132, 90, 0.35);
  color: var(--ink);
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 86%;
}
.msg.bot { align-self: flex-start; align-items: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}
.msg.bot .msg-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-top-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.msg.user .msg-bubble {
  background: linear-gradient(165deg, var(--ink), var(--ink-2));
  color: var(--cream);
  border-top-right-radius: 6px;
}
.msg-time {
  font-size: 10.5px;
  color: var(--muted);
  padding: 0 4px;
}
.typing-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.typing-bubble span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 999px;
  animation: typing 1.3s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

.chat-footer {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--hairline);
  background: #fff;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
  margin-bottom: 10px;
}
.chat-input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  padding: 8px 0;
  color: var(--ink);
  font-size: 13.5px;
}
.chat-input-row input::placeholder { color: var(--muted); }
.chat-send {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  transition: background .2s ease;
}
.chat-send:hover { background: var(--ink-2); }
.chat-foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 520px; aspect-ratio: 5/4; margin: 0 auto; }
  .hero-floating-card:not(.alt) { left: 8px; }
  .hero-floating-card.alt { right: 8px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review-card:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav-links { display: none; }
  .btn-pill { padding: 9px 14px; font-size: 13px; }
  .hero { padding: 56px 0 80px; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-divider { display: none; }
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding: 24px 12px;
  }
  .trust-item { padding: 0 16px; }
  .trust-item + .trust-item::before { display: none; }
  .service-grid, .why-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 8px; }
  .cta-inner { padding: 60px 22px; border-radius: 22px; }
  .chat-widget {
    width: calc(100vw - 24px);
    right: 12px; bottom: 12px;
  }
}

@media (max-width: 520px) {
  .display { font-size: 38px; }
  .section-head { margin-bottom: 40px; }
  .services, .why, .reviews, .cta { padding: 72px 0; }
  .hero-floating-card:not(.alt) { left: 4px; bottom: 14px; min-width: 190px; }
  .hero-floating-card.alt { right: 4px; top: 14px; min-width: 190px; }
}
