/* Finexa RCM — shared site styles */

body { margin: 0; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; background: #ffffff; }
a { color: #1c4a7c; text-decoration: none; }
a:hover { color: #0f8f82; }
* { box-sizing: border-box; }
img { max-width: 100%; }

@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-bottom: 1px solid #ecf1f5; position: relative;
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 32px; }
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-weight: 700; letter-spacing: 1px; color: #173a5e; font-size: 15px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a { color: #3a4f63; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-links a.active { color: #1c4a7c; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.menu-btn {
  width: 38px; height: 38px; border-radius: 10px; background: #eef4f8; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 0;
}
.menu-btn span { width: 18px; height: 2.5px; border-radius: 2px; background: #1c4a7c; display:block; }
.menu-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid #ecf1f5;
  border-radius: 12px; box-shadow: 0 12px 32px rgba(20,40,70,0.16); padding: 8px;
  min-width: 160px; z-index: 30;
}
.dropdown.hidden { display: none; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px; color: #1c4a7c;
  font-size: 14px; font-weight: 700; background: #eef4f8; margin-bottom: 4px;
}
.dropdown a:last-child { margin-bottom: 0; }

.hamburger-nav { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor:pointer; border:none; }
.btn-primary { background: #1c4a7c; color: #fff; }
.btn-primary:hover { color: #fff; opacity: .92; }
.btn-teal { background: #0f8f82; color: #fff; }
.btn-teal:hover { color: #fff; opacity: .92; }
.btn-outline { background: #fff; color: #173a5e; border: 1px solid #d7e2ea; }
.btn-outline:hover { color: #173a5e; opacity: .85; }
.btn-outline-dark { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-dark:hover { color: #fff; opacity: .85; }

/* ---------- Layout helpers ---------- */
.section { padding: 90px 48px; }
.section-tight { padding: 64px 48px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-md { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 820px; margin: 0 auto; }
.container-xs { max-width: 700px; margin: 0 auto; }

.eyebrow { color: #0f8f82; font-weight: 700; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 14px; }
.eyebrow-light { color: #5fd6c4; font-weight: 700; letter-spacing: 1.5px; font-size: 13px; margin-bottom: 14px; }

.hero {
  background: #eef4f8;
  background-image: radial-gradient(circle at 18% 20%, rgba(200,222,238,0.55), transparent 55%), radial-gradient(circle at 85% 80%, rgba(200,222,238,0.45), transparent 55%);
  padding: 72px 48px 88px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-grid.narrow-right { grid-template-columns: 1.1fr 0.9fr; }
.hero-grid.narrow-left { grid-template-columns: 0.9fr 1.1fr; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }

.card {
  background: #f7fafc;
  background-image: radial-gradient(circle at 20% 15%, rgba(200,222,238,0.5), transparent 60%);
  border: 1px solid #ecf1f5; border-radius: 16px; padding: 32px 28px;
}
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: #1c4a7c14; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon-dot { width: 18px; height: 18px; border-radius: 5px; background: #1c4a7c; }
.card h3 { font-family: 'Lora', serif; font-size: 19px; color: #152f4a; margin: 0 0 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: #5c6d7e; margin: 0; }

.cta-dark { background: #152f4a; padding: 80px 48px; text-align: center; }
.cta-dark h2 { font-family: 'Lora', serif; font-weight: 700; font-size: 32px; color: #fff; margin: 0 0 16px; }
.cta-dark p { color: #c3d2e0; font-size: 16px; margin: 0 0 32px; }

/* ---------- Hero visual placeholder panels (replace missing photography) ---------- */
.hero-visual {
  width: 100%; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c4a7c 0%, #0f8f82 100%);
  position: relative; overflow: hidden;
}
.hero-visual svg { position: relative; z-index: 1; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 45%), radial-gradient(circle at 85% 85%, rgba(255,255,255,0.12), transparent 50%);
}

/* ---------- Footer ---------- */
.site-footer { background: #1f293c; padding: 56px 48px 0; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand { max-width: 280px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-mark { width: 30px; height: 30px; flex-shrink:0; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand-name { font-weight: 700; font-family: 'Lora', serif; font-size: 18px; color: #fff; }
.footer-brand p { color: #a8c0d0; font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.social-row { display: flex; align-items: center; gap: 10px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; background: #2a3c56; display: flex; align-items: center; justify-content: center; }
.footer-col-title { color: #a8c0d0; font-weight: 700; letter-spacing: 1px; font-size: 12px; margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #e6ecf2; font-size: 14px; }
.footer-rule { max-width: 1240px; margin: 44px auto 0; border-top: 1px solid #33415a; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 24px 0 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 0 auto; }
.footer-bottom-inner .legal { color: #c3d2e0; font-size: 13.5px; }
.footer-bottom-inner .legal-links { font-size: 13.5px; }
.footer-bottom-inner .legal-links a { color: #c3d2e0; text-decoration: underline; }
.footer-bottom-inner .legal-links .sep { color: #5b6b81; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq-item { border-bottom: 1px solid #ecf1f5; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: 'Lora', serif; font-size: 18px; color: #152f4a; margin: 0; }
.faq-icon { font-size: 22px; color: #1c4a7c; flex-shrink: 0; }
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon::before { content: "\2212"; }
.faq-item p { font-size: 15px; line-height: 1.65; color: #5c6d7e; margin: 0 0 24px; padding-right: 40px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 48px rgba(10,20,40,0.1); padding: 44px 40px; display: flex; flex-direction: column; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: #374a5e; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #dfe6ec;
  font-size: 14.5px; color: #152f4a; font-family: inherit; background: #fff;
}
.form-field textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aabb9; }
input:focus, textarea:focus, select:focus { outline: 2px solid #0f8f82; outline-offset: 1px; }
.form-submit {
  margin-top: 6px; background: #1c4a7c; color: #fff; border: none; padding: 15px 24px;
  border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px; width: 100%;
}
.form-note { font-size: 12.5px; color: #8496a6; text-align: center; margin: 4px 0 0; }
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Contact hero (dark, card on top) ---------- */
.contact-hero {
  position: relative; padding: 96px 24px; display: flex; flex-direction: column; align-items: center;
  background-color: #152f4a;
  background-image: linear-gradient(rgba(15,35,64,0.72), rgba(15,35,64,0.72)), url('signin-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger-nav { display: block; }
  .hero, .section, .section-tight, .cta-dark, .contact-hero { padding-left: 20px; padding-right: 20px; }
  .hero-grid, .hero-grid.narrow-right, .hero-grid.narrow-left { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px !important; }
  .contact-card { grid-template-columns: 1fr !important; }
}
