:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #13233d;
  --muted: #60708a;
  --primary: #123764;
  --primary-strong: #0d2a4d;
  --accent: #f08a10;
  --accent-strong: #e37d04;
  --border: #e6ebf2;
  --shadow-lg: 0 24px 60px rgba(18, 55, 100, 0.12);
  --shadow-md: 0 14px 36px rgba(18, 55, 100, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 32px; }
.guest-main { min-height: calc(100vh - 180px); }
.guest-main-full { padding: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 55, 100, 0.08);
  box-shadow: 0 8px 24px rgba(18, 55, 100, 0.05);
}
.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand.brand-logo img { height: 84px; width: auto; display: block; }
.header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 22px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.nav-links a,
.nav-login,
.nav-user-role {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-links a:hover,
.nav-login:hover {
  background: #edf3fb;
  color: var(--primary);
  transform: translateY(-1px);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user-role {
  background: #eff4fb;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 55, 100, 0.16);
}
.btn-primary:hover, .btn:hover { background: var(--primary-strong); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #d9e4f2;
  box-shadow: none;
}
.btn-outline:hover { background: #f5f9ff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.10); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-success { background: #166534; color: #fff; }
.btn-danger { background: #b91c1c; color: #fff; }

/* Hero */
.hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(18,55,100,0.98) 0%, rgba(18,55,100,0.94) 49%, rgba(18,55,100,0.88) 100%);
  color: #fff;
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,55,100,0.92) 0%, rgba(18,55,100,0.72) 40%, rgba(18,55,100,0.22) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-copy p {
  margin: 0 0 30px;
  max-width: 700px;
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  line-height: 1.6;
}
.hero-search-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  max-width: 920px;
}
.hero-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.hero-field label {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--text);
}
.hero-field input,
.hero-field select,
input, select, textarea {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
textarea { min-height: 130px; resize: vertical; }
.hero-field-action { min-width: 190px; }
.hero-label-spacer { visibility: hidden; }
.btn-hero { width: 100%; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
  color: rgba(255,255,255,0.94);
  font-weight: 700;
}
.trust-row span {
  position: relative;
  padding-left: 24px;
}
.trust-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(240,138,16,0.16);
}
.hero-visual { display: flex; justify-content: flex-end; }
.hero-image-frame {
  width: min(100%, 570px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections */
.section { padding: 88px 0; }
.section-light { background: #f4f7fb; }
.section-white { background: #fff; }
.section-head { margin-bottom: 34px; }
.section-head.centered { text-align: center; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.steps-grid, .feature-grid, .choice-grid, .grid { display: grid; gap: 24px; }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid, .choice-grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-card, .feature-card, .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(18,55,100,0.06);
}
.step-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: start;
  gap: 18px;
}
.step-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf1fb;
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
}
.step-card h3, .feature-card h3, .card h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.02em; }
.step-card p, .feature-card p, .card p { margin: 0; color: var(--muted); line-height: 1.7; }
.feature-card { display: flex; flex-direction: column; gap: 18px; }
.feature-card-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #163c69 100%);
  color: #fff;
}
.feature-card-accent p, .feature-card-accent li, .feature-card-accent h3 { color: #fff; }
.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.feature-list li { margin-bottom: 8px; }

.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #173c68 100%);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
}
.eyebrow-light { background: rgba(255,255,255,0.14); }
.cta-box h2 { margin: 14px 0 12px; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.cta-box p { margin: 0; max-width: 760px; color: rgba(255,255,255,0.86); font-size: 19px; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Auth */
.auth-page { padding: 56px 0 88px; }
.auth-shell { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.auth-shell-compact { max-width: 620px; }
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { margin: 16px 0 10px; font-size: 42px; line-height: 1.08; letter-spacing: -0.03em; }
.small { font-size: 16px; color: var(--muted); line-height: 1.6; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 9px; font-weight: 800; color: var(--text); }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.auth-actions .btn { min-width: 180px; }
.error-list { margin: 8px 0 0; padding-left: 18px; color: #b91c1c; }
.alert {
  width: min(1100px, calc(100% - 64px));
  margin: 20px auto 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
}
.alert-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* App defaults retained */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}
.badge-warning { background: #fff7ed; color: #9a3412; }
.badge-success { background: #ecfdf5; color: #166534; }
.badge-neutral { background: #eef2ff; color: #3730a3; }
footer.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 30px 0 38px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.footer-links a { color: var(--primary); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.inline-form { display: inline; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }
.attachments-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.attachment-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.attachment-image { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.attachment-file { height: 150px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#f3f4f6; font-weight:bold; }
.message-thread { display: flex; flex-direction: column; gap: 14px; }
.message-bubble { max-width: 78%; padding: 14px 16px; border-radius: 14px; }
.message-bubble-self { align-self: flex-end; background: #eff6ff; border: 1px solid #bfdbfe; }
.message-bubble-other { align-self: flex-start; background: #f9fafb; border: 1px solid var(--border); }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { justify-content: center; }
  .hero-copy h1 { font-size: 56px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px) {
  .container { padding: 0 22px; }
  .header-inner { min-height: 88px; align-items: flex-start; padding: 16px 0; }
  .header-right { flex-direction: column; align-items: flex-start; }
  .brand.brand-logo img { height: 70px; }
  .hero-search-fields,
  .steps-grid,
  .feature-grid,
  .choice-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 46px; }
  .section-head h2, .cta-box h2 { font-size: 38px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container, .auth-shell { padding: 0 18px; }
  .nav-actions, .form-actions, .cta-actions { width: 100%; }
  .nav-actions .btn, .auth-actions .btn, .cta-actions .btn, .btn-hero { width: 100%; }
  .hero-grid { padding-top: 40px; padding-bottom: 46px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 17px; }
  .hero-search-card, .auth-card, .feature-card, .step-card, .card { padding: 22px; }
  .step-card { grid-template-columns: 1fr; }
  .trust-row { gap: 12px; }
}

.footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 60px;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #ffffff;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Internal portal */
.app-body{background:radial-gradient(circle at top left, rgba(18,55,100,.06), transparent 28%),linear-gradient(180deg,#f4f7fb 0%,#eef3f9 100%)}
.portal-main{padding:34px 0 72px}.portal-shell,.portal-page{display:flex;flex-direction:column;gap:24px}.page-hero{display:flex;align-items:stretch;justify-content:space-between;gap:24px;padding:34px;border-radius:28px;border:1px solid rgba(19,35,61,.08);box-shadow:var(--shadow-md)}.page-hero h1{margin:14px 0 12px;font-size:44px;line-height:1.04;letter-spacing:-.03em}.page-hero p{margin:0;color:var(--muted);font-size:18px;line-height:1.7;max-width:760px}.page-hero-light{background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}.page-hero-client,.page-hero-contractor,.page-hero-admin{color:#fff}.page-hero-client{background:linear-gradient(135deg,#123764 0%,#1d4e89 100%)}.page-hero-contractor{background:linear-gradient(135deg,#102f57 0%,#22507c 100%)}.page-hero-admin{background:linear-gradient(135deg,#1f2937 0%,#334155 100%)}.page-hero-client p,.page-hero-contractor p,.page-hero-admin p{color:rgba(255,255,255,.86)}.portal-eyebrow{background:rgba(18,55,100,.10);color:var(--primary)}.page-hero-client .portal-eyebrow,.page-hero-contractor .portal-eyebrow,.page-hero-admin .portal-eyebrow{background:rgba(255,255,255,.14);color:#fff}.page-hero-actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;gap:12px}.hero-aside-card{min-width:290px;max-width:360px;padding:22px;border-radius:22px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 40px rgba(0,0,0,.12)}.hero-aside-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.hero-aside-list{display:grid;gap:14px}.hero-aside-list div{display:flex;flex-direction:column;gap:4px}.hero-aside-list span{color:rgba(255,255,255,.75);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.hero-aside-list strong{font-size:18px}.stats-grid{display:grid;gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{background:rgba(255,255,255,.92);border:1px solid rgba(19,35,61,.08);border-radius:22px;padding:24px;box-shadow:0 12px 34px rgba(18,55,100,.06)}.stat-card strong{display:block;margin:8px 0;font-size:38px;line-height:1;letter-spacing:-.03em}.stat-card p{margin:0;color:var(--muted)}.stat-label{color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.surface-card{background:rgba(255,255,255,.92);border:1px solid rgba(19,35,61,.08);border-radius:26px;padding:28px;box-shadow:0 18px 44px rgba(18,55,100,.07)}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.card-head h2{margin:6px 0 0;font-size:30px;letter-spacing:-.02em}.section-kicker{color:var(--accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.text-link,.table-link{color:var(--primary);font-weight:800}.table-link:hover,.text-link:hover{color:var(--accent-strong)}.table-wrap{overflow-x:auto}.data-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0}.data-table th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:800;padding:0 16px 14px;border-bottom:1px solid var(--border)}.data-table td{padding:18px 16px;border-bottom:1px solid var(--border)}.status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.status-open,.status-sent{background:#eff6ff;color:#1d4ed8}.status-viewed{background:#f3f4f6;color:#334155}.status-verified{background:#ecfdf5;color:#166534}.status-pending{background:#fff7ed;color:#9a3412}.status-pill-soft{background:rgba(255,255,255,.18);color:#fff}.empty-state{padding:24px;border:1px dashed #d5dfec;border-radius:20px;background:#fbfdff;text-align:center}@media(max-width:1100px){.page-hero,.stats-grid{grid-template-columns:1fr}.page-hero{display:grid}.page-hero-actions{justify-content:flex-start}.hero-aside-card{max-width:none;min-width:0}}

.nav-links{display:flex;gap:20px;}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;}
.burger span{width:25px;height:3px;background:#111;}
.mobile-menu{position:fixed;top:0;right:-100%;width:250px;height:100%;background:#fff;display:flex;flex-direction:column;padding:80px 20px;transition:.3s;box-shadow:-5px 0 20px rgba(0,0,0,.1);}
.mobile-menu.active{right:0;}
@media(max-width:768px){.nav-links{display:none}.burger{display:flex}}



/* Mobile navbar refinements */
.navbar{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}
.nav-inner{
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo{
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.logo img{
    display: block;
    height: 54px;
    width: auto;
    max-width: 100%;
}
.nav-links{
    display:flex;
    gap:20px;
    align-items:center;
    margin-left:auto;
}
.burger{
    display:none;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    background:transparent;
    border-radius:10px;
    cursor:pointer;
    flex: 0 0 44px;
}
.burger span{
    display:block;
    width:22px;
    height:2px;
    margin:3px 0;
    background:#111;
    border-radius:999px;
}
.mobile-menu{
    position:fixed;
    top:72px;
    right:-100%;
    width:min(280px, 82vw);
    height:calc(100vh - 72px);
    background:#fff;
    display:flex;
    flex-direction:column;
    padding:24px 20px;
    transition:right .25s ease;
    box-shadow:-12px 0 32px rgba(0,0,0,.10);
    z-index:999;
}
.mobile-menu a{
    padding:14px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
}
.mobile-menu.active{
    right:0;
}

@media (max-width: 768px){
    .nav-inner{
        min-height:64px;
        padding-top:8px;
        padding-bottom:8px;
    }
    .logo img{
        height:36px;
    }
    .nav-links{
        display:none;
    }
    .burger{
        display:inline-flex;
        margin-left:auto;
    }
    .mobile-menu{
        top:64px;
        height:calc(100vh - 64px);
    }
}



/* Public contractor directory */
.contractor-cards-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}
.contractor-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:22px;
    box-shadow:0 14px 36px rgba(15,23,42,.06);
    display:flex;
    flex-direction:column;
    gap:14px;
}
.contractor-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.contractor-card h3{
    margin:8px 0 0;
    font-size:1.15rem;
}
.contractor-trade-chip{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    background:#edf3fb;
    color:var(--primary);
    font-weight:700;
    font-size:.86rem;
}
.rating-badge{
    min-width:84px;
    border-radius:16px;
    background:#f8fafc;
    padding:10px 12px;
    text-align:right;
}
.rating-badge strong{
    display:block;
    font-size:1.05rem;
    color:var(--text);
}
.rating-badge span{
    font-size:.92rem;
    color:#f59e0b;
}
.contractor-meta,
.contractor-card-info{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    color:var(--muted);
    font-size:.95rem;
}
.contractor-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:auto;
}
.directory-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:28px;
    align-items:start;
    margin-top:28px;
}
.directory-filter-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    padding:24px;
    position:sticky;
    top:104px;
    box-shadow:0 14px 36px rgba(15,23,42,.05);
}
.directory-filter-form .form-group{
    margin-bottom:18px;
}
.directory-results-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.contractor-card-result{
    min-height:100%;
}
.public-profile-page{
    display:flex;
    flex-direction:column;
    gap:24px;
}
.public-profile-hero{
    background:linear-gradient(135deg,#123764,#0f172a);
    color:#fff;
    border-radius:28px;
    padding:34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.public-rating-panel{
    min-width:190px;
    text-align:center;
    border-radius:20px;
    background:rgba(255,255,255,.10);
    padding:18px 16px;
    backdrop-filter: blur(4px);
}
.public-rating-value{
    font-size:2.3rem;
    font-weight:800;
    line-height:1;
}
.public-rating-stars{
    margin-top:10px;
    color:#fbbf24;
    font-size:1.1rem;
}
.profile-meta-list{
    display:grid;
    gap:14px;
    margin-top:18px;
}
.profile-meta-list div{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    padding:12px 0;
    border-bottom:1px solid rgba(15,23,42,.08);
}
.profile-meta-list span{
    color:var(--muted);
}
.review-score-box{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:18px;
    border-radius:18px;
    background:#f8fafc;
    margin-bottom:20px;
}
.review-score-box strong{
    font-size:2rem;
    line-height:1;
}
.review-score-box span{
    color:#f59e0b;
    font-size:1.1rem;
}
.public-review-list{
    display:grid;
    gap:14px;
}
.public-review-item{
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    padding:18px;
    background:#fff;
}
.public-review-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:10px;
}
@media (max-width: 1100px){
    .contractor-cards-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 900px){
    .directory-layout{
        grid-template-columns:1fr;
    }
    .directory-filter-card{
        position:static;
    }
    .public-profile-hero{
        flex-direction:column;
        align-items:flex-start;
    }
    .public-rating-panel{
        width:100%;
        text-align:left;
    }
}
@media (max-width: 680px){
    .contractor-cards-grid{
        grid-template-columns:1fr;
    }
    .contractor-card-top,
    .directory-results-head,
    .contractor-card-footer,
    .public-review-head,
    .profile-meta-list div{
        flex-direction:column;
        align-items:flex-start;
    }
}
