/* ============================================
   BTB Capital Corp — Refreshed Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ---- Variables ---- */
:root {
  --navy:       #1D2E8E;
  --navy-dark:  #151f6a;
  --navy-light: #2a3eaa;
  --teal:       #4EC3DA;
  --teal-dark:  #38a8be;
  --green:      #22a06b;
  --green-dark: #1a7d53;
  --gold:       #f0a500;
  --text:       #2c3e50;
  --text-light: #6b7280;
  --bg:         #ffffff;
  --bg-light:   #f7f9fc;
  --bg-dark:    #eef1f7;
  --border:     #e2e8f0;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --max-width:  1100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 80px 0; }
section.bg-light { background: var(--bg-light); }
section.bg-dark  { background: var(--bg-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,160,107,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.site-logo:hover { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.site-nav .nav-cta {
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  border-bottom: none;
  text-transform: none;
  font-weight: 600;
}
.site-nav .nav-cta:hover {
  background: var(--green-dark);
  border-bottom: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #fff;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  background:
    linear-gradient(135deg, rgba(29, 46, 142, 0.88) 0%, rgba(21, 31, 106, 0.82) 100%),
    url('../images/hero-bg.jpg') center center / cover no-repeat;
  background-color: var(--navy-dark); /* fallback if image hasn't loaded */
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(240,165,0,0.2);
  color: var(--gold);
  border: 1px solid rgba(240,165,0,0.4);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.hero-feature-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(34,160,107,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.feature-card h4 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* ---- Two-column layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

/* ---- Testimonial ---- */
.testimonial-block {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
}
.testimonial-block::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.testimonial-block blockquote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 1.2rem;
}
.testimonial-author { font-weight: 600; color: var(--gold); font-size: 0.9rem; }

/* ---- Steps (How it Works) ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 1.5rem; }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  font-family: 'Playfair Display', serif;
}
.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.92rem; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- Team Cards ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--teal);
  margin-bottom: 1.4rem;
  display: block;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.team-card .role { color: var(--green); font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem; }
.team-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; }

/* ---- Fact bars ---- */
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}
.fact {
  background: #fff;
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.fact-value { font-size: 2rem; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.fact-label { font-size: 0.82rem; color: var(--text-light); margin-top: 0.3rem; }

/* ---- Forms ---- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group label .req { color: var(--green); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.12);
}
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; }
.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1.2rem;
}
.form-prefix { position: relative; }
.form-prefix .prefix-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}
.form-prefix .form-control { padding-left: 2rem; }
.legal-note {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ---- Info page ---- */
.prose { max-width: 760px; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose p { color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.4rem; color: var(--text); }

/* ---- Contact info ---- */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,58,108,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.2rem; }
.contact-item a, .contact-item span { font-size: 1rem; font-weight: 500; color: var(--navy); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 60px 0;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-family: 'Inter', sans-serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.license-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 1rem; line-height: 1.5; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 55px 0; }
  .hero { padding: 70px 0; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reversed { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
  }
  .site-nav .nav-cta {
    margin-top: 0.8rem;
    padding: 0.7rem 0;
    text-align: center;
  }
  .menu-toggle { display: block; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 1.5rem; }
}
