/* Pleasant Personality Academy — Brand & UI */

:root {
  --navy: #0f1729;
  --gold: #c9a962;
  --beige: #f5f0e8;
  --blush: #f8e8e4;
  --luxury: #1a1a1a;
  --header-height: 5rem;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(201, 169, 98, 0.2);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Header */
.site-header {
  background: transparent;
}
.site-header.scrolled {
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.site-header .nav-link.active {
  color: var(--gold);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b8944f 100%);
  color: var(--navy);
  font-weight: 600;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.45);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  border: 2px solid var(--navy);
  border-radius: 9999px;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--navy);
  color: white;
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s;
}
.btn-outline-light:hover {
  background: white;
  color: var(--navy);
  border-color: white;
}

/* Cards */
.premium-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 41, 0.1);
}
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
}

/* Section */
.section-padding {
  padding: 5rem 0;
}
@media (min-width: 1024px) {
  .section-padding { padding: 7rem 0; }
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 50%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.25);
}
.timeline-line {
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(15, 23, 41, 0.15);
  border-radius: 0.75rem;
  background: white;
  color: var(--luxury);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
}
.form-error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(15, 23, 41, 0.08);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--gold);
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(201, 169, 98, 0.15);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* Featured On logos */
.featured-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 41, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 41, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 23, 41, 0.1);
}
.featured-logo-img {
  width: auto;
  max-width: 140px;
  height: 42px;
  object-fit: contain;
}
.featured-logo-name {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-top: 0.75rem;
  text-align: center;
}
.featured-logo-tagline {
  font-size: 0.6875rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  text-align: center;
}
.featured-brand-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(201, 169, 98, 0.12);
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(15, 23, 41, 0.08);
}

/* Video placeholder */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* FAB */
.fab-container {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .fab-container { bottom: 2rem; }
}
.fab {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp {
  background: #25d366;
  color: white;
}
.fab-consult {
  background: var(--gold);
  color: var(--navy);
}
.fab-container.hidden-fabs {
  opacity: 0;
  pointer-events: none;
}

/* Mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15, 23, 41, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta-bar.visible {
  transform: translateY(0);
}

/* Social */
.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Counter */
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* Swiper overrides */
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
}

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 169, 98, 0.12);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

/* Video placeholder */
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), #1a2744);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.video-placeholder:hover {
  transform: scale(1.02);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 100%);
  padding: 8rem 0 4rem;
  margin-top: 0;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Success message */
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
  padding: 1.25rem;
  border-radius: 1rem;
}
