/* France Avocats Theme v1.10.0 — Marketplace visual compatibility fixes
   Loaded after the marketplace plugin and the theme integration layer. */

/* The theme's generic marketplace heading rule must never darken headings placed
   on navy marketplace hero/header panels. */
.fa-site .fam-shell .fam-directory-hero,
.fa-site .fam-shell .fam-dashboard-head,
.fa-site .fam-shell .fam-consultation-hero,
.fa-site .fam-shell .fam-auth-intro,
.fa-site .fam-profile .fam-profile-hero {
  color:#fff !important;
  background:linear-gradient(135deg,#03283b 0%,#073f55 100%) !important;
  border:1px solid rgba(243,189,106,.18);
  box-shadow:0 14px 38px rgba(0,27,43,.10);
}

.fa-site .fam-shell .fam-directory-hero h1,
.fa-site .fam-shell .fam-directory-hero h2,
.fa-site .fam-shell .fam-directory-hero h3,
.fa-site .fam-shell .fam-directory-hero p,
.fa-site .fam-shell .fam-dashboard-head h1,
.fa-site .fam-shell .fam-dashboard-head h2,
.fa-site .fam-shell .fam-dashboard-head h3,
.fa-site .fam-shell .fam-dashboard-head p,
.fa-site .fam-shell .fam-consultation-hero h1,
.fa-site .fam-shell .fam-consultation-hero h2,
.fa-site .fam-shell .fam-consultation-hero h3,
.fa-site .fam-shell .fam-consultation-hero p,
.fa-site .fam-shell .fam-auth-intro h1,
.fa-site .fam-shell .fam-auth-intro h2,
.fa-site .fam-shell .fam-auth-intro h3,
.fa-site .fam-shell .fam-auth-intro p,
.fa-site .fam-profile .fam-profile-hero h1,
.fa-site .fam-profile .fam-profile-hero h2,
.fa-site .fam-profile .fam-profile-hero h3,
.fa-site .fam-profile .fam-profile-hero p {
  color:#fff !important;
}

/* Login + directory title hierarchy */
.fa-site .fam-shell .fam-directory-hero {
  padding:38px 42px !important;
  border-radius:14px !important;
  margin-bottom:20px !important;
}
.fa-site .fam-shell .fam-directory-hero .fam-eyebrow,
.fa-site .fam-shell .fam-auth-intro .fam-eyebrow,
.fa-site .fam-shell .fam-dashboard-head .fam-eyebrow,
.fa-site .fam-profile .fam-profile-hero .fam-eyebrow {
  color:#f3bd6a !important;
  font-size:12px !important;
  line-height:1.25 !important;
  letter-spacing:3.2px !important;
  font-weight:800 !important;
  text-transform:uppercase;
  margin-bottom:12px !important;
}
.fa-site .fam-shell .fam-directory-hero h1 {
  max-width:1100px;
  margin:0 0 14px !important;
  font-family:var(--heading,Georgia,serif) !important;
  font-size:clamp(36px,4vw,58px) !important;
  line-height:1.04 !important;
  letter-spacing:-.7px !important;
  text-wrap:balance;
}
.fa-site .fam-shell .fam-directory-hero p {
  max-width:780px;
  margin:0 !important;
  font-size:16px !important;
  line-height:1.55 !important;
  font-weight:400 !important;
  color:rgba(255,255,255,.92) !important;
}

/* Login page cards */
.fa-site .fam-shell.fam-portal .fam-auth-layout {
  gap:22px !important;
  align-items:stretch !important;
}
.fa-site .fam-shell.fam-portal .fam-form-card {
  border:1px solid #dde5ec !important;
  border-radius:12px !important;
  box-shadow:0 12px 32px rgba(0,27,43,.07) !important;
  padding:28px !important;
}
.fa-site .fam-shell.fam-portal .fam-form-card h2 {
  color:#08273b !important;
  font-size:30px !important;
  margin:0 0 18px !important;
}
.fa-site .fam-shell.fam-portal .login-username label,
.fa-site .fam-shell.fam-portal .login-password label,
.fa-site .fam-shell.fam-portal .login-remember label {
  color:#20384f !important;
  font-weight:700 !important;
}
.fa-site .fam-shell.fam-portal input[type=text],
.fa-site .fam-shell.fam-portal input[type=password] {
  min-height:48px !important;
  border:1px solid #cbd6df !important;
  border-radius:7px !important;
  color:#11283e !important;
  background:#fff !important;
}
.fa-site .fam-shell.fam-portal input[type=text]:focus,
.fa-site .fam-shell.fam-portal input[type=password]:focus {
  border-color:#c98726 !important;
  box-shadow:0 0 0 3px rgba(243,189,106,.18) !important;
  outline:0 !important;
}
.fa-site .fam-shell.fam-portal input[type=submit] {
  min-height:46px !important;
  padding:11px 22px !important;
  color:#10263a !important;
  background:linear-gradient(110deg,#f3bd6a,#f8d59d) !important;
  border:0 !important;
  border-radius:6px !important;
  font-weight:800 !important;
}
.fa-site .fam-shell.fam-portal .fam-portal-options>a {
  min-height:86px;
  border-color:#dce4eb !important;
  border-radius:10px !important;
  background:#fff !important;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.fa-site .fam-shell.fam-portal .fam-portal-options>a:hover {
  border-color:#e1b96f !important;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(0,27,43,.06);
}

/* Lawyer directory search controls */
.fa-site .fam-shell .fam-searchbar {
  background:#052c40 !important;
  border:1px solid rgba(243,189,106,.16) !important;
  border-radius:12px !important;
  padding:14px !important;
  gap:11px !important;
  box-shadow:0 12px 32px rgba(0,27,43,.09) !important;
}
.fa-site .fam-shell .fam-search-field {
  min-height:68px !important;
  padding:8px 13px !important;
  border:1px solid #dbe3e9 !important;
  border-radius:7px !important;
  background:#fff !important;
  grid-template-columns:32px minmax(0,1fr) !important;
  gap:8px !important;
}
.fa-site .fam-shell .fam-search-field>.dashicons {
  color:#b87318 !important;
  width:21px !important;
  height:21px !important;
  font-size:21px !important;
  line-height:1 !important;
  place-self:center;
}
.fa-site .fam-shell .fam-search-field label {
  color:#10263a !important;
  font-size:11px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  min-width:0;
}
.fa-site .fam-shell .fam-search-field input,
.fa-site .fam-shell .fam-search-field select {
  color:#354b60 !important;
  font-size:14px !important;
  line-height:1.3 !important;
  font-weight:500 !important;
  min-width:0;
}
.fa-site .fam-shell .fam-search-field input::placeholder {
  color:#7d8da0 !important;
  opacity:1 !important;
}
.fa-site .fam-shell .fam-searchbar>.fam-btn {
  min-width:142px !important;
  min-height:68px !important;
  border-radius:7px !important;
  font-size:14px !important;
}

/* Directory heading and empty state */
.fa-site .fam-shell .fam-directory-head {
  margin:24px 0 16px !important;
  align-items:center !important;
}
.fa-site .fam-shell .fam-directory-head h2 {
  color:#08273b !important;
  font-size:clamp(27px,2.3vw,36px) !important;
  line-height:1.1 !important;
}
.fa-site .fam-shell .fam-directory-head a {
  color:#9b5c0a !important;
  font-size:13px !important;
  font-weight:800 !important;
}
.fa-site .fam-shell .fam-empty {
  color:#596b7d !important;
  background:#fbfcfd !important;
  border:1px dashed #cbd7e0 !important;
  border-radius:10px !important;
  padding:28px 30px !important;
}
.fa-site .fam-shell .fam-empty strong {
  color:#153047 !important;
}

/* Ensure marketplace cards stay readable even when theme-wide heading styles change. */
.fa-site .fam-shell .fam-form-card h1,
.fa-site .fam-shell .fam-form-card h2,
.fa-site .fam-shell .fam-form-card h3,
.fa-site .fam-shell .fam-panel h1,
.fa-site .fam-shell .fam-panel h2,
.fa-site .fam-shell .fam-panel h3,
.fa-site .fam-shell .fam-lawyer-card h3 {
  color:#08273b !important;
}

@media (max-width:820px) {
  .fa-site .fam-shell .fam-directory-hero {
    padding:28px 24px !important;
  }
  .fa-site .fam-shell .fam-directory-hero h1 {
    font-size:clamp(32px,8vw,44px) !important;
  }
  .fa-site .fam-shell .fam-directory-hero p {
    font-size:15px !important;
  }
  .fa-site .fam-shell .fam-searchbar {
    grid-template-columns:1fr !important;
  }
  .fa-site .fam-shell .fam-searchbar>.fam-btn {
    min-height:50px !important;
    width:100% !important;
  }
  .fa-site .fam-shell.fam-portal .fam-auth-layout {
    grid-template-columns:1fr !important;
  }
}

@media (max-width:560px) {
  .fa-site .fam-shell .fam-directory-hero {
    padding:24px 20px !important;
    border-radius:10px !important;
  }
  .fa-site .fam-shell .fam-directory-hero h1 {
    font-size:34px !important;
  }
  .fa-site .fam-shell .fam-directory-head {
    display:grid !important;
    gap:8px !important;
  }
  .fa-site .fam-shell.fam-portal .fam-form-card {
    padding:20px !important;
  }
}
