/* THE TRUST LOAN — Light Professional Theme 2026 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #f8fafc;
  --bg-mid: #ffffff;
  --bg-surface: #ffffff;
  --accent: #059669;
  --accent-2: #0d9488;
  --accent-3: #0284c7;
  --accent-glow: rgba(5, 150, 105, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.92);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --trust-bar-h: 34px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

img, svg, video, canvas, table {
  max-width: 100%;
}

section, main, header, footer {
  max-width: 100%;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-2); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-width: 0;
  box-sizing: border-box;
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Global form controls — readable dropdowns */
select, select option {
  background-color: #ffffff;
  color: #0f172a;
}

select option:checked,
select option:hover {
  background-color: #ecfdf5;
  color: #065f46;
}

/* ── Soft 3D light background ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 35%, #f1f5f9 100%);
  pointer-events: none;
}

.bg-scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: orbFloat 22s ease-in-out infinite;
}

.bg-scene__orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
  top: -12%; left: -8%;
}

.bg-scene__orb--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  top: 35%; right: -12%;
  animation-delay: -8s;
}

.bg-scene__orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  bottom: 5%; left: 25%;
  animation-delay: -15s;
}

.bg-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, black 10%, transparent 75%);
  transform: perspective(900px) rotateX(55deg) scale(1.8);
  transform-origin: center top;
  opacity: 0.35;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.page-wrap main { flex: 1; min-width: 0; }

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
  flex: 0 1 auto;
  min-width: auto;
  min-height: 48px;
  overflow: visible;
}

.logo__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.logo__mark svg {
  width: 38px;
  height: 38px;
  display: block;
  overflow: visible;
}

.logo__text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo__line {
  display: inline;
}

.logo__line + .logo__line::before {
  content: ' ';
}

.logo__text em {
  font-style: normal;
  color: var(--accent);
}

/* ── Trust bar ── */
.trust-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1001;
  height: var(--trust-bar-h);
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border-bottom: 1px solid rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #047857;
  letter-spacing: 0.02em;
  overflow: hidden;
  box-sizing: border-box;
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-bar svg { width: 13px; height: 13px; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: var(--trust-bar-h);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
  transition: box-shadow 0.3s var(--ease);
  overflow: hidden;
  box-sizing: border-box;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
  border: 1.5px solid rgba(5, 150, 105, 0.22);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  color: #047857;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
  transition: all 0.22s var(--ease);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: rgba(5, 150, 105, 0.45);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.14);
  transform: translateY(-1px);
}

.nav-toggle.is-open {
  background: linear-gradient(145deg, #059669, #10b981);
  border-color: transparent;
  color: #ffffff;
}

.nav-toggle__icon {
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
  color: #ffffff;
}

.btn--ghost {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0fdf4;
}

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.5625rem 1.125rem; font-size: 0.8125rem; }

.btn:disabled, .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn.is-loading {
  pointer-events: none;
  color: transparent !important;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.65s linear infinite;
}

.btn--ghost.is-loading::after {
  border-color: rgba(5,150,105,0.2);
  border-top-color: var(--accent);
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Cards ── */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
  max-width: 100%;
  min-width: 0;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, #022c22 0%, #064e3b 48%, #065f46 100%);
  color: #ecfdf5;
  padding: 3.5rem 0 0;
  margin-top: auto;
  overflow: hidden;
}

.site-footer__glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-logo { color: #ffffff; }

.footer-brand .logo__text em { color: #6ee7b7; }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(236, 253, 245, 0.72);
  max-width: 300px;
  line-height: 1.7;
  margin-top: 0.875rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #064e3b;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.footer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.footer-links h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6ee7b7;
  margin-bottom: 0.875rem;
}

.footer-links ul { list-style: none; }
.footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(236, 253, 245, 0.65);
}

.footer-links a {
  color: rgba(236, 253, 245, 0.82);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-legal p {
  font-size: 0.6875rem;
  color: rgba(236, 253, 245, 0.45);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop.is-visible {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 1rem; }
  .trust-bar {
    gap: 0.5rem;
    padding: 0 0.5rem;
    font-size: 0.5625rem;
  }
  .trust-bar span:nth-child(2),
  .trust-bar span:nth-child(3) { display: none; }
  .nav { display: none !important; }
  .nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 100;
    background: #ffffff;
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0.875rem;
  }
  .site-header { z-index: 101; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bg-scene__grid { transform: none; opacity: 0.12; }
  .bg-scene__orb--1 { width: 240px; height: 240px; left: -15%; }
  .bg-scene__orb--2 { width: 200px; height: 200px; right: -15%; }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
  }
  .site-header .logo {
    flex: 0 1 auto;
    min-width: auto;
    max-width: calc(100% - 108px);
    overflow: visible;
    gap: 0.375rem;
  }
  .site-header .logo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
  }
  .site-header .logo__line {
    display: block;
  }
  .site-header .logo__line + .logo__line::before {
    content: none;
  }
  .site-header .logo__mark { width: 34px; height: 34px; }
  .site-header .logo__mark svg { width: 30px; height: 30px; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .logo__text { font-size: 0.65625rem; }
  .site-header .logo__mark { width: 30px; height: 30px; }
  .site-header .logo__mark svg { width: 26px; height: 26px; }
  .btn--sm {
    padding: 0.4375rem 0.625rem;
    font-size: 0.6875rem;
    min-height: 34px;
  }
  .nav-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .nav-toggle__icon { width: 16px; height: 16px; }
  .header-inner { gap: 0.375rem; }
  .header-actions { gap: 0.25rem; }
  .bg-scene__orb { opacity: 0.22; }
  .trust-bar { font-size: 0.5rem; }
}
