/* ============================================================
   BDMIC CMS — Global Frontend Styles
   Brand: #00AEEF (sky blue) | Font: Avoner
   ============================================================ */

/* ── Font ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Avoner';
  src: url('/assets/fonts/avoner-regular-webfont.woff2') format('woff2'),
       url('/assets/fonts/avoner-regular-webfont.woff')  format('woff'),
       url('/assets/fonts/Avoner-Regular.ttf')           format('truetype'),
       url('/assets/fonts/Avoner-Regular.otf')           format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #00AEEF;
  --primary-dark:  #0090c8;
  --primary-light: rgba(0,174,239,0.12);
  --dark:          #0d0f14;
  --dark-2:        #141720;
  --dark-3:        #1c1f2a;
  --white:         #ffffff;
  --light:         #f5f7fa;
  --muted:         #6b7280;
  --border:        #e5e7eb;
  --text:          #1a1d23;
  --text-light:    #4b5563;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    0.25s ease;
  --font:          'Avoner', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h:      74px;
}

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

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide  { max-width: 1340px; }
.container--narrow { max-width: 860px; }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: normal; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; font-weight: normal; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.3; font-weight: normal; }
h4 { font-size: 1.1rem; font-weight: normal; }
p  { color: var(--text-light); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: normal;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,174,239,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13,15,20,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), height var(--transition);
}
.site-header.scrolled {
  height: 62px;
  background: rgba(13,15,20,0.99);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--white);
  font-family: var(--font);
}
.site-logo span { color: var(--primary); }
.site-logo img { height: 40px; width: auto; }

/* Top bar */
.header-topbar {
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 6px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
.header-topbar a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.header-topbar a:hover { color: var(--primary); }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  border-radius: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.has-dropdown::after {
  content: '▾';
  font-size: 0.65rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.nav-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta .btn { padding: 9px 20px; font-size: 0.82rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.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 Nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 3rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .sub-link {
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* ── Page Wrapper ───────────────────────────────────────────── */
.page-wrap { padding-top: var(--header-h); }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--gray { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section__header { margin-bottom: 3rem; }
.section__header--center { text-align: center; }
.section__header--center .section-label { justify-content: center; }

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,174,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; position: relative; }
.page-hero p  { color: rgba(255,255,255,0.6); max-width: 580px; margin: 0 auto; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,174,239,0.3);
}
.card--dark {
  background: var(--dark-2);
  border-color: rgba(255,255,255,0.06);
}
.card--dark:hover { border-color: rgba(0,174,239,0.4); }
.card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.stat-item { text-align: center; }
.stat-item__num {
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-item__label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Grid Layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
}
.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.8; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-weight: normal;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--primary); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Alerts (flash messages) ────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }

/* ── CMS Generic Page ───────────────────────────────────────── */
.cms-page { padding: 60px 0; }
.cms-page__header { margin-bottom: 2.5rem; border-bottom: 2px solid var(--primary); padding-bottom: 1rem; }
.cms-page__content { line-height: 1.8; }
.cms-page__content h2, .cms-page__content h3 { margin: 2rem 0 1rem; }
.cms-page__content p { margin-bottom: 1.2rem; }
.cms-page__content ul, .cms-page__content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; list-style: disc; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .site-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 56px 0; }
}

@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
