/* ==========================================================================
   MASTER TEMPLATE STYLESHEET
   Single file — no preprocessors
   ========================================================================== */

/* ==========================================================================
   SWAP: Brand accent colour — this is the ONLY value that changes per site.
   Line 11. Change --accent to your client's primary brand colour.
   ========================================================================== */
:root {
  --accent:      #1a3a5c;
  --accent-deep: #122840;  /* darker navy for bot send btn + typing dots */
  --hero-bg:     #eef2f7;  /* very light navy tint for bot quick btn hover */
  --text-dark:   #1a1a1a;
  --text-muted:  #888888;
  --border:      #eeeeee;
  --bg-light:    #f5f5f5;
  --bg-off:      #f9f9f9;
  --bg-dark:     #1a1a1a;
  --white:       #ffffff;
  --max-width:   1140px;
  --radius:      4px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

/* Large all-caps hero headline on image hero */
.hero--image h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: 0.75rem;         /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: none; /* no animations — performance first */
}

/* Primary: solid accent */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Secondary: outlined on dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--text-dark);
}

/* Text link style */
.link-accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-accent:hover {
  opacity: 0.8;
}

/* ==========================================================================
   TOP BAR
   Dark background, accent top border, contact left, social right.
   ========================================================================== */
.top-bar {
  width: 100%;
  background: var(--bg-dark);
  /* SWAP: accent top border — pulls from --accent automatically */
  border-top: 3px solid var(--accent);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.top-bar-contact a:hover {
  color: var(--white);
}

.top-bar-contact svg {
  flex-shrink: 0;
  color: var(--accent);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-social a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.top-bar-social a:hover {
  color: var(--accent);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Sticky wrapper — wraps .top-bar + .site-nav together in the HTML */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* SWAP: nav height — increase or decrease this one value */
  height: 90px;
}

/* SWAP: logo text styling — remove if using img */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Nav menu — desktop: flex row */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-menu a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover {
  color: var(--white);
}

/* Hamburger button — hidden on desktop (>767px), floated right on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
}

/* ==========================================================================
   SECTIONS — shared padding
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 60px 0;
}

/* ==========================================================================
   SECTION: Hero
   ========================================================================== */
.hero {
  background: var(--bg-off);
  padding: 120px 0 100px;
  position: relative;
}

/* Image hero variant — hero.webp background with dark overlay */
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-overlay {
  display: none;
}

.hero--image .hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.72);
  z-index: 1;
}

.hero--image h1 {
  color: #fff;
}

.eyebrow--light {
  color: var(--accent) !important;
  border-color: transparent !important;
  background: #ffffff;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.hero-subtext--light {
  color: rgba(255,255,255,0.82) !important;
}

.hero-trust--light li {
  color: rgba(255,255,255,0.88) !important;
}

.link-accent--light {
  color: rgba(255,255,255,0.7) !important;
}

.link-accent--light:hover {
  color: #fff !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: center;
}

.hero-content .hero-subtext {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Trust list with checkmarks */
.hero-trust {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hero-trust li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* SWAP: widget embed — replace inner content with iframe or form -->
/* To show this widget on mobile, add class "widget-visible" or remove the mobile hide rule below */
.hero-widget {
  background: var(--bg-light);
  border: 1px solid var(--border);
  min-height: 300px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--image .hero-widget {
  background: transparent;
  border: none;
}

.widget-placeholder {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

/* ==========================================================================
   SECTION: Intro Strip
   ========================================================================== */
.intro {
  background: var(--white);
  padding: 80px 0;
}

.intro-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.intro-inner p {
  font-size: 1.0625rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECTION: Features / Services Cards
   ========================================================================== */
.features {
  background: var(--bg-off);
  padding: 80px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* SWAP: icon placeholder — replace this div with <img> or inline SVG -->
.icon-placeholder {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  /* SWAP: add SVG background-image or replace entirely with <img width="48" height="48"> */
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #444;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SECTION: CTA Strip
   ========================================================================== */
.cta-strip {
  /* SWAP: toggle between light, accent, or dark background:
     Use background: var(--bg-light) for light grey
     Use background: var(--accent) for brand colour
     Use background: var(--bg-dark) for near-black */
  background: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.cta-strip h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-strip p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   SECTION: Alternating Image / Text
   ========================================================================== */
.alt-blocks {
  background: var(--white);
  padding: 80px 0;
}

.alt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.alt-block:last-child {
  margin-bottom: 0;
}

/* Image right variant — reverses column order */
.alt-block.img-right {
  direction: rtl;
}

.alt-block.img-right > * {
  direction: ltr;
}

/* SWAP: image placeholder — replace this div with <img width="..." height="..." loading="lazy"> -->
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  border-radius: var(--radius);
  /* SWAP: set explicit dimensions in the img tag when replacing:
     <img src="/images/your-image.jpg" alt="Description" width="540" height="405" loading="lazy"> */
}

.alt-block-text h2 {
  margin-bottom: 1rem;
}

.alt-block-text p {
  color: #444;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECTION: FAQ Accordion
   ========================================================================== */
.faq {
  background: var(--bg-off);
  padding: 80px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.7;
}

/* Open state — toggled by main.js adding .open class */
.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  content: "×";
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 1.125rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* SWAP: social icon row — uncomment in footer.php */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
  color: var(--white);
}

/* Copyright bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

.footer-copy a {
  color: var(--text-muted);
}

.footer-copy a:hover {
  color: var(--white);
}

/* ==========================================================================
   RESPONSIVE — MOBILE 767px
   Matches Elementor / standard mobile breakpoint.
   Everything collapses here: nav hamburger, grids, section padding.
   ========================================================================== */
@media (max-width: 767px) {

  /* Section padding halved on mobile */
  .section,
  .hero,
  .intro,
  .features,
  .cta-strip,
  .alt-blocks,
  .faq {
    padding: 40px 0;
  }

  /* Hero: stack columns */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .alt-block {
    margin-bottom: 40px;
  }

  /* Hero CTA stack */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  /* SWAP: widget hidden on mobile by default.
     To show on mobile, delete the rule below or add class "widget-visible" to .hero-widget */
  .hero-widget {
    display: none;
  }

  /* Features: single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Alternating blocks: stack, image always on top */
  .alt-block,
  .alt-block.img-right {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  /* ── NAV: hamburger menu ────────────────────────────────────────────── */

  /* Hide top bar contact text on mobile — too cramped */
  .top-bar-contact a span,
  .top-bar-contact {
    display: none;
  }

  /* Keep top bar visible but social-icons only, centred */
  .top-bar-inner {
    justify-content: center;
  }

  /* Show hamburger button, floated right via margin-left: auto on the element */
  .nav-hamburger {
    display: flex;
  }

  /* Hide nav links until toggled */
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 90px; /* matches .nav-inner height */
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    z-index: 99;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

}

/* Nav position context for mobile dropdown — .site-header handles sticky */
.site-nav {
  position: relative;
  z-index: 100;
}

/* ============================================================
   FEATURE CARD IMAGE
   Full-width image below the heading, rounded corners,
   consistent aspect ratio across all three cards.
   ============================================================ */
.feature-card-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin: 12px 0 16px;
}

/* ============================================================
   ALT BLOCK — REAL IMAGE
   Replaces .img-placeholder. Same sizing, covers the slot,
   rounded corners to match card style.
   ============================================================ */
.alt-block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* On mobile the alt-block stacks; give the image a sensible height */
@media (max-width: 767px) {
  .alt-block-img {
    height: 260px;
    width: 100%;
  }
}

/* ============================================================
   REVIEWS SLIDER
   Dark section, 3-up on desktop, 2 on tablet, 1 on mobile.
   Vanilla JS drives .reviews-track translateX().
   ============================================================ */
.reviews-section {
  background: var(--bg-dark);
  padding: 80px 0;
}

.reviews-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-header h2 {
  color: #fff;
  margin-bottom: 16px;
}

.reviews-header .eyebrow {
  color: var(--accent);
}

.reviews-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 16px 6px 10px;
  margin-top: 8px;
}

.reviews-google-label {
  color: #e0eeff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.reviews-stars-badge {
  color: #fbbc05;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.reviews-track-outer {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
  flex: 0 0 33.333%;
  padding: 0 12px;
  box-sizing: border-box;
}

.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  color: #fbbc05;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-text {
  margin: 0;
  flex: 1;
}

.review-text p {
  color: #c8d8f0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.review-location {
  color: #7a9abd;
  font-size: 0.8rem;
  margin: 2px 0 0;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.reviews-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.reviews-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.reviews-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 767px) {
  .review-slide {
    flex: 0 0 100%;
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .review-slide {
    flex: 0 0 50%;
  }
}

/* ==========================================================================

   NEWSLETTER BAND
   ========================================================================== */
.newsletter-band {
  background: var(--bg-dark);
  padding: 60px 0;
}

.newsletter-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter-band-text h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-band-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Rubik', sans-serif;
  font-size: 0.9375rem;
  min-width: 180px;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-feedback {
  width: 100%;
  margin-top: 12px;
  font-size: 0.9rem;
}

.newsletter-feedback--success {
  color: #a5d6a7;
}

.newsletter-feedback--error {
  color: #ef9a9a;
}

@media (max-width: 767px) {
  .newsletter-band-inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    width: 100%;
  }
}

/* ==========================================================================
   NAV DROPDOWN — chevron rotation, desktop dropdown, mobile inline
   ========================================================================== */
.nav-chevron {
  transition: transform 0.2s;
}

.nav-has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-has-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-has-dropdown.is-open .nav-dropdown {
  display: block;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.nav-dropdown a:hover {
  background: var(--bg-off);
  color: var(--accent);
}

@media (max-width: 767px) {
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 0 0 0 12px;
    margin: 0;
    min-width: 0;
  }

  .nav-dropdown a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown li:last-child a {
    border-bottom: none;
  }
}


/* ==========================================================================
   BOT UI — hero chat + floating bot
   Layout ported from District Zero. Accent via :root vars.
   ========================================================================== */

/* ── Outer wrapper card ────────────────────────────────────── */
.lb-bot-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* ── Header bar ────────────────────────────────────────────── */
.lb-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--accent);
  flex-shrink: 0;
}
.lb-bot-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lb-bot-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.lb-bot-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.lb-bot-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
.lb-bot-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ── Reset button ──────────────────────────────────────────── */
.lb-bot-reset {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.lb-bot-reset:hover { background: rgba(255,255,255,0.22); }

/* ── Chat area ─────────────────────────────────────────────── */
.lb-bot-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fafafa;
}
#lb-bot-hero {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Message panel ─────────────────────────────────────────── */
#lb-bot-hero .lb-hero-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: 100%;
}
#lb-bot-hero .lb-hero-chat-panel {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  min-height: 260px;
  max-height: 360px;
  background: transparent;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}
#lb-bot-hero .lb-hero-messages {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ── Message bubbles ───────────────────────────────────────── */
#lb-bot-hero .lb-msg {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}
#lb-bot-hero .lb-msg.lb-bot {
  background: #fff;
  color: var(--text-dark);
  align-self: flex-start;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 3px;
  padding-left: 42px;
  position: relative;
}
#lb-bot-hero .lb-msg.lb-bot::before {
  content: '⚖️';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.9rem;
  line-height: 1;
}
#lb-bot-hero .lb-msg.lb-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 600;
  max-width: 80%;
  margin-left: auto;
}

/* ── Typing indicator ──────────────────────────────────────── */
#lb-bot-hero .lb-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  max-width: 72px;
}
#lb-bot-hero .lb-typing span {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: lb-blink 1.4s infinite both;
}
#lb-bot-hero .lb-typing span:nth-child(2) { animation-delay: 0.2s; }
#lb-bot-hero .lb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lb-blink {
  0%   { opacity: .2; }
  20%  { opacity: 1; }
  100% { opacity: .2; }
}

/* ── Input row ─────────────────────────────────────────────── */
#lb-bot-hero .lb-hero-inputbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
#lb-bot-hero .lb-hero-inputbar textarea {
  flex: 1;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-dark);
  resize: none;
  min-height: 40px;
  max-height: 100px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
#lb-bot-hero .lb-hero-inputbar textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
#lb-bot-hero .lb-hero-inputbar textarea::placeholder { color: #aaa; }
#lb-bot-hero .lb-hero-inputbar .lb-hero-send {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
#lb-bot-hero .lb-hero-inputbar .lb-hero-send svg {
  width: 16px; height: 16px;
  stroke: #fff;
}
#lb-bot-hero .lb-hero-inputbar .lb-hero-send:hover { background: var(--accent-deep); }

/* ── Quick buttons — 2×2 grid ──────────────────────────────── */
.lb-hero-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0 0.75rem 0.75rem;
  background: #fff;
  flex-shrink: 0;
  border-top: none;
}
.lb-quick-btn {
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.55rem 0.6rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s;
  white-space: normal;
}
.lb-quick-btn:hover {
  background: var(--hero-bg);
  border-color: var(--accent);
}

/* ── Disclaimer bar ────────────────────────────────────────── */
.lb-disclaimer-bar {
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  padding: 0.5rem 1rem;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── Floating assistant ────────────────────────────────────── */
#lb-assistant {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
}
.lb-panel {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 110px;
  width: 380px;
  height: clamp(520px, 75vh, 720px);
  flex-direction: column;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  overflow: hidden;
  border-radius: 16px;
}
.lb-panel.is-open { display: flex; }

/* Float panel header */
.lb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  padding: 0.75rem 1rem;
  color: #fff;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.lb-panel-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lb-panel-actions { display: flex; gap: 8px; align-items: center; }
.lb-panel-name { font-size: 0.9375rem; font-weight: 700; color: #fff; }
.lb-panel-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* Float chat log */
#lb-assistant .lb-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#lb-assistant .lb-msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 85%;
}
#lb-assistant .lb-msg.lb-user {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}
#lb-assistant .lb-msg.lb-bot {
  background: #fff;
  border: 1px solid #eee;
  border-bottom-left-radius: 3px;
  padding-left: 42px;
  position: relative;
  color: var(--text-dark);
}
#lb-assistant .lb-msg.lb-bot::before {
  content: '⚖️';
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.9rem;
  line-height: 1;
}

/* Float typing */
#lb-assistant .lb-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  max-width: 72px;
}
#lb-assistant .lb-typing span {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: lb-blink 1.4s infinite both;
}
#lb-assistant .lb-typing span:nth-child(2) { animation-delay: 0.2s; }
#lb-assistant .lb-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Float close + reset */
.lb-close, .lb-float-reset {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lb-close { width: 30px; height: 30px; justify-content: center; padding: 0; font-size: 1rem; }
.lb-close:hover, .lb-float-reset:hover { background: rgba(255,255,255,0.22); }

/* Float inputbar */
#lb-assistant .lb-inputbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
#lb-assistant .lb-inputbar input {
  flex: 1;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s;
}
#lb-assistant .lb-inputbar input:focus { border-color: var(--accent); background: #fff; }
#lb-assistant .lb-inputbar input::placeholder { color: #aaa; }
#lb-assistant .lb-send {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s;
}
#lb-assistant .lb-send svg { width: 16px; height: 16px; stroke: #fff; }
#lb-assistant .lb-send:hover { background: var(--accent-deep); }

/* Float quick buttons */
#lb-assistant .lb-float-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0 0.75rem 0.75rem;
  background: #fff;
  flex-shrink: 0;
}
#lb-assistant .lb-float-btn {
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.55rem 0.6rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s;
  white-space: normal;
}
#lb-assistant .lb-float-btn:hover { background: var(--hero-bg); border-color: var(--accent); }

/* Float disclaimer */
#lb-assistant .lb-disclaimer-bar {
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  padding: 0.5rem 1rem;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  line-height: 1.4;
}

/* ── Bubble ─────────────────────────────────────────────────── */
.lb-bubble {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--text-dark);
  border: 3px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: transform 0.15s ease;
}
.lb-bubble:hover { transform: scale(1.08); }
.lb-bubble::before {
  content: '';
  position: absolute;
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: lb-ring-pulse 2s ease-out infinite;
  pointer-events: none;
}
.lb-bubble::after {
  content: '';
  position: absolute;
  width: 94px; height: 94px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: lb-ring-pulse 2s ease-out infinite;
  animation-delay: 0.4s;
  pointer-events: none;
}
@keyframes lb-ring-pulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.lb-bubble svg {
  width: 26px; height: 26px;
  stroke: #ffffff;
  position: relative;
  z-index: 1;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lb-bot-wrap { min-height: 480px; }
}
@media (max-width: 767px) {
  /* Show hero bot on mobile — full width below hero text */
  .hero-widget { display: block !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .lb-bot-wrap { min-height: 420px; max-width: 100%; border-radius: 12px; }
  #lb-bot-hero .lb-hero-chat-panel { max-height: none; flex: 1; min-height: 200px; }
  #lb-bot-hero .lb-hero-inputbar textarea,
  #lb-assistant .lb-inputbar input { font-size: 1rem; } /* prevent iOS zoom */
  .lb-hero-quicklinks { grid-template-columns: 1fr 1fr; }
  .lb-quick-btn { font-size: 0.75rem; padding: 0.5rem 0.4rem; }
}
@media (max-width: 480px) {
  #lb-assistant { right: 1rem; bottom: 1rem; }
  .lb-panel { right: 0; left: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ==========================================================================
   SAFEGUARDS BAND — law-bot specific
   ========================================================================== */
.safeguards-band {
  background: var(--accent);
  padding: 3rem 0;
}

.safeguards-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.safeguards-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.safeguards-text h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.safeguards-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 600px) {
  .safeguards-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   LOGO DOT accent colour
   ========================================================================== */
.logo-dot {
  color: var(--accent);
  font-weight: 400;
}

/* ==========================================================================
   DISTRICT ZERO BACK TO DEMOS TAB
   Fixed bottom-left — opposite the floating bot (bottom-right).
   z-index 50: above page content, below site header (100) and bots.
   ========================================================================== */
.dz-sidebar-tab {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  text-decoration: none;
  display: block;
}

.dz-sidebar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: #F0A832;
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.15s;
}

.dz-sidebar-tab:hover .dz-sidebar-inner {
  background: #d4911f;
}

.dz-sidebar-logo {
  width: 16px;
  height: 16px;
  stroke: #000;
  flex-shrink: 0;
}

.dz-sidebar-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  line-height: 1;
}

/* Hide on very small screens */
@media (max-width: 380px) {
  .dz-sidebar-tab { display: none; }
}
