/* ==========================================================================
   Legacy Christian School - Template #37 (Education)
   Palette: Rich Burgundy / Warm Linen / Antique Gold
   Prefix: lc-
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --lc-burgundy: #6b2737;
  --lc-burgundy-dark: #4e1c28;
  --lc-linen: #faf6f0;
  --lc-gold: #b8963e;
  --lc-gold-light: #d4b462;
  --lc-text: #2c2c2c;
  --lc-text-light: #5a5a5a;
  --lc-white: #ffffff;
  --lc-dark: #1a1a1a;
  --lc-dark-section: #23202a;
  --lc-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --lc-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --lc-radius: 10px;
  --lc-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --lc-font-heading: 'Playfair Display', Georgia, serif;
  --lc-font-body: 'Raleway', 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--lc-font-body);
  color: var(--lc-text);
  background: var(--lc-linen);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lc-font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- Fluid Typography ---------- */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { font-size: clamp(0.95rem, 1.2vw, 1.1rem); }

/* ---------- Utility ---------- */
.lc-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.lc-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.lc-section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--lc-burgundy);
}

.lc-section-subtitle {
  text-align: center;
  color: var(--lc-text-light);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.lc-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--lc-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: var(--lc-transition);
}

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

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

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

.lc-btn-outline:hover {
  background: var(--lc-white);
  color: var(--lc-burgundy);
}

.lc-btn-gold {
  background: var(--lc-gold);
  color: var(--lc-white);
}

.lc-btn-gold:hover {
  background: var(--lc-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--lc-shadow-lg);
}

/* ---------- Demo Banner ---------- */
.lc-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: var(--lc-burgundy);
  color: var(--lc-white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lc-demo-banner a {
  color: var(--lc-gold);
  text-decoration: underline;
  margin-left: 8px;
}

.lc-demo-banner a:hover {
  color: var(--lc-gold-light);
}

/* ---------- Navigation ---------- */
.lc-nav {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 9000;
  padding: 18px 0;
  transition: var(--lc-transition);
  background: transparent;
}

.lc-nav.scrolled {
  background: var(--lc-burgundy);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.lc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-nav-logo {
  font-family: var(--lc-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lc-white);
  letter-spacing: 0.02em;
}

.lc-nav-logo span {
  color: var(--lc-gold);
}

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

.lc-nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  position: relative;
  transition: var(--lc-transition);
}

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

.lc-nav-links a:hover {
  color: var(--lc-gold);
}

.lc-nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.lc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.lc-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--lc-white);
  border-radius: 2px;
  transition: var(--lc-transition);
}

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

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

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

/* Mobile Slide Panel */
.lc-mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--lc-burgundy-dark);
  z-index: 9500;
  padding: 80px 30px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lc-mobile-panel.open {
  right: 0;
}

.lc-mobile-panel a {
  color: var(--lc-white);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--lc-transition);
}

.lc-mobile-panel a:hover {
  color: var(--lc-gold);
  padding-left: 8px;
}

.lc-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9400;
  opacity: 0;
  visibility: hidden;
  transition: var(--lc-transition);
}

.lc-mobile-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.lc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1523050854058-8df90110c476?w=1920&q=80') center/cover no-repeat;
  color: var(--lc-white);
}

.lc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.55) 0%,
    rgba(107, 39, 55, 0.65) 100%
  );
}

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

.lc-hero-tagline {
  font-family: var(--lc-font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lc-gold);
  margin-bottom: 16px;
}

.lc-hero h1 {
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lc-hero h1 em {
  font-style: italic;
  color: var(--lc-gold);
}

.lc-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Welcome / About (Split) ---------- */
.lc-welcome {
  background: var(--lc-white);
}

.lc-welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lc-welcome-img {
  border-radius: var(--lc-radius);
  overflow: hidden;
  box-shadow: var(--lc-shadow-lg);
}

.lc-welcome-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.lc-welcome-text h2 {
  color: var(--lc-burgundy);
  margin-bottom: 8px;
}

.lc-welcome-text .lc-gold-line {
  width: 60px;
  height: 3px;
  background: var(--lc-gold);
  margin-bottom: 20px;
}

.lc-welcome-text p {
  color: var(--lc-text-light);
  margin-bottom: 14px;
}

.lc-welcome-text .lc-btn {
  margin-top: 10px;
}

/* ---------- Academic Programs (3 cards) ---------- */
.lc-programs {
  background: var(--lc-linen);
}

.lc-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.lc-program-card {
  background: var(--lc-white);
  border-radius: var(--lc-radius);
  overflow: hidden;
  box-shadow: var(--lc-shadow);
  transition: var(--lc-transition);
}

.lc-program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lc-shadow-lg);
}

.lc-program-card-img {
  height: 200px;
  overflow: hidden;
}

.lc-program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lc-program-card:hover .lc-program-card-img img {
  transform: scale(1.05);
}

.lc-program-card-body {
  padding: 28px 24px;
}

.lc-program-card-body h3 {
  color: var(--lc-burgundy);
  margin-bottom: 4px;
}

.lc-program-card-body .lc-grade {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lc-gold);
  margin-bottom: 12px;
  display: block;
}

.lc-program-card-body p {
  color: var(--lc-text-light);
  font-size: 0.95rem;
}

/* ---------- Why Choose Us (Dark bg, 4 features) ---------- */
.lc-why {
  background: var(--lc-dark-section);
  color: var(--lc-white);
}

.lc-why .lc-section-title {
  color: var(--lc-white);
}

.lc-why .lc-section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.lc-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.lc-why-item {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--lc-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--lc-transition);
}

.lc-why-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.lc-why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 150, 62, 0.15);
  border-radius: 50%;
}

.lc-why-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--lc-gold);
}

.lc-why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.lc-why-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ---------- Faculty Spotlight (3 circular photos) ---------- */
.lc-faculty {
  background: var(--lc-white);
}

.lc-faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.lc-faculty-card {
  padding: 20px;
}

.lc-faculty-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--lc-gold);
  box-shadow: var(--lc-shadow);
}

.lc-faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-faculty-card h3 {
  color: var(--lc-burgundy);
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.lc-faculty-card .lc-title {
  font-size: 0.9rem;
  color: var(--lc-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.lc-faculty-card p {
  color: var(--lc-text-light);
  font-size: 0.9rem;
}

/* ---------- Student Life (4-col grid) ---------- */
.lc-student-life {
  background: var(--lc-linen);
}

.lc-life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lc-life-item {
  position: relative;
  border-radius: var(--lc-radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.lc-life-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lc-life-item:hover img {
  transform: scale(1.08);
}

.lc-life-item .lc-life-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(107, 39, 55, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--lc-transition);
}

.lc-life-item:hover .lc-life-overlay {
  opacity: 1;
}

.lc-life-overlay h3 {
  color: var(--lc-white);
  font-size: 1.1rem;
}

/* ---------- Admissions (4 numbered steps) ---------- */
.lc-admissions {
  background: var(--lc-white);
}

.lc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}

.lc-step {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.lc-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lc-burgundy);
  color: var(--lc-white);
  font-family: var(--lc-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.lc-step h3 {
  color: var(--lc-burgundy);
  margin-bottom: 10px;
}

.lc-step p {
  color: var(--lc-text-light);
  font-size: 0.9rem;
}

/* Step connector lines */
.lc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--lc-gold);
}

/* ---------- CTA Section ---------- */
.lc-cta {
  background: var(--lc-burgundy);
  color: var(--lc-white);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.lc-cta h2 {
  margin-bottom: 14px;
}

.lc-cta p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 30px;
}

/* ---------- Footer ---------- */
.lc-footer {
  background: var(--lc-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.lc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.lc-footer-brand h3 {
  font-size: 1.3rem;
  color: var(--lc-white);
  margin-bottom: 12px;
}

.lc-footer-brand h3 span {
  color: var(--lc-gold);
}

.lc-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}

.lc-footer-col h4 {
  color: var(--lc-white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--lc-font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lc-footer-col ul li {
  margin-bottom: 10px;
}

.lc-footer-col ul li a {
  font-size: 0.9rem;
  transition: var(--lc-transition);
}

.lc-footer-col ul li a:hover {
  color: var(--lc-gold);
  padding-left: 4px;
}

.lc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.lc-footer-bottom a {
  color: var(--lc-gold);
}

/* ---------- Scroll Reveal ---------- */
.lc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .lc-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-step:not(:last-child)::after {
    display: none;
  }

  .lc-life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .lc-nav-links {
    display: none;
  }

  .lc-hamburger {
    display: flex;
  }

  .lc-welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lc-programs-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .lc-faculty-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .lc-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lc-footer-brand p {
    max-width: 100%;
  }

  .lc-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .lc-hero h1 {
    font-size: 1.8rem;
  }

  .lc-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .lc-why-grid {
    grid-template-columns: 1fr;
  }

  .lc-steps {
    grid-template-columns: 1fr;
  }

  .lc-life-grid {
    grid-template-columns: 1fr;
  }

  .lc-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .lc-demo-banner {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}
