/* Feeling Like Chocolate - Global Styles */

/* Color Palette Definition */
:root {
  /* FLC Palette - Enhanced for visual appeal */
  --clr-flc-brown: #8B4513; /* Approx Terracotta */
  --clr-flc-maroon: #A52A2A; /* Approx Deep Raspberry */
  --clr-flc-gold: #DAA520; /* Approx Ochre */
  --clr-flc-green: #2E8B57; /* Approx Forest Green */
  --clr-flc-teal: #008080; /* Approx Teal */

  /* Role Assignment */
  --clr-primary: var(--clr-flc-brown);
  --clr-secondary: var(--clr-flc-gold);
  --clr-accent: var(--clr-flc-maroon);

  /* Text & Background */
  --clr-text-dark: #2D1C00; /* Dark Brown derived */
  --clr-text-light: #FFFFFF;
  --clr-bg-white: #FFFFFF;
  --clr-bg-offwhite: #FFF9F0; /* Warm off-white from guideline */
  
  /* Animation Durations */
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;
  
  /* Shadows */
  --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

/* Brand Fonts (Requires @font-face if not web-safe/hosted) */
/* @font-face declarations would be needed to load Candice and TT Chocolate fonts */
body {
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 400;
  background-color: var(--clr-bg-offwhite);
  color: var(--clr-text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium) ease, transform var(--transition-medium) ease;
}

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

/* Staggered animations for multiple elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Enhanced animations for specific elements */
.hero-text h1.animated {
  animation: colorShift 8s infinite alternate;
}

.feature-icon {
  transition: transform var(--transition-medium) ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

@keyframes colorShift {
  0% { color: var(--clr-primary); }
  50% { color: var(--clr-accent); }
  100% { color: var(--clr-primary); }
}

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

h1, h2 {
  font-family: 'Candice', cursive;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3, h4, strong, b {
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  color: var(--clr-primary);
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
  transform-origin: left;
  animation: expandLine 1.5s ease-out forwards;
}

@keyframes expandLine {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

h2 {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--clr-secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

h3 {
  font-size: 1.5rem;
  color: var(--clr-primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--clr-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--clr-accent);
}

a:focus {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* Layout Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  padding: 1rem 0;
  background-color: var(--clr-bg-white);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/10.svg');
  background-size: 300px;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.03;
  z-index: 0;
}

.site-header .container {
  position: relative;
  z-index: 2;
}

.site-header:hover {
  box-shadow: var(--shadow-large);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-family: 'Candice', cursive;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--clr-primary);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: transform var(--transition-medium) ease;
}

.logo a:hover {
  transform: scale(1.05);
}

.nav-toggle {
  display: none; /* Hide on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  color: var(--clr-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  color: var(--clr-accent);
}

.nav-link.active {
  color: var(--clr-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--clr-accent);
}

/* Main Content */
main {
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
  position: relative;
  padding: 3rem 0;
}

/* New Section Styles */
.hero-section {
  padding: 5rem 0;
  background-color: var(--clr-bg-offwhite);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/3.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  background-blend-mode: soft-light;
  animation: subtleShift 30s infinite alternate ease-in-out;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image: url('../images/patterns/5.svg');
  background-size: 300px;
  background-position: top right;
  opacity: 0.1;
  z-index: 0;
  background-blend-mode: multiply;
}

@keyframes subtleShift {
  0% { background-position: center; }
  100% { background-position: center left; }
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 1;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coach-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  transform: rotate(2deg);
  transition: transform var(--transition-medium) ease;
  border: 5px solid var(--clr-bg-white);
}

.coach-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
}

.hero-section .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero-cta {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    text-align: center;
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
}

.what-we-do-section {
  padding: 5rem 0;
  background-color: var(--clr-bg-white);
  position: relative;
  overflow: hidden;
}

.what-we-do-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/11.svg');
  background-size: 500px;
  background-position: bottom left;
  opacity: 0.05;
  z-index: 0;
  animation: subtleRotate 40s infinite linear;
}

.what-we-do-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/patterns/7.svg');
  background-size: 400px;
  background-position: top right;
  opacity: 0.04;
  z-index: 0;
}

@keyframes subtleRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background-color: var(--clr-bg-offwhite);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(218,165,32,0.1) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  z-index: -1;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  border-bottom: 3px solid var(--clr-secondary);
}

.feature-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.feature-item h3 {
  transition: color var(--transition-medium) ease;
}

.feature-item:hover h3 {
  color: var(--clr-accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.featured-books-section {
  padding: 5rem 0;
  background-color: var(--clr-bg-offwhite);
  position: relative;
}

.featured-books-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/12.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  background-blend-mode: multiply;
}

.featured-books-section .container {
  position: relative;
  z-index: 1;
}

.more-about-section {
  padding: 5rem 0;
  background-color: var(--clr-bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.more-about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/9.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.more-about-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* About Page Styles */
.about-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/7.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
  mix-blend-mode: multiply;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.team-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--clr-bg-white);
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/2.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}

.team-section .container {
  position: relative;
  z-index: 1;
}

/* Contact Page Styles */
.contact-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/13.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-small);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-small);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  z-index: -1;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--clr-accent);
  color: var(--clr-text-light);
}

.btn-secondary {
  background-color: var(--clr-secondary);
  color: var(--clr-text-dark);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--clr-accent);
  color: var(--clr-text-light);
}

/* Footer */
.site-footer {
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  padding: 2rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/1.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  mix-blend-mode: overlay;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-secondary), var(--clr-accent), var(--clr-secondary));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo a {
  font-family: 'Candice', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clr-secondary);
  text-decoration: none;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: var(--clr-secondary);
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium) ease;
}

.footer-social a:hover {
  background-color: var(--clr-accent);
  color: var(--clr-text-light);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.site-footer a {
  color: var(--clr-secondary);
  transition: all var(--transition-medium) ease;
}

.site-footer a:hover, .site-footer a:focus {
  color: var(--clr-text-light);
  text-decoration: underline;
}

.cbi-link {
  font-weight: 700;
}

/* Shop Page Styles */
.shop-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.shop-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/8.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.shop-section .container {
  position: relative;
  z-index: 1;
}

.products-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--clr-bg-white);
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/11.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
  mix-blend-mode: multiply;
}

.products-section .container {
  position: relative;
  z-index: 1;
}

/* Featured Video Section */
.featured-video-section {
  padding: 5rem 0;
  background-color: var(--clr-bg-white);
  position: relative;
  overflow: hidden;
}

.featured-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/4.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  background-blend-mode: soft-light;
  animation: subtlePulse 15s infinite alternate ease-in-out;
}

@keyframes subtlePulse {
  0% { opacity: 0.03; }
  50% { opacity: 0.06; }
  100% { opacity: 0.03; }
}

.featured-video-section .container {
  position: relative;
  z-index: 1;
}

.featured-video-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 30%;
  background-image: url('../images/patterns/6.svg');
  background-size: 300px;
  background-position: bottom right;
  opacity: 0.04;
  z-index: 0;
  transform-origin: bottom right;
  animation: subtleRotate 40s infinite linear;
}

.video-container {
  max-width: 800px;
  margin: 3rem auto;
  position: relative;
}

.video-thumbnail {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease, filter var(--transition-medium) ease;
  border: 2px solid transparent;
}

.video-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(139, 69, 19, 0.2), rgba(218, 165, 32, 0.2));
  opacity: 0;
  z-index: 1;
  transition: opacity var(--transition-medium) ease;
}

.video-thumbnail:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-large);
  border: 2px solid var(--clr-secondary);
  filter: brightness(1.05);
}

.video-thumbnail:hover::before {
  opacity: 1;
}

.thumbnail-image {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(139, 69, 19, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-medium) ease;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.3);
  animation: pulse-ring 2s infinite;
}

.play-button svg {
  transition: transform var(--transition-medium) ease;
  animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.video-thumbnail:hover .play-button svg {
  animation: none;
  transform: scale(1.2);
}

.play-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--clr-text-light);
  margin-left: 5px;
  transition: transform var(--transition-medium) ease;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(218, 165, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0);
  }
}

.video-thumbnail:hover .play-button,
.video-thumbnail:focus .play-button {
  background-color: rgba(165, 42, 42, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail:hover .play-button::after,
.video-thumbnail:focus .play-button::after {
  transform: scale(1.2);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform var(--transition-medium) ease, opacity var(--transition-medium) ease;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.watch-text {
  color: var(--clr-text-light);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  padding: 0 10px;
}

.watch-text::before,
.watch-text::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 0;
  background-color: var(--clr-secondary);
  transition: width var(--transition-slow) ease;
}

.watch-text::before {
  left: 0;
  top: 50%;
  transform: translateX(-100%);
}

.watch-text::after {
  right: 0;
  top: 50%;
  transform: translateX(100%);
}

.video-thumbnail:hover .video-overlay,
.video-thumbnail:focus .video-overlay {
  transform: translateY(0);
}

.video-thumbnail:hover .watch-text::before,
.video-thumbnail:hover .watch-text::after,
.video-thumbnail:focus .watch-text::before,
.video-thumbnail:focus .watch-text::after {
  width: 20px;
}

.video-thumbnail:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

/* Add keyboard support */
.video-thumbnail {
  cursor: pointer;
}

.video-cta {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.video-cta p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-primary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.video-cta p::before {
  content: '\201C';
  font-family: 'Candice', cursive;
  position: absolute;
  left: -10px;
  top: -15px;
  font-size: 2.5rem;
  color: var(--clr-secondary);
  opacity: 0.5;
}

.video-cta p::after {
  content: '\201D';
  font-family: 'Candice', cursive;
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 2.5rem;
  color: var(--clr-secondary);
  opacity: 0.5;
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium) ease, visibility var(--transition-medium) ease;
}

.video-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/2.svg');
  background-size: 500px;
  background-position: center;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  transform: scale(0.9);
  transition: transform var(--transition-medium) ease;
  border: 3px solid var(--clr-primary);
}

.video-modal.active .video-modal-content {
  transform: scale(1);
  animation: modalPulse 0.5s ease-out;
}

@keyframes modalPulse {
  0% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(218, 165, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0); }
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-small);
}

.video-modal-close:hover {
  background-color: var(--clr-accent);
  transform: rotate(90deg);
  box-shadow: var(--shadow-medium);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-primary);
  opacity: 0.1;
  z-index: 0;
  animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
  0% { opacity: 0.1; }
  100% { opacity: 0; }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.video-modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
}

body.modal-open {
  overflow: hidden;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.img-placeholder {
  background-color: var(--clr-secondary);
  height: 200px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.books-grid, .team-grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Book Items Styling */
.section-header {
  margin-bottom: 2.5rem;
}

.section-intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  color: var(--clr-text-dark);
}

.book-item {
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-medium) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.book-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/14.svg');
  background-size: 200px;
  background-position: bottom right;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.book-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.book-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium) ease;
}

.book-item:hover::after {
  transform: scaleX(1);
}

.book-cover-wrapper {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.book-item-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-item:hover .book-item-image {
  transform: scale(1.05);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
}

.book-category {
  background-color: var(--clr-secondary);
  color: var(--clr-text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

.book-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 3px solid var(--clr-secondary);
  position: relative;
  z-index: 1;
}

.book-item h3 {
  margin-bottom: 0.5rem;
  text-align: left;
  padding: 0;
}

.book-title-link {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  position: relative;
}

.book-title-link:hover {
  color: var(--clr-accent);
}

.book-author {
  font-size: 0.9rem;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.book-excerpt {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.books-cta {
  margin-top: 3rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'TT Chocolate', sans-serif;
}

input:focus, textarea:focus {
  outline: 2px solid var(--clr-primary);
  border-color: var(--clr-primary);
}

.submit-btn {
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover, .submit-btn:focus {
  background-color: var(--clr-accent);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links.show, .nav-links.active {
    display: flex;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .subtitle {
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .section-intro {
    font-size: 1.1rem;
  }

  .books-grid, .team-grid, .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .book-item-image {
    height: 220px;
  }
  
  .book-content {
    padding: 1rem;
  }
  
  .book-excerpt {
    font-size: 0.9rem;
  }
  
  .book-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .books-cta {
    margin-top: 2rem;
  }
}


/* SVG Pattern Backgrounds for Homepage Sections */
.svg-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-repeat: repeat;
  background-size: 320px auto;
  animation: svgFloat 18s ease-in-out infinite alternate;
}
.hero-section { position: relative; overflow: hidden; }
.svg-bg-hero { background-image: url('../images/patterns/1.svg'); animation-delay: 0s; }
.what-we-do-section { position: relative; overflow: hidden; }
.svg-bg-whatwedo { background-image: url('../images/patterns/3.svg'); animation-delay: 2s; }
.featured-books-section { position: relative; overflow: hidden; }
.svg-bg-books { background-image: url('../images/patterns/5.svg'); animation-delay: 4s; }
.featured-video-section { position: relative; overflow: hidden; }
.svg-bg-video { background-image: url('../images/patterns/7.svg'); animation-delay: 6s; }
.more-about-section { position: relative; overflow: hidden; }
.svg-bg-moreabout { background-image: url('../images/patterns/9.svg'); animation-delay: 8s; }
@keyframes svgFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}
/* Micro-animations for playful effect */
.hero-image img.coach-image {
  animation: float 4s ease-in-out infinite;
}
.feature-icon {
  animation: wiggle 2.5s infinite alternate;
}
@keyframes wiggle {
  0% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.08); }
  100% { transform: rotate(-3deg) scale(1); }
}
.books-grid .book-item {
  transition: box-shadow 0.3s, transform 0.3s;
}
.books-grid .book-item:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-8px) scale(1.03);
}
.video-thumbnail {
  transition: box-shadow 0.3s, transform 0.3s;
}
.video-thumbnail:focus, .video-thumbnail:hover {
  box-shadow: var(--shadow-large);
  transform: scale(1.04);
}
.video-thumbnail:hover::before {
  opacity: 1;
}

.thumbnail-image {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(139, 69, 19, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-medium) ease;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.3);
  animation: pulse-ring 2s infinite;
}

.play-button svg {
  transition: transform var(--transition-medium) ease;
  animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.video-thumbnail:hover .play-button svg {
  animation: none;
  transform: scale(1.2);
}

.play-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--clr-text-light);
  margin-left: 5px;
  transition: transform var(--transition-medium) ease;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(218, 165, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(218, 165, 32, 0);
  }
}

.video-thumbnail:hover .play-button,
.video-thumbnail:focus .play-button {
  background-color: rgba(165, 42, 42, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail:hover .play-button::after,
.video-thumbnail:focus .play-button::after {
  transform: scale(1.2);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform var(--transition-medium) ease, opacity var(--transition-medium) ease;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.watch-text {
  color: var(--clr-text-light);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  padding: 0 10px;
}

.watch-text::before,
.watch-text::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 0;
  background-color: var(--clr-secondary);
  transition: width var(--transition-slow) ease;
}

.watch-text::before {
  left: 0;
  top: 50%;
  transform: translateX(-100%);
}

.watch-text::after {
  right: 0;
  top: 50%;
  transform: translateX(100%);
}

.video-thumbnail:hover .video-overlay,
.video-thumbnail:focus .video-overlay {
  transform: translateY(0);
}

.video-thumbnail:hover .watch-text::before,
.video-thumbnail:hover .watch-text::after,
.video-thumbnail:focus .watch-text::before,
.video-thumbnail:focus .watch-text::after {
  width: 20px;
}

.video-thumbnail:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

/* Add keyboard support */
.video-thumbnail {
  cursor: pointer;
}

.video-cta {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.video-cta p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-primary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.video-cta p::before {
  content: '\201C';
  font-family: 'Candice', cursive;
  position: absolute;
  left: -10px;
  top: -15px;
  font-size: 2.5rem;
  color: var(--clr-secondary);
  opacity: 0.5;
}

.video-cta p::after {
  content: '\201D';
  font-family: 'Candice', cursive;
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 2.5rem;
  color: var(--clr-secondary);
  opacity: 0.5;
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium) ease, visibility var(--transition-medium) ease;
}

.video-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/2.svg');
  background-size: 500px;
  background-position: center;
  opacity: 0.03;
  mix-blend-mode: overlay;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  transform: scale(0.9);
  transition: transform var(--transition-medium) ease;
  border: 3px solid var(--clr-primary);
}

.video-modal.active .video-modal-content {
  transform: scale(1);
  animation: modalPulse 0.5s ease-out;
}

@keyframes modalPulse {
  0% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(218, 165, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0); }
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-small);
}

.video-modal-close:hover {
  background-color: var(--clr-accent);
  transform: rotate(90deg);
  box-shadow: var(--shadow-medium);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-primary);
  opacity: 0.1;
  z-index: 0;
  animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
  0% { opacity: 0.1; }
  100% { opacity: 0; }
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.video-modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary), var(--clr-accent));
}

body.modal-open {
  overflow: hidden;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.img-placeholder {
  background-color: var(--clr-secondary);
  height: 200px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.books-grid, .team-grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Book Items Styling */
.section-header {
  margin-bottom: 2.5rem;
}

.section-intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  color: var(--clr-text-dark);
}

.book-item {
  background-color: var(--clr-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-medium) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.book-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/patterns/14.svg');
  background-size: 200px;
  background-position: bottom right;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
  mix-blend-mode: soft-light;
}

.book-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.book-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium) ease;
}

.book-item:hover::after {
  transform: scaleX(1);
}

.book-cover-wrapper {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.book-item-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-item:hover .book-item-image {
  transform: scale(1.05);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: flex-start;
}

.book-category {
  background-color: var(--clr-secondary);
  color: var(--clr-text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
}

.book-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 3px solid var(--clr-secondary);
  position: relative;
  z-index: 1;
}

.book-item h3 {
  margin-bottom: 0.5rem;
  text-align: left;
  padding: 0;
}

.book-title-link {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  position: relative;
}

.book-title-link:hover {
  color: var(--clr-accent);
}

.book-author {
  font-size: 0.9rem;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.book-excerpt {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.books-cta {
  margin-top: 3rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'TT Chocolate', sans-serif;
}

input:focus, textarea:focus {
  outline: 2px solid var(--clr-primary);
  border-color: var(--clr-primary);
}

.submit-btn {
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'TT Chocolate', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover, .submit-btn:focus {
  background-color: var(--clr-accent);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links.show, .nav-links.active {
    display: flex;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .subtitle {
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .section-intro {
    font-size: 1.1rem;
  }

  .books-grid, .team-grid, .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .book-item-image {
    height: 220px;
  }
  
  .book-content {
    padding: 1rem;
  }
  
  .book-excerpt {
    font-size: 0.9rem;
  }
  
  .book-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .books-cta {
    margin-top: 2rem;
  }
}

