/* ===== Base & Variables ===== */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3661;
  --accent: #16a085;
  --accent-dark: #128a72;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 76, 129, 0.08);
  --shadow-hover: 0 6px 20px rgba(15, 76, 129, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 70px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 45px;
}

.section-header .eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-top: 8px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 12px auto 0;
}

.section-header p {
  color: var(--text-light);
  margin-top: 10px;
}

.bg-alt { background: var(--bg-alt); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.95rem;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 160, 133, 0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 160, 133, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(15, 76, 129, 0.1);
  border-bottom-color: transparent;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: 267px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.navbar .btn { padding: 10px 22px; }
.navbar .btn-outline { color: var(--primary); border-color: var(--primary); }
.navbar .btn-outline:hover { background: var(--primary); color: #fff; }

.nav-cta { display: none; }

/* ---- Hamburger toggle (hidden on desktop) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 160, 133, 0.35) 0%, rgba(22, 160, 133, 0) 70%);
  animation: hero-float 9s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -80px;
  animation-delay: -4s;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 2.8rem;
  max-width: 780px;
  margin: 0 auto 18px;
  animation: fade-up 0.7s ease both;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 30px;
  opacity: 0.92;
  animation: fade-up 0.7s ease 0.1s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
  animation: fade-up 0.7s ease 0.2s both;
}

.hero-badges span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-badges span:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-cta { animation: fade-up 0.7s ease 0.3s both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .hero h1, .hero .tagline, .hero-badges, .hero-cta {
    animation: none;
  }
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Courses ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.course-thumb {
  margin: -28px -28px 18px;
  height: 140px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.course-thumb img { width: 100%; height: 100%; object-fit: cover; }

.course-thumb-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  font-size: 2.6rem;
}

.course-card h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.course-card p.desc {
  color: var(--text-light);
  font-size: 0.93rem;
  flex-grow: 1;
  margin-bottom: 18px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.course-meta .fee { color: var(--accent); font-weight: 700; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22, 160, 133, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--accent);
  color: #fff;
}

.feature-icon-img {
  background: transparent;
  overflow: hidden;
}

.feature-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.feature-card:hover .feature-icon-img {
  background: transparent;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Stats ===== */
.stats-strip {
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.stats-grid > div {
  transition: transform 0.25s ease;
}

.stats-grid > div:hover {
  transform: translateY(-4px);
}

.stats-grid .stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.stats-grid .stat-label {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p { color: var(--text-light); margin-bottom: 16px; }

.about-cards { display: grid; gap: 20px; }

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.about-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.about-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
  overflow: hidden;
}

.testimonial-avatar-img { background: transparent; }
.testimonial-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.testimonial-card .stars {
  color: #f5a623;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p.msg {
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card .name {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== Training Modes ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.mode-card {
  text-align: center;
  padding: 30px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: #fff;
}

.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
  overflow: hidden;
}

.mode-icon-img { background: transparent; }
.mode-icon-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.mode-card h3 { color: var(--primary-dark); margin-bottom: 8px; }
.mode-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== Enquiry / Contact ===== */
.enquiry-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.enquiry-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.15);
}

.form-error {
  color: #e11d48;
  font-size: 0.82rem;
  margin-top: 4px;
}

.alert-success {
  background: rgba(22, 160, 133, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.contact-info { padding-top: 8px; }

.contact-info h3 { margin-bottom: 18px; font-size: 1.2rem; color: var(--primary-dark); }

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-item .label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.contact-item .value { font-weight: 500; }

.map-placeholder {
  margin-top: 20px;
  height: 160px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 12px;
}

.map-embed {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* ===== Page Banner (non-home pages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-banner p { opacity: 0.9; max-width: 560px; margin: 0 auto; }

/* ===== View All / CTA Banner ===== */
.view-all { text-align: center; margin-top: 36px; }

.btn-dark { color: var(--primary); border-color: var(--primary); }
.btn-dark:hover { background: var(--primary); color: #fff; }

.cta-banner {
  background: var(--bg-alt);
  text-align: center;
  padding: 60px 0;
}

.cta-banner h2 { color: var(--primary-dark); font-size: 1.7rem; margin-bottom: 10px; }
.cta-banner p { color: var(--text-light); margin-bottom: 22px; }
.cta-banner .btn-primary { color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-logo-plate {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 80px;
  width: 333px;
  display: block;
}

.footer-about p { opacity: 0.8; }

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links a { display: block; margin-bottom: 8px; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-contact p { margin-bottom: 8px; opacity: 0.85; }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
}

.site-footer strong { color: #fff; }

/* ===== Nav active state ===== */
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* ===== Scroll-reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view > * {
  animation: fade-up 0.6s ease both;
}

.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-stagger.in-view > * { animation: none; }
}

/* ===== Floating WhatsApp button ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); }

.whatsapp-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 200;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary-dark); }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-ring { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }

  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(15, 76, 129, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links a {
    width: 100%;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    display: block;
    margin: 14px 20px 18px;
    text-align: center;
  }
}
