/* ===========================================
   4th Place Fitness - Global Styles
   Brand Colors: #F47C2E (Orange), #000 (Black), #FFF (White)
   =========================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #F47C2E;
  --black: #000000;
  --white: #FFFFFF;
  --gray-dark: #1a1a1a;
  --gray-mid: #333333;
  --gray-light: #666666;
  --gray-muted: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 40px rgba(244, 124, 46, 0.25);
  --shadow-lg: 0 20px 60px rgba(244, 124, 46, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

.hidden {
  display: none !important;
}

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

/* ===========================================
   Header & Navigation
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 124, 46, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(244, 124, 46, 0.2);
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links.active {
  opacity: 1;
  visibility: visible;
}

.nav-links li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links.active li {
  opacity: 1;
  transform: translateY(0);
}

.nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(4) { transition-delay: 0.25s; }

.nav-links li a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 15px 40px;
  min-height: 44px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-align: center;
}

.nav-links li a:hover,
.nav-links li a:active,
.nav-links li a.active {
  color: var(--orange);
  background: rgba(244, 124, 46, 0.1);
}

/* Mobile menu close button */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--orange);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
}

.nav-close::before,
.nav-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-close:hover {
  background: var(--orange);
}

.nav-close:hover::before,
.nav-close:hover::after {
  background: var(--white);
}

.nav-links.active .nav-close {
  display: block;
}

/* Body lock when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    gap: 10px;
    opacity: 1;
    visibility: visible;
    z-index: auto;
  }

  .nav-links li {
    opacity: 1;
    transform: none;
  }

  .nav-links li a {
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1px solid transparent;
    letter-spacing: 1px;
    min-height: auto;
  }

  .nav-links li a:hover {
    border-color: rgba(244, 124, 46, 0.3);
    background: rgba(244, 124, 46, 0.1);
  }

  .nav-links li a.active {
    border-color: var(--orange);
    background: rgba(244, 124, 46, 0.15);
  }

  .nav-close {
    display: none !important;
  }
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ===========================================
   Hero Section (Homepage)
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(244, 124, 46, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(244, 124, 46, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--black) 0%, var(--gray-dark) 100%);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--orange);
}

.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 10px;
}

.hero-dates {
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 40px;
  font-weight: 500;
}

/* ===========================================
   Page Hero (Inner Pages)
   =========================================== */
.page-hero {
  padding: 160px 20px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244, 124, 46, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--gray-dark) 100%);
}

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--gray-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ===========================================
   Philosophy Section
   =========================================== */
.philosophy {
  padding: 80px 20px;
  background: var(--gray-dark);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 50px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.philosophy-icon {
  font-size: 1.5rem;
  color: var(--orange);
}

.philosophy-item p {
  font-size: 1.1rem;
  color: var(--gray-muted);
}

.philosophy-item strong {
  color: var(--white);
}

@media (min-width: 600px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================
   4 Pillars Section
   =========================================== */
.pillars {
  padding: 80px 20px;
  background: var(--black);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pillar-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(244, 124, 46, 0.2);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.pillar-list {
  list-style: none;
}

.pillar-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--gray-muted);
}

.pillar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===========================================
   Signup Section
   =========================================== */
.signup {
  padding: 80px 20px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(244, 124, 46, 0.15) 0%, transparent 60%),
    var(--gray-dark);
}

.signup-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.signup-content {
  text-align: center;
}

.signup-desc {
  font-size: 1.1rem;
  color: var(--gray-muted);
  max-width: 500px;
  margin: 0 auto;
}

.signup-form-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(244, 124, 46, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 124, 46, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F47C2E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select option {
  background: var(--gray-dark);
  color: var(--white);
}

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

@media (min-width: 768px) {
  .signup-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .signup-content {
    text-align: left;
  }

  .signup-desc {
    margin: 0;
  }
}

/* ===========================================
   Content Section (Inner Pages)
   =========================================== */
.content-section {
  padding: 80px 20px;
  background: var(--gray-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.content-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.content-card:hover {
  border-color: rgba(244, 124, 46, 0.3);
  transform: translateY(-5px);
}

.content-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.content-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.content-card p {
  color: var(--gray-muted);
  line-height: 1.7;
}

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

/* ===========================================
   How It Works / Steps Section
   =========================================== */
.how-it-works {
  padding: 80px 20px;
  background: var(--black);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.step-card {
  text-align: center;
  padding: 30px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  background: var(--orange);
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--gray-muted);
}

.steps-cta {
  text-align: center;
  margin-top: 40px;
}

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

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
  padding: 100px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(244, 124, 46, 0.2) 0%, transparent 60%),
    var(--black);
}

.cta-text {
  font-size: 1.15rem;
  color: var(--gray-muted);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
  padding: 40px 20px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-muted);
  transition: var(--transition);
}

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ===========================================
   Utility Classes
   =========================================== */
.text-center {
  text-align: center;
}

.accent {
  color: var(--orange);
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}
