/* =================================================================
   Digital E-filing Coach — styles.css
   Palette: blue, teal, white, orange, green
   Fonts: Poppins (display) + Inter (body)
================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --blue:        #1565c0;
  --blue-dark:   #0d47a1;
  --teal:        #00897b;
  --teal-dark:   #00695c;
  --orange:      #fb8c00;
  --orange-dark: #ef6c00;
  --green:       #2e9e57;
  --green-dark:  #1f7a41;

  --ink:    #16263d;   /* primary text */
  --muted:  #5c6b80;   /* secondary text */
  --line:   #e3e9f2;   /* borders */
  --bg:     #f4f7fc;   /* page background */
  --white:  #ffffff;

  --shadow-sm: 0 2px 8px rgba(16,46,90,.08);
  --shadow-md: 0 10px 30px rgba(16,46,90,.12);
  --radius:    14px;
  --container: 1200px;
  --header-h:  118px;  /* notice + header + nav stacking offset */
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text strong { font-family: "Poppins", sans-serif; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Shared button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 18px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* =================================================================
   NOTICE BAR
================================================================= */
.notice-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  overflow: hidden;
}
.notice-tag {
  flex-shrink: 0;
  background: rgba(0,0,0,.18);
  padding: 8px 16px;
  letter-spacing: .3px;
}
.notice-track { overflow: hidden; flex: 1; }
.notice-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
.notice-bar:hover .notice-text { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =================================================================
   HEADER
================================================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: var(--shadow-sm);
}
.logo-text strong { display: block; font-size: 1.15rem; color: var(--blue-dark); line-height: 1.1; }
.logo-text small  { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .4px; }

.header-actions { display: flex; gap: 10px; }
.btn-apply   { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; }
.btn-login   { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.btn-contact { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: var(--blue);
  color: #fff;
  font-size: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

/* =================================================================
   NAVIGATION  (sticky)
================================================================= */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  box-shadow: var(--shadow-sm);
}
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e9f1ff;
  font-weight: 500;
  font-size: .92rem;
  padding: 14px 16px;
  border-bottom: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,.12);
  border-bottom-color: var(--orange);
}

/* =================================================================
   HERO BANNER
================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c3c78 0%, #135ba6 45%, #0e7c74 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

/* soft colored blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .35; }
.blob-1 { width: 360px; height: 360px; background: var(--teal);   top: -90px; right: -60px; }
.blob-2 { width: 280px; height: 280px; background: var(--orange); bottom: -80px; left: -40px; opacity: .25; }
.blob-3 { width: 220px; height: 220px; background: var(--green);  top: 40%; left: 45%; opacity: .2; }

/* floating subject icons */
.float-ico { position: absolute; color: rgba(255,255,255,.16); font-size: 3rem; animation: floaty 7s ease-in-out infinite; }
.f1 { top: 18%; left: 8%;  animation-delay: 0s;   }
.f2 { top: 60%; left: 14%; animation-delay: 1.1s; font-size: 2.4rem; }
.f3 { top: 25%; right: 12%; animation-delay: 2s;  font-size: 3.4rem; }
.f4 { bottom: 18%; right: 18%; animation-delay: .6s; }
.f5 { top: 50%; right: 30%; animation-delay: 1.6s; font-size: 2.2rem; }
.f6 { bottom: 28%; left: 38%; animation-delay: 2.4s; font-size: 2.6rem; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

.hero-inner { position: relative; z-index: 2; padding-block: 80px; }
.hero-text { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 18px;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #ffe3c2; font-weight: 600; margin-top: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-hero-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; font-size: 1rem; padding: 14px 26px; }
.btn-hero-ghost   { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); font-size: 1rem; padding: 14px 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.hero-badges i { color: #8ef0b9; }

/* =================================================================
   SECTION HEADINGS (shared)
================================================================= */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .78rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--ink); margin: 6px 0 10px; }
.section-head p  { color: var(--muted); }

/* =================================================================
   COURSE CARDS
================================================================= */
.courses { padding-block: 70px; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.course-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* colored top accent strip — color set inline per card via --c */
.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--c, var(--blue));
}
.course-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}
.course-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: #fff;
  border-radius: 14px;
  background: var(--c, var(--blue));
  margin-bottom: 16px;
  transition: transform .25s ease;
}
.course-card:hover .course-ico { transform: rotate(-8deg) scale(1.08); }
.course-card h3 { font-size: 1.08rem; color: var(--ink); }
.course-card p  { font-size: .86rem; color: var(--muted); margin: 6px 0 14px; }
.course-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .85rem;
  color: var(--c, var(--blue));
}
.course-link i { transition: transform .2s ease; }
.course-card:hover .course-link i { transform: translateX(4px); }

/* =================================================================
   STATISTICS COUNTER
================================================================= */
.stats {
  background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark));
  color: #fff;
  padding-block: 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 30px 18px;
  transition: transform .2s ease, background .2s ease;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.14); }
.stat-card i { font-size: 2rem; color: var(--orange); margin-bottom: 10px; }
.stat-number { display: block; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.stat-text { font-size: 1.5rem; }
.stat-card p { margin-top: 8px; color: #d8e6ff; font-size: .95rem; }

/* =================================================================
   FOOTER
================================================================= */
.site-footer { background: #0c2138; color: #c5d3e6; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 34px;
  padding-block: 56px;
}
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text small  { color: #9fb3cc; }
.footer-about { margin: 16px 0; font-size: .9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: .9rem; }
.footer-col ul a { transition: color .18s ease, padding-left .18s ease; }
.footer-col ul a:hover { color: var(--orange); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--teal); margin-top: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { font-size: .82rem; }
.disclaimer { color: #8497ad; }

/* =================================================================
   FLOATING ACTION BUTTONS
================================================================= */
.floating-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  position: relative;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform .18s ease;
}
.fab:hover { transform: scale(1.1); }
.fab-faq    { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.fab-manual { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.fab-wa     { background: linear-gradient(135deg, #25d366, #128c4a); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

/* hover tooltip on the left */
.fab::after {
  content: attr(data-tip);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Back to top */
.to-top {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 200;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--teal-dark);
  color: #fff; font-size: 1.05rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal); }

/* =================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }

  /* hide desktop header buttons, show hamburger */
  .header-actions { display: none; }
  .nav-toggle { display: grid; place-items: center; }

  /* nav collapses into a dropdown */
  .nav-list {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-list.open { max-height: 520px; }
  .nav-list a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }

  .hero-inner { padding-block: 60px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .float-ico { display: none; }
}

@media (max-width: 380px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}