/* UKCSC – Custom styles (Tailwind CDN handles utilities) */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy:   #0d1b2a;
  --blue:   #1a56db;
  --blue-light: #3b82f6;
  --gold:   #f59e0b;
  --slate:  #64748b;
  --light:  #f1f5f9;
  --white:  #ffffff;
}

/* ── Scrollbar ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── Body ───────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: #1e293b;
  margin: 0;
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-badge {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  color: white; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-text span:first-child {
  display: block; font-weight: 700; font-size: 0.95rem; color: white;
}
.nav-logo-text span:last-child {
  display: block; font-size: 0.68rem; color: #94a3b8; letter-spacing: 0.4px;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.08);
}
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #1d4ed8 !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: #cbd5e1 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  font-size: 0.85rem !important;
  background: transparent !important;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.08) !important; color: white !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: #cbd5e1; text-decoration: none;
  padding: 0.6rem 0; font-size: 0.925rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: white; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2744 50%, #0d1b2a 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,86,219,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ── Section helpers ────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: rgba(26,86,219,0.1);
  color: var(--blue);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(26,86,219,0.2);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.15; margin-bottom: 1rem;
}
.section-title.light { color: white; }
.section-subtitle {
  font-size: 1.05rem; color: var(--slate);
  max-width: 600px; line-height: 1.7;
}
.section-subtitle.light { color: #94a3b8; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.25s;
}
.card-dark:hover { background: rgba(255,255,255,0.07); }

.icon-box {
  width: 52px; height: 52px;
  background: rgba(26,86,219,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

/* Equal-height card grids with bottom-aligned footers */
.equal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.equal-cards > .card {
  display: flex;
  flex-direction: column;
}
.equal-cards .grow { flex: 1; }
.equal-cards .card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}
.equal-cards .card-footer + * {
  margin-top: 0.75rem;
}

/* ── Badges / Tags ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-blue   { background: rgba(26,86,219,0.1); color: var(--blue); }
.badge-gold   { background: rgba(245,158,11,0.1); color: #b45309; }
.badge-green  { background: rgba(16,185,129,0.1); color: #047857; }
.badge-red    { background: rgba(239,68,68,0.1);  color: #b91c1c; }
.badge-slate  { background: #f1f5f9; color: var(--slate); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px; font-weight: 600; font-size: 0.925rem;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-primary {
  background: var(--blue); color: white;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.3); color: white; background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-outline-dark {
  border: 2px solid #e2e8f0; color: var(--navy); background: transparent;
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: #d97706; }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2744 100%);
  padding: 7rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,86,219,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: #64748b; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: #94a3b8; text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: #475569; }

/* ── Stats bar ──────────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.25rem; font-weight: 800;
  color: white; line-height: 1;
}
.stat-num .accent { color: var(--gold); }
.stat-label { font-size: 0.8rem; color: #94a3b8; margin-top: 0.35rem; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: #e2e8f0;
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 0.3rem;
  width: 14px; height: 14px;
  background: var(--blue); border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--blue);
}

/* ── Table ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  background: var(--navy); color: white;
  padding: 0.85rem 1rem; text-align: left;
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.5px;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.data-table tr:hover td { background: #f8fafc; }

/* ── Accordion ──────────────────────────────────────────── */
.accordion-item {
  border: 1px solid #e2e8f0; border-radius: 10px;
  overflow: hidden; margin-bottom: 0.75rem;
}
.accordion-trigger {
  width: 100%; background: white;
  border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  text-align: left;
  transition: background 0.2s;
}
.accordion-trigger:hover { background: #f8fafc; }
.accordion-trigger .chevron { transition: transform 0.3s; font-size: 0.75rem; color: var(--slate); }
.accordion-trigger.open .chevron { transform: rotate(180deg); }
.accordion-body {
  display: none; padding: 0 1.25rem 1.25rem;
  font-size: 0.925rem; color: #475569; line-height: 1.7;
}
.accordion-body.open { display: block; }

/* ── Form ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: #374151; }
.form-input, .form-textarea, .form-select {
  width: 100%; box-sizing: border-box;
  border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.7rem 1rem; font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit; color: #1e293b; background: white;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #060d14;
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 {
  color: white; font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.5px; margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: #64748b; text-decoration: none; font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
.footer-disclaimer {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px; padding: 0.75rem 1rem;
  font-size: 0.78rem; color: #fbbf24;
  margin-bottom: 2rem; line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Pricing Grid ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.pricing-grid .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pricing-grid .card ul {
  flex: 1;
}
.pricing-grid .card > .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.25;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── General grid overflow guard ────────────────────────── */
.container { overflow-x: hidden; }

/* ── Utilities ──────────────────────────────────────────── */
.divider { height: 1px; background: #e2e8f0; margin: 2rem 0; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.bg-navy { background: var(--navy); }
.bg-light { background: var(--light); }
.rounded-xl { border-radius: 16px; }
.shadow-lg { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
