/* ============================================================
   SMART REFER HUB — Shared Stylesheet
   Fonts: Merriweather (headings) + Open Sans (body)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --blue:       #1a3c6e;
  --blue-dark:  #122c52;
  --blue-light: #2a5298;
  --gold:       #f4a51e;
  --gold-dark:  #d48f0e;
  --white:      #ffffff;
  --off-white:  #f7f9fc;
  --gray-light: #e8edf5;
  --gray-mid:   #8a92a6;
  --gray-dark:  #3d4456;
  --text:       #1e2433;
  --border:     #d4e8e5;
  --font-head:  'Merriweather', Georgia, serif;
  --font-body:  'Open Sans', Arial, sans-serif;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.13);
  --radius:     8px;
  --radius-lg:  14px;
  --section-pad: 80px 0;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section     { padding: var(--section-pad); }
.section-alt { padding: var(--section-pad); background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-desc { margin: 0 auto; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; color: var(--blue-dark); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }

.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-desc { font-size: 1.02rem; color: var(--gray-dark); max-width: 620px; line-height: 1.75; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 30px;
  border-radius: var(--radius); font-size: .95rem; font-weight: 600;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 4px 14px rgba(244,165,30,.35); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--blue-dark); }

/* ── Animations ─────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ── Top Bar ─────────────────────────────────────────────── */
#top-bar {
  background: var(--blue-dark); color: #c8d4e8;
  font-size: .82rem; padding: 7px 0;
}
#top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
#top-bar a { color: #c8d4e8; transition: color .15s; }
#top-bar a:hover { color: var(--gold); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px; max-width: 1180px; margin: 0 auto; position: relative;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 52px; width: auto; display: block; object-fit: contain; }
.logo-icon {
  width: 40px; height: 40px; background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-text span:first-child {
  display: block; font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 900; color: var(--blue-dark); letter-spacing: -.01em;
}
.logo-text span:last-child {
  display: block; font-size: .68rem; font-weight: 600;
  color: var(--blue); letter-spacing: .06em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--gray-dark);
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-color: var(--gold); }
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: var(--radius) !important;
  border-bottom: none !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
#nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
#nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--blue);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
@media (max-width: 860px) {
  #nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-top: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: 12px 0 20px; z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 28px; border-bottom: none; width: 100%; font-size: .92rem; }
  .nav-cta { margin: 10px 24px 0 !important; width: calc(100% - 48px) !important; text-align: center; display: block; }
}

/* ── Page Banner (inner pages) ──────────────────────────── */
.page-banner {
  background: var(--blue-dark); padding: 60px 0 54px;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.page-banner::after {
  content: ''; position: absolute;
  bottom: -80px; right: -80px; width: 360px; height: 360px;
  background: var(--blue-light); border-radius: 50%; opacity: .1; pointer-events: none;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,165,30,.12); color: var(--gold);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(244,165,30,.25);
  margin-bottom: 16px;
}
.page-banner h1 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900; color: var(--white); margin-bottom: 12px; line-height: 1.2;
}
.page-banner h1 em { font-style: normal; color: var(--gold); }
.page-banner > .container > p {
  font-size: 1rem; color: #9aaec8; max-width: 520px; line-height: 1.7; margin-bottom: 18px;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #5d7a9e; flex-wrap: wrap; }
.breadcrumb a { color: #5d7a9e; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { flex-shrink: 0; }

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-strip { background: var(--blue); }
.stats-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: .82rem; color: #c8d4e8; font-weight: 500; }
@media (max-width: 640px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--blue); padding: 68px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute;
  top: -60px; left: -60px; width: 280px; height: 280px;
  background: var(--gold); border-radius: 50%; opacity: .04; pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: #8aaac8; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; font-size: .97rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────── */
.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--gray-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s, color .25s;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .82rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 14px; font-family: var(--font-body); font-size: .9rem;
  color: var(--text); background: var(--white);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,60,110,.1);
}
textarea { height: 110px; resize: vertical; }
select { cursor: pointer; }

/* ── Footer ─────────────────────────────────────────────── */
#footer { background: #0a1520; color: #9aaec8; padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-logo-icon {
  width: 40px; height: 40px; background: var(--blue-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.footer-logo-img {
  height: 70px; width: auto; display: block; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 14px;
}
.footer-brand-name { font-family: var(--font-head); font-size: 1rem; font-weight: 900; color: var(--white); display: block; }
.footer-tagline { font-size: .85rem; color: #7a90b0; line-height: 1.7; margin: 12px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: #9aaec8;
  transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.social-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.footer-col h4 {
  font-family: var(--font-head); font-size: .88rem; font-weight: 700;
  color: var(--white); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links li { font-size: .82rem; color: #7a90b0; transition: color .15s, padding-left .15s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .8rem; color: #4a607a; }
.footer-bottom a { color: #4a607a; transition: color .15s; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ── Back to Top ────────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; background: var(--blue); color: var(--white);
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s; z-index: 99;
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--blue-dark); }
