/* ===== Clear Mind Acads - Main Stylesheet ===== */

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

:root {
  --cream: rgb(253, 252, 240);
  --navy: rgb(45, 46, 77);
  --coral: rgb(255, 107, 107);
  --lavender: rgb(239, 238, 250);
  --gray-purple: rgb(200, 199, 214);
  --teal: rgb(184, 228, 240);
  --green-light: rgb(221, 242, 209);
  --pink-light: rgb(249, 209, 232);
  --dark-accent: rgb(90, 92, 122);
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DIN Next W01 Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--coral);
  color: var(--cream);
  border-color: var(--coral);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--coral);
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 46, 77, 0.3);
}

.btn-white {
  background-color: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(253, 252, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(45, 46, 77, 0.08);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--coral);
  transition: width 0.3s ease;
}

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

.nav-menu a:hover {
  color: var(--coral);
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  color: var(--lavender);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Mission Section --- */
.mission {
  padding: 100px 40px;
  background-color: var(--navy);
  position: relative;
}

.mission-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-content h2 {
  color: var(--cream);
  margin-bottom: 24px;
}

.mission-content p {
  color: var(--gray-purple);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.mission-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform 0.5s ease;
}

.mission-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

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

/* --- Features / Values Section --- */
.features {
  padding: 100px 40px;
  background-color: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--navy);
}

.section-header p {
  color: var(--dark-accent);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--lavender);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

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

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

.feature-card:nth-child(2) {
  background-color: var(--teal);
}

.feature-card:nth-child(3) {
  background-color: var(--green-light);
}

.feature-card:nth-child(4) {
  background-color: var(--pink-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.feature-card p {
  color: var(--dark-accent);
  font-size: 0.95rem;
}

/* --- Services / Programs Section --- */
.services {
  padding: 100px 40px;
  background-color: var(--lavender);
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(45, 46, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(45, 46, 77, 0.15);
}

.service-card-image {
  height: 220px;
  overflow: hidden;
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 28px;
}

.service-card-content h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card-content p {
  color: var(--dark-accent);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* --- Booking Section --- */
.booking {
  padding: 100px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, rgb(60, 62, 100) 100%);
  text-align: center;
}

.booking-inner {
  max-width: 700px;
  margin: 0 auto;
}

.booking h2 {
  color: var(--cream);
  margin-bottom: 20px;
}

.booking p {
  color: var(--gray-purple);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.booking-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.booking-step {
  text-align: center;
  flex: 0 0 150px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--coral);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.booking-step p {
  color: var(--lavender);
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

/* --- Footer --- */
.footer {
  background-color: var(--navy);
  padding: 60px 40px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--gray-purple);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 350px;
}

.footer-brand .logo img {
  height: 50px;
  filter: brightness(10);
}

.footer-links h4 {
  color: var(--cream);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--gray-purple);
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-contact h4 {
  color: var(--cream);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-contact p {
  color: var(--gray-purple);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--coral);
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--teal);
}

.social-bar {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-bar a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(253, 252, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.1rem;
  transition: all 0.3s;
}

.social-bar a:hover {
  background-color: var(--coral);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 252, 240, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--gray-purple);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gray-purple);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--coral);
}

/* --- About Page Specific --- */
.page-hero {
  padding: 160px 40px 80px;
  text-align: center;
  background-color: var(--navy);
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--gray-purple);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.booking-page-content {
  padding: 80px 40px;
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-page-content p {
  font-size: 1.2rem;
  color: var(--dark-accent);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--cream);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission {
    padding: 60px 20px;
  }

  .features {
    padding: 60px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .booking {
    padding: 60px 20px;
  }

  .booking-steps {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-brand .logo {
    display: inline-block;
  }

  .social-bar {
    justify-content: center;
  }

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

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

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

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
