/* ============================================================
   TrustBrick Realty Fintech — Stylesheet
   ============================================================ */

:root {
  --navy: #061A2D;
  --navy-dark: #031321;
  --gold: #C99632;
  --gold-light: #E4B84A;
  --white: #FFFFFF;
  --off-white: #F8F8F6;
  --text: #182536;
  --text-muted: #5B6B7C;
  --border: rgba(6, 26, 45, 0.10);
  --border-light: rgba(255, 255, 255, 0.14);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 6px;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
section { position: relative; }

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--navy);
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
}

.icon-line {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.icon-line svg { width: 100%; height: 100%; stroke: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary svg { stroke: var(--gold-light); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold svg { stroke: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 8px 0;
}
.btn-ghost svg { stroke: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--border-light);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--white);
  padding: 3px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text .brand {
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.logo-text .sub {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn-gold { padding: 11px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  background: var(--navy-dark);
  border-top: 1px solid var(--border-light);
  padding: 8px 32px 28px;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.mobile-panel a.active { color: var(--gold); }
.mobile-panel .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--off-white);
  padding: 88px 0 0;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 88px; }
.hero-copy .eyebrow-text {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  color: var(--navy);
}
.hero-copy h1 .gold { color: var(--gold); }
.hero-copy .desc {
  margin-top: 26px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
}
.hero-copy .hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 480px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}
.hero-media .frame {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1.5px solid var(--gold);
  z-index: -1;
}
.hero-lines {
  position: absolute;
  left: -60px;
  top: 40px;
  width: 220px;
  height: 220px;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); }
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 44px 30px;
  border-right: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}
.trust-item:last-child { border-right: none; }
.trust-item .icon-line { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.trust-item h3 { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.trust-item p { color: rgba(255,255,255,0.62); font-size: 13.5px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0; background: var(--white); }
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.about-copy .know-more { margin-top: 12px; }

.mvc-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mvc-item {
  padding: 34px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mvc-item:nth-child(2n) { border-right: none; }
.mvc-item:nth-child(3), .mvc-item:nth-child(4) { border-bottom: none; }
.mvc-item .icon-line { margin-bottom: 16px; }
.mvc-item h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 10px; letter-spacing: 0.01em; }
.mvc-item p { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions { padding: 120px 0; background: var(--off-white); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.solution-card {
  background: var(--white);
  padding: 38px 26px;
  transition: background var(--transition);
}
.solution-card:hover { background: var(--off-white); }
.solution-card .icon-line { width: 28px; height: 28px; margin-bottom: 22px; }
.solution-card h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.solution-card p { font-size: 13.5px; color: var(--text-muted); }
.solution-card .num {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}

/* ============================================================
   WHY TRUSTBRICK
   ============================================================ */
.why { padding: 120px 0; background: var(--white); }
.why-list { display: flex; flex-direction: column; }
.why-row {
  display: grid;
  grid-template-columns: 60px 260px 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.why-row:last-child { border-bottom: 1px solid var(--border); }
.why-row .icon-line { width: 30px; height: 30px; }
.why-row h3 { font-size: 18px; color: var(--navy); }
.why-row p { font-size: 14.5px; color: var(--text-muted); }

/* ============================================================
   CAREERS
   ============================================================ */
.careers { padding: 120px 0; background: var(--off-white); }
.careers .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.careers-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk .icon-line { width: 20px; height: 20px; margin-top: 3px; }
.perk span { font-size: 14px; color: var(--text); font-weight: 500; }
.careers-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 46px 40px;
  color: var(--white);
}
.careers-card h3 { font-size: 22px; margin-bottom: 14px; }
.careers-card p { color: rgba(255,255,255,0.65); font-size: 14.5px; margin-bottom: 30px; }
.careers-card .btn-gold { width: 100%; justify-content: center; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-band {
  position: relative;
  background: var(--navy-dark);
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.cta-band .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,19,33,0.75) 0%, rgba(3,19,33,0.94) 100%);
}
.cta-band .content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.cta-band p { color: rgba(255,255,255,0.68); margin-top: 18px; font-size: 16px; }
.cta-band .btn { margin-top: 36px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 120px 0; background: var(--white); }
.contact .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.contact-info-item { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: 1px solid var(--border); }
.contact-info-item .icon-line { margin-top: 3px; }
.contact-info-item h4 { font-size: 14.5px; color: var(--navy); margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-muted); }

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-dark); padding: 88px 0 0; }
.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
}
.footer-brand .logo-text .brand { color: var(--white); }
.footer-brand p {
  margin-top: 22px;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  max-width: 300px;
}
.footer h4 {
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.footer ul li { margin-bottom: 13px; }
.footer ul a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--gold); }
.footer address { font-style: normal; }
.footer .contact-line { color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 12px; }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.social-row a svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.7); }
.social-row a:hover { border-color: var(--gold); background: rgba(201,150,50,0.1); }
.social-row a:hover svg { stroke: var(--gold); }

.footer-bottom {
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-bottom .legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .why-row { grid-template-columns: 50px 200px 1fr; gap: 24px; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .container { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 12px; }
}

@media (max-width: 1024px) {
  .nav-links { gap: 26px; }
  .about .container, .careers .container, .contact .container { gap: 48px; }
  .hero-media { min-height: 400px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-gold { display: none; }
  .hamburger { display: flex; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 48px; order: 1; }
  .hero-media { order: 2; min-height: 320px; }
  .hero-media .frame { display: none; }
  .hero-lines { display: none; }

  .trust-strip .container { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--border-light); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
  .trust-item:nth-child(1), .trust-item:nth-child(2) {}

  .about .container { grid-template-columns: 1fr; }
  .mvc-card { grid-template-columns: 1fr; }
  .mvc-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .mvc-item:last-child { border-bottom: none; }

  .solutions-grid { grid-template-columns: repeat(2, 1fr); }

  .why-row { grid-template-columns: 1fr; gap: 10px; text-align: left; }

  .careers .container { grid-template-columns: 1fr; }
  .careers-card { order: -1; }

  .contact .container { grid-template-columns: 1fr; }
  .contact-form { padding: 30px; }

  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .navbar .container { height: 72px; }
  .hero { padding-top: 72px; }
  .hero-copy { padding-bottom: 32px; }
  .about, .solutions, .why, .careers, .contact, .cta-band { padding: 72px 0; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .solutions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding-top: 64px; }
  .footer .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mobile-panel { padding: 8px 20px 24px; }
}