/* ----------------------------------------------------
   Noblestone Attorneys — Main Stylesheet
   ---------------------------------------------------- */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Antic+Didone&display=swap');

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
}

/* Root Variables */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #0b61d1;
  --accent-2: #0b3d91;
  --text-primary: #0b2540;
  --muted: #6b7280;
  --radius: 12px;
  --max-width: 1200px;
  --glass: rgba(255,255,255,0.6);

  --font-base: "Antic Didone", serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* Base Body */
html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base) !important;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent);
}

/* Lists */
ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
li {
  margin-bottom: 0.5rem;
}

/* Buttons */
button, .btn {
  font-family: var(--font-base);
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: all 0.3s ease;
}
button:hover, .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,97,209,0.3);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(11,61,145,0.12);
  color: var(--accent-2);
}
.btn-ghost:hover {
  background: rgba(11,97,209,0.05);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.95));
  border-bottom: 1px solid #eef2f8;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.75rem 1rem;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 52px;
  height: auto;
}
.brand-text .firm-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.brand-text .tagline {
  font-size: 0.9rem;
  color: #d4af37;
  font-weight: 600;
  text-shadow: 
    0 0 10px rgba(212, 175, 55, 0.6),
    0 0 20px rgba(212, 175, 55, 0.4),
    0 0 30px rgba(212, 175, 55, 0.3);
  animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(212, 175, 55, 0.6),
      0 0 20px rgba(212, 175, 55, 0.4),
      0 0 30px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(212, 175, 55, 0.8),
      0 0 30px rgba(212, 175, 55, 0.6),
      0 0 45px rgba(212, 175, 55, 0.4);
  }
}

/* Hamburger - Mobile Only */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 22px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger:hover {
  background: var(--accent-2);
  transform: scale(1.05);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #eef2f8;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-close {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(11,97,209,0.1);
  color: var(--accent);
  transform: rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidebar-link span {
  font-size: 1.3rem;
}

.sidebar-link:hover {
  background: rgba(11,97,209,0.08);
  border-left-color: var(--accent);
  padding-left: 2rem;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(11,97,209,0.15) 0%, transparent 100%);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-link-primary {
  margin: 1rem 1.5rem 0;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  border: none !important;
  justify-content: center;
  font-weight: 600;
}

.sidebar-link-primary:hover {
  background: var(--accent-2);
  padding-left: 1.5rem !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,97,209,0.3);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.desktop-nav a:hover {
  background: rgba(11,97,209,0.08);
  color: var(--accent);
}

.desktop-nav a.active {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}

.desktop-nav .btn-ghost {
  background: transparent;
  border: 1px solid rgba(11,61,145,0.12);
  color: var(--accent-2);
}

.desktop-nav .btn-ghost:hover {
  background: rgba(11,97,209,0.05);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 3rem 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.hero-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.metrics {
  display: flex;
  gap: 18px;
  list-style: none;
  margin-top: 12px;
}
.metrics li {
  background: rgba(11,97,209,0.08);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--accent-2);
}

/* Cards & Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(12,34,80,0.06);
  border: 1px solid #eef2f8;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(12,34,80,0.12);
}
.card h3 {
  margin: 12px 0 6px;
  color: var(--text-primary);
}
.card .card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-2);
  font-weight: 600;
}

/* Team */
.team-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.avatar {
  text-align: center;
  max-width: 180px;
  flex: 1 1 150px;
}
.avatar a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.avatar img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #ddd;
  transition: all 0.3s ease;
}
.avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.attorney-name {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Featured & Insights */
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: center;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Posts */
.post {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px;
  border: 1px solid #f3f6fb;
}
.post img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact Quick */
.contact-quick-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  border-radius: var(--radius);
  border: 1px solid #eef6ff;
}

/* Footer */
.site-footer {
  margin-top: 36px;
  padding: 36px 0 18px;
  background: #fff;
  border-top: 1px solid #eef2f8;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 18px;
}
.logo-small {
  width: 110px;
}
.footer-col h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}
.footer-col a {
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--accent);
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.newsletter input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #eef2f8;
  background: #fff;
  color: var(--text-primary);
}
.newsletter input::placeholder {
  color: var(--muted);
}
.btn-block {
  width: 100%;
}

/* Small Utilities */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section { margin-top: 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: all .6s cubic-bezier(.2,.9,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------
   Footer Styles (Refined)
   ---------------------------------------------------- */

.site-footer {
  background: #0b2540; /* deep navy */
  color: #f6f8fb;
  padding: 4rem 1.5rem 2.5rem;
  font-family: var(--font-base);
}

.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col li,
.footer-col address {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none; /* no underline */
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-weight: 500;
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px; /* subtle slide effect */
}

/* Logo in footer */
.logo-small {
  max-width: 160px;
  margin-bottom: 1.25rem;
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.newsletter input[type="email"]::placeholder {
  color: #999;
  font-style: italic;
}

.newsletter .btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.newsletter .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

/* Legal strip */
.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.legal .muted {
  color: rgba(255, 255, 255, 0.6);
}

.legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.legal a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .legal {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}


/* Responsive - MAINTAIN IMPACT */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .featured-inner { grid-template-columns: 1fr; }
  .main-nav ul { display: none; }
  .hamburger { display: block; }
  .container { padding: 1.5rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-copy h1 { font-size: 2rem; }
  .metrics { flex-direction: column; align-items: flex-start; }
  .btn, button { padding: 0.8rem 1.5rem; font-size: 1rem; }
}

/* Text Selection */
::selection {
  background: var(--accent);
  color: #fff;
}
::-moz-selection {
  background: var(--accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* ===== ENHANCEMENTS ===== */

/* Trust Signals */
.trust-signals {
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  padding: 3rem 0;
  margin: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.trust-item {
  text-align: center;
  color: white;
}

.trust-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials Modern */
.testimonials-modern {
  background: var(--card);
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #f6f8fb;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(11,97,209,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11,97,209,0.4);
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #0b61d1, #0b3d91);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ==================== PROFESSIONAL CHATBOT ==================== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-base);
}

/* Floating Trigger Button */
.chatbot-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(11, 97, 209, 0.4),
              0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(11, 97, 209, 0.5),
              0 12px 40px rgba(0, 0, 0, 0.2);
}

.chatbot-trigger:active {
  transform: scale(0.95);
}

.chatbot-trigger-icon {
  width: 28px;
  height: 28px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-trigger-icon svg {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.chatbot-trigger-icon .icon-chat {
  display: block;
}

.chatbot-trigger-icon .icon-close {
  display: none;
}

.chatbot-trigger.active .icon-chat {
  display: none;
}

.chatbot-trigger.active .icon-close {
  display: block;
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #e53935;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulse-badge 2s infinite;
}

.chatbot-badge.hidden {
  display: none;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15),
              0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 550px;
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-avatar svg {
  width: 26px;
  height: 26px;
  color: white;
}

.chatbot-header-text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.chatbot-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

/* Chat Body */
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f7f9fc;
  min-height: 280px;
  max-height: 320px;
}

.chatbot-welcome {
  text-align: center;
  padding: 20px 10px;
}

.welcome-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(11, 97, 209, 0.3);
}

.welcome-avatar svg {
  width: 32px;
  height: 32px;
  color: white;
}

.chatbot-welcome h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1a1a2e;
}

.chatbot-welcome p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Messages */
.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-avatar svg {
  width: 18px;
  height: 18px;
  color: white;
}

.chat-msg.user .msg-avatar {
  background: #e0e0e0;
}

.chat-msg.user .msg-avatar svg {
  color: #666;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.chatbot-typing {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.chatbot-typing.active {
  display: flex;
}

.typing-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-avatar svg {
  width: 18px;
  height: 18px;
  color: white;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #0b61d1;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* Quick Actions */
.chatbot-quick-actions {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #eee;
}

.quick-btn {
  padding: 8px 14px;
  background: #f0f4f8;
  border: 1px solid #e0e6ed;
  border-radius: 20px;
  font-size: 13px;
  color: #0b61d1;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-btn:hover {
  background: #0b61d1;
  border-color: #0b61d1;
  color: white;
}

/* Footer Input */
.chatbot-footer {
  padding: 16px;
  background: white;
  border-top: 1px solid #eee;
}

.chatbot-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e0e6ed;
  border-radius: 24px;
  padding: 4px 4px 4px 16px;
  transition: all 0.2s ease;
}

.chatbot-input-wrapper:focus-within {
  border-color: #0b61d1;
  box-shadow: 0 0 0 3px rgba(11, 97, 209, 0.1);
}

.chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font-base);
  padding: 10px 0;
  outline: none;
}

.chatbot-input::placeholder {
  color: #999;
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0b61d1 0%, #0b3d91 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(11, 97, 209, 0.3);
}

.chatbot-send:active {
  transform: scale(0.95);
}

.chatbot-send svg {
  width: 20px;
  height: 20px;
}

.chatbot-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin: 10px 0 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot-container {
    bottom: 16px;
    right: 16px;
  }
  
  .chatbot-window {
    width: calc(100vw - 32px);
    bottom: 76px;
    right: -8px;
    max-height: 70vh;
  }
  
  .chatbot-trigger {
    width: 56px;
    height: 56px;
  }
  
  .chatbot-quick-actions {
    padding: 10px 12px;
  }
  
  .quick-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved Typography */
h1, h2, h3 {
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

p {
  line-height: 1.8;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ==================== COMPREHENSIVE MOBILE RESPONSIVE ==================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .featured-inner {
    grid-template-columns: 1fr;
  }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Header Mobile */
  .header-inner {
    padding: 0.5rem 1rem;
  }
  
  .brand-text .firm-name {
    font-size: 1rem;
  }
  
  .brand-text .tagline {
    display: none;
  }
  
  .logo {
    width: 42px;
  }
  
  /* Hide Desktop Nav, Show Hamburger on Mobile */
  .desktop-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Buttons */
  .btn, button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Cards */
  .card {
    padding: 1.25rem;
  }
  
  /* Footer */
  .site-footer .footer-grid {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-col {
    align-items: center;
  }
  
  .legal {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  /* Trust Section */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .trust-number {
    font-size: 2.5rem;
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  /* Back to Top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Mobile - 576px */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  /* Header */
  .header-inner {
    padding: 0.5rem 0.75rem;
  }
  
  .logo {
    width: 36px;
  }
  
  .brand-text .firm-name {
    font-size: 0.9rem;
  }
  
  /* Typography */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  
  p {
    font-size: 0.95rem;
  }
  
  /* Trust Section */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .trust-item {
    padding: 1.25rem;
  }
  
  .trust-number {
    font-size: 2rem;
  }
  
  /* Buttons */
  .btn, button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    width: 100%;
  }
  
  /* Cards */
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Forms */
  input, textarea, select {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Sections */
  section {
    padding: 2rem 0;
  }
  
  /* Footer */
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-col h4 {
    font-size: 1rem;
  }
}

/* Small Mobile - 400px */
@media (max-width: 400px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 0.5rem;
  }
  
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  
  .logo {
    width: 32px;
  }
  
  .brand-text .firm-name {
    font-size: 0.8rem;
  }
  
  .trust-number {
    font-size: 1.75rem;
  }
}
