/* =========================================================
   Wilson & Wilson - wilson.css
   WW Design System + Modal Fixes (clean + scoped)
   ========================================================= */

/* =========================================================
   DESIGN TOKENS (WW GLOBAL VARIABLES)
   ========================================================= */
:root{
  --ww-bg:#353535;
  --ww-offwhite:#F5F7FA;
  --ww-cool-blue:#6FA8FF;
  --ww-jade:#1FAE92;
  --ww-persimmon:#E76F51;

  --ww-ring: rgba(245,247,250,.14);
  --ww-soft: rgba(245,247,250,.10);
  --ww-panel: rgba(0,0,0,.18);

  --ww-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;

  /* Display font (for FAQ headings / CTA) */
  --ww-display: "Cinzel", serif;
}


/* =========================================================
   BLOCS COMPATIBILITY PATCH
   Prevent Blocs global typography from overriding WW UI
   ========================================================= */

/* 1) Force WW typography to remain sans-serif inside WW components */
.ww-card,
.ww-card *,
.ww-panel,
.ww-panel *,
.ww-tile,
.ww-tile *,
.ww-form,
.ww-form *,
.ww-staff-wrap,
.ww-staff-wrap *{
  font-family: var(--ww-font) !important;
}

/* 2) Only use Cinzel where you explicitly want it (FAQ display) */
.ww-faq-card,
.ww-faq-card *,
.ww-faq-cta{
  font-family: var(--ww-display), var(--ww-font) !important;
}

/* 3) Make links readable inside dark WW surfaces */
.ww-card a,
.ww-panel a,
.ww-tile a,
.ww-faq-card a{
  color: rgba(245,247,250,.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ww-card a:hover,
.ww-panel a:hover,
.ww-tile a:hover,
.ww-faq-card a:hover{
  color: rgba(245,247,250,1);
}


/* =========================================================
   BOOTSTRAP MODAL TEXT FIX
   Readable modal text without breaking WW components inside
   ========================================================= */

/* Default modal text should be readable */
.modal-content{
  color: rgba(0,0,0,.85);
}

.modal-content p,
.modal-content label,
.modal-content a,
.modal-content .btn{
  color: rgba(0,0,0,.85);
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6{
  color: rgba(0,0,0,.92);
}

/* ✅ If WW card appears inside any modal, keep it themed properly */
.modal-content .ww-card{
  color: var(--ww-offwhite);
}
.modal-content .ww-card *{
  color: inherit;
}

/* ✅ If a WW button is inside a modal, keep it WW-styled */
.modal-content .ww-btn{
  color: var(--ww-offwhite) !important;
}
/* Transparent / glass card (keeps same size) */
.ww-card.ww-card-transparent{
  width: 50%;
  max-width: 50%;
  margin: 0 auto;

  /* Mostly transparent glass */
  background: rgba(0,0,0,.10) !important;
  border: 1px solid rgba(245,247,250,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Keep content readable on top of images */
.ww-card.ww-card-transparent h3,
.ww-card.ww-card-transparent .subtext,
.ww-card.ww-card-transparent .label,
.ww-card.ww-card-transparent .value{
  color: rgba(255,255,255,.92);
}
/* Section divider — subtle hierarchy */
.ww-section-divider{
  position: relative;
  text-align: center;
  margin: 18px 0 8px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* Divider line */
.ww-section-divider::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.12);
  transform: translateY(-50%);
}
.ww-section-divider::before{
  background: linear-gradient(
    to right,
    transparent,
    rgba(231,111,81,.35),
    transparent
  );
}
/* Text sits on top of line */
.ww-section-divider span{
  position: relative;
  background: var(--ww-bg); /* matches your theme */
  padding: 0 12px;
}
/* Make stat rows lighter so the whole card feels transparent */
.ww-card.ww-card-transparent .stat{
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(245,247,250,.10);
}

/* Optional: slightly reduce icon backing so it feels lighter */
.ww-card.ww-card-transparent .icon{
  background: rgba(245,247,250,.04);
  border-color: rgba(245,247,250,.12);
}

/* CTA button on transparent card */
.ww-card.ww-card-transparent .ww-btn{
  background: rgba(245,247,250,.08);
  border-color: rgba(245,247,250,.18);
}
.ww-card.ww-card-transparent .ww-btn:hover{
  background: rgba(231,111,81,.16);
  border-color: rgba(231,111,81,.35);
}

/* Mobile: prevent 50% width from becoming too narrow */
@media (max-width: 900px){
  .ww-card.ww-card-transparent{
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   WW BASE CARD
   ========================================================= */
.ww-card{
  background: var(--ww-bg);
  color: var(--ww-offwhite);
  border: 1px solid var(--ww-ring);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.ww-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .01em;
  font-weight: 750;
}

/* ✅ Subtext scoped only to WW components */
.ww-card .subtext,
.ww-panel-sub,
.ww-tile-sub,
.ww-faq-sub{
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(245,247,250,.85);
  line-height: 1.4;
}


/* =========================================================
   WW STAT ROW PATTERN (SCOPED)
   prevents .label/.value conflicts site-wide
   ========================================================= */
.ww-card .stats,
.ww-panel .ww-rows{
  display: grid;
  gap: 10px;
}

.ww-card .stat,
.ww-panel .ww-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ww-panel);
  border: 1px solid var(--ww-soft);
}

.ww-card .left,
.ww-panel .ww-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}

/* labels */
.ww-card .label,
.ww-panel .ww-label{
  opacity:.88;
  font-size: 14px;
  line-height: 1.2;
}

/* values */
.ww-card .value,
.ww-panel .ww-value{
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
}


/* =========================================================
   WW ICON SYSTEM (WW-SAFE)
   ========================================================= */
.ww-card .icon,
.ww-icon,
.ww-tile-ico{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-size: 14px;
  border: 1px solid rgba(245,247,250,.14);
  background: rgba(245,247,250,.06);
  flex: 0 0 auto;
}

/* tile icon slightly larger */
.ww-tile-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 15px;
}

/* Brand glow icon styles */
.icon-blue{
  border-color: rgba(111,168,255,.55);
  background: rgba(111,168,255,.12);
  box-shadow: 0 0 0 1px rgba(111,168,255,.20),
              0 0 18px rgba(111,168,255,.35);
}

.icon-jade{
  border-color: rgba(31,174,146,.55);
  background: rgba(31,174,146,.12);
  box-shadow: 0 0 0 1px rgba(31,174,146,.20),
              0 0 18px rgba(31,174,146,.35);
}

.icon-persim{
  border-color: rgba(231,111,81,.55);
  background: rgba(231,111,81,.12);
  box-shadow: 0 0 0 1px rgba(231,111,81,.20),
              0 0 18px rgba(231,111,81,.35);
}

.icon-neutral{
  border-color: rgba(245,247,250,.22);
  background: rgba(245,247,250,.07);
}


/* =========================================================
   3-CARD GRID CONTAINER
   ========================================================= */
.ww-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 900px){
  .ww-cards{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CONSULTATION FORM (modal + page)
   ========================================================= */
.ww-consult{
  margin-top: 16px;
}

.ww-form{
  display: block;
  margin-top: 12px;
}

.ww-form .grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

@media (max-width: 900px){
  .ww-form .grid-2{
    grid-template-columns: 1fr;
  }
}

.ww-form .field{
  display: grid;
  gap: 6px;
}

.ww-form .field label{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
  color: rgba(245,247,250,.92);
  margin: 0;
}

/* Inputs */
.ww-form input[type="text"],
.ww-form input[type="email"],
.ww-form input[type="tel"],
.ww-form select,
.ww-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(245,247,250,.14);
  background: rgba(0,0,0,.18);
  color: var(--ww-offwhite);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.ww-form textarea::placeholder,
.ww-form input::placeholder{
  color: rgba(245,247,250,.55);
}

/* Focus */
.ww-form input:focus,
.ww-form select:focus,
.ww-form textarea:focus{
  border-color: rgba(111,168,255,.55);
  box-shadow: 0 0 0 3px rgba(111,168,255,.16);
}

/* Wide fields */
.ww-form .span-2{
  grid-column: 1 / -1;
}

@media (max-width: 900px){
  .ww-form .span-2{
    grid-column: auto;
  }
}

/* Consent checkbox */
.ww-form .consent{
  margin-top: 4px;
}

.ww-form .check{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(245,247,250,.08);
  color: rgba(245,247,250,.88);
}

.ww-form .check input[type="checkbox"]{
  margin-top: 3px;
}

/* Submit button */
.ww-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(245,247,250,.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(245,247,250,.06);
  color: var(--ww-offwhite);
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .08s ease, background .18s ease, border-color .18s ease;
}

.ww-btn:hover{
  background: rgba(231,111,81,.12);
  border-color: rgba(231,111,81,.35);
}

.ww-btn:active{
  transform: translateY(1px);
}

.ww-form .fineprint{
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(245,247,250,.75);
  line-height: 1.4;
}

/* honeypot (spam trap) */
.ww-form .hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}


/* =========================================================
   WW “BOTTOM” SECTION (Vision/Principals + tiles)
   ========================================================= */
.ww-bottom{
  width: 100%;
  padding: 18px 0 0;
}

.ww-vp-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 900px){
  .ww-vp-grid{
    grid-template-columns: 1fr;
  }
}

.ww-panel{
  background: var(--ww-bg);
  color: var(--ww-offwhite);
  border: 1px solid var(--ww-ring);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.ww-panel-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: rgba(231,111,81,.92);
}

/* Tiles row */
.ww-tiles{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .ww-tiles{
    grid-template-columns: 1fr;
  }
}

.ww-tile{
  text-decoration: none;
  display:block;
  background: var(--ww-bg);
  color: var(--ww-offwhite);
  border: 1px solid var(--ww-ring);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ww-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(245,247,250,.22);
  box-shadow: 0 18px 52px rgba(0,0,0,.34);
}

.ww-tile-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.ww-tile-title{
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.ww-tile-sub{
  margin: 0 0 12px;
  color: rgba(245,247,250,.85);
  font-size: 13.5px;
  line-height: 1.45;
}

.ww-tile-cta{
  display:inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(245,247,250,.10);
  font-weight: 800;
  font-size: 13px;
}


/* =========================================================
   WW FAQ CARD
   ========================================================= */
.ww-faq-card{
  background: var(--ww-bg);
  color: var(--ww-offwhite);
  border: 1px solid var(--ww-ring);
  border-radius: 18px;
  padding: 18px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  position: relative;
  overflow: hidden;
  font-family: var(--ww-display);
}

/* ... your FAQ styles continue unchanged ... */


/* =========================================================
   CONSULTATION MODAL COEXISTENCE (polish)
   ========================================================= */
#consultation .modal-content{
  background: transparent;
  border: 0;
}

#consultation .modal-body{
  padding: 0;
}


/* =========================================================
   ATTORNEY ROW CARDS (ALTERNATING)
   ========================================================= */
.ww-attorney-rowcard{
  background: #3b3b3b;
  border-radius: 22px;
  padding: 26px 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}

.ww-attorney-photoBlock{
  max-width: 280px;
  width: 100%;
}

.ww-attorney-photoFrame{
  background: rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 10px;
}

.ww-attorney-photo{
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.ww-attorney-name{
  margin-top: 14px;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  text-align: center;
}

.ww-attorney-role{
  font-weight: 600;
  opacity: .75;
  margin-top: 2px;
  text-align: center;
  color: rgba(255,255,255,.85);
}

.ww-attorney-short{
  margin: 10px 0 0 0;
  text-align: center;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  font-size: 0.98rem;
}

.ww-attorney-info{
  color: rgba(255,255,255,.85);
}

.ww-attorney-credTitle{
  font-weight: 800;
  margin-bottom: 12px;
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
}

.ww-attorney-desc{
  margin-top: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}

/* Complementary credential format: 2x2 mini cards */
.ww-cred-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ww-cred-item{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 12px;
}

.ww-cred-label{
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,.90);
  margin-bottom: 4px;
}

.ww-cred-value{
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  font-size: 0.98rem;
}

@media (max-width: 991.98px){
  .ww-attorney-rowcard{
    padding: 22px;
  }
  .ww-attorney-info{
    text-align: center;
  }
  .ww-cred-grid{
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   WW STAFF PAGE LAYOUT
   ========================================================= */
.ww-staff-wrap{
  background: transparent !important;
  padding: 40px 0;
}

.ww-staff-grid{
  --staff-gap: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--staff-gap);
  align-items: stretch;
  justify-items: stretch;
}

.ww-staff-card{
  text-align: center;
}

.ww-staff-photo{
  width: 100%;
  max-width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 0 auto 14px;
  border: 1px solid rgba(245,247,250,.14);
  background: rgba(255,255,255,.05);
}

.ww-staff-name{
  margin: 6px 0 2px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .01em;
  color: var(--ww-offwhite);
}

.ww-staff-role{
  margin: 0 0 10px;
  font-size: 13.5px;
  color: rgba(245,247,250,.86);
  font-weight: 700;
}

.ww-staff-bio{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245,247,250,.85);
}


/* =========================================================
   TIFFANY SOLO CARD (smaller card + smaller photo)
   ========================================================= */
.ww-staff-card--solo{
  grid-column: 1 / -1;
  justify-self: center;
  width: 58%;
  max-width: 440px;
}

.ww-staff-card--solo.ww-card{
  padding: 14px;
}

.ww-staff-card--solo .ww-staff-photo{
  max-width: 190px;
  height: 230px;
}


/* =========================================================
   SUPPORT STAFF SUBSECTION (under attorneys)
   ========================================================= */
.ww-support-subsection{
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid rgba(255,255,255,.12);
}

.ww-support-heading{
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  font-weight: 600;
}

.ww-staff-card--secondary{
  box-shadow: 0 5px 12px rgba(0,0,0,.16);
  opacity: .96;
  border-color: rgba(255,255,255,.06);
}


/* =========================================================
   MISC
   ========================================================= */
.sidebar-nav .site-navigation .nav-link{
  border-radius: 18px !important;
  overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px){
  .ww-staff-grid{
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ww-staff-card--solo{
    grid-column: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .ww-staff-card--solo .ww-staff-photo{
    max-width: 240px;
    height: 280px;
  }

  .ww-staff-card--solo.ww-card{
    padding: 18px;
  }

  .ww-support-subsection{
    padding-left: 14px;
  }
}
.ww-office{
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
}

/* Force theme consistency */
.ww-office,
.ww-office *{
  color: var(--ww-offwhite) !important;
}

/* Title (Cinzel, not heavy bold) */
.ww-office-title{
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-family: var(--ww-display) !important;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.1;
}

/* Subtext */
.ww-office-sub{
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(245,247,250,.84) !important;
}

/* Rows spacing */
.ww-office .stats{
  gap: 12px;
}

/* Row container (lighter, less chunky) */
.ww-office .stat{
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(245,247,250,.10);
  transition: background .2s ease, border-color .2s ease;
}

.ww-office .stat:hover{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.22);
}

/* Label (Cinzel, lighter weight) */
.ww-office .label{
  font-family: var(--ww-display) !important;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .75;
  color: rgba(245,247,250,.92) !important;
}

/* Value (NOT bold-heavy anymore) */
.ww-office .value{
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: right;
  color: rgba(245,247,250,.98) !important;
}

/* Clean links */
.ww-office .ww-link-clean{
  color: rgba(245,247,250,.98) !important;
  text-decoration: none !important;
}

.ww-office .ww-link-clean:hover{
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Footer note */
.ww-office-note{
  margin: 16px 2px 0;
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(245,247,250,.74) !important;
}

/* 🔥 ICON FIX (this was your main issue) */
.ww-office .icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 15px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
}

/* Icon color glow improvements */
.ww-office .icon-jade{
  background: rgba(31,174,146,.18);
  border-color: rgba(31,174,146,.55);
  box-shadow: 0 0 14px rgba(31,174,146,.35);
}

.ww-office .icon-blue{
  background: rgba(111,168,255,.18);
  border-color: rgba(111,168,255,.55);
  box-shadow: 0 0 14px rgba(111,168,255,.35);
}

.ww-office .icon-neutral{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}

/* Mobile */
@media (max-width: 900px){
  .ww-office-title{
    font-size: 1.5rem;
  }

  .ww-office .stat{
    padding: 14px;
  }

  .ww-office .value{
    font-size: .95rem;
  }
}
.light-overlay {
  position: relative;
  background-image: url("https://test.brchcs.com/Staff/WilsonBR.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.light-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8); /* adjust opacity here */
  z-index: 1;
}

.light-overlay > * {
  position: relative;
  z-index: 2;
}
