/* ── shared.css — Fintelli.Pro common styles ── */

/* ── VARIABLES ── */
:root {
  --ac:      #8B1535;
  --ac-h:    #730f2b;
  --ac-l:    #f7eef1;
  --ac-b:    #d4a0ac;
  --dark:    #0a0a0a;
  --dark2:   #141414;
  --dark3:   #1e1e1e;
  --text:    #111111;
  --muted:   #666666;
  --faint:   #999999;
  --border:  #e5e5e5;
  --border2: #f0f0f0;
  --bg:      #ffffff;
  --bg2:     #f9f9f9;
  --bg3:     #f4f4f4;
  --ff-head: 'Raleway', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-mono: 'DM Mono', monospace;
  --r:       10px;
  --r-lg:    14px;
  --shadow:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; display: block; }
/* fallback text logo kept for pages not yet migrated */
.nav-logo-text { font-family: var(--ff-head); font-size: 19px; font-weight: 800; letter-spacing: -0.5px; color: var(--dark); }
.nav-logo-text span { color: var(--ac); }
.nav-links { display: flex; align-items: center; gap: 4px; }

/* Two-tier nav link treatment */
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 10px; border-radius: 6px;
  transition: all 0.15s; text-decoration: none;
}
.nav-link:hover { background: var(--bg3); color: var(--text); }
.nav-link-hi { color: var(--ac) !important; font-weight: 600 !important; }
.nav-link-hi:hover { background: var(--ac-l) !important; color: var(--ac-h) !important; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn-ghost { font-size: 13px; color: var(--muted); font-weight: 500; padding: 7px 16px; border-radius: 7px; transition: all 0.15s; text-decoration: none; display: inline-block; }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-primary { background: var(--dark); color: #fff; border: none; font-family: var(--ff-body); font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.btn-primary:hover { background: #222; }
.btn-book { display: inline-flex; align-items: center; background: var(--dark); color: #fff; font-family: var(--ff-body); font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 8px; transition: background 0.15s; white-space: nowrap; }
.btn-book:hover { background: #222; color: #fff; }

/* ── NAV DROPDOWN ── */
.nav-dd { position: relative; }
.nav-dd-trigger {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 10px; border-radius: 6px;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.nav-dd-trigger:hover,
.nav-dd-trigger.active { background: var(--bg3); color: var(--text); }
.nav-dd-arrow { font-size: 9px; transition: transform 0.2s; }
.nav-dd-trigger.active .nav-dd-arrow { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 6px); left: -20px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  display: none; grid-template-columns: repeat(3,1fr); gap: 0;
  min-width: 580px; box-shadow: 0 8px 32px rgba(0,0,0,0.10); z-index: 300;
}
.nav-dd-menu.open { display: grid; }
.nav-dd-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dd-col { padding: 0 14px; }
.nav-dd-col:not(:last-child) { border-right: 1px solid var(--border2); }

/* Section headers — brand maroon (tier 1) */
.nav-dd-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ac);
  padding: 0 4px; margin-bottom: 10px;
}
/* Service links — standard muted (tier 2) */
.nav-dd-item {
  display: block; font-size: 12.5px; color: var(--muted);
  padding: 5px 4px; border-radius: 5px;
  transition: all 0.12s; font-weight: 500; white-space: nowrap;
}
.nav-dd-item:hover { color: var(--text); background: var(--bg2); }
/* ★ character only in maroon — not the whole link */
.nav-star { color: var(--ac); font-weight: 700; }

/* Single-column dropdown (Resources) */
.nav-dd-menu-sm {
  grid-template-columns: 1fr !important;
  min-width: 200px !important;
}
.nav-dd-menu-sm .nav-dd-col { border-right: none !important; padding: 0; }

/* ── HAMBURGER ── */
.nav-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; border: none; background: none; margin-left: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.2s; }

/* ── MOBILE NAV ── */
.nav-mobile {
  display: none; position: fixed; inset: 68px 0 0;
  background: #fff; z-index: 150; overflow-y: auto;
  padding: 8px 20px 40px; border-top: 1px solid var(--border);
  flex-direction: column; gap: 0;
}
.nav-mobile.open { display: flex; }

/* Accordion toggle buttons (Services / Resources) */
.nav-mob-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--ff-body); font-size: 14px; font-weight: 700; color: var(--text);
  padding: 14px 10px; border-bottom: 1px solid var(--border2);
  transition: color 0.12s;
}
.nav-mob-toggle:hover, .nav-mob-toggle.active { color: var(--ac); }
.mob-toggle-icon {
  font-size: 20px; font-weight: 300; line-height: 1;
  color: var(--muted); transition: color 0.12s;
}
.nav-mob-toggle.active .mob-toggle-icon { color: var(--ac); }

/* Collapsible group — hidden by default */
.nav-mob-group { display: none; padding-left: 12px; border-bottom: 1px solid var(--border2); }
.nav-mob-group.open { display: block; }

/* Section headers inside accordion */
.nav-mob-section {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ac);
  padding: 14px 10px 5px; margin-top: 4px;
}
/* Links */
.nav-mob-link {
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 11px 10px; border-bottom: 1px solid var(--border2);
  text-decoration: none; display: block; transition: color 0.12s;
}
.nav-mob-link:hover { color: var(--ac); }
.nav-mob-group .nav-mob-link:last-child { border-bottom: none; }
/* CTA link at bottom */
.nav-mob-cta {
  color: var(--ac) !important; font-weight: 700 !important;
  border-bottom: none !important; margin-top: 8px;
}

/* ── SECTION ── */
.section { padding: 80px 48px; max-width: 1000px; margin: 0 auto; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--ac); text-transform: uppercase; margin-bottom: 10px; }
.section-h { font-family: var(--ff-head); font-size: 32px; font-weight: 700; letter-spacing: -0.8px; color: var(--dark); margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 540px; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); padding: 52px 48px 28px; margin-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1060px; margin: 0 auto 40px;
  padding-bottom: 32px; border-bottom: 1px solid #1e1e1e;
}
.footer-brand-logo { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.footer-logo-img { height: 32px; width: auto; display: block; }
/* fallback text logo kept for pages not yet migrated */
.footer-brand-logo-text { font-family: var(--ff-head); font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.footer-brand-logo-text span { color: var(--ac); }
.footer-brand-p { font-size: 12px; color: #555; line-height: 1.65; max-width: 240px; margin-bottom: 20px; }
.footer-col-h { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ac) !important; margin-bottom: 14px; }
.footer-sub-h { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ac) !important; margin-top: 16px; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-link { font-size: 12.5px; color: #666; text-decoration: none; transition: color 0.12s; padding: 1px 0; }
.footer-link:hover { color: var(--ac); }
.footer-bottom { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 11px; color: #777; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-legal a { font-size: 10.5px; color: #777; text-decoration: none; }
.footer-legal a:hover { color: #ccc; }

/* ── SOCIAL ICONS ── */
.social-icons { display: flex; gap: 8px; align-items: center; }
.soc-btn { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid #1e1e1e; display: flex; align-items: center; justify-content: center; transition: all 0.18s; text-decoration: none; flex-shrink: 0; color: var(--ac); }
.soc-btn:hover { background: var(--ac); border-color: var(--ac-h); color: #fff; transform: translateY(-1px); }
.soc-btn svg { width: 15px; height: 15px; }
.site-footer .soc-btn { background: rgba(255,255,255,0.06); border: 1px solid #1e1e1e; }
.site-footer .soc-btn:hover { background: var(--ac); border-color: var(--ac-h); color: #fff; }

/* ── CTA BLOCK ── */
.cta-block { background: var(--dark); margin: 48px 48px 0; border-radius: var(--r-lg); padding: 64px; text-align: center; }
.cta-h { font-family: var(--ff-head); font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 14px; }
.cta-sub { font-size: 15px; color: #888; margin-bottom: 32px; }
.btn-cta { background: var(--ac); color: #fff; border: none; font-family: var(--ff-body); font-size: 14px; font-weight: 700; padding: 14px 34px; border-radius: 9px; cursor: pointer; letter-spacing: -0.2px; transition: background 0.15s; }
.btn-cta:hover { background: var(--ac-h); }
.cta-note { font-size: 12px; color: #444; margin-top: 14px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE — NAV ── */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .nav-burger { display: flex; }
  .nav { height: 68px; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
}

/* ── RESPONSIVE — FOOTER ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .site-footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── RESPONSIVE — SECTION ── */
@media (max-width: 900px) {
  .section { padding: 56px 24px; }
  .cta-block { margin: 32px 20px 0; padding: 40px 28px; }
}
@media (max-width: 600px) {
  .section { padding: 48px 20px; }
  .cta-block { margin: 28px 16px 0; padding: 36px 24px; }
  .cta-h { font-size: 26px; }
}

/* ── HERO MOBILE FIX (shared across service pages) ── */
@media (max-width: 960px) {
  .hero-visual { display: flex !important; width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  .hero { grid-template-columns: 1fr !important; padding: 48px 20px 36px !important; gap: 32px !important; }
  .hero > div:last-child, .hero > *:last-child { width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow: hidden; }
  .fm-card, .bi-card, .ps-hero-card, .hero-card, .app-card, .ds-hero-card, .kpi-card, .svc-card, .cert-hero, .academy-hero-card, .excel-card { width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow-x: auto; }
  table { max-width: 100%; overflow-x: auto; display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 32px 16px 24px !important; }
  .h1 { font-size: 32px !important; letter-spacing: -1.5px !important; line-height: 1.1 !important; }
  .sub { font-size: 14px !important; }
}
