/* ════════════════════════════════════════════════════════════════
   LAWBRIDGE V2 — GLOBAL CSS   (the one and only CSS file)

   WHERE THIS GOES:
   WordPress → Custom CSS & JS → "LawBridge V2 Global CSS"
   (Replace everything in that file with this whole thing.)

   HOW IT'S ORGANISED:
     1. Design tokens .......... colours, fonts, spacing, shadows
     2. Base ................... resets + typography
     3. Layout ................. container, section spacing, grids
     4. Buttons
     5. Cards & glass
     6. Forms
     7. Header base
     8. Mobile sticky CTA
     9. Small utilities

   ONE THING TO KNOW:
     All the space between sections is controlled by a single
     value called  --lb-space  (see section 1). Want sections
     closer? Lower it. Want them airier? Raise it. That's it.
   ════════════════════════════════════════════════════════════════ */


/* ---- Fonts (must stay at the very top) ---- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');


/* ════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ════════════════════════════════════════════════════════════════ */
:root {

  /* Brand colours */
  --lb-navy:      #002366;
  --lb-blue:      #1A6EFF;
  --lb-blue-dark: #0F52D4;
  --lb-ice:       #EEF5FF;
  --lb-soft:      #F5F9FF;
  --lb-border:    #D6E6FF;
  --lb-white:     #FFFFFF;
  --lb-ink:       #071A33;
  --lb-muted:     #4B6380;

  /* Fonts */
  --lb-display: 'Sora', sans-serif;
  --lb-body:    'Plus Jakarta Sans', sans-serif;

  /* Corners */
  --lb-radius:    1.5rem;
  --lb-radius-lg: 2rem;
  --lb-radius-xl: 2.5rem;

  /* Shadows */
  --lb-shadow-card: 0 25px 80px rgba(0,35,102,.10);
  --lb-shadow-cta:  0 18px 45px rgba(26,110,255,.28);
  --lb-shadow-soft: 0 14px 35px rgba(0,35,102,.12);

  /* ►► MASTER SECTION SPACING — change this ONE value to tune every gap ◄◄ */
  --lb-space: 30px;                 /* spacing on phones */
}

@media (min-width: 768px) {
  :root {
    --lb-space: 46px;               /* spacing on laptops/desktops */
  }
}


/* ════════════════════════════════════════════════════════════════
   2. BASE
   ════════════════════════════════════════════════════════════════ */
.lb-scope,
.lb-scope * {
  box-sizing: border-box;
}

.lb-scope {
  font-family: var(--lb-body);
  color: var(--lb-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.lb-scope a {
  text-decoration: none;
  color: inherit;
}

/* Headings */
.lb-heading {
  font-family: var(--lb-display);
  font-weight: 700;
  color: var(--lb-navy);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}

.lb-h1 { font-size: clamp(2.4rem, 6vw,   4rem);   font-weight: 800; }
.lb-h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
.lb-h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.lb-eyebrow {
  font-family: var(--lb-display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--lb-blue);
}

.lb-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--lb-muted);
  line-height: 1.7;
}

.lb-muted { color: var(--lb-muted); }


/* ════════════════════════════════════════════════════════════════
   3. LAYOUT  (container, section spacing, grids)
   ════════════════════════════════════════════════════════════════ */

/* Centered page width */
.lb-container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section spacing — driven entirely by --lb-space (no duplicates!) */
.lb-section {
  padding-top: var(--lb-space);
  padding-bottom: var(--lb-space);
  margin: 0;
}

/* Hero gets the same rhythm (slightly tighter at the bottom) */
.lb-hero {
  padding-top: var(--lb-space);
  padding-bottom: var(--lb-space);
  margin: 0;
}

/* Header never carries vertical margin */
.lb-header { margin: 0; }

/* Grids */
.lb-grid,
.lb-grid-2,
.lb-grid-3,
.lb-grid-4 {
  display: grid;
  gap: 20px;
}

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

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

/* Background helpers */
.lb-bg-white { background: var(--lb-white); }
.lb-bg-soft  { background: var(--lb-soft); }
.lb-bg-ice   { background: var(--lb-ice); }
.lb-bg-navy  { background: var(--lb-navy); color: #fff; }
.lb-bg-navy .lb-heading { color: #fff; }


/* ════════════════════════════════════════════════════════════════
   4. BUTTONS
   ════════════════════════════════════════════════════════════════ */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 22px;
  font-family: var(--lb-display);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all .3s ease;
}

.lb-btn-primary {
  background: var(--lb-blue);
  color: #fff;
  box-shadow: var(--lb-shadow-cta);
}
.lb-btn-primary:hover {
  background: var(--lb-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.lb-btn-white {
  background: #fff;
  color: var(--lb-navy);
  box-shadow: var(--lb-shadow-soft);
}
.lb-btn-white:hover { transform: translateY(-2px); }

.lb-btn-outline {
  background: rgba(255,255,255,.7);
  color: var(--lb-navy);
  border: 1px solid var(--lb-border);
  backdrop-filter: blur(12px);
}
.lb-btn-outline:hover { background: #fff; }

.lb-btn-block { width: 100%; }


/* ════════════════════════════════════════════════════════════════
   5. CARDS & GLASSMORPHISM
   ════════════════════════════════════════════════════════════════ */
.lb-card {
  border-radius: var(--lb-radius-lg);
  border: 1px solid var(--lb-border);
  background: var(--lb-soft);
  padding: 24px;
}

.lb-glass-card {
  border-radius: var(--lb-radius-xl);
  border: 1px solid var(--lb-border);
  background: rgba(255,255,255,.8);
  box-shadow: var(--lb-shadow-card);
  backdrop-filter: blur(20px);
  padding: 24px;
}

.lb-icon-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  color: var(--lb-blue);
  box-shadow: 0 4px 12px rgba(0,35,102,.06);
}

.lb-tag {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  padding: 5px 12px;
  font-family: var(--lb-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--lb-blue);
}

.lb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--lb-border);
  background: rgba(255,255,255,.8);
  padding: 8px 16px;
  font-family: var(--lb-display);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--lb-blue);
  backdrop-filter: blur(12px);
}


/* ════════════════════════════════════════════════════════════════
   6. FORMS  (also styles the Fluent Form inside .lb-form)
   ════════════════════════════════════════════════════════════════ */
.lb-form .lb-field,
.lb-form input[type=text],
.lb-form input[type=email],
.lb-form input[type=tel],
.lb-form select,
.lb-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--lb-border);
  border-radius: 16px;
  background: #fff;
  padding: 12px 16px;
  font-family: var(--lb-body);
  font-size: .9rem;
  color: var(--lb-ink);
  outline: none;
  transition: border-color .2s;
}

.lb-form textarea {
  min-height: 96px;
  resize: vertical;
}

.lb-form input:focus,
.lb-form select:focus,
.lb-form textarea:focus {
  border-color: var(--lb-blue);
}

.lb-form .ff-btn-submit,
.lb-form button[type=submit] {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background: var(--lb-blue);
  color: #fff;
  font-family: var(--lb-display);
  font-weight: 700;
  box-shadow: var(--lb-shadow-cta);
  transition: all .3s;
}

.lb-form button[type=submit]:hover {
  background: var(--lb-blue-dark);
  transform: translateY(-2px);
}


/* ════════════════════════════════════════════════════════════════
   7. HEADER BASE
   (Sticky behaviour + show/hide lives here.
    The navy colours, logo image and mobile menu are styled
    inside the Header HTML block itself.)
   ════════════════════════════════════════════════════════════════ */
.lb-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.lb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.lb-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Desktop nav + actions: hidden on phones, shown from 1024px up */
.lb-nav,
.lb-header-cta {
  display: none;
}

.lb-nav a { white-space: nowrap; }

@media (min-width: 1024px) {
  .lb-nav,
  .lb-header-cta {
    display: flex;
    align-items: center;
  }
}


/* ════════════════════════════════════════════════════════════════
   8. MOBILE STICKY CTA  (site-wide bar on phones)
   ════════════════════════════════════════════════════════════════ */
.lb-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--lb-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 40px rgba(0,0,0,.08);
}

.lb-mobile-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-radius: 12px;
  padding: 8px;
  font-family: var(--lb-display);
  font-weight: 700;
  font-size: .7rem;
  color: var(--lb-navy);
}

.lb-mobile-cta a.is-primary {
  background: var(--lb-blue);
  color: #fff;
}

/* Leave room at the bottom on phones so the bar never hides content */
body { padding-bottom: 74px; }

@media (min-width: 1024px) {
  .lb-mobile-cta { display: none; }
  body { padding-bottom: 0; }
}


/* ════════════════════════════════════════════════════════════════
   9. SMALL UTILITIES
   ════════════════════════════════════════════════════════════════ */
.lb-text-center    { text-align: center; }
.lb-mt-1           { margin-top: 8px; }
.lb-mt-2           { margin-top: 16px; }
.lb-mt-3           { margin-top: 24px; }
.lb-mt-4           { margin-top: 32px; }
.lb-flex           { display: flex; }
.lb-gap            { gap: 12px; }
.lb-wrap           { flex-wrap: wrap; }
.lb-items-center   { align-items: center; }
.lb-justify-between{ justify-content: space-between; }
