/* ─────────────────────────────────────────────────────────────
   css_client.css  |  FloorAmigo retail-facing shared styles
   Used by: index.php, markets/index.php, trades/index.php,
            trades/service.php — and all future retail pages.
   DO NOT use for the pro dashboard (see app.css).
───────────────────────────────────────────────────────────── */

/* ── RESET & ROOT ─────────────────────────────────────── */
:root {
  --navy:       #1a2035;
  --navy-mid:   #232d47;
  --navy-light: #2e3a57;
  --green:      #4CAF50;
  --green-dark: #3a9e3e;
  --green-pale: #e8f5e9;
  --ink:        #1a2035;
  --muted:      #6b7a99;
  --line:       #e4e8f0;
  --bg:         #f5f7fb;
  --card:       #ffffff;
  --r-xl:       28px;
  --r-lg:       20px;
  --r-md:       14px;
  --r-sm:       10px;
  --shadow:     0 4px 20px rgba(26,32,53,.08);
  --shadow-lg:  0 16px 52px rgba(26,32,53,.13);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Epilogue', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a     { text-decoration: none; color: inherit; }
img   { display: block; max-width: 100%; }

/* ── LAYOUT ───────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER / NAV ─────────────────────────────────────── */
.header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.nav {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo-link  { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 18px; }
.logo-img   { height: 30px; width: auto; }
.logo-text  { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.3px; white-space: nowrap; }
.logo-text span { color: var(--green); }

.nav-center { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: center; }
.nav-link {
  color: rgba(255,255,255,.6);
  font-size: 14.9px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover  { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; }
.nav-market-link,
.mobile-nav-market-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-account {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s, border-color .15s, transform .1s;
  flex-shrink: 0;
}
.nav-account:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.nav-account svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; overflow: hidden; height: 34px;
}
.lang-btn {
  display: flex; align-items: center;
  padding: 0 11px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: rgba(255,255,255,.5);
  cursor: pointer; border: none; background: transparent;
  transition: color .15s, background .15s;
  font-family: 'Epilogue', sans-serif;
  text-decoration: none;
}
.lang-btn.active { background: rgba(255,255,255,.15); color: #fff; }
.lang-divider    { width: 1px; height: 16px; background: rgba(255,255,255,.15); align-self: center; }

.nav-pros {
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 800;
  padding: 12px 22px; border-radius: 999px;
  transition: background .15s, transform .1s;
  white-space: nowrap; letter-spacing: -.1px;
}
.nav-pros:hover { background: var(--green-dark); transform: translateY(-1px); }

.nav-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background .15s, border-color .15s;
}
.nav-menu-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.nav-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease, opacity .18s ease;
}

.mobile-nav-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(26,32,53,.98);
}
.mobile-nav-inner {
  padding-top: 14px;
  padding-bottom: 16px;
}
.mobile-nav-pros {
  display: none;
  width: auto;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  padding: 12px 22px;
  border-radius: 999px;
  margin-top: 14px;
  align-self: flex-start;
}
.mobile-nav-links {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-link {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.mobile-nav-link.active {
  color: #fff;
  background: rgba(76,175,80,.16);
  border-color: rgba(76,175,80,.28);
}
.mobile-nav-trust {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  margin: 0 0 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(76,175,80,.28);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.mobile-nav-trust-icon {
  width: 34px;
  height: 34px;
  color: var(--green);
  flex: 0 0 auto;
}
.mobile-nav-trust span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.mobile-nav-trust strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 800;
}
.mobile-nav-trust em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 700;
  color: rgba(255,255,255,.66);
}
.mobile-nav-market-link {
  width: 100%;
  justify-content: flex-start;
}
.header.mobile-nav-open .mobile-nav-panel { display: block; }
.header.mobile-nav-open .nav-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.mobile-nav-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
.header.mobile-nav-open .nav-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── PAGE HERO ────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  position: relative; overflow: hidden; padding: 52px 0 76px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 52px;
  background: var(--bg); border-radius: 32px 32px 0 0;
}
.hero-glow {
  position: absolute; top: -100px; right: -60px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(76,175,80,.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner              { position: relative; z-index: 2; }
.page-hero .hero-inner  { max-width: 700px; }
.hero-eyebrow  {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(76,175,80,.15);
  border: 1px solid rgba(76,175,80,.3);
  color: var(--green);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.65); }
}
.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 48px; font-weight: 800; line-height: 1.07; letter-spacing: -1.6px;
  color: #fff; margin-bottom: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--green); }
.page-hero p     { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 560px; margin-bottom: 28px; }

.hero-stats        { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-stat         { color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600; }
.hero-stat strong  { color: #fff; margin-right: 4px; }

/* ── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 0; font-size: 12.5px; font-weight: 600; flex-wrap: wrap;
}
.breadcrumb a       { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--ink); }
.bc-sep             { color: var(--line); font-size: 14px; }
.bc-current         { color: var(--ink); }

/* ── CONTENT & SECTIONS ───────────────────────────────── */
.content        { padding: 52px 0 64px; }
.section-eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 34px; font-weight: 800; letter-spacing: -.9px;
  line-height: 1.1; margin-bottom: 12px;
}
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 560px; margin-bottom: 36px; }

/* ── FILTER BAR ───────────────────────────────────────── */
.filter-bar   { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 90; }
.filter-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 14px 20px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  border: none; border-bottom: 2px solid transparent;
  white-space: nowrap; cursor: pointer; background: none;
  font-family: 'Epilogue', sans-serif;
  transition: color .15s, border-color .15s;
}
.filter-tab:hover        { color: var(--ink); }
.filter-tab.active       { color: var(--green-dark); border-bottom-color: var(--green); }

/* ── HOW IT WORKS ─────────────────────────────────────── */
.how-section   { background: var(--navy); padding: 60px 0; }
.how-section .section-eyebrow { color: rgba(76,175,80,.85); }
.how-section .section-title   { color: #fff; }
.how-section .section-sub     { color: rgba(255,255,255,.45); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
.step  {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-xl); padding: 26px;
  transition: background .2s, border-color .2s;
}
.step:hover     { background: rgba(255,255,255,.08); border-color: rgba(76,175,80,.3); }
.step-num       { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--green); margin-bottom: 12px; }
.step h3        { font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.step p         { font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.7; }

/* ── FOOTER ───────────────────────────────────────────── */
.fa-site-trust {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.fa-site-trust-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.fa-site-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0 26px;
  color: var(--ink);
}
.fa-site-trust-item + .fa-site-trust-item {
  border-left: 1px solid var(--line);
}
.fa-site-trust-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--navy);
}
.fa-site-trust-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fa-site-trust-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fa-site-trust-item em {
  display: block;
  font-style: normal;
  font-size: 13px;
  line-height: 1.38;
  color: var(--muted);
}
.footer        { background: var(--navy); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner  { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-logo   { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.footer-logo span  { color: var(--green); }
.footer-links  { display: flex; align-items: center; justify-content: center; gap: 24px; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; }
.footer-logo   { margin-right: 18px; }
.footer-link   { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.58); transition: color .15s; text-decoration: none; white-space: normal; }
.footer-link:hover { color: #fff; }
.footer-copy   { font-size: 14px; color: rgba(255,255,255,.35); flex: 1 0 100%; text-align: center; margin-top: 4px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 1040px) {
  .hero-inner { overflow: hidden; }
  .est-card   { width: 100%; max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 680px) {
.footer-inner  { flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
  .footer-logo   { width: 100%; text-align: left; }
  .footer-links  { justify-content: flex-start; gap: 14px; width: 100%; }
  .footer-copy   { width: 100%; text-align: left; }
  .nav             { height: 72px; }
  .logo-link       { margin-right: 0; }
  .logo-img        { height: 28px; }
  .nav-center       { display: none; }
  .nav-right        { margin-left: auto; justify-content: flex-end; gap: 8px; }
  .nav-account      { width: 34px; height: 34px; }
  .lang-toggle      { display: flex; }
  .nav-pros         { display: none; }
  .nav-menu-btn     { display: inline-flex; }
  .mobile-nav-pros  { display: inline-flex; }
  .mobile-nav-trust { display: flex; }
  .mobile-nav-links { display: flex; }
  .trust-badges     { display: none; }
  .fa-site-trust { padding: 18px 0; }
  .fa-site-trust-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fa-site-trust-item {
    padding: 14px 2px;
    align-items: flex-start;
  }
  .fa-site-trust-item + .fa-site-trust-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .fa-site-trust-icon {
    width: 34px;
    height: 34px;
  }
  .page-hero h1     { font-size: 34px; }
  .section-title    { font-size: 26px; }
  .est-card         { padding: 18px 14px; }
  .cat-grid         { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .cat-chip         { padding: 8px 8px; }
  .chip-label       { font-size: 12px; }
  .chip-sub         { font-size: 9.5px; }
}

/* ── Admin header — mobile fix (applies to all admin pages via !important) ── */
@media (max-width: 680px) {
  .admin-header-inner { height: auto !important; min-height: 56px; padding-top: 10px !important; padding-bottom: 10px !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 8px !important; }
  .admin-logo { flex-direction: column !important; align-items: flex-start !important; gap: 5px !important; }
  .admin-badge { font-size: 11px !important; }
  .admin-home-link { font-size: 12px !important; padding: 7px 12px !important; align-self: center; }
}


.qa-confirmed-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
