/* PORTALDA App UI — landing + panels (coral brand, no navy blocks) */
:root {
  --c-coral: #f05053;
  --c-coral-dark: #d93f42;
}

/* Logo — large and visible */
.brand-image { display: inline-flex; align-items: center; flex-shrink: 0; min-width: 0; }
.brand-logo { height: 72px; width: auto; max-width: 280px; display: block; object-fit: contain; }
.brand-logo-header {
  height: 110px !important;
  width: auto !important;
  max-width: min(420px, 58vw) !important;
  display: block;
  object-fit: contain;
}
.brand-logo-footer { height: 80px; width: auto; max-width: 320px; margin-bottom: .75rem; object-fit: contain; }
.brand-logo-light { filter: brightness(0) invert(1); }

.topbar .topbar-inner {
  min-height: 7rem !important;
  height: auto !important;
  padding: 0.5rem 0;
  gap: 1.25rem;
}
/* Landing header — menu left, buttons right (keep large logo & default sizes) */
.topbar-landing .topbar-inner {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 7rem !important;
  gap: 1.25rem;
  padding: 0.5rem 0;
}
.topbar-landing .brand-image {
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.topbar-landing .brand-logo-header {
  height: 110px !important;
  max-width: min(420px, 58vw) !important;
}
.topbar-landing .nav {
  justify-content: flex-start;
  margin-left: clamp(0.75rem, 2vw, 1.75rem);
  gap: clamp(1.25rem, 2.2vw, 2rem);
  flex-wrap: nowrap;
  flex: 1;
}
.topbar-landing .nav a {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-landing .topbar-cta-group {
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
.topbar .brand-image { margin-right: .5rem; }
.topbar-cta-group { flex-wrap: wrap; gap: 0.5rem; }

/* Hero */
.marketplace-hero { padding: 2.5rem 0 3.5rem !important; }
.hero-ref-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.hero-ref-left h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.15;
  margin: 1rem 0;
  color: var(--c-text-main);
}
.hero-ref-left .hero-lead {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 1.5rem;
}
.hero-ref-left .text-gradient { color: var(--c-coral); }

.hero-checklist { list-style: none; padding: 0; margin: 0; }
.hero-checklist-main { margin-bottom: 0; }
.hero-checklist li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .85rem;
  color: var(--c-text-main);
  font-weight: 500;
  font-size: .95rem;
}
.hero-checklist svg { color: var(--c-coral); width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.hero-cta-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--c-border);
  position: sticky;
  top: 7rem;
}
.hero-cta-header {
  background: linear-gradient(135deg, var(--c-coral), #ff7b6e);
  color: #fff;
  padding: 1.35rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}
.hero-cta-body { padding: 1.5rem; }
.hero-cta-steps { display: grid; gap: .85rem; margin-bottom: 1.25rem; }
.hero-cta-step {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: .75rem;
  font-weight: 600;
  color: var(--c-text-main);
  background: #fafbfc;
}
.hero-cta-step svg { color: var(--c-coral); width: 20px; height: 20px; flex-shrink: 0; }
.hero-cta-card .btn-block { width: 100%; margin: 0 0 1rem; }
.hero-rating {
  text-align: center;
  color: #f59e0b;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .75rem;
}
.hero-rating span { color: var(--c-text-muted); font-weight: 500; margin-left: .35rem; }
.hero-provider-link {
  text-align: center;
  font-size: .9rem;
  margin: 0;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.hero-provider-link a { color: var(--c-coral); font-weight: 700; }

.services-section { background: #f8fafc; padding-top: 4rem !important; padding-bottom: 4rem !important; }
.services-grid-10 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.service-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 1rem;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: .2s ease;
}
.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(240, 80, 83, 0.35);
}
.service-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  background: rgba(240, 80, 83, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-coral);
  margin-bottom: .85rem;
}
.service-tile h3 { font-size: 1rem; margin: 0 0 .4rem; }
.service-tile small { color: var(--c-text-muted); }
.service-tile-link { display: inline-block; margin-top: .85rem; color: var(--c-coral); font-weight: 700; font-size: .9rem; }

.marketplace-steps-section { background: #fff; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

.trust-section-light { padding: 3rem 0 !important; background: #fff; }
.trust-strip-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.trust-strip-home article {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.trust-strip-home svg { color: var(--c-coral); width: 24px; height: 24px; }
.trust-strip-home strong { font-size: .95rem; line-height: 1.35; color: var(--c-text-main); }

.topbar-v2 { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 50; }
.nav-v2 a { color: var(--c-text-muted); font-weight: 600; margin: 0 .75rem; }
.hero-v2 { padding-top: 3rem; }
.hero-v2-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 2rem; align-items: center; }
.hero-v2-copy h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: .75rem 0; }
.hero-v2-copy .lead { color: var(--c-text-muted); font-size: 1.05rem; max-width: 56ch; }
.trust-strip { background: #fff; }
.trust-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.flash-stack { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: grid; gap: .5rem; }
.flash { padding: .85rem 1rem; border-radius: .75rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.auth-section { padding: 2rem 0 4rem; }
.auth-section .auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.auth-showcase h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.auth-showcase > p { margin-bottom: 1.25rem; line-height: 1.6; }
.auth-role-switch { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.auth-role-switch a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text-muted); font-weight: 600; font-size: .9rem; }
.auth-role-switch a.active { background: var(--c-coral); color: #fff; border-color: var(--c-coral); }
.auth-hint { font-size: .9rem; color: var(--c-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.demo-credentials {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: .75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  display: grid;
  gap: .35rem;
  font-size: .9rem;
}
.demo-credentials strong { color: var(--c-coral); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.demo-credentials span { color: var(--c-text-main); font-weight: 600; }
.auth-footer-text { margin-top: 1.25rem; text-align: center; font-size: .9rem; color: var(--c-text-muted); }
.auth-footer-text a { color: var(--c-coral); font-weight: 700; }
.card-panel { background: #fff; border: 1px solid var(--c-border); border-radius: 1rem; padding: 1.5rem; }
.narrow-form { max-width: 720px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; align-items: end; }
.form-step { display: none; }
.form-step.active { display: block; }
.step-indicator { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-border); }
.step-dot.active { background: var(--c-coral); }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.badge-model { display: inline-block; background: rgba(240,80,83,.1); color: var(--c-coral); padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.hybrid-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hint-text { font-size: .85rem; color: var(--c-text-muted); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.panel-header h1 { margin: 0; font-family: var(--font-display); }
.sidebar-footer { margin-top: auto; display: grid; gap: .75rem; }
.sidebar .sidebar-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-text-main); padding: .7rem .9rem; border-radius: .6rem; border: none; background: transparent; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.sidebar .sidebar-link.active { background: rgba(240,80,83,.1); color: var(--c-coral); font-weight: 700; }
.sidebar-dark { background: #1e293b !important; }
.sidebar-dark .sidebar-link { color: #cbd5e1; }
.sidebar-dark .sidebar-link.active { background: rgba(255,255,255,.1); color: #fff; }
.btn-light-outline { color: #fff !important; border-color: rgba(255,255,255,.25) !important; background: transparent !important; }
.btn-block { width: 100%; }
.btn-lg { padding: .9rem 1.25rem; font-size: 1rem; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; }
.request-card { margin-bottom: 1rem; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; margin-top: 1rem; }
.commission-row { display: grid; grid-template-columns: 1fr 120px auto; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.commission-pay-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--c-border); }
.provider-landing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.provider-landing-card { background: #fff; border: 1px solid var(--c-border); border-radius: 1rem; padding: 1.5rem; }
.provider-landing-card ul { padding-left: 1.1rem; }

/* Panel sections */
.panel-section { margin-bottom: 2rem; }
.panel-section h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.panel-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.panel-section-head a { color: var(--c-coral); font-weight: 700; font-size: .9rem; }

/* Document tabs */
.tab-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab-btn { padding: .55rem 1rem; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; font-family: inherit; }
.tab-btn.active { background: var(--c-coral); color: #fff; border-color: var(--c-coral); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.empty-hint { color: var(--c-text-muted); padding: 1rem 0; }

.doc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.doc-card {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem;
  border: 1px solid var(--c-border); border-radius: 1rem; background: #fff;
  text-decoration: none; color: inherit; transition: .2s;
}
.doc-card:hover { border-color: var(--c-coral); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.doc-card svg { color: var(--c-coral); width: 28px; height: 28px; }
.doc-card strong { font-size: .85rem; color: var(--c-coral); }
.doc-card span { font-weight: 600; font-size: .95rem; }
.doc-card small { color: var(--c-text-muted); }

/* Training calendar */
.view-toggle { display: flex; gap: .35rem; }
.view-btn.active { background: var(--c-coral) !important; color: #fff !important; border-color: var(--c-coral) !important; }
.training-calendar-wrap { margin-bottom: 1.5rem; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-weekday { text-align: center; font-size: .75rem; font-weight: 700; color: var(--c-text-muted); padding: .35rem; }
.cal-cell { border: 1px solid var(--c-border); border-radius: .5rem; min-height: 52px; background: #fff; cursor: pointer; padding: .35rem; font-family: inherit; text-align: left; }
.cal-cell:hover { border-color: var(--c-coral); }
.cal-cell.has-event { background: #fef2f2; border-color: rgba(240,80,83,.35); }
.cal-cell.cal-empty { background: transparent; border: none; cursor: default; }
.cal-day-num { font-weight: 700; font-size: .9rem; }
.cal-dot { display: inline-block; margin-top: .25rem; background: var(--c-coral); color: #fff; font-size: .7rem; padding: 0 .35rem; border-radius: 999px; }
.cal-day-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.cal-event-item { padding: .65rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }

/* ===== Landing footer — horizontal multi-column ===== */
.page-landing .footer-landing {
  position: relative;
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 45%);
  border-top: 1px solid var(--c-border);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
}
.page-landing .footer-wave {
  height: 4px;
  background: linear-gradient(90deg, var(--c-coral), #ff8a80, var(--c-coral));
  background-size: 200% 100%;
  animation: footerWave 4s linear infinite;
}
@keyframes footerWave {
  to { background-position: 200% 0; }
}
.page-landing .footer-shell {
  padding-top: clamp(2.5rem, 4vw, 3.25rem);
  padding-bottom: 0;
}
.page-landing .footer-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--c-border);
}
.page-landing .footer-brand-block {
  flex: 0 0 min(300px, 28%);
  min-width: 0;
}
.page-landing .footer-brand-block .brand-logo-footer {
  height: 52px;
  max-width: 190px;
  margin-bottom: 1rem;
}
.page-landing .footer-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-text-muted);
  margin: 0 0 1.15rem;
}
.page-landing .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.page-landing .footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-text-muted);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
}
.page-landing .footer-badges i {
  width: 13px;
  height: 13px;
  color: var(--c-coral);
}
.page-landing .footer-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  min-width: 0;
}
.page-landing .footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-landing .footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-landing .footer-col ul li {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none !important;
}
.page-landing .footer-col ul li::marker {
  content: none;
}
.page-landing .footer-col ul a {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.2s;
}
.page-landing .footer-col ul a:hover {
  color: var(--c-coral);
}
.page-landing .footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.page-landing .footer-contact-list i {
  width: 15px;
  height: 15px;
  color: var(--c-coral);
  flex-shrink: 0;
}
.page-landing .footer-cta-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a42 100%);
  border-radius: 14px;
}
.page-landing .footer-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.page-landing .footer-cta-copy strong {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
}
.page-landing .footer-cta-copy span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.page-landing .footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}
.page-landing .footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
}
.page-landing .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.page-landing .footer-legal a {
  color: var(--c-text-muted);
  font-weight: 500;
}
.page-landing .footer-legal a:hover {
  color: var(--c-coral);
}

@media (max-width: 992px) {
  .hero-ref-grid, .hero-v2-grid, .auth-section .auth-grid, .trust-strip-home, .trust-strip-grid, .provider-landing-grid { grid-template-columns: 1fr; }
  .hero-cta-card { position: static; }
  .brand-logo-header { height: 90px !important; max-width: 360px !important; }
  .topbar-landing .brand-logo-header { height: 90px !important; max-width: 360px !important; }
  .topbar-landing .topbar-inner { min-height: 6rem !important; }
  .topbar-landing .nav { display: none; }
  .quote-form, .commission-row, .form-grid-2 { grid-template-columns: 1fr; }
  .topbar-actions { flex-wrap: wrap; }
  .page-landing .footer-main {
    flex-direction: column;
    gap: 2rem;
  }
  .page-landing .footer-brand-block {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .page-landing .footer-columns {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-landing .footer-cta-strip {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
  .page-landing .footer-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .trust-strip-home { grid-template-columns: 1fr 1fr; }
  .brand-logo-header { height: 72px !important; max-width: 280px !important; }
  .auth-section .auth-grid { grid-template-columns: 1fr; }
  .page-landing .footer-columns {
    grid-template-columns: 1fr;
  }
  .page-landing .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .page-landing .footer-legal {
    justify-content: center;
  }
}
