/* css/styles.css - shared styles for index.html and join_us.html */

/* base / reset */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#0f1724; background:#f6f8fb; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.container { max-width:1160px; margin:0 auto; padding:18px; }

/* header */
.site-header { background:#fff; box-shadow:0 2px 8px rgba(2,6,23,0.06); position:sticky; top:0; z-index:50; }
.header-row { display:flex; align-items:center; gap:16px; }
.logo-img { height:48px; object-fit:contain; display:block; }
.nav { margin-left:auto; display:flex; gap:8px; align-items:center; }
.nav a, .nav button { text-decoration:none; color:#0f1724; padding:8px 12px; border-radius:8px; border:0; background:transparent; cursor:pointer; font-weight:600; }
.nav a:hover, .nav button:hover { background: #f1f5f9; }
.nav .cta { background:#0f62fe; color:#fff; border-radius:10px; padding:8px 12px; }
.mobile-toggle { display:none; background:transparent; border:0; font-size:18px; cursor:pointer; }

/* utility */
.muted { color:#6b7280; }
.card { background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 30px rgba(2,6,23,0.05); }
.btn { background:#0f62fe; color:#fff; border:0; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:700; }
.btn.secondary { background:#fff; color:#0f1724; border:1px solid #e6edf3; }
.btn.ghost { background:transparent; color:#0f1724; border:1px solid #e6edf3; }
.btn-link { background:transparent; color:#0f62fe; border:0; padding:6px 8px; text-decoration:none; cursor:pointer; }

/* hero */
.hero { padding:38px 0; }
.hero-grid { display:grid; grid-template-columns:1fr 480px; gap:28px; align-items:center; }
.hero-title { font-size:34px; margin:0 0 8px; line-height:1.05; font-weight:800; }
.hero-sub { margin:0 0 14px; color:#374151; max-width:46ch; }
.hero-actions { display:flex; gap:12px; align-items:center; }
.badge { background:linear-gradient(90deg,#4f46e5,#06b6d4); color:#fff; padding:10px 12px; border-radius:10px; min-width:120px; text-align:center; }
.badge .small { font-size:12px; opacity:0.95; }
.badge .big { font-weight:800; font-size:16px; }

/* offer box / rotator */
.offer-box { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; background:#fff; box-shadow:0 6px 18px rgba(2,6,23,0.04); border:1px solid #eef2f7; white-space:nowrap; }
.offer-box .we { font-size:0.78rem; color:#6b7280; flex:0 0 auto; }
.rotator-wrap { display:inline-flex; align-items:center; justify-content:center; width:7.2rem; height:1.2rem; overflow:hidden; position:relative; }
.word-rotator { position:relative; width:100%; height:1.2rem; }
.word-rotator span { position:absolute; left:0; right:0; top:0; transform:translateY(120%); opacity:0; text-align:center; font-size:0.95rem; font-weight:700; color:#111827; animation:rotateWords 6s linear infinite; }
.word-rotator span:nth-child(1){ animation-delay:0s; } .word-rotator span:nth-child(2){ animation-delay:1.5s; } .word-rotator span:nth-child(3){ animation-delay:3s; } .word-rotator span:nth-child(4){ animation-delay:4.5s; }
@keyframes rotateWords { 0%{transform:translateY(120%);opacity:0} 8%{transform:translateY(0%);opacity:1} 30%{transform:translateY(0%);opacity:1} 38%{transform:translateY(-120%);opacity:0} 100%{transform:translateY(-120%);opacity:0} }
.loan-label { margin-left:6px; font-size:0.9rem; color:#111827; }

/* hero right */
.hero-image-frame { width:100%; height:260px; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#f3f4f6; }
.hero-image-frame img { width:100%; height:100%; object-fit:contain; object-position:center center; }

/* hero stats */
.hero-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.stat { padding:10px; border-radius:8px; background:#fff; border:1px solid #eef2f7; text-align:center; }
.stat-label { font-size:12px; color:#6b7280; }
.stat-val { font-weight:800; }

/* services */
.section { padding:36px 0; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.service-card img { width:100%; height:160px; object-fit:cover; border-radius:8px; margin-bottom:10px; }
.service-card h3 { margin:0 0 6px; font-size:16px; }
.service-card p { margin:0; color:#475569; }

/* center CTA fix contrast */
.middle-cta { padding:28px; border-radius:12px; text-align:center; background:linear-gradient(90deg,#0f62fe,#06b6d4); color:#fff; }
.middle-cta h3, .middle-cta p { color:#fff; }

/* about */
.about-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px; align-items:start; }
.team { display:flex; flex-direction:column; gap:12px; }
.team-member { display:flex; gap:12px; align-items:center; padding:10px; border-radius:10px; background:#fff; border:1px solid #eef2f7; }
.team-member img { width:72px; height:72px; border-radius:999px; object-fit:cover; }
.tm-name { font-weight:700; }

/* contact */
.contact-row { display:flex; gap:18px; align-items:center; padding:12px; background:#fff; border-radius:12px; border:1px solid #eef2f7; }
.office-photo { width:220px; height:140px; object-fit:cover; border-radius:8px; }

/* footer */
.site-footer { background:#fff; border-top:1px solid #eef2f7; padding:18px; margin-top:28px; }
.footer-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* modal */
.modal-backdrop { 
  display:none; 
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,0.45); 
  z-index:9999; 
  align-items:center; 
  justify-content:center; 
  padding:16px; 
}
.modal-card { 
  background:#fff; 
  border-radius:12px; 
  padding:18px; 
  max-width:760px; 
  width:100%; 
  box-shadow:0 16px 48px rgba(2,6,23,0.12);
  /* Fix for overflowing content on small screens */
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header { display:flex; align-items:center; gap:12px; }

/* form basic */
label { display:block; font-weight:700; margin-top:10px; margin-bottom: 2px; }

/* UPDATED INPUT STYLES FOR BETTER HEIGHT */
input[type="text"], 
input[type="email"], 
input[type="number"], 
input[type="date"], 
input[type="tel"], 
input[type="password"],
input:not([type]), /* CATCH-ALL: This fixes inputs with no type attribute! */
select, 
textarea, 
input[type="file"] {
  width:100%; 
  padding:16px; /* increased padding for height */
  border-radius:8px; 
  border:1px solid #e6edf3; 
  margin-top:6px; 
  font-size:16px; /* comfortable font size */
  background:#fff;
}
textarea { min-height:100px; resize:vertical; }

/* join_us specific */
.join-wrap { max-width:920px; margin:20px auto; padding:20px; background:#fff; border-radius:12px; box-shadow:0 10px 30px rgba(2,6,23,0.05); }
.join-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; align-items:start; }
.form-grid .full { grid-column:1/-1; }

/* file group styling */
.file-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.file-row label.file-label { margin:0; font-weight:600; color:#111827; }
.file-small { font-size:13px; color:#6b7280; margin-left:6px; }

/* small helpers */
.muted { color:#6b7280; }
.text-right { text-align:right; }
.table-wrap { overflow-x:auto; }

/* responsive */
@media (max-width:980px) {
  .hero-grid { grid-template-columns:1fr; gap:18px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; }
  .mobile-toggle { display:block; }
  .nav { display:none; }
}
@media (max-width:600px) { .services-grid { grid-template-columns:1fr; } .form-grid { grid-template-columns:1fr; } }

/* accessibility / anchor offset */
section { scroll-margin-top:84px; }

/* make links look like buttons if needed and remove underline globally for nav/footer */
a { text-decoration:none; color:inherit; }