/* Perth Walks - CSS */

:root {
  /* Color variables */
  --primary-color: #3273dc;
  --primary-dark: #2160c4;
  --primary-light: #5e8ee4;
  --complementary-color: #dc7832;
  --complementary-dark: #c45e21;
  --complementary-light: #e49a5e;
  --text-color: #363636;
  --text-light: #7a7a7a;
  --background-light: #f5f5f5;
  --background-white: #ffffff;
  --shadow-light: rgba(200, 200, 200, 0.3);
  --shadow-dark: rgba(150, 150, 150, 0.2);
  --dark-overlay: rgba(0, 0, 0, 0.5);
  --success-color: #48c774;
  --warning-color: #ffdd57;
  --danger-color: #f14668;

  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Neomorphic variables */
  --neomorphic-radius: 15px;
  --neomorphic-shadow-distance: 8px;
  --neomorphic-blur: 15px;
  --neomorphic-shadow-opacity: 0.1;
  
  /* Animation speeds */
  --transition-fast: 0.2s;
  --transition-medium: 0.4s;
  --transition-slow: 0.8s;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--background-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
}

/* Section Styling */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--background-white);
}

.section:nth-child(even) {
  background-color: var(--background-light);
}

/* Neomorphic Elements */
.neomorphic-card {
  background: var(--background-white);
  border-radius: var(--neomorphic-radius);
  box-shadow: 
    var(--neomorphic-shadow-distance) var(--neomorphic-shadow-distance) var(--neomorphic-blur) var(--shadow-dark),
    calc(-1 * var(--neomorphic-shadow-distance)) calc(-1 * var(--neomorphic-shadow-distance)) var(--neomorphic-blur) var(--background-white);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.neomorphic-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    calc(var(--neomorphic-shadow-distance) + 2px) calc(var(--neomorphic-shadow-distance) + 2px) calc(var(--neomorphic-blur) + 5px) var(--shadow-dark),
    calc(-1 * (var(--neomorphic-shadow-distance) + 2px)) calc(-1 * (var(--neomorphic-shadow-distance) + 2px)) calc(var(--neomorphic-blur) + 5px) var(--background-white);
}

.neomorphic-content {
  background: var(--background-white);
  border-radius: var(--neomorphic-radius);
  padding: 2rem;
  box-shadow: 
    var(--neomorphic-shadow-distance) var(--neomorphic-shadow-distance) var(--neomorphic-blur) var(--shadow-dark),
    calc(-1 * var(--neomorphic-shadow-distance)) calc(-1 * var(--neomorphic-shadow-distance)) var(--neomorphic-blur) var(--background-white);
}

.neomorphic-timeline {
  position: relative;
  margin: 2rem 0;
}

.neomorphic-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 17px;
  height: 100%;
  width: 4px;
  background: var(--primary-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 45px;
  padding-bottom: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--background-white);
  border: 4px solid var(--primary-color);
  box-shadow: 
    3px 3px 8px var(--shadow-dark),
    -3px -3px 8px var(--background-white);
}

/* Buttons */
.neomorphic-button, 
.button.neomorphic-button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--neomorphic-radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  box-shadow: 
    4px 4px 10px rgba(0, 0, 0, 0.2),
    -2px -2px 5px rgba(255, 255, 255, 0.1),
    inset 0 0 0 rgba(255, 255, 255, 0.1);
}

.neomorphic-button:hover, 
.button.neomorphic-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, 0.3),
    -3px -3px 7px rgba(255, 255, 255, 0.1),
    inset 0 0 0 rgba(255, 255, 255, 0.1);
}

.neomorphic-button:active, 
.button.neomorphic-button:active {
  transform: translateY(0);
  box-shadow: 
    2px 2px 5px rgba(0, 0, 0, 0.2),
    -1px -1px 3px rgba(255, 255, 255, 0.1),
    inset 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.neomorphic-button-small, 
.button.neomorphic-button-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Tags */
.neomorphic-tag {
  border-radius: 15px;
  padding: 0.3rem 0.8rem;
  margin: 0.2rem;
  font-weight: 500;
  box-shadow: 
    2px 2px 5px var(--shadow-dark),
    -2px -2px 5px var(--background-white);
}

/* Forms */
.neomorphic-input, 
.input.neomorphic-input {
  background: var(--background-white);
  border: none;
  border-radius: var(--neomorphic-radius);
  padding: 0.75rem 1rem;
  box-shadow: 
    inset 3px 3px 7px var(--shadow-dark),
    inset -3px -3px 7px var(--background-white);
  transition: all var(--transition-fast);
}

.neomorphic-input:focus, 
.input.neomorphic-input:focus {
  outline: none;
  box-shadow: 
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--background-white),
    0 0 0 3px rgba(50, 115, 220, 0.1);
}

.neomorphic-select, 
.select.neomorphic-select {
  position: relative;
  width: 100%;
}

.neomorphic-select select, 
.select.neomorphic-select select {
  background: var(--background-white);
  border: none;
  border-radius: var(--neomorphic-radius);
  padding: 0.75rem 1rem;
  box-shadow: 
    inset 3px 3px 7px var(--shadow-dark),
    inset -3px -3px 7px var(--background-white);
  width: 100%;
  appearance: none;
  transition: all var(--transition-fast);
}

.neomorphic-select:after, 
.select.neomorphic-select:after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.neomorphic-textarea, 
.textarea.neomorphic-textarea {
  background: var(--background-white);
  border: none;
  border-radius: var(--neomorphic-radius);
  padding: 0.75rem 1rem;
  box-shadow: 
    inset 3px 3px 7px var(--shadow-dark),
    inset -3px -3px 7px var(--background-white);
  transition: all var(--transition-fast);
  resize: vertical;
}

.neomorphic-textarea:focus, 
.textarea.neomorphic-textarea:focus {
  outline: none;
  box-shadow: 
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--background-white),
    0 0 0 3px rgba(50, 115, 220, 0.1);
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-medium);
}

.navbar.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
}

.navbar-burger {
  color: var(--text-color);
}

.navbar-menu.is-active {
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #7a7a7a;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform var(--transition-slow);
  z-index: -1;

}

.hero-background:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  color: white;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s forwards 1.2s, bounce 2s infinite 1.2s;
}

.scroll-indicator span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--heading-font);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.arrow-down {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Services Section */
.services-section {
  background-color: var(--background-white);
}

.card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.stats-widget {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* History Section */
.history-section {
  background-color: var(--background-light);
}

/* Mission Section */
.mission-section {
  background-color: var(--background-white);
}

.mission-image {
  margin-bottom: 2rem;
  border-radius: var(--neomorphic-radius);
  overflow: hidden;
  box-shadow: 
    var(--neomorphic-shadow-distance) var(--neomorphic-shadow-distance) var(--neomorphic-blur) var(--shadow-dark),
    calc(-1 * var(--neomorphic-shadow-distance)) calc(-1 * var(--neomorphic-shadow-distance)) var(--neomorphic-blur) var(--background-white);
}

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

.mission-values {
  margin-top: 3rem;
}

.value-item {
  padding: 1.5rem;
  border-radius: var(--neomorphic-radius);
  background: var(--background-white);
  margin-bottom: 1rem;
  box-shadow: 
    var(--neomorphic-shadow-distance) var(--neomorphic-shadow-distance) var(--neomorphic-blur) var(--shadow-dark),
    calc(-1 * var(--neomorphic-shadow-distance)) calc(-1 * var(--neomorphic-shadow-distance)) var(--neomorphic-blur) var(--background-white);
}

.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Community Section */
.community-section {
  background-color: var(--background-light);
}

.community-card {
  margin-bottom: 2rem;
}

.join-community {
  margin-top: 3rem;
}

/* Instructors Section */
.instructors-section {
  background-color: var(--background-white);
}

.instructor-specialties {
  margin-top: 1rem;
}

/* Press Section */
.press-section {
  background-color: var(--background-light);
}

.press-card {
  margin-bottom: 2rem;
}

/* Resources Section */
.resources-section {
  background-color: var(--background-white);
}

.resource-card {
  padding: 2rem;
  height: 100%;
}

.resource-links {
  list-style: none;
  padding: 0;
}

.resource-links li {
  margin-bottom: 1rem;
}

.resource-links a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
  font-weight: 500;
}

.resource-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  background-color: var(--background-light);
}

.contact-info {
  height: 100%;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.map-container {
  border-radius: var(--neomorphic-radius);
  overflow: hidden;
  box-shadow: 
    var(--neomorphic-shadow-distance) var(--neomorphic-shadow-distance) var(--neomorphic-blur) var(--shadow-dark),
    calc(-1 * var(--neomorphic-shadow-distance)) calc(-1 * var(--neomorphic-shadow-distance)) var(--neomorphic-blur) var(--background-white);
}

.map-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 5rem 1.5rem 2rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  margin-right: 1rem;
  font-weight: 500;
}

.social-links a:hover {
  color: white;
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .timeline-item {
    padding-left: 35px;
  }
  
  .timeline-marker {
    width: 28px;
    height: 28px;
  }
}

/* Animation Classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Parallax Effect */
.parallax-scroll {
  transform: translateY(0);
  transition: transform var(--transition-slow);
}

/* IntersectionObserver JavaScript will add these classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Helper Classes */
.has-text-primary {
  color: var(--primary-color) !important;
}

.has-text-complementary {
  color: var(--complementary-color) !important;
}

.has-background-primary {
  background-color: var(--primary-color) !important;
}

.has-background-complementary {
  background-color: var(--complementary-color) !important;
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.has-text-white {
  color: white !important;
}

.mb-6 {
  margin-bottom: 3rem !important;
}

.mt-6 {
  margin-top: 3rem !important;
}

.mt-5 {
  margin-top: 2.5rem !important;
}

.mt-4 {
  margin-top: 2rem !important;
}

/* Make sure images don't overflow */
img {
  max-width: 100%;
}