/* ========================================
   TC Personal Fitness — Custom Styles
   Tailwind CDN handles utility classes.
   This file: custom properties, animations,
   component styles, and overrides.
   ======================================== */

/* --- Design Tokens --- */
:root {
  --brand: #fc3c2a;
  --brand-light: #fd5f51;
  --brand-dark: #e02d1b;
  --brand-glow: rgba(252, 60, 42, 0.35);
  --accent: #ff6b35;
  --dark-950: #050505;
  --dark-900: #0a0a0a;
  --dark-850: #0f0f0f;
  --dark-800: #151515;
  --dark-700: #1f1f1f;
  --dark-600: #2a2a2a;
  --dark-500: #3a3a3a;
  --light-50: #fafafa;
  --light-100: #f0f0f0;
  --light-200: #d4d4d4;
  --light-300: #a3a3a3;
  --light-400: #737373;
}

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-900);
  color: var(--light-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--light-50);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--brand);
  color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-950); }
::-webkit-scrollbar-thumb { background: var(--dark-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--dark-850);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--light-50);
}

.nav-logo img {
  height: 45px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-200);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--light-50); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--brand) !important;
  color: white !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--brand-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--brand-glow);
}

.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--light-50);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-video-thumb.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 0.3s;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.15) 0%,
    rgba(5, 5, 5, 0.05) 30%,
    rgba(5, 5, 5, 0.1) 60%,
    var(--dark-900) 95%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(252, 60, 42, 0.3);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--light-300);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--light-100);
  border: 1px solid var(--dark-500);
}

.btn-secondary:hover {
  border-color: var(--light-300);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 42px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--light-300);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--brand);
  border-radius: 16px;
  z-index: -1;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 8px;
}

.about-subtitle {
  color: var(--brand);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--light-200);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.credentials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--dark-700);
  border: 1px solid var(--dark-600);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--light-200);
  transition: all 0.2s;
}

.credential-badge:hover {
  border-color: var(--brand);
  color: var(--light-50);
}

.credential-badge svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-700);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--dark-500);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(252, 60, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--light-300);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-700);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--dark-500);
  transform: translateY(-2px);
}

.quote-icon {
  color: var(--brand);
  opacity: 0.3;
  margin-bottom: 16px;
}

.quote-icon svg {
  width: 32px;
  height: 32px;
}

.testimonial-card blockquote {
  color: var(--light-200);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--light-50);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--light-400);
}

/* --- Scheduling CTA --- */
.scheduling {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--accent) 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.scheduling::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.scheduling h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  position: relative;
}

.scheduling p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.scheduling .btn {
  background: white;
  color: var(--brand-dark);
  font-size: 1.1rem;
  padding: 18px 42px;
  position: relative;
}

.scheduling .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* --- Social Feed --- */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.social-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-700);
  border-radius: 16px;
  overflow: hidden;
}

.social-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dark-700);
}

.social-card-header svg {
  width: 24px;
  height: 24px;
}

.social-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.social-card-header a {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 500;
  transition: color 0.2s;
}

.social-card-header a:hover { color: var(--brand-light); }

.social-card-body {
  padding: 24px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card-body iframe {
  border: none;
  border-radius: 8px;
  width: 100%;
}

.social-fallback {
  text-align: center;
  padding: 40px 20px;
}

.social-fallback p {
  color: var(--light-300);
  margin-bottom: 16px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--dark-800);
  border: 1px solid var(--dark-700);
  border-radius: 16px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light-200);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark-700);
  border: 1px solid var(--dark-600);
  border-radius: 10px;
  color: var(--light-50);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-input::placeholder { color: var(--light-400); }

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-status.error {
  display: block;
  background: rgba(252, 60, 42, 0.1);
  border: 1px solid rgba(252, 60, 42, 0.3);
  color: var(--brand);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(252, 60, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--light-300);
  font-size: 0.9rem;
}

.contact-info-card a {
  color: var(--light-200);
  transition: color 0.2s;
}

.contact-info-card a:hover { color: var(--brand); }

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--dark-700);
  border: 1px solid var(--dark-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-200);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--dark-950);
  border-top: 1px solid var(--dark-700);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--light-300);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--light-50);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--light-300);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light-400);
  font-size: 0.82rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--light-300);
  font-size: 0.85rem;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.back-to-top:hover { color: var(--brand); }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.active a { font-size: 1.2rem; }
  .menu-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image { max-width: 400px; margin: 0 auto; }
  .about-image::before { display: none; }
  .credentials-grid { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
