/*
 * landing/styles.css — non-critical styles.
 *
 * Everything required to render the nav + hero without a flash of
 * unstyled content lives inline in <head> (see index.html). This file
 * holds enhancement-only rules that can safely arrive after first paint:
 * smooth in-page scrolling, selection color, and small hover/interaction
 * polish. Content sections (Task 15) and SEO meta/JSON-LD (Task 16) will
 * extend this file rather than the inline critical block.
 */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: var(--primary110);
  color: var(--black100);
}

.food-card {
  transition: transform var(--dur-base) var(--ease);
}

.food-card:hover {
  transform: translateY(-2px);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary110);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------------- */
/* Shared section scaffolding (Task 15)                                    */
/* ---------------------------------------------------------------------- */
.section {
  padding: var(--s24) var(--s6);
  border-top: 1px solid var(--black90);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
}

.section-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
  margin: 0 0 var(--s12);
}

.section-note {
  margin: var(--s8) 0 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------------- */
/* Cách hoạt động                                                          */
/* ---------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  margin: 0;
  padding: 0;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--black90);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary110);
  margin-bottom: var(--s4);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 var(--s2);
}

.step p {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------------- */
/* AI hiểu món Việt                                                        */
/* ---------------------------------------------------------------------- */
.ai-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}

@media (min-width: 700px) {
  .ai-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-card {
  border-radius: var(--r-lg);
  background: var(--black90);
  overflow: hidden;
}

.ai-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.ai-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: var(--s4) var(--s4) var(--s2);
}

.ai-card p {
  margin: 0 var(--s4) var(--s4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------------- */
/* Huấn luyện viên                                                         */
/* ---------------------------------------------------------------------- */
.trainer-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .trainer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trainer-card {
  text-align: center;
}

.trainer-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto var(--s4);
}

.trainer-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--s1);
}

.trainer-cred {
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------------- */
/* Kết quả                                                                 */
/* ---------------------------------------------------------------------- */
.before-after {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s4);
}

.before-after-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}

.results-disclaimer {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ---------------------------------------------------------------------- */
/* Bảng giá                                                                */
/* ---------------------------------------------------------------------- */
.pricing-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: var(--s8) var(--s6);
  border-radius: var(--r-lg);
  background: var(--black90);
  border: 1px solid transparent;
}

.pricing-card-featured {
  border-color: var(--primary110);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--s2);
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary110);
  margin: 0 0 var(--s6);
}

.pricing-features {
  list-style: none;
  margin: 0 0 var(--s8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  flex-grow: 1;
}

.pricing-features li {
  padding-left: var(--s4);
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green40);
}

.pricing-cta,
.pricing-cta-quiz {
  align-self: stretch;
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* Câu hỏi thường gặp (FAQ — also drives the FAQPage JSON-LD in <head>)    */
/* ---------------------------------------------------------------------- */
.faq-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.faq-item {
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--black90);
}

.faq-item dt {
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 var(--s2);
}

.faq-item dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--black90);
  padding: var(--s16) var(--s6) var(--s8);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  padding-bottom: var(--s8);
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: var(--s4) 0 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  max-width: 40ch;
}

.site-footer h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 var(--s4);
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-size: var(--text-sm);
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--s8);
  border-top: 1px solid var(--black90);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 360px) {
  .pricing-card {
    padding: var(--s6) var(--s4);
  }
}
