/* ============================================================
   NUOVA International — components.css
   Reusable UI components shared across all pages:
   topbar, nav, buttons, cards, badges, forms, footer, pagination.
   ============================================================ */

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.topbar{
  background:var(--navy-deeper);
  color:#C7D4E2;
  font-size:12.5px;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:var(--topbar-h);
}
.topbar-left{ display:flex; gap:22px; }
.topbar-left span{ display:flex; align-items:center; gap:6px; }
.topbar-right{ display:flex; gap:18px; }
.topbar a:hover{ color:#fff; }
.dot-live{
  width:6px; height:6px; border-radius:50%;
  background:#3FBE7A; display:inline-block;
  box-shadow:0 0 0 3px rgba(63,190,122,0.25);
  flex-shrink:0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(255,255,255,0.94);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
.nav.scrolled{ box-shadow:0 2px 18px rgba(15,76,129,0.08); }
.nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:var(--nav-h);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:18px;
  letter-spacing:-0.01em;
  color:var(--navy);
  flex-shrink:0;
}
.brand-mark{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-text small{
  display:block;
  font-size:10px;
  font-weight:600;
  letter-spacing:0.04em;
  color:var(--slate);
  text-transform:uppercase;
  margin-top:1px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:2px;
  flex:1;
  justify-content:center;
  flex-wrap:nowrap;
}
.nav-links a{
  position:relative;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  border-radius:5px;
  white-space:nowrap;
  transition:color .18s ease, background .18s ease;
}
.nav-links a:hover{ color:var(--navy); background:var(--bg-soft); }
.nav-links a.active{ color:var(--navy); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:4px;
  height:2px;
  background:var(--gold);
  border-radius:2px;
}

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

.nav-toggle{
  display:none;
  width:38px;height:38px;
  align-items:center;justify-content:center;
  border-radius:6px;
  flex-shrink:0;
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  content:"";
  display:block;
  width:20px;height:2px;
  background:var(--navy);
  position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }
.nav-toggle.open span{ background:transparent; }
.nav-toggle.open span::before{ top:0; transform:rotate(45deg); background:var(--navy); }
.nav-toggle.open span::after{ top:0; transform:rotate(-45deg); background:var(--navy); }

.mobile-panel{
  position:fixed;
  top:0; right:0;
  width:min(82vw,340px);
  height:100vh;
  background:#fff;
  z-index:300;
  box-shadow:-8px 0 30px rgba(15,76,129,0.18);
  transform:translateX(100%);
  transition:transform .28s ease;
  overflow-y:auto;
  padding:24px 22px 32px;
}
.mobile-panel.open{ transform:translateX(0); }
.mobile-panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.mobile-panel a.mnav{
  display:block;
  padding:13px 4px;
  font-size:16px;
  font-weight:600;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink);
}
.mobile-panel a.mnav.active{ color:var(--navy); }
.mobile-panel-actions{ margin-top:22px; display:flex; flex-direction:column; gap:10px; }
.scrim{
  position:fixed; inset:0;
  background:rgba(8,20,33,0.5);
  z-index:250;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.scrim.show{ opacity:1; pointer-events:auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14.5px;
  font-weight:700;
  padding:10px 20px;
  border-radius:5px;
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  letter-spacing:0.01em;
  cursor:pointer;
}
.btn-primary{ background:var(--navy); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--navy-dark); box-shadow:var(--shadow-md); transform:translateY(-1px); }
.btn-outline{ background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:#9a7a32; transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-ghost-light{ background:rgba(255,255,255,0.08); color:#fff; border:1.5px solid rgba(255,255,255,0.45); }
.btn-ghost-light:hover{ background:rgba(255,255,255,0.18); border-color:#fff; }
.btn-text{ color:var(--navy); font-weight:700; padding:6px 0; }
.btn-text:hover{ text-decoration:underline; }
.btn-sm{ padding:8px 14px; font-size:13px; }
.btn-lg{ padding:14px 26px; font-size:15px; }
.btn-block{ width:100%; }
.btn:disabled{ opacity:0.55; cursor:not-allowed; transform:none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card.hoverable:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:#D7E2EC; }
.card-pad{ padding:28px 26px; }

/* ============================================================
   BADGES / CHIPS / TAGS
   ============================================================ */
.chip{
  font-size:11px;
  font-weight:700;
  padding:5px 10px;
  border-radius:20px;
  background:var(--bg-deep);
  color:var(--navy);
  border:1px solid var(--line);
  display:inline-block;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:3px;
}
.badge-green{ background:rgba(30,142,90,0.1); color:var(--green); }
.badge-gold{ background:rgba(184,146,61,0.12); color:#8a6c2e; }
.badge-red{ background:rgba(192,57,43,0.1); color:var(--red); }
.badge-navy{ background:rgba(15,76,129,0.08); color:var(--navy); }

.grade-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px; height:42px;
  border-radius:50%;
  font-weight:800;
  font-size:16px;
  color:#fff;
  flex-shrink:0;
}
.grade-A{ background:linear-gradient(135deg,#1E8E5A,#2BAE76); }
.grade-B{ background:linear-gradient(135deg,#0F4C81,#3D7BAE); }
.grade-C{ background:linear-gradient(135deg,#B8923D,#D9B968); }

/* ============================================================
   FORMS
   ============================================================ */
.field{ margin-bottom:20px; }
.field label{
  display:block;
  font-size:13.5px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:7px;
}
.field label .req{ color:var(--red); margin-left:2px; }
.field .hint{ font-size:12px; color:var(--slate-light); margin-top:5px; }
.field .error-msg{
  font-size:12.5px;
  color:var(--red);
  margin-top:6px;
  display:none;
  align-items:center;
  gap:5px;
}
.field.has-error .error-msg{ display:flex; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select{ border-color:var(--red); background:#FBF3F2; }

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea,
.field select{
  width:100%;
  border:1.5px solid var(--line);
  border-radius:5px;
  padding:12px 14px;
  font-size:14.5px;
  color:var(--ink);
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline:none;
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(15,76,129,0.12);
}
.field textarea{ resize:vertical; min-height:120px; }
.field select{ cursor:pointer; }

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  color:var(--slate);
  line-height:1.5;
}
.checkbox-row input[type="checkbox"]{
  width:17px; height:17px;
  margin-top:2px;
  accent-color:var(--navy);
  flex-shrink:0;
}

.form-row-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.form-success{
  display:none;
  text-align:center;
  padding:48px 24px;
}
.form-success.show{ display:block; }
.form-success .success-icon{
  width:64px;height:64px;
  border-radius:50%;
  background:rgba(30,142,90,0.1);
  color:var(--green);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box{
  background:#fff;
  border-radius:8px;
  padding:8px;
  display:flex;
  gap:8px;
  box-shadow:var(--shadow-lg);
  flex-wrap:wrap;
}
.search-box input[type="text"],
.search-box input[type="search"]{
  flex:1;
  min-width:200px;
  border:none;
  outline:none;
  padding:14px 16px;
  font-size:15px;
  color:var(--ink);
  background:transparent;
}
.search-box input::placeholder{ color:var(--slate-light); }
.search-box .btn{ padding:14px 28px; flex-shrink:0; }

/* ============================================================
   KEY-VALUE LIST (credit file detail rows — robust at all widths,
   reflows naturally on narrow screens instead of requiring scroll)
   ============================================================ */
.kv-list{ width:100%; min-width:0; }
.kv-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid var(--line-soft);
  font-size:13.5px;
}
.kv-row:last-child{ border-bottom:none; }
.kv-row dt{ color:var(--slate); flex-shrink:1; min-width:0; }
.kv-row dd{ color:var(--ink); font-weight:600; text-align:right; flex-shrink:0; max-width:55%; }

/* ============================================================
   TABLE (used in search results, methodology, etc.)
   ============================================================ */
.data-table{ font-size:13.5px; }
.data-table th{
  text-align:left;
  font-size:11.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:var(--slate);
  padding:10px 14px;
  border-bottom:1.5px solid var(--line);
  white-space:nowrap;
}
.data-table td{
  padding:13px 14px;
  border-bottom:1px solid var(--line-soft);
  color:var(--ink);
}
.data-table tr:last-child td{ border-bottom:none; }
.data-table tr:hover td{ background:var(--bg-soft); }

/* ============================================================
   STEP / PROCESS LIST
   ============================================================ */
.step-list{ counter-reset:step; }
.step-item{
  display:flex;
  gap:18px;
  padding:22px 0;
  border-bottom:1px solid var(--line-soft);
}
.step-item:last-child{ border-bottom:none; }
.step-num{
  counter-increment:step;
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  font-size:15px;
  display:flex; align-items:center; justify-content:center;
}
.step-num::before{ content: counter(step); }
.step-body h4{ margin-bottom:5px; }
.step-body p{ font-size:13.5px; color:var(--slate); }

/* ============================================================
   ALERT / NOTICE
   ============================================================ */
.notice{
  display:flex;
  gap:12px;
  padding:14px 16px;
  border-radius:6px;
  font-size:13px;
  line-height:1.6;
  border:1px solid var(--line);
  background:var(--bg-soft);
  color:var(--slate);
}
.notice svg{ flex-shrink:0; width:18px; height:18px; margin-top:1px; color:var(--navy); }
.notice.notice-amber{ background:rgba(184,146,61,0.07); border-color:rgba(184,146,61,0.25); }
.notice.notice-amber svg{ color:var(--gold); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--slate);
  flex-wrap:wrap;
}
.breadcrumb a:hover{ color:var(--navy); }
.breadcrumb .sep{ color:var(--slate-light); }
.breadcrumb .current{ color:var(--ink); font-weight:600; }

/* ============================================================
   PAGE HEADER (sub-page hero band)
   ============================================================ */
.page-header{
  background:
    radial-gradient(700px 360px at 85% -10%, rgba(15,76,129,0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom:1px solid var(--line);
  padding:36px 0 56px;
}
.page-header h1{ margin-top:14px; }
.page-header .lead{ margin-top:14px; max-width:640px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  background:var(--navy-deeper);
  color:#A9BCD0;
  padding:72px 0 0;
  font-size:13.5px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr;
  gap:32px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand-text{ font-weight:800; font-size:17px; color:#fff; }
.footer-col h5{
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.05em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:#fff; }
.footer-desc{ color:#92A6BC; line-height:1.7; max-width:280px; }
.footer-contact-item{ display:flex; gap:10px; margin-bottom:12px; align-items:flex-start; }
.footer-contact-item svg{ flex-shrink:0; width:16px; height:16px; margin-top:2px; color:var(--gold-light); }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:32px;height:32px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.footer-social a:hover{ background:var(--navy); }
.footer-social svg{ width:15px; height:15px; }
.footer-bottom{
  padding:22px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:12.5px;
  color:#7E91A6;
}
.footer-legal{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-legal a:hover{ color:#fff; }
.compliance-note{
  background:rgba(255,255,255,0.04);
  border-top:1px solid rgba(255,255,255,0.08);
  padding:16px 0;
  font-size:11.5px;
  color:#6E8198;
  line-height:1.7;
}

/* ============================================================
   RESPONSIVE — shared component breakpoints
   ============================================================ */
@media (max-width: 1080px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .footer-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px){
  .container{ padding:0 20px; }
  .topbar{ font-size:11px; }
  .topbar-left{ gap:12px; }
  .topbar-left span:nth-child(2),
  .topbar-left span:nth-child(3){ display:none; }
  .nav .container{ height:64px; }
  .brand{ font-size:16px; }
  .brand-mark{ width:30px; height:30px; }
  .nav-cta .btn-outline{ display:none; }
  .nav-cta .btn-primary.btn-sm{ display:none; }
  .nav-cta{ gap:6px; }
  .search-box{ flex-direction:column; }
  .search-box .btn{ width:100%; }
  .form-row-2{ grid-template-columns:1fr; gap:0; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; padding-bottom:32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .data-table{ display:block; overflow-x:auto; white-space:nowrap; }
  .kv-row{ flex-direction:column; align-items:flex-start; gap:4px; }
  .kv-row dd{ text-align:left; max-width:100%; }
}
