/* ===========================================================================
   TrahaBoCas — HomeStars-style marketplace design system
   Lightweight PHP prototype, no build step.
   Aesthetic: clean, trustworthy home-services marketplace.
   Navy chrome · orange CTAs · gold review stars · white + light-grey bands.
   Display: Bricolage Grotesque · UI: Hanken Grotesk.
   =========================================================================== */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* brand */
  --navy: #14233d;
  --navy-700: #1b2e4a;
  --navy-800: #122036;
  --navy-900: #0d1827;

  --orange: #ff6b2c;
  --orange-600: #ed5a1b;
  --orange-100: #ffe9df;

  --star: #ffb100;

  --green: #1aa06a;
  --green-100: #e3f6ee;

  /* neutrals */
  --white: #ffffff;
  --bg: #ffffff;
  --grey-50: #f7f9fc;
  --grey-100: #f1f4f9;
  --grey-200: #e8edf4;
  --border: #e3e9f1;
  --border-strong: #d3dbe6;

  --text: #182434;
  --text-soft: #586575;
  --text-faint: #8c96a5;

  /* effects */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(20, 35, 61, 0.06);
  --shadow-sm: 0 1px 3px rgba(20, 35, 61, 0.08), 0 1px 2px rgba(20, 35, 61, 0.04);
  --shadow: 0 4px 14px -4px rgba(20, 35, 61, 0.12), 0 2px 6px -2px rgba(20, 35, 61, 0.08);
  --shadow-lg: 0 24px 50px -18px rgba(20, 35, 61, 0.28), 0 8px 20px -10px rgba(20, 35, 61, 0.16);
  --shadow-orange: 0 12px 26px -10px rgba(255, 107, 44, 0.6);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.002em;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; }
::selection { background: var(--orange); color: #fff; }

/* --------------------------- Typography --------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-optical-sizing: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
}

.lede {
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  color: var(--text-soft);
  line-height: 1.55;
}

.muted { color: var(--text-soft); }
.faint { color: var(--text-faint); }
.tiny { font-size: 0.78rem; }
.num { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}
.container-wide { max-width: 1320px; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3.2rem); }
.bg-grey { background: var(--grey-50); }
.bg-navy { background: var(--navy); color: #fff; }

.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: var(--gap, 1rem); }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* ------------------------------ Card ------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card-pad { padding: clamp(1.25rem, 2vw, 1.7rem); }
.card-hover { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }

.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(20,35,61,0.8); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-ghost { border: 1.5px solid var(--border-strong); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: var(--grey-50); }

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

.btn-outline-orange { border: 1.5px solid var(--orange); color: var(--orange-600); background: #fff; }
.btn-outline-orange:hover { background: var(--orange-100); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ------------------------------ Chips ----------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--grey-100);
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.chip svg { width: 14px; height: 14px; }
.chip-green { background: var(--green-100); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.chip-orange { background: var(--orange-100); color: var(--orange-600); border-color: color-mix(in srgb, var(--orange) 30%, transparent); }
.chip-navy { background: color-mix(in srgb, var(--navy) 8%, #fff); color: var(--navy); border-color: color-mix(in srgb, var(--navy) 18%, transparent); }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --------------------- Verified badge & award ribbon -------------------- */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}
.verified .tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.verified .tick svg { width: 11px; height: 11px; }

/* "Best of" award badge — ribbon shield */
.award {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.7rem 0.34rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5e6, #ffe9c7);
  border: 1px solid #f2cf86;
  color: #8a5a00;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.award .medal {
  width: 20px; height: 20px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd45e, #f4a712);
  color: #7a4a00;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.award .medal svg { width: 12px; height: 12px; }

/* ------------------------------ Stars ----------------------------------- */
.stars { display: inline-flex; gap: 1px; color: var(--star); line-height: 1; }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: var(--grey-200); }
.stars-sm svg { width: 13px; height: 13px; }
.stars-lg svg { width: 20px; height: 20px; }

/* Score badge — HomeStars-style /100 score pill */
.score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  flex: none;
  line-height: 1;
}
.score b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.score span { font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, #fff 65%, transparent); margin-top: 2px; }
.score-green { background: var(--green); }
.score-orange { background: var(--orange); }

/* ------------------------------ Avatar ---------------------------------- */
.avatar {
  --s: 46px;
  width: var(--s); height: var(--s);
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--navy-700);
  flex: none;
  overflow: hidden;
}
.avatar.round { border-radius: 50%; }
.avatar-lg { --s: 80px; font-size: 1.7rem; }
.avatar-sm { --s: 34px; font-size: 0.85rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------ Stat icon ------------------------------- */
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat-ic svg { width: 22px; height: 22px; }

/* ------------------------- Field / inputs ------------------------------- */
.field {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field::placeholder { color: var(--text-faint); }
.field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 16%, transparent);
}
textarea.field { resize: vertical; min-height: 110px; }
.label { font-size: 0.82rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 0.4rem; }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.26rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.brand .glyph {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--star);
  flex: none;
}
.brand .glyph svg { width: 30px; height: 30px; }
.brand b { color: var(--orange); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: 1rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: color-mix(in srgb, #fff 82%, transparent);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -25px;
  height: 3px; background: var(--orange); border-radius: 3px 3px 0 0;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }

.lang {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.lang button { padding: 0.38rem 0.55rem; color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s; }
.lang button.on { background: var(--orange); color: #fff; }

.link-light { color: color-mix(in srgb, #fff 85%, transparent); font-weight: 600; font-size: 0.92rem; transition: color 0.2s; }
.link-light:hover { color: #fff; }

.burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.22); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ----------------------- Pro portal header chrome ----------------------- */
.pro-pill {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy);
  background: var(--orange);
  padding: 0.16rem 0.42rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  align-self: center;
  color: #fff;
}
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: color-mix(in srgb, #fff 85%, transparent);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid var(--navy); }

.avatar-menu { position: relative; }
.avatar-menu .trigger {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  background: none;
  color: inherit;
  font: inherit;
  border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.2s, border-color 0.2s;
}
.avatar-menu:hover .trigger,
.avatar-menu:focus-within .trigger { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.avatar-menu .who { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.avatar-menu .who b { font-size: 0.86rem; font-weight: 700; color: #fff; }
.avatar-menu .who small { font-size: 0.68rem; color: color-mix(in srgb, #fff 60%, transparent); }
.avatar-menu .caret { color: color-mix(in srgb, #fff 70%, transparent); transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.avatar-menu:hover .caret,
.avatar-menu:focus-within .caret { transform: rotate(-90deg); }
.avatar-menu .menu {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  width: 248px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
/* Invisible bridge across the gap so moving the cursor to the menu keeps it open. */
.avatar-menu .menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 14px; }
.avatar-menu:hover .menu,
.avatar-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.avatar-menu .menu-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem 0.7rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; }
.avatar-menu .menu-head b { font-size: 0.9rem; font-weight: 700; display: block; }
.avatar-menu .menu-head small { font-size: 0.78rem; color: var(--text-soft); }
.avatar-menu .menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.avatar-menu .menu a svg,
.avatar-menu .menu button svg { width: 17px; height: 17px; opacity: 0.75; }
.avatar-menu .menu a:hover { background: var(--grey-100); color: var(--navy); }
.avatar-menu .menu a.danger { color: #d9433b; }
.avatar-menu .menu a.danger:hover { background: color-mix(in srgb, #d9433b 8%, #fff); }
.avatar-menu .menu-sep { height: 1px; background: var(--border); margin: 0.4rem 0; }
@media (max-width: 760px) { .avatar-menu summary { border: none; padding: 0; } }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-900); color: color-mix(in srgb, #fff 72%, transparent); }
.site-footer a { color: color-mix(in srgb, #fff 70%, transparent); transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.4rem;
  padding-block: clamp(2.8rem, 6vw, 4rem) 2rem;
}
.footer-grid h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; margin-bottom: 1rem; }
.footer-grid li + li { margin-top: 0.55rem; }
.footer-grid .brand { color: #fff; margin-bottom: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem;
  color: color-mix(in srgb, #fff 50%, transparent);
}
.app-badges { display: flex; gap: 0.6rem; }
.app-badges a, .app-badges span { border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 0.5rem 0.8rem; font-size: 0.8rem; font-weight: 600; color: #fff; display: inline-flex; gap: 0.4rem; align-items: center; }

/* ------------------------- Reveal animation ----------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* Content is visible by default; JS opts into the hide-then-reveal (so a JS
   failure can never leave the page blank). `html.js` is set by app.js. */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: rise 0.7s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) { .reveal, html.js .reveal { opacity: 1; animation: none; } html { scroll-behavior: auto; } }

/* =======================================================================
   LANDING PAGE
   ======================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 80% -20%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 50%),
    linear-gradient(180deg, var(--grey-50), #fff 70%);
  padding-block: clamp(2.6rem, 6vw, 5rem) clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--orange); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -0.18em; width: 100%; height: 0.3em; color: var(--star); }
.hero .lede { margin-top: 1.2rem; max-width: 32rem; }

/* Search bar */
.searchbar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.8rem;
  max-width: 560px;
}
.searchbar .sf { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.9rem; flex: 1; }
.searchbar .sf svg { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.searchbar .sf input { border: none; outline: none; width: 100%; background: none; color: var(--text); }
.searchbar .sf input::placeholder { color: var(--text-faint); }
.searchbar .divider { width: 1px; background: var(--border); margin-block: 0.4rem; }
.searchbar .btn { flex: none; }
@media (max-width: 540px) {
  .searchbar { flex-direction: column; border-radius: var(--radius); }
  .searchbar .divider { display: none; }
  .searchbar .sf { padding: 0.6rem 0.9rem; }
  .searchbar .btn { width: 100%; }
}

.pop-tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pop-tags span { font-size: 0.82rem; color: var(--text-faint); font-weight: 600; }
.pop-tag {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pop-tag:hover { border-color: var(--orange); color: var(--orange-600); background: var(--orange-100); }

.hero-trust { margin-top: 2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-trust .faces { display: flex; }
.hero-trust .faces .avatar { --s: 38px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -10px; font-size: 0.82rem; box-shadow: var(--shadow-xs); }
.hero-trust .faces .avatar:first-child { margin-left: 0; }

/* Hero visual — stacked pro card + review snippet */
.hero-visual { position: relative; min-height: 440px; }
.hero-visual .photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-visual .photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(255,107,44,0.35), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 20px);
}
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1rem;
  z-index: 3;
}
.float-card.fc1 { top: 26px; left: -22px; width: 230px; }
.float-card.fc2 { bottom: 30px; right: -18px; width: 250px; }
.float-card.fc3 { bottom: 150px; left: -28px; width: 180px; z-index: 2; }
@media (max-width: 980px) { .float-card.fc1 { left: 4px; } .float-card.fc2 { right: 4px; } .float-card.fc3 { display: none; } }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  padding: 1.4rem 0.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.cat-tile .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--orange-100);
  color: var(--orange-600);
}
.cat-tile .ic svg { width: 26px; height: 26px; }
.cat-tile b { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.cat-tile small { font-size: 0.74rem; color: var(--text-faint); }
@media (max-width: 880px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Section heads */
.sec-head { max-width: 660px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-block: 0.6rem 0.8rem; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; }
.step .num-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step:nth-child(2) .num-badge { background: var(--orange); }
.step:nth-child(3) .num-badge { background: var(--green); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pro cards rail */
.pro-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pro-card { overflow: hidden; }
.pro-card .cover {
  height: 132px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy));
  position: relative;
}
.pro-card .cover .award { position: absolute; top: 12px; left: 12px; }
.pro-card .cover .save {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, color 0.2s;
}
.pro-card .cover .save:hover { transform: scale(1.08); color: var(--orange); }
.pro-card .cover .save svg { width: 17px; height: 17px; }
.pro-card .pc-body { padding: 0 1.2rem 1.3rem; margin-top: -28px; position: relative; }
.pro-card .pc-top { display: flex; align-items: flex-end; gap: 0.8rem; }
.pro-card .pc-top .avatar { --s: 56px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.pro-card h3 { font-size: 1.12rem; margin-top: 0.8rem; }
.pro-card .cat { font-size: 0.86rem; color: var(--text-soft); }
.pro-card .rating-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-soft); }
.pro-card .rating-row b { color: var(--navy); font-weight: 800; }
.pro-card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.9rem; }
.pro-card .pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 920px) { .pro-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pro-rail { grid-template-columns: 1fr; } }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-band .s .n { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--orange); line-height: 1; }
.stats-band .s .l { font-size: 0.9rem; color: color-mix(in srgb, #fff 72%, transparent); margin-top: 0.5rem; }
@media (max-width: 700px) { .stats-band { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

/* Review / testimonial cards */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card .quote { font-size: 1rem; color: var(--text); line-height: 1.6; margin-block: 0.8rem 1.1rem; }
.review-card .who { display: flex; align-items: center; gap: 0.7rem; }
.review-card .who b { font-weight: 700; font-size: 0.92rem; }
.review-card .who small { color: var(--text-faint); font-size: 0.8rem; }
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }

/* Dual CTA (homeowner / pro) */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cta-box { border-radius: var(--radius-xl); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden; }
.cta-box.homeowner { background: linear-gradient(150deg, var(--orange), #ff8a52); color: #fff; }
.cta-box.pro { background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: #fff; }
.cta-box h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-box p { color: rgba(255,255,255,0.85); margin-block: 0.6rem 1.4rem; }
@media (max-width: 760px) { .cta-split { grid-template-columns: 1fr; } }

/* ---- Responsive landing ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .lang, .nav-right .hide-mobile { display: none; }
  .burger { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13,24,39,0.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0;
  width: min(82vw, 340px); height: 100%;
  background: var(--navy);
  color: #fff;
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .panel a { font-family: var(--font-display); font-size: 1.4rem; color: #fff; font-weight: 700; }
.mobile-drawer .panel .close { align-self: flex-end; font-size: 2rem; line-height: 1; color: #fff; }

/* =======================================================================
   SHARED APP CHROME (dashboard.php + profile.php)
   ======================================================================= */
.page-head {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 90% -20%, rgba(255,107,44,0.25), transparent 55%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; padding-block: clamp(1.8rem, 3.4vw, 2.8rem); }
.page-head h1 { color: #fff; }
.crumbs { font-size: 0.82rem; color: color-mix(in srgb, #fff 65%, transparent); display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.7rem; }
.crumbs a { color: color-mix(in srgb, #fff 80%, transparent); }
.crumbs a:hover { color: var(--orange); }

.app-grid { display: grid; grid-template-columns: 248px 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); align-items: start; }
.app-aside { position: sticky; top: 88px; }
.side-nav { display: grid; gap: 0.2rem; }
.side-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  color: var(--text-soft);
  transition: background 0.2s, color 0.2s;
}
.side-nav a svg { width: 18px; height: 18px; opacity: 0.7; }
.side-nav a:hover { background: var(--grey-100); color: var(--navy); }
.side-nav a.active { background: var(--navy); color: #fff; }
.side-nav a.active svg { opacity: 1; }
.side-nav .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0.1rem 0.45rem; border-radius: 999px; }

@media (max-width: 880px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-aside { position: static; }
  .side-nav { grid-auto-flow: column; overflow-x: auto; padding-bottom: 0.4rem; }
  .side-nav a { white-space: nowrap; }
  .side-nav .badge { display: none; }
}

/* utilities */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.center-text{text-align:center}.flex{display:flex}.grid{display:grid}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}
.justify-between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1}
@media (max-width:600px){.hide-sm{display:none}}

/* ===================== Flash messages & field errors ===================== */
.flash {
  margin: 1rem auto;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.flash-error {
  background: #fdecec;
  color: #b3261e;
  border-color: color-mix(in srgb, #e5484d 30%, transparent);
}
.flash-ok {
  background: var(--green-100);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
}
.field-err {
  margin: .35rem 0 0;
  color: #b3261e;
  font-size: .82rem;
  font-weight: 600;
}

.verify-cta { border-left: 4px solid var(--orange-600); }
.verify-cta a { color: var(--orange-600); font-weight: 600; }
