/* ============================================
   CRAWLY THE RACCOON — Character Styles
   ============================================ */

/* Crawly SVG inline character */
.crawly-wrap {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.5rem 0;
}
.crawly-wrap.crawly-right {
  flex-direction: row-reverse;
}
.crawly-char {
  flex-shrink: 0;
  width: 90px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
  animation: crawly-bob 3s ease-in-out infinite;
}
.crawly-char.crawly-sm { width: 64px; }
.crawly-char.crawly-lg { width: 120px; }
@keyframes crawly-bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.crawly-bubble {
  position: relative;
  background: #fff;
  border: 2.5px solid #7bc012;
  border-radius: 18px;
  padding: .85rem 1.1rem;
  font-size: .95rem;
  color: #1a2330;
  max-width: 340px;
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  line-height: 1.5;
}
.crawly-bubble::before {
  content: '';
  position: absolute;
  bottom: 14px;
  left: -13px;
  border: 7px solid transparent;
  border-right-color: #7bc012;
}
.crawly-bubble::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: -10px;
  border: 6px solid transparent;
  border-right-color: #fff;
}
.crawly-wrap.crawly-right .crawly-bubble::before {
  left: auto; right: -13px;
  border-right-color: transparent;
  border-left-color: #7bc012;
}
.crawly-wrap.crawly-right .crawly-bubble::after {
  left: auto; right: -10px;
  border-right-color: transparent;
  border-left-color: #fff;
}
.crawly-bubble strong {
  display: block;
  color: #0a1a3d;
  font-size: 1rem;
  margin-bottom: .3rem;
}
.crawly-bubble .crawly-btn {
  display: inline-block;
  margin-top: .6rem;
  background: #7bc012;
  color: #fff;
  font-weight: 800;
  padding: .45rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: .88rem;
  transition: background .2s;
}
.crawly-bubble .crawly-btn:hover { background: #5a9a00; }

/* Crawly peeking over the form */
.crawly-form-peek {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: linear-gradient(135deg, #0a1a3d 0%, #1a3a7a 100%);
  border-radius: 12px 12px 0 0;
  padding: .7rem 1.2rem;
  margin: -1px;
}
.crawly-form-peek img,
.crawly-form-peek .crawly-peek-svg {
  width: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.crawly-form-peek-text {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.crawly-form-peek-text span {
  color: #7bc012;
}

/* Fun fact ribbon */
.crawly-fact {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #f0f9e0;
  border-left: 4px solid #7bc012;
  border-radius: 0 10px 10px 0;
  padding: .8rem 1rem;
  margin: 1.5rem 0;
  font-size: .93rem;
  color: #1a2330;
}
.crawly-fact .crawly-char { width: 52px; animation: none; }
.crawly-fact strong { color: #0a1a3d; }

/* Color palette updates for new logo */
:root {
  --lime: #7bc012;
  --lime-dark: #5a9a00;
  --lime-light: #a2d94a;
}

/* New logo color overrides */
.btn-primary {
  background: linear-gradient(135deg, #00c8f8 0%, #0095c8 100%) !important;
  color: #0a1a3d !important;
  font-weight: 800 !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4ddcff 0%, #00c8f8 100%) !important;
  color: #0a1a3d !important;
}

/* Mobile sticky bar — lime green book button */
#mobileCta a:last-child {
  background: #7bc012 !important;
  color: #fff !important;
}

/* Crawly paw cursor easter egg on logo */
.logo img { cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🦝</text></svg>') 16 16, auto; }

/* Crawly wiggle on hover for service cards */
.service-card:hover .service-icon { animation: crawly-wiggle .4s ease; }
@keyframes crawly-wiggle {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}

/* Fun raccoon track footer decoration */
.foot-tracks {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .3rem;
  opacity: .35;
  padding: .5rem 0;
  user-select: none;
}

/* Crawly speech on mobile sticky */
@media(max-width:768px) {
  .crawly-char { width: 70px; }
  .crawly-char.crawly-lg { width: 90px; }
  .crawly-bubble { font-size: .88rem; max-width: 260px; }
}

/* ============================================
   CRAWLY EXPANDED STYLES v2
   ============================================ */

/* --- Crawly Hero Intro Banner --- */
.crawly-hero-intro {
  background: linear-gradient(135deg, #0a1a3d 0%, #1a3a7a 60%, #0a2a10 100%);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}
.crawly-hero-intro::before {
  content: '🐾';
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 4rem;
  opacity: .07;
  transform: rotate(20deg);
}
.crawly-hero-intro img { width: 110px; flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.crawly-hero-intro-text { color: #fff; }
.crawly-hero-intro-text h3 {
  color: #7bc012;
  font-size: 1.25rem;
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.crawly-hero-intro-text p { margin: 0 0 .8rem; font-size: .97rem; opacity: .92; line-height: 1.55; }
.crawly-hero-intro-text .crawly-btn { font-size: .9rem; padding: .5rem 1.1rem; }

/* --- Crawly Tip Card (inline info box) --- */
.crawly-tip {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: #f8fff0;
  border: 2px solid #7bc012;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  box-shadow: 0 4px 16px rgba(123,192,18,.12);
}
.crawly-tip img { width: 70px; flex-shrink: 0; }
.crawly-tip-content { flex: 1; }
.crawly-tip-content .crawly-tip-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #7bc012;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: .2rem .7rem;
  margin-bottom: .5rem;
}
.crawly-tip-content p { margin: 0; font-size: .95rem; color: #1a2330; line-height: 1.55; }
.crawly-tip-content strong { color: #0a1a3d; }
.crawly-tip-content a.crawly-btn { margin-top: .7rem; }

/* --- Crawly Stats Callout --- */
.crawly-stats {
  background: linear-gradient(135deg, #0a1a3d, #1a3a7a);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 2rem 0;
}
.crawly-stats img { width: 110px; flex-shrink: 0; }
.crawly-stats > div { flex: 1; min-width: 0; }
.crawly-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem 1.2rem;
  width: 100%;
}
.crawly-stat-item { text-align: center; background: rgba(255,255,255,.07); border-radius: 10px; padding: .8rem .5rem; }
.crawly-stat-item .num { font-size: 2rem; font-weight: 900; color: #7bc012; line-height: 1; }
.crawly-stat-item .lbl { font-size: .76rem; color: rgba(255,255,255,.78); margin-top: .3rem; line-height: 1.35; }
@media(max-width:700px) {
  .crawly-stats { flex-direction: row; align-items: flex-start; padding: 1.2rem; gap: 1rem; }
  .crawly-stats img { width: 70px; }
  .crawly-stats-grid { grid-template-columns: repeat(2,1fr); }
}

/* --- Crawly FAQ bubble (inline in FAQ list) --- */
.crawly-faq-intro {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #f0f9e0;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid #7bc012;
}
.crawly-faq-intro img { width: 70px; flex-shrink: 0; }
.crawly-faq-intro p { margin: 0; font-size: .97rem; color: #1a2330; line-height: 1.5; }
.crawly-faq-intro strong { color: #0a1a3d; display: block; font-size: 1.05rem; margin-bottom: .3rem; }

/* --- Crawly floating sticky chat button --- */
#crawly-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  pointer-events: none;
}
#crawly-float img {
  width: 72px;
  cursor: pointer;
  pointer-events: all;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
  transition: transform .2s;
  animation: crawly-bob 2.5s ease-in-out infinite;
}
#crawly-float img:hover { transform: scale(1.12) rotate(-5deg); }
#crawly-float-bubble {
  background: #fff;
  border: 2.5px solid #7bc012;
  border-radius: 14px;
  padding: .7rem 1rem;
  font-size: .85rem;
  color: #1a2330;
  max-width: 200px;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  pointer-events: all;
  position: relative;
  line-height: 1.4;
  text-align: center;
  animation: crawly-fadeIn .3s ease;
}
#crawly-float-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 26px;
  border: 6px solid transparent;
  border-top-color: #7bc012;
}
#crawly-float-bubble strong { display: block; color: #0a1a3d; margin-bottom: .2rem; }
#crawly-float-bubble a {
  display: block;
  margin-top: .5rem;
  background: #7bc012;
  color: #fff;
  border-radius: 8px;
  padding: .4rem .8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
}
@keyframes crawly-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Crawly review intro --- */
.crawly-review-intro {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.crawly-review-intro img { width: 100px; margin: 0 auto .8rem; display: block; }
.crawly-review-intro p { font-size: 1.05rem; color: #1a2330; max-width: 520px; margin: 0 auto; line-height: 1.55; }
.crawly-review-intro strong { color: #7bc012; }

/* --- Crawly section divider --- */
.crawly-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  opacity: .55;
}
.crawly-divider::before, .crawly-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, #7bc012, transparent);
}
.crawly-divider span { font-size: 1.6rem; white-space: nowrap; }

/* --- Crawly checklist --- */
.crawly-checklist {
  background: #fff;
  border: 2px solid #e8f5c0;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.crawly-checklist-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.crawly-checklist-header img { width: 52px; }
.crawly-checklist-header strong { font-size: 1.05rem; color: #0a1a3d; }
.crawly-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.crawly-checklist ul li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; color: #1a2330; }
.crawly-checklist ul li::before { content: '✅'; flex-shrink: 0; }
@media(max-width:600px) {
  .crawly-checklist ul { grid-template-columns: 1fr; }
  .crawly-stats-grid { grid-template-columns: repeat(2,1fr); }
  .crawly-hero-intro { flex-direction: column; text-align: center; }
  .crawly-hero-intro img { width: 80px; }
  #crawly-float { bottom: 80px; right: 12px; }
  #crawly-float img { width: 56px; }
  #crawly-float-bubble { max-width: 160px; font-size: .78rem; }
}

/* Make form card border-radius play nice with peek header */
.hero-form-card { overflow: hidden; }
