/* ═══════════════════════════════════════════
   RELIABLE - Main Stylesheet
   Modern Clean / Industrial Professional
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --green: #11a84b;
  --green-dark: #0e8a3e;
  --green-light: #e8f7ee;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-900: #2d2d2d;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #cccccc;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --section-pad: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--dark); color: var(--white); }
.section--green { background: var(--green); color: var(--white); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-700); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 64px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 16px; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.2rem; line-height: 1.8; color: var(--gray-700); }
.overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.section--dark .overline, .section--green .overline { color: rgba(255,255,255,0.7); }
.section--dark p { color: rgba(255,255,255,0.75); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-300);
}
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--white {
  background: var(--white);
  color: var(--dark);
}
.btn--white:hover { background: var(--gray-100); }
.btn--ghost {
  background: transparent;
  color: var(--green);
  padding: 14px 0;
}
.btn--ghost:hover { color: var(--green-dark); }
.btn--ghost .arrow { transition: var(--transition); }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}
.nav__link:hover, .nav__link--active { color: var(--dark); }
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
.nav__cta {
  font-size: 0.9rem;
  padding: 10px 24px;
}
.nav__mobile { display: none; cursor: pointer; background: none; border: none; }
.nav__mobile span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Mega Menu ── */
.nav__item {
  position: relative;
}
.nav__item-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav__item-trigger:hover,
.nav__item--active .nav__item-trigger { color: var(--dark); }
.nav__item--active .nav__item-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
.nav__chevron {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: var(--transition);
}
.nav__item:hover .nav__chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.mega-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 99;
}
.nav__item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.mega-menu__link {
  display: block;
  padding: 16px 20px;
  border-radius: 8px;
  transition: var(--transition);
}
.mega-menu__link:hover {
  background: var(--gray-100);
}
.mega-menu__link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mega-menu__link-title .mega-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--green-light);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 3px;
}
.mega-menu__link-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* ── Hero ── */
.hero {
  padding: 160px 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero__content { max-width: 720px; position: relative; z-index: 1; }
.hero__content h1 { margin-bottom: 24px; }
.hero__content h1 span { color: var(--green); }
.hero__content .lead { margin-bottom: 40px; }

/* ── Stats Bar ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 40px 32px;
  transition: var(--transition);
}
.card:hover { border-color: var(--green); box-shadow: 0 8px 32px rgba(17,168,75,0.08); transform: translateY(-2px); }
.card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
  font-size: 1.4rem;
}
.card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* ── Course Cards (specific) ── */
.course-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.course-card:hover { border-color: var(--green); box-shadow: 0 8px 32px rgba(17,168,75,0.08); transform: translateY(-2px); }
.course-card__header {
  background: var(--dark);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.course-card__id {
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.course-card__title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}
.course-card__body { padding: 28px; }
.course-card__meta {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.course-card__meta-item {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.course-card__meta-item strong {
  color: var(--green);
  font-weight: 600;
}
.course-card__desc { font-size: 0.95rem; color: var(--gray-700); }

/* ── Process / Timeline ── */
.process { counter-reset: process; }
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.process__step:last-child { border-bottom: none; }
.process__number {
  counter-increment: process;
  width: 64px;
  height: 64px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
}
.process__content h3 { margin-bottom: 8px; }
.process__content p { margin-bottom: 0; }

/* ── Pricing Table ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.pricing-card {
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.pricing-card--featured { border-color: var(--green); }
.pricing-card__header {
  padding: 32px 28px;
  background: var(--gray-100);
}
.pricing-card--featured .pricing-card__header { background: var(--green); color: var(--white); }
.pricing-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}
.pricing-card--featured .pricing-card__price { color: var(--white); }
.pricing-card__period { font-size: 0.9rem; font-weight: 400; opacity: 0.7; }
.pricing-card__body { padding: 28px; }
.pricing-card__features { margin-bottom: 28px; }
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.pricing-card__feature::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.team-card { text-align: center; }
.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gray-100);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-300);
  border: 3px solid var(--green-light);
}
.team-card__name { margin-bottom: 4px; }
.team-card__role { color: var(--green); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.team-card__bio { font-size: 0.9rem; color: var(--gray-700); max-width: 360px; margin: 0 auto; }

/* ── Contact Form ── */
.form { max-width: 600px; }
.form__group { margin-bottom: 20px; }
.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17,168,75,0.1);
}
.form__textarea { min-height: 140px; resize: vertical; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand {
  margin-bottom: 16px;
}
.footer__brand img {
  height: 28px;
  width: auto;
  display: block;
}
.footer__desc { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer__link:hover { color: var(--green); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Divider ── */
.green-line {
  width: 60px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 24px;
}
.text-center .green-line { margin-left: auto; margin-right: auto; }

/* ── Two Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ── Feature List ── */
.feature-list { margin-top: 24px; }
.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.feature-list__item:last-child { border-bottom: none; }
.feature-list__check {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list__text { font-size: 0.95rem; color: var(--gray-700); }
.feature-list__text strong { color: var(--dark); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.2s; }
.fade-up--d3 { animation-delay: 0.3s; }
.fade-up--d4 { animation-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }
  .nav__links { display: none; }
  .nav__mobile { display: block; }
  .mega-menu { position: static; box-shadow: none; border-bottom: none; opacity: 1; visibility: visible; transform: none; }
  .mega-menu__inner { grid-template-columns: 1fr; padding: 0; gap: 4px; }
  .mega-menu__link { padding: 10px 12px; }
  .nav__chevron { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .process__step { grid-template-columns: 56px 1fr; gap: 20px; }
  .process__number { width: 48px; height: 48px; font-size: 1.1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 120px 0 64px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
}
