/* Lyfe School - Static Website Styles */
/* Mobile-first responsive design */

/* ===== CSS Variables ===== */
:root {
  --primary: #1a3a8f;
  --primary-light: #2952c8;
  --secondary: #00bcd4;
  --secondary-light: #4dd0e1;
  --background: #ffffff;
  --foreground: #1a1a2e;
  --muted: #f5f7fa;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --gradient-primary: linear-gradient(135deg, #1a3a8f 0%, #00bcd4 100%);
  --gradient-text: linear-gradient(135deg, #1a3a8f 0%, #00bcd4 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--muted-foreground);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-secondary:hover {
  background: var(--muted);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  color: var(--muted-foreground);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.mobile-menu-btn:hover {
  background: var(--muted);
}

.hamburger {
  width: 1.5rem;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--background);
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.5rem;
}

.drawer-close:hover {
  background: var(--muted);
}

.drawer-nav {
  padding: 1rem;
}

.drawer-link {
  display: block;
  padding: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.drawer-link:hover {
  background: var(--muted);
  color: var(--primary);
}

.drawer-cta {
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.drawer-footer {
  padding: 1rem;
  background: var(--muted);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, rgba(26, 58, 143, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 58, 143, 0.1);
  color: var(--primary);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-credentials {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-credentials strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== Image Gallery ===== */
.gallery {
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.gallery-overlay p {
  color: white;
  font-weight: 600;
}

/* ===== Vision Section ===== */
.vision {
  background: var(--muted);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.vision-card {
  text-align: left;
}

.vision-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 143, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ===== Pillars Section ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  position: relative;
}

.pillar-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  color: white;
}

.pillar-list {
  margin-top: 1rem;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pillar-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* ===== Careers Section ===== */
.careers {
  background: var(--muted);
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.career-card {
  text-align: center;
  padding: 1.25rem;
}

.career-card h4 {
  font-size: 0.875rem;
}

/* ===== Curriculum Preview ===== */
.curriculum-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Page Headers ===== */
.page-header {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, rgba(26, 58, 143, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FAQ Page ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: var(--background);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--muted);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-foreground);
}

/* ===== Curriculum Page ===== */
.curriculum-section {
  margin-bottom: 3rem;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.curriculum-card {
  border-left: 4px solid var(--primary);
}

.curriculum-list {
  margin-top: 1rem;
}

.curriculum-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.curriculum-list li:last-child {
  border-bottom: none;
}

/* ===== Resources Page ===== */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
}

.resource-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}

.resource-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Waitlist Page ===== */
.waitlist-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
}

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

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-success {
  text-align: center;
  padding: 3rem;
}

.form-success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.referral-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: var(--radius);
  text-align: center;
}

.referral-link {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.referral-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: white;
}

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

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
  display: none !important;
}

/* ===== Responsive Design ===== */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.wide {
    grid-column: span 2;
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-lg {
    padding: 7rem 0;
  }
  
  .nav-links {
    display: flex;
  }
  
  .nav-cta {
    display: block;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .careers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .curriculum-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

/* ===== Print Styles ===== */
@media print {
  .nav,
  .mobile-drawer,
  .overlay,
  .btn {
    display: none !important;
  }
  
  .hero {
    padding-top: 2rem;
    min-height: auto;
  }
}
