/* ============================================================
   PR Skill Education — main.css (companion to Tailwind)
   Brand colors: Navy #0B2C4D · Teal #1FA2A6
   ============================================================ */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { -webkit-tap-highlight-color: transparent; }

/* Bottom padding so the mobile sticky call+WA band doesn't overlap content */
@media (max-width: 640px) { body { padding-bottom: 60px; } }

/* ---------- GRID & GRAIN BACKGROUNDS ---------- */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.grain-overlay {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Dotted brand-pattern background */
.dot-pattern {
  background-image: radial-gradient(circle, #0B2C4D 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.05;
}

/* ---------- EYEBROW / HEADINGS ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1FA2A6;
  background: rgba(31, 162, 166, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
}
.section-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #0B2C4D;
  margin-top: 0.75rem;
  text-wrap: balance;
}
.section-sub {
  color: #4b5563;
  font-size: 1rem;
  max-width: 42rem;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ---------- CTA BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #1FA2A6; color: white;
  font-weight: 700; padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(31,162,166,.3), 0 12px 36px -10px rgba(31,162,166,.45);
  transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { background: #17858A; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: #0B2C4D;
  border: 2px solid #0B2C4D;
  font-weight: 700; padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.2s;
}
.btn-outline:hover { background: #0B2C4D; color: white; }

/* ---------- COURSE CARDS ---------- */
.course-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0B2C4D, #1FA2A6);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -14px rgba(11,44,77,0.24);
  border-color: #1FA2A6;
}
.course-card:hover::before { transform: scaleX(1); }
.course-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E0F7F7, #F2F4F7);
  border-radius: 1rem;
}
.course-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; color: #0B2C4D; }
.course-tag { font-size: 0.9rem; color: #475569; line-height: 1.5; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; margin-top: auto; }
.course-meta span { background: #F2F4F7; padding: 0.3rem 0.65rem; border-radius: 9999px; color: #0B2C4D; font-weight: 600; }
.course-price { font-family: 'Poppins', sans-serif; font-weight: 700; color: #1FA2A6; font-size: 1.1rem; }

/* ---------- CHECK ITEM ---------- */
.check-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.55;
}
.check-item::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1FA2A6;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------- STATS ---------- */
.stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0B2C4D;
}
.stat-label { font-size: 0.85rem; color: #4b5563; margin-top: 0.25rem; }

/* ---------- WORKSHOP CARD ---------- */
.ws-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ws-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(11,44,77,0.24); }
.ws-card.featured {
  background: linear-gradient(135deg, #0B2C4D 0%, #143d6b 100%);
  color: white; border: none;
}
.ws-card.featured .ws-tag { background: rgba(255,255,255,0.15); color: #86E9EC; }
.ws-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: #E0F7F7; color: #17858A; padding: 0.3rem 0.75rem; border-radius: 9999px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.9rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: #1FA2A6; }
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #0B2C4D;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F2F4F7;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B2C4D;
  transition: transform 0.25s, background 0.25s, color 0.25s;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); background: #1FA2A6; color: white; }
.faq-body { padding: 0 1.25rem 1.1rem; color: #4b5563; font-size: 0.95rem; line-height: 1.65; }

/* ---------- SYLLABUS ---------- */
.syllabus-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  overflow: hidden;
}
.syllabus-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.syllabus-summary::-webkit-details-marker { display: none; }
.syllabus-week { font-family: 'Poppins'; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; background: #F2F4F7; color: #475569; padding: 0.3rem 0.6rem; border-radius: 0.5rem; white-space: nowrap; }
.syllabus-body { padding: 0 1.25rem 1.25rem; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.syllabus-item[open] { border-color: #1FA2A6; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(11,44,77,0.18); }
.testimonial-stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 0.1em; }
.testimonial-card blockquote { color: #334155; font-size: 0.95rem; line-height: 1.65; flex: 1; }
.testimonial-card figcaption { display: flex; gap: 0.75rem; align-items: center; padding-top: 1rem; border-top: 1px solid #F1F5F9; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem;
  font-family: 'Poppins', sans-serif; flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #FB7185, #F43F5E); }
.avatar-2 { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.avatar-3 { background: linear-gradient(135deg, #34D399, #10B981); }
.avatar-4 { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.avatar-5 { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.avatar-6 { background: linear-gradient(135deg, #2DD4BF, #0D9488); }

/* ---------- FORM ---------- */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0B2C4D;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: #1FA2A6;
  box-shadow: 0 0 0 4px rgba(31,162,166,0.15);
}
.form-input.error { border-color: #EF4444; }
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-check { width: 18px; height: 18px; accent-color: #1FA2A6; cursor: pointer; }
.field-error { font-size: 0.75rem; color: #EF4444; margin-top: 0.4rem; font-weight: 500; }

/* ---------- REVEAL ANIM ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-popIn { animation: popIn 0.35s cubic-bezier(.4,0,.2,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- A11Y FOCUS ---------- */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1FA2A6;
  outline-offset: 2px;
}


/* iPhone SE guard */
@media (max-width: 380px) {
  .course-card { padding: 1.25rem 1rem; }
}
