/* 
  Style.css for Melbourne Peaceful Living
  A modern and responsive CSS file with a Futuristic design system
  and Biomorphic design elements using a Vibrant color scheme
*/

/* === CSS Variables === */
:root {
  /* Primary Colors */
  --primary-color: #5534A5;
  --primary-light: #7B52DB;
  --primary-dark: #3D2A7D;
  
  /* Secondary Colors */
  --secondary-color: #38B6FF;
  --secondary-light: #7DDBFF;
  --secondary-dark: #2186C4;
  
  /* Accent Colors */
  --accent-color: #FF4C97;
  --accent-light: #FF8DC6;
  --accent-dark: #D02E6F;
  
  /* Biomorphic Colors */
  --bio-green: #3DD598;
  --bio-teal: #00CFD5;
  --bio-blue: #00B4D8;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --medium-gray: #ADB5BD;
  --dark-gray: #495057;
  --near-black: #212529;
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-glassmorphic: 0 8px 32px rgba(31, 38, 135, 0.15);
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
  /* Container max width */
  --container-width: 1200px;
  
  /* Z-index levels */
  --z-background: -10;
  --z-normal: 1;
  --z-float: 10;
  --z-sticky: 100;
  --z-modal: 1000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--off-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--near-black);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === Buttons === */
.btn, 
button,
input[type='submit'] {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover, 
button:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:active, 
button:active,
input[type='submit']:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--white);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: var(--white);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  color: var(--white);
}

/* === Header & Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glassmorphic);
  padding: 16px 0;
  transition: all var(--transition-medium);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.logo h1:hover {
  color: var(--primary-light);
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-gray);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-medium);
}

.main-nav a:hover {
  color: var(--primary-color);
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-medium);
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: var(--z-background);
}

.hero-content {
  max-width: 700px;
  color: var(--white);
  position: relative;
  z-index: var(--z-normal);
  animation: fadeInUp 1.5s ease-out;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* === About Section === */
.about {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text {
  animation: fadeIn 1s ease-out;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform var(--transition-medium);
}

.about-image:hover {
  transform: scale(1.02);
}

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

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

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

/* === Suburbs Section (Timeline & Grid) === */
.suburbs {
  background-color: var(--off-white);
  overflow: hidden;
}

.suburbs h2 {
  text-align: center;
}

.suburbs h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.suburbs-timeline {
  max-width: 1000px;
  margin: 0 auto var(--space-xxl);
  position: relative;
}

.suburbs-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-light),
    var(--secondary-color),
    var(--accent-color)
  );
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-marker {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: var(--radius-round);
  z-index: 1;
}

.timeline-item .card {
  width: calc(50% - 40px);
  margin-left: auto;
}

.timeline-item:nth-child(even) .card {
  margin-left: 0;
  margin-right: auto;
}

.suburbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* === Card Component === */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.card-content h4 {
  color: var(--secondary-dark);
  margin-bottom: var(--space-md);
}

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

.resources h2 {
  text-align: center;
}

.resources h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.resource-links {
  margin-top: var(--space-md);
}

.resource-links li {
  margin-bottom: var(--space-sm);
}

.resource-links a {
  display: inline-block;
  padding: var(--space-sm) 0;
  color: var(--secondary-color);
  position: relative;
}

.resource-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  transition: width var(--transition-medium);
}

.resource-links a:hover {
  color: var(--secondary-dark);
}

.resource-links a:hover::after {
  width: 100%;
}

/* === Services Section === */
.services {
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(circle at 10% 30%, rgba(85, 52, 165, 0.05), transparent 50%);
  z-index: var(--z-background);
}

.services h2 {
  text-align: center;
}

.services h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* === Sustainability Section === */
.sustainability {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.sustainability::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(61, 213, 152, 0.1), transparent 70%);
  z-index: var(--z-background);
  border-radius: var(--radius-round);
}

.sustainability-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.sustainability-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

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

.sustainability-text {
  position: relative;
}

/* === Behind the Scenes Section === */
.behind-scenes {
  background-color: var(--off-white);
  position: relative;
}

.behind-scenes::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(56, 182, 255, 0.1), transparent 70%);
  z-index: var(--z-background);
}

.behind-scenes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.behind-scenes-text {
  order: 2;
}

.behind-scenes-image {
  order: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.behind-scenes-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.behind-scenes-image:hover img {
  transform: scale(1.05);
}

/* === Customer Stories Section === */
.stories {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.stories::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(255, 76, 151, 0.1), transparent 70%);
  z-index: var(--z-background);
  border-radius: var(--radius-round);
}

.stories h2 {
  text-align: center;
}

.stories h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.stories .card-image .image-container {
  height: 300px;
  border-radius: var(--radius-round);
  width: 300px;
  margin: var(--space-lg) auto 0;
}

.stories .card-image img {
  border-radius: var(--radius-round);
}

/* === Experts Section (Instructors) === */
.experts {
  background-color: var(--off-white);
}

.experts h2 {
  text-align: center;
}

.experts h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.experts .card-image .image-container {
  height: 300px;
  border-radius: var(--radius-round);
  width: 300px;
  margin: var(--space-lg) auto 0;
}

.experts .card-image img {
  border-radius: var(--radius-round);
}

/* === Contact Section === */
.contact {
  background-color: var(--white);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(85, 52, 165, 0.1), transparent 70%);
  z-index: var(--z-background);
  border-radius: var(--radius-round);
}

.contact h2 {
  text-align: center;
}

.contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info h3,
.contact-form-container h3 {
  margin-bottom: var(--space-lg);
}

.contact-details {
  margin-top: var(--space-lg);
}

.contact-item {
  margin-bottom: var(--space-lg);
}

.contact-item h4 {
  margin-bottom: var(--space-sm);
}

.contact-form-container {
  background-color: var(--off-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--body-font);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(85, 52, 165, 0.2);
}

/* === Footer === */
.site-footer {
  background-color: var(--near-black);
  color: var(--light-gray);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-logo p {
  color: var(--medium-gray);
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-legal ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a,
.footer-legal a,
.footer-social a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-social a:hover {
  color: var(--white);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
}

.footer-social a::before {
  content: '→';
  margin-right: var(--space-sm);
  font-size: 1.2em;
  transition: transform var(--transition-medium);
}

.footer-social a:hover::before {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
}

/* === Success Page === */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--off-white);
}

.success-content {
  max-width: 600px;
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

.success-content p {
  margin-bottom: var(--space-lg);
}

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

.terms-content,
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.terms-content h1,
.privacy-content h1 {
  margin-bottom: var(--space-lg);
}

.terms-content section,
.privacy-content section {
  margin-bottom: var(--space-xl);
}

.terms-content h2,
.privacy-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Read More Links === */
.read-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: var(--space-sm);
  transition: color var(--transition-fast);
}

.read-more::after {
  content: '→';
  margin-left: var(--space-sm);
  transition: transform var(--transition-medium);
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* === Media Queries === */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .about-content,
  .sustainability-content,
  .behind-scenes-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .behind-scenes-text,
  .behind-scenes-image {
    order: 0;
  }
  
  .suburbs-timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-item .card,
  .timeline-item:nth-child(even) .card {
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) 0;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav ul li {
    margin: var(--space-sm) 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .services-grid,
  .suburbs-grid,
  .resources-grid,
  .stories-grid,
  .experts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .btn, 
  button,
  input[type='submit'] {
    width: 100%;
  }
  
  .timeline-item .card {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .stories .card-image .image-container,
  .experts .card-image .image-container {
    width: 250px;
    height: 250px;
  }
}