/* ==================================================
   WORKWARS STYLE CSS — V3 (VISUAL + CONVERSION LAYER)
   Depends on: workwars-core.css (load first)
   Owns: header, hero, hotline, lawyer banner,
         content boxes, breadcrumb, warning, ads
================================================== */

/* ===== TOP HEADER ===== */

/* Override body background — hero is dark, everything else must be white */
body {
  background: #ffffff;
}

.top-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-link img {
  height: 55px;
  transition: var(--transition);
}

.logo-link img:hover {
  transform: translateY(-2px) scale(1.03);
}

.header-banner img {
  height: 65px;
  border-radius: 6px;
  transition: var(--transition);
}

.header-banner img:hover {
  transform: scale(1.05);
}

/* ===== HERO ===== */

.hero {
  background: radial-gradient(circle at top, #1e293b 0%, #020617 100%);
  color: white;
  padding: 90px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* gold ambient glow behind heading */
.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,169,106,0.15), transparent);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* FIX: var(--blue) on dark navy fails WCAG AA — use white */
.hero h1 {
  color: #ffffff;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero p {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 18px;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}

/* ===== LANGUAGE SELECTOR ===== */

.lang-support-box {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.lang-support-box a {
  color: var(--gold);
  font-weight: 700;
  margin: 0 6px;
  text-decoration: none;
}

.lang-support-box a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===== HOTLINE STRIP ===== */

.global-hotline-wrapper {
  width: 100%;
  background: linear-gradient(90deg, #020617, #1e1b4b, #020617);
  border-top: 3px solid #ef4444;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 50;
  position: relative;
}

/* FIX: @keyframes was referenced but never defined */
@keyframes pulse-red-global {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.hotline-pulse-global {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-red-global 2s infinite;
}

.hotline-text-global {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.hotline-number-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  border-left: 1px solid rgba(239,68,68,0.4);
  padding-left: 16px;
}

/* FIX: these classes were used in HTML but never defined */
.number-vanity-global {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
}

.number-numeric-global {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== LAWYER MATCH BANNER ===== */

.lawyer-match-banner {
  max-width: 920px;
  margin: -32px auto 40px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
  border-top: 5px solid var(--gold);
  position: relative;
  z-index: 10;
}

/* FIX: .lawyer-badge was used but never defined */
.lawyer-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 16px;
  display: block;
  text-align: center;
}

.lawyer-content {
  display: flex;
  padding: 25px;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.lawyer-img-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--gold);
  position: relative;
}

.lawyer-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Hide broken image icon — color:transparent removes alt text colour */
  color: transparent;
  font-size: 0;
}

/* When src is empty string, fully hide the img element */
.lawyer-img-wrapper img[src=""] {
  display: none;
}

/* Broken image fallback — hide the broken icon, show initials behind */
.lawyer-img-wrapper img[alt]:not([src]),
.lawyer-img-wrapper img[src=""][alt] {
  display: none;
}

/* Force broken images to be invisible — the ::before initials show through */
.lawyer-img-wrapper img:-moz-broken {
  display: none;
}

.lawyer-info {
  flex: 1;
  min-width: 180px;
}

.lawyer-info h4 {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.lawyer-info h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.lawyer-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* FIX: .lawyer-tags had no definition — unstyled ✔ spans */
.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lawyer-tags span {
  background: #f0fdf4;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

/* FIX: .lawyer-action had no layout — stacked links with no spacing */
.lawyer-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 160px;
}

/* FIX: .btn-dossier lacked display:inline-block and hover underline suppression */
.btn-dossier {
  display: block;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-dossier:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: white;
}

/* FIX: .link-profile was used but never defined */
.link-profile {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-align: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.link-profile:hover {
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

/* ===== CONTENT HEADINGS — dark on white container background ===== */

.container h2,
.container h3 {
  color: var(--navy);
}

/* app-cta-banner headings stay gold/white — it has its own dark background */
.app-cta-banner h3,
.app-cta-banner h4 {
  color: var(--gold) !important;
}

/* Intent cluster links label stays dark gold */
.intent-cluster-links h3 {
  color: var(--gold) !important;
}

/* ===== CONTENT BOXES ===== */

.box {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 25px;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.box h3 {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.box h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ===== WARNING / ALERT BOX ===== */
/* FIX: was styled identically to info box — needs urgency colour */

.warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 4px solid #d97706;
  padding: 18px 20px;
  margin-top: 20px;
  border-radius: var(--radius);
}

.warning strong {
  color: #92400e;
}

.warning,
.warning p {
  color: #78350f;
  font-size: 15px;
}

.quote-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  padding: 20px;
  margin-top: 20px;
  border-radius: var(--radius);
  font-style: italic;
}

/* ===== ADS ===== */

.adsense-block {
  margin: 40px 0;
  text-align: center;
}

/* ===== BREADCRUMB ===== */

.breadcrumb-nav {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-nav a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.breadcrumb-nav span {
  color: #94a3b8;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .hero {
    padding: 50px 15px 80px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .lawyer-match-banner {
    margin: -24px 15px 30px 15px;
  }

  .lawyer-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .lawyer-img-wrapper {
    margin: 0 auto;
  }

  .lawyer-info {
    min-width: unset;
  }

  .lawyer-tags {
    justify-content: center;
  }

  .lawyer-action {
    width: 100%;
  }

  .global-hotline-wrapper {
    gap: 12px;
    padding: 12px 15px;
  }

  .hotline-text-global {
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .number-vanity-global {
    font-size: 15px;
  }

}