/*
  style.css
  Theme: Bush Tucker – Traditional Aboriginal Cuisine
  Design System: Minimalist, Block Structure
  Color Scheme: Triad (Earthy Ochre, Deep Green, Muted Berry)
  Animation: Micro-animations
  Fonts: Montserrat (Headings), Merriweather (Body)
*/

/* ---------------------------------- */
/*          1. CSS Variables          */
/* ---------------------------------- */

:root {
  /* Color Palette (Triad) */
  --color-primary: #D9A24B; /* Ochre Yellow */
  --color-secondary: #4B8C7B; /* Eucalyptus Green */
  --color-accent: #8C4B82; /* Muted Berry Purple */
  
  /* Neutral Tones */
  --color-text-dark: #222222;
  --color-text-light: #FFFFFF;
  --color-background-light: #F8F6F2; /* Warm off-white */
  --color-background-dark: #2a2a2a;
  --color-border: #e0e0e0;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing & Sizing */
  --spacing-unit: 8px;
  --header-height: 80px;
  --border-radius: 6px;
  --container-width: 1200px;
  --container-padding: calc(var(--spacing-unit) * 3); /* 24px */
  
  /* Transitions & Shadows */
  --transition-speed: 0.3s ease;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------- */
/*      2. Global Styles & Reset      */
/* ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-background-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

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

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.content-section,
.content-section-alt {
  padding: calc(var(--spacing-unit) * 10) 0;
}

.content-section-alt {
  background-color: #FFFFFF;
}

.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto calc(var(--spacing-unit) * 6) auto;
  font-size: 1.1rem;
  color: #555;
}

/* ---------------------------------- */
/*       3. Header & Navigation       */
/* ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: background-color var(--transition-speed);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-text-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-dark);
  position: relative;
  padding: var(--spacing-unit) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 2px;
  background: var(--color-text-dark);
  transition: all 0.25s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--color-text-dark);
  transition: all 0.25s;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* ---------------------------------- */
/*        4. Reusable Components      */
/* ---------------------------------- */

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text-light);
  background-color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.card-image {
  height: 220px;
  width: 100%;
  overflow: hidden;
}

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

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

.card-content {
  padding: calc(var(--spacing-unit) * 3);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: var(--spacing-unit);
}

.card-content p {
  margin-bottom: auto; /* Pushes meta/links to bottom */
}

.card-meta {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: var(--spacing-unit);
}

.read-more {
  display: inline-block;
  margin-top: calc(var(--spacing-unit) * 2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
}

.read-more:hover {
  text-decoration: underline;
}

/* ---------------------------------- */
/*        5. Section Styles           */
/* ---------------------------------- */

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text-light);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

/* --- History/Timeline Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--color-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--color-primary);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--spacing-unit) * 2);
  opacity: 1;
  transition: opacity var(--transition-speed);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h3 {
  color: var(--color-text-light);
  margin: 0;
  transform: translateY(10px);
  transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

/* --- Media Section --- */
.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}
.video-wrapper {
    flex: 1 1 500px;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.media-description {
    flex: 1 1 400px;
}


/* --- Events Calendar --- */
.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  background-color: #fff;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.event-date {
  flex-shrink: 0;
  text-align: center;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: var(--spacing-unit);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-details h3 { margin-bottom: var(--spacing-unit); }
.event-details p { margin-bottom: var(--spacing-unit); }
.event-location { font-style: italic; color: #666; font-size: 0.9rem; }


/* --- Awards Section --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    text-align: center;
}

.award-item h3 {
    margin: var(--spacing-unit) 0;
    color: var(--color-secondary);
}

/* --- Resources Section --- */
.resource-list {
    display: grid;
    gap: calc(var(--spacing-unit) * 3);
    max-width: 900px;
    margin: 0 auto;
}
.resource-link {
    display: block;
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed);
    border-left: 5px solid var(--color-secondary);
}
.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--color-primary);
}
.resource-link h3 { color: var(--color-text-dark); margin-bottom: var(--spacing-unit); }
.resource-link p { margin: 0; color: #555; }


/* --- Contact Section --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  position: relative;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fff;
  transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.contact-form label {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #888;
  pointer-events: none;
  transition: all var(--transition-speed);
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  background-color: var(--color-background-light);
  padding: 0 4px;
}

.contact-form button {
  width: 100%;
}

/* ---------------------------------- */
/*         6. Footer Styles           */
/* ---------------------------------- */

.site-footer {
  background-color: var(--color-background-dark);
  color: #ccc;
  padding: calc(var(--spacing-unit) * 8) 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-column h3 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-unit) * 2;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--spacing-unit);
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: calc(var(--spacing-unit) * 3);
  text-align: center;
  font-size: 0.8rem;
}

/* ---------------------------------- */
/*        7. Modal & Animations       */
/* ---------------------------------- */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--border-radius);
  max-width: 800px;
  position: relative;
  animation: modal-fade-in 0.5s;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: var(--color-text-dark);
}

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

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

/* ---------------------------------- */
/*      8. Standalone Pages           */
/* ---------------------------------- */

.legal-page-content,
.about-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.legal-page-content .container,
.about-page-content .container {
    max-width: 800px;
}

.legal-page-content h1,
.about-page-content h1 {
    margin-bottom: 30px;
}

.legal-page-content h2,
.about-page-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* ---------------------------------- */
/*       9. Responsive Design         */
/* ---------------------------------- */

@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px !important;
    }
}


@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2, .section-title { font-size: 2rem; }
  .hero h1 { font-size: 3rem; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--color-background-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active .hamburger {
    background-color: transparent;
  }
  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
}