/* Global styles */
body {
  font-family: 'Poppins', 'Nunito', sans-serif;
}

/* Hero section with background image */
.hero-section {
  background-image: url('../img/woodland_dawn.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-attachment: fixed; /* Parallax effect */
}

/* Disable parallax on mobile devices to avoid rendering issues */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Additional fix for tablets and mobile devices */
@media (max-width: 1024px) {
  .hero-section {
    background-image: url('../img/woodland_dawn.jpg') !important;
    background-attachment: scroll !important;
    background-position: center center !important;
  }
}

/* Specific iPad fix */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .hero-section {
    background-image: url('../img/woodland_dawn.jpg') !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: 100% auto !important; /* Force background size */
    background-repeat: no-repeat !important;
  }
}

/* Safari-specific fix for iPads */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    background-attachment: scroll !important;
    background-image: url('../img/woodland_dawn.jpg') !important;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for better text readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2; /* Place content above the overlay */
}

/* Enhanced hero title styling */
.hero-title {
  animation: slideIn 1s ease-out 0.3s forwards;
  transform: translateY(30px);
  opacity: 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
  animation: fadeIn 1s ease-out 0.6s forwards;
  opacity: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Hero animations */
.hero-logo {
  animation: popIn 1s ease-out forwards;
  transform: scale(0.6);
  opacity: 0;
}

.hero-buttons {
  animation: fadeIn 1s ease-out 0.9s forwards;
  opacity: 0;
}

/* Animation keyframes */
@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Quote Carousel Styles */
.quote-carousel {
  perspective: 1000px;
}

.quote-slide {
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}

.quote-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.quote-slide:not(.active) {
  display: none;
}

.quote-dot {
  transition: all 0.3s ease;
}

.quote-dot.active {
  background-color: #8B6C42 !important;
  transform: scale(1.3);
}

/* EYFS Framework Visualization Styles */
.eyfs-tree {
  box-shadow: 0 10px 25px -5px rgba(139, 108, 66, 0.1);
  position: relative;
  overflow: hidden;
}

.eyfs-tree::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238b6c42' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* Tree connector lines animation */
.eyfs-tree .w-px, 
.eyfs-tree .h-px {
  transition: all 0.4s ease;
}

/* Central circle hover effect */
.eyfs-tree .eyfs-trigger[data-target="eyfs-trunk"] {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 5px rgba(162, 196, 164, 0.1);
}

.eyfs-tree .eyfs-trigger[data-target="eyfs-trunk"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px rgba(162, 196, 164, 0.2);
}

/* Area cards styling */
.eyfs-area {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.eyfs-area:hover {
  transform: translateY(-3px);
  border-left-color: #A2C4A4;
}

.eyfs-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.eyfs-content:not(.hidden) {
  max-height: 300px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.3s ease;
}

.eyfs-trigger {
  transition: all 0.3s ease;
}

.eyfs-trigger:hover {
  color: #C45B3A;
}

/* Button hover effects */
.hover-grow {
  transition: all 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .quote-slide,
  .eyfs-area,
  .eyfs-content,
  .hover-grow:hover,
  .eyfs-tree .eyfs-trigger[data-target="eyfs-trunk"]:hover,
  .hero-logo,
  .hero-title,
  .hero-text,
  .hero-buttons {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Speed up animations on mobile for better user experience */
@media (max-width: 768px) {
  .hero-logo {
    animation-duration: 0.7s;
  }
  
  .hero-title {
    animation-duration: 0.7s;
    animation-delay: 0.2s;
  }
  
  .hero-text {
    animation-duration: 0.7s;
    animation-delay: 0.4s;
  }
  
  .hero-buttons {
    animation-duration: 0.7s;
    animation-delay: 0.6s;
  }
}

/* Team profile images styling */
.team-profile {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #A2C4A4;
  max-width: 160px;
  transition: all 0.3s ease;
}

.team-profile:hover {
  border-color: #C45B3A;
  transform: scale(1.05);
}

/* Enhanced dropdown functionality */
nav .group .group-hover\:block {
  transition: opacity 0.2s ease;
  display: none;
  pointer-events: none;
}

nav .group:hover .group-hover\:block,
nav .group .group-hover\:block:hover,
nav .group .group-hover\:block.leaving {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

nav .group .group-hover\:block.leaving {
  display: block !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Add extra padding for dropdown content to ensure there's no gap between trigger and dropdown */
nav .group .group-hover\:block {
  padding-top: 10px;
  margin-top: -10px;
}

/* Create a bigger invisible area to ensure smooth hover */
nav .group {
  position: relative;
}

nav .group::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  z-index: 10;
}

/* Add slightly more padding to dropdown menu items for easier clicking */
nav .group .group-hover\:block a {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Cookie Consent Styles */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  background-color: #F9F2E2;
  border: 2px solid #A2C4A4;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 360px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  padding: 2px;
}

.cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent.bottom-right {
  bottom: 20px;
  right: 20px;
}

.cookie-consent.bottom-left {
  bottom: 20px;
  left: 20px;
}

.cookie-consent-inner {
  position: relative;
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed #8B6C42;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b6c42' fill-opacity='0.06'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cookie-consent::before,
.cookie-consent::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A2C4A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Cpath d='M5 7c0-1.7 1.3-3 3-3s3 1.3 3 3c0-1.7 1.3-3 3-3s3 1.3 3 3c0 1.7-1.3 3-3 3H8c-1.7 0-3-1.3-3-3z'/%3E%3Cpath d='M3 21c0-2.1 0.8-4 2.1-5.4C7 17.7 10.3 19 14 19h1c1.7 0 3-1.3 3-3s-1.3-3-3-3h-1'/%3E%3C/svg%3E");
  opacity: 0.3;
  transform: rotate(45deg);
  pointer-events: none;
}

.cookie-consent::before {
  top: -10px;
  left: -10px;
}

.cookie-consent::after {
  bottom: -15px;
  right: -15px;
  transform: rotate(-45deg);
}

.cookie-message {
  margin-bottom: 14px;
}

.cookie-message p {
  font-size: 14px;
  line-height: 1.5;
  color: #8B6C42;
  margin-bottom: 8px;
}

.cookie-message .learn-more {
  font-size: 13px;
  color: #C45B3A;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.2s ease;
}

.cookie-message .learn-more:hover {
  color: #D4A24C;
}

.cookie-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

.decline-btn {
  background-color: transparent;
  border: 1px solid #8B6C42;
  color: #8B6C42;
}

.decline-btn:hover {
  background-color: #8B6C42;
  color: #F9F2E2;
}

.accept-btn {
  background-color: #C45B3A;
  border: 1px solid #C45B3A;
  color: white;
}

.accept-btn:hover {
  background-color: #D4A24C;
  border-color: #D4A24C;
}

@media (max-width: 480px) {
  .cookie-consent {
    max-width: calc(100% - 40px);
  }
  
  .cookie-actions {
    flex-direction: column;
  }
}

/* Background SVG decorations */
.svg-background {
  position: fixed;
  z-index: -1;
  pointer-events: none; /* Ensures SVGs don't interfere with interaction */
  opacity: 0.25; /* Slightly increased from 0.2 */
  filter: saturate(1.2);
  transition: all 0.5s ease;
}

.svg-bee {
  top: 15%;
  right: 5%;
  width: 80px;
  height: 80px;
  animation: float 8s ease-in-out infinite;
}

.svg-butterfly {
  top: 35%;
  left: 3%;
  width: 100px;
  height: 100px;
  animation: float 10s ease-in-out infinite, wiggle 3s ease-in-out infinite;
}

.svg-owl {
  bottom: 20%;
  right: 8%;
  width: 90px;
  height: 90px;
  animation: float 12s ease-in-out infinite;
}

.svg-leaves {
  bottom: 10%;
  left: 6%;
  width: 120px;
  height: 120px;
  animation: spin 25s linear infinite;
  opacity: 0.15;
}

.svg-acorn {
  top: 60%;
  right: 15%;
  width: 50px;
  height: 50px;
  animation: float 9s ease-in-out infinite;
}

.svg-fox {
  bottom: 5%;
  left: 20%;
  width: 70px;
  height: 70px;
  opacity: 0.25;
}

.svg-birds {
  top: 12%;
  left: 15%;
  width: 60px;
  height: 60px;
  animation: float 15s ease-in-out infinite;
}

/* SVG animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments for SVGs */
@media (max-width: 768px) {
  .svg-background {
    opacity: 0.15; /* Even more subtle on mobile */
    transform: scale(0.8);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .svg-background {
    animation: none !important;
    transition: none !important;
  }
}

/* Semi-transparent sections for SVG visibility */
main section {
  position: relative;
  z-index: 1;
}

main section.bg-green\/10,
main section.bg-green\/20,
main section.bg-brown\/10,
main section.bg-mustard\/20 {
  background-color: rgba(162, 196, 164, 0.1) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

main section.bg-cream {
  background-color: rgba(249, 242, 226, 0.85) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

main section.bg-white {
  background-color: rgba(255, 255, 255, 0.85) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  main section.bg-cream {
    background-color: rgba(249, 242, 226, 0.95) !important;
  }
  
  main section.bg-white {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  main section.bg-green\/10,
  main section.bg-green\/20,
  main section.bg-brown\/10,
  main section.bg-mustard\/20 {
    background-color: rgba(162, 196, 164, 0.2) !important;
  }
}

/* Keep header and footer solid */
header, footer {
  position: relative;
  z-index: 10;
}

/* Ensure cards and content remain readable */
.bg-white, .bg-white\/50, .bg-white\/70 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.bg-green\/10, .bg-green\/20 {
  background-color: rgba(162, 196, 164, 0.15) !important;
}

/* Custom CSS for Gradients (from forest-theme.md) */
.deep-forest-gradient-bg {
  background: linear-gradient(135deg, #1B4332 0%, #40916C 100%);
}
.earth-gradient-bg {
  background: linear-gradient(135deg, #D4A373 0%, #E9EDC9 100%);
}
.woodland-gradient-bg {
  background: linear-gradient(135deg, #1B4332 0%, #D4A373 100%);
} 