/* ============================================================
   GEC Design System — gec.uz shared stylesheet
   Loaded by every page. Page-specific styles stay in <style>.
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --navy:      #002147;
  --navy-deep: #001534;
  --gold:      #C9A84C;
  --gold-dark: #A8883A;
  --gold-pale: #F5EED8;
  --cream:     #F4F1EC;   /* warm section alt, replaces cold #f9fafb */
  --border:    #E2DDD4;   /* warm border */
  --ink:       #111827;
  --body:      #4B5563;
  --muted:     #9CA3AF;
}

/* ── Reset / base ───────────────────────────────────────── */
html { overflow-x: hidden; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
* { font-family: 'Inter', system-ui, sans-serif; }
h1, h2, h3, .font-display { font-family: 'Playfair Display', Georgia, serif; }
img { display: block; max-width: 100%; }

/* ── Section label ──────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.6875rem;   /* 11px */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Buttons ────────────────────────────────────────────── */
/* Navy — portal / nav actions */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-primary:hover { background: var(--navy-deep); }

/* Gold — ONE primary conversion action per page */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  padding: 0.8125rem 2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-gold:hover { background: var(--gold-dark); }

/* Navy outline — secondary actions */
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  padding: 0.625rem 1.375rem;
  border-radius: 6px;
  border: 1.5px solid var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-secondary:hover,
.btn-outline:hover { background: var(--navy); color: #fff; }

/* White outline — for dark/navy backgrounds */
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 0.8125rem 2rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.35);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.btn-white-outline:hover {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}

/* ── Cards ──────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 33, 71, 0.10);
}

/* ── Icon containers (replace emoji) ───────────────────── */
/* Small — inline UI chrome */
.icon-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.icon-mark svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; }

/* Large — feature / value proposition cards */
.icon-mark-lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.icon-mark-lg svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; }

/* Course card header — unified navy, replaces per-course colored gradient + emoji */
.course-header {
  height: 10rem;            /* 160px — matches old h-44 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
}
.course-header svg {
  width: 3.25rem;
  height: 3.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Top bar ────────────────────────────────────────────── */
.top-bar { background: var(--navy); color: #fff; }

/* ── Navigation ─────────────────────────────────────────── */
.nav-link {
  color: #4B5563;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  position: relative;
  transition: color 0.18s;
}
.nav-link:hover { color: var(--navy); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Active page state — use aria-current="page" on <a> */
.nav-link[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}
.nav-link[aria-current="page"]::after { width: 100%; }

/* Language switcher */
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.7;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.lang-active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
}

/* Mobile menu */
.mobile-menu { display: none; }
.hamburger { display: none; }
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 33, 71, 0.10);
    padding: 1rem;
    z-index: 50;
  }
  .mobile-menu.open { display: block; }
}

/* ── Telegram FAB ───────────────────────────────────────── */
.telegram-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.telegram-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #0088cc;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.35);
  transition: transform 0.18s;
}
.telegram-float a:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .telegram-float { bottom: 16px; right: 16px; }
  .telegram-float a { width: 44px; height: 44px; }
  .telegram-float .fa-telegram-plane { font-size: 1.125rem; }
}

/* ── Forms ──────────────────────────────────────────────── */
.form-input {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.07);
}

/* ── Testimonial card ───────────────────────────────────── */
.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
}
