/* ===========================================================
   MiPersonalTrainer — Landing Page  (Bulma overrides)
   Palette: navy #1a1a2e + orange #ff8c00 (from mobile ThemeContext)
   =========================================================== */

/* ---- CSS Variables (from mobile ThemeContext) ---- */
:root {
  --pt-bg: #ffffff;
  --pt-surface: #f8f9fa;
  --pt-card: #ffffff;
  --pt-text: #333333;
  --pt-text-secondary: #595959;
  --pt-text-muted: #767676;
  --pt-primary: #ff8c00;
  --pt-primary-dark: #e07600;
  --pt-primary-light: #ffab40;
  --pt-navy: #1a1a2e;
  --pt-navy-light: #252545;
  --pt-success: #27ae60;
  --pt-danger: #e74c3c;
  --pt-warning: #f39c12;
  --pt-border: #eeeeee;
  --pt-badge-bg: #fff3e0;
  --pt-badge-text: #e07600;
  --pt-gradient: linear-gradient(135deg, #1a1a2e 0%, #ff8c00 100%);
  --pt-radius: 12px;
  --pt-splash-bg: #1a1a2e;
}

/* ---- Bulma colour overrides ---- */
.has-text-primary   { color: var(--pt-primary) !important; }
.has-background-primary { background-color: var(--pt-primary) !important; }
.button.is-primary  { background-color: var(--pt-primary); border-color: transparent; }
.button.is-primary:hover { background-color: var(--pt-primary-dark); }
.button.is-success  { background-color: var(--pt-success); border-color: transparent; }

/* ---- Global tweaks ---- */
html { scroll-behavior: smooth; }
body { color: var(--pt-text); }
.section { padding: 4rem 1.5rem; }
h1,h2,h3,h4,h5 { color: var(--pt-text); }

/* ---- Navbar ---- */
.navbar.is-fixed-top {
  background: var(--pt-navy) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.navbar-brand img { border-radius: 8px; }
.navbar-brand strong { color: #fff; font-size: 1.05rem; }
.navbar-item { font-weight: 500; color: rgba(255,255,255,.80); }
.navbar-item:hover { color: #fff; background: transparent !important; }
.navbar-burger span { background-color: rgba(255,255,255,.80); }
.navbar-end .button.is-primary { font-weight: 600; background: var(--pt-primary); border-color: transparent; color: #fff; }
.navbar-end .button.is-primary:hover { background: var(--pt-primary-dark); }

/* ---- Hero ---- */
.hero.is-pt {
  background: var(--pt-gradient);
}
.hero.is-pt .title,
.hero.is-pt .subtitle { color: #fff; }
.hero.is-pt .subtitle { opacity: .88; }
.hero-icon {
  width: 72px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.splash-mockup {
  max-height: 520px;
  width: auto;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.40);
}
.hero-stats .level-item { text-align: center; }
.hero-stats .heading { color: rgba(255,255,255,.65); font-size: .80rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-stats .title  { color: #fff; }

/* ---- Feature Cards ---- */
.feature-card {
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.feature-icon.bg-blue   { background: #fff3e0; color: #ff8c00; }
.feature-icon.bg-green  { background: #e8f8f0; color: #27ae60; }
.feature-icon.bg-orange { background: #fef3e2; color: #f39c12; }
.feature-icon.bg-red    { background: #fde8e8; color: #e74c3c; }
.feature-icon.bg-purple { background: #f0e6ff; color: #8e44ad; }
.feature-icon.bg-teal   { background: #e0f7f7; color: #16a085; }

/* ---- Role Cards ---- */
.role-card {
  border-radius: var(--pt-radius);
  height: 100%;
}
.role-card.trainer { border-top: 4px solid var(--pt-primary); }
.role-card.user    { border-top: 4px solid var(--pt-success); }
.role-card.admin   { border-top: 4px solid var(--pt-warning); }

/* ---- Manual step list ---- */
.step-timeline { position: relative; padding-left: 48px; }
.step-timeline::before {
  content: '';
  position: absolute;
  left: 17px; top: 0; bottom: 0;
  width: 2px;
  background: var(--pt-border);
}
.step-item { position: relative; padding-bottom: 1.75rem; }
.step-item:last-child { padding-bottom: 0; }
.step-number {
  position: absolute;
  left: -48px; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pt-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  z-index: 1;
}
.step-item strong { display: block; margin-bottom: .25rem; }

/* ---- Tabs ---- */
.tabs.is-toggle li.is-active a {
  background-color: var(--pt-primary);
  border-color: var(--pt-primary);
  color: #fff;
}

/* ---- Use-case cards ---- */
.usecase-card {
  position: relative;
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  overflow: hidden;
  height: 100%;
}
.usecase-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pt-gradient);
}
.usecase-card .tag { margin-top: .75rem; }

/* ---- Testimonials ---- */
.testimonial-card {
  border-radius: var(--pt-radius);
  border: 1px solid var(--pt-border);
  height: 100%;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pt-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Tech pills ---- */
.tech-pill {
  background: var(--pt-card);
  border: 1px solid var(--pt-border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--pt-text-secondary);
}

/* ---- CTA section ---- */
.cta-section {
  background: var(--pt-gradient);
}
.cta-section .title,
.cta-section .subtitle { color: #fff; }
.cta-section .subtitle { opacity: .85; }

/* ---- Footer ---- */
.footer {
  background: var(--pt-surface);
  padding: 3rem 1.5rem 2rem;
}
.footer .title.is-6 { color: var(--pt-text); }
.footer a { color: var(--pt-text-secondary); }
.footer a:hover { color: var(--pt-primary); }
.footer-bottom {
  border-top: 1px solid var(--pt-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--pt-text-muted);
  font-size: .85rem;
}

/* ---- Accordion (FAQ) ---- */
.accordion-item {
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--pt-card);
  border: none;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--pt-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-header:hover { background: var(--pt-surface); }
.accordion-header .arrow { transition: transform .3s; font-size: .8rem; }
.accordion-item.open .arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-body-inner {
  padding: 0 1.25rem 1rem;
  color: var(--pt-text-secondary);
  font-size: .93rem;
  line-height: 1.7;
}

/* ---- Section helpers ---- */
.has-bg-surface { background: var(--pt-surface); }
.section-gap    { margin-bottom: 3rem; }
.is-flex-gap-1  { gap: .75rem; }

/* ---- Pricing ---- */
.pricing-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 1rem;
}
.pricing-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .95rem;
}
.pricing-list li:last-child { border-bottom: none; }
.price-tag { margin: 1rem 0; }

/* ---- Responsive tweaks ---- */
@media screen and (max-width: 768px) {
  .hero-stats .level { flex-wrap: wrap; }
  .hero-stats .level-item { flex: 0 0 50%; margin-bottom: .5rem; }
  .splash-mockup { max-height: 340px; margin-top: 2rem; }
  .hero .column.is-6 { text-align: center; }
  .hero .is-flex { justify-content: center; }
}
