/* ═══════════════════════════════════════════════════════════
   FOUNDATIONS ACADEMY — Custom Styles
   Palette: Terracotta (#C0603A) + Sand (#F9F3E8)
   ═══════════════════════════════════════════════════════════ */

/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #F9F3E8;
}

::selection {
  background-color: #C0603A;
  color: #fff;
}

/* ── Primary Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #C0603A;
  color: #fff;
  border: 2px solid #C0603A;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #A84E30;
  border-color: #A84E30;
  box-shadow: 0 12px 40px rgba(192, 96, 58, 0.35);
}

.btn-primary:focus-visible {
  outline: 3px solid #C0603A;
  outline-offset: 2px;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C0603A;
  transition: width 0.3s ease;
}

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

/* ── Hero Geometric Shapes ── */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  top: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 96, 58, 0.06) 0%, transparent 70%);
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  bottom: 5%;
  right: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 192, 136, 0.15) 0%, transparent 70%);
  animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
  top: 20%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: rgba(192, 96, 58, 0.07);
  border-radius: 16px;
  transform: rotate(45deg);
  animation: float-slow 6s ease-in-out infinite;
}

.shape-rect-2 {
  bottom: 25%;
  left: 8%;
  width: 60px;
  height: 60px;
  background: rgba(224, 192, 136, 0.2);
  border-radius: 12px;
  transform: rotate(20deg);
  animation: float-slow 7s ease-in-out infinite reverse;
}

.shape-triangle {
  top: 45%;
  left: 3%;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid rgba(192, 96, 58, 0.06);
  animation: float-slow 9s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}

.shape-triangle {
  animation-name: float-triangle;
}

@keyframes float-triangle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ── Floating Card ── */
.floating-card {
  animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #C0603A, #E06142);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

/* ── Project Cards ── */
.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(192, 96, 58, 0.12);
}

/* ── FAQ ── */
.faq-item {
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.faq-item.active .faq-icon svg {
  stroke: #fff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Form Styles ── */
select option {
  color: #1c1917;
}

select:focus {
  outline: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }

  .shape-circle-2 {
    width: 180px;
    height: 180px;
  }
}
