/* Summit High School - Cornerstone Theme */
:root {
  --cornerstone-primary: #3d5a80;
  --cornerstone-primary-light: #5c7a9e;
  --cornerstone-primary-dark: #1d3557;
  --cornerstone-accent: #ee9b00;
  --cornerstone-accent-light: #ffb627;
  --cornerstone-cream: #fdfcfa;
  --cornerstone-warm-gray: #f5f3f0;
  --cornerstone-text: #2d3748;
  --cornerstone-text-light: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--cornerstone-text);
  background: var(--cornerstone-cream);
}

.heading-font {
  font-family: 'Crimson Pro', serif;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, var(--cornerstone-primary-dark) 0%, var(--cornerstone-primary) 50%, var(--cornerstone-primary-light) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--cornerstone-accent) 0%, var(--cornerstone-accent-light) 100%);
}

.gradient-subtle {
  background: linear-gradient(180deg, var(--cornerstone-cream) 0%, var(--cornerstone-warm-gray) 100%);
}

/* Modern header with backdrop blur */
.header-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation styles */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cornerstone-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Button styles */
.btn-primary {
  background: var(--cornerstone-primary);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--cornerstone-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-accent {
  background: var(--cornerstone-accent);
  color: var(--cornerstone-primary-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-accent:hover {
  background: var(--cornerstone-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border: 2px solid var(--cornerstone-primary);
  color: var(--cornerstone-primary);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--cornerstone-primary);
  color: white;
}

/* Card styles */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Icon container */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cornerstone-primary) 0%, var(--cornerstone-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Stats with accent bar */
.stat-item {
  position: relative;
  padding-left: 1rem;
}

.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cornerstone-accent);
  border-radius: 2px;
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: 'Crimson Pro', serif;
  color: var(--cornerstone-accent);
  opacity: 0.3;
  line-height: 1;
}

/* CTA Section gradient */
.cta-gradient {
  background: linear-gradient(135deg, var(--cornerstone-primary-dark) 0%, var(--cornerstone-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, var(--cornerstone-accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

/* Floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

/* Image treatment */
.image-accent {
  position: relative;
}

.image-accent::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  background: var(--cornerstone-accent);
  border-radius: 12px;
  z-index: -1;
}

/* Smooth animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* Quick links bar */
.quick-links {
  background: var(--cornerstone-primary-dark);
}

.quick-link-item {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.quick-link-item:hover {
  color: var(--cornerstone-accent);
}

/* Badge style */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--cornerstone-accent);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Program card hover effect */
.program-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.program-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 10;
  color: white;
}

/* Divider with accent */
.divider-accent {
  width: 60px;
  height: 4px;
  background: var(--cornerstone-accent);
  border-radius: 2px;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  opacity: 1;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--cornerstone-primary-dark) 0%, var(--cornerstone-primary) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(135deg, var(--cornerstone-accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

/* Staff Card */
.staff-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cornerstone-primary);
}

/* Calendar Event */
.calendar-event {
  border-left: 4px solid var(--cornerstone-accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* News Card */
.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
