/*
  style.css
  Theme: Great Ocean Road
  Design System: Minimalist with Curved Grids
  Color Scheme: Complementary (Ocean Blue & Sunset Orange)
  Animation Style: Morphing
*/

/* ---------------------------------- */
/*          1. ROOT VARIABLES         */
/* ---------------------------------- */
:root {
  --primary-color: #0A2463; /* Deep Ocean Blue */
  --secondary-color: #FF8811; /* Sunset Orange */
  --accent-color-dark: #D46F0B;
  
  --background-color: #F8F9FA; /* Off-white */
  --light-background-color: #FFFFFF;
  --dark-background-color: #051438;
  
  --text-color: #333333;
  --light-text-color: #FFFFFF;
  --subtle-text-color: #555555;
  
  --font-header: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  --border-radius: 12px;
  --border-radius-smooth: 50px;
  --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  --header-height: 80px;
}

/* ---------------------------------- */
/*          2. GLOBAL RESETS & BASE STYLES    */
/* ---------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-color-dark);
}

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

ul {
  list-style: none;
}

/* ---------------------------------- */
/*          3. UTILITY CLASSES        */
/* ---------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.content-section {
  padding: 80px 0;
  background-color: var(--light-background-color);
}

.content-section-light {
  padding: 80px 0;
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--subtle-text-color);
}


/* ---------------------------------- */
/*      4. LAYOUT COMPONENTS (HEADER & FOOTER) */
/* ---------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  transition: background-color 0.3s ease;
}

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

.logo {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-header);
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  text-transform: uppercase;
}

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

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

.nav-toggle {
  display: none;
}

.main-footer {
  background-color: var(--dark-background-color);
  color: var(--light-text-color);
  padding: 60px 0 20px;
}

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

.footer-column h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

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

.footer-column a:hover {
  color: var(--light-text-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334;
  font-size: 0.9rem;
  color: #999;
}

/* ---------------------------------- */
/*          5. UI COMPONENTS          */
/* ---------------------------------- */

/* Global Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius-smooth);
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.4s ease;
  letter-spacing: 1px;
}

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

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--accent-color-dark);
  border-radius: var(--border-radius);
}

/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

.card-content h3 {
  margin-bottom: 0.5rem;
}

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

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 136, 17, 0.2);
}

.contact-form label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

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

/* Modal */
.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.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-modal:hover,
.close-modal:focus {
    color: #bbb;
}


/* ---------------------------------- */
/*      6. SECTION-SPECIFIC STYLES    */
/* ---------------------------------- */

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

.hero-content {
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--light-text-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Behind The Scenes - Curved Grid */
.curved-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
}
.grid-item.text-block {
    grid-column: 2 / span 5;
    z-index: 2;
}
.grid-item.image-block {
    grid-column: 6 / span 7;
    grid-row: 1;
}
.image-block img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Innovation Section */
.feature-list {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Testimonials Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: var(--dark-background-color);
    color: var(--light-text-color);
    border-radius: var(--border-radius);
}
.testimonial-slide {
    display: none;
}
.testimonial-slide.active {
    display: block;
}
.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-slide h4 {
    color: var(--secondary-color);
}

/* Events Section */
.events-list {
  max-width: 900px;
  margin: 0 auto;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background-color: var(--light-background-color);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
}
.event-date {
  text-align: center;
  background: var(--secondary-color);
  color: var(--light-text-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-header);
}
.event-date .month {
  display: block;
  font-size: 0.9rem;
}
.event-date .day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

/* Partners Section */
.multi-section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 3rem;
  border-radius: var(--border-radius);
}
.sub-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
.accolades-list {
  list-style-type: '★ ';
  padding-left: 1.5rem;
}
.accolades-list li {
  margin-bottom: 0.5rem;
}
.logo-grid {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.logo-grid img {
  filter: grayscale(100%) brightness(3);
  opacity: 0.8;
  max-height: 40px;
}

/* External Resources Section */
.resource-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.resource-link {
  display: inline-block;
  background: var(--light-background-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-smooth);
  box-shadow: var(--box-shadow);
  font-family: var(--font-header);
  transition: all 0.3s ease;
}
.resource-link:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  transform: translateY(-5px);
}

/* Success Page */
.success-page, .static-page {
  display: flex;
  flex-direction: column;
}
.success-page main, .static-page main {
  flex-grow: 1;
}
.success-container {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.success-container h1 { font-size: 3rem; margin-bottom: 1rem; }
.success-container p { font-size: 1.2rem; margin-bottom: 2rem; }

/* Static Pages (Privacy, Terms) */
.static-page-content {
    padding: calc(var(--header-height) + 40px) 0 40px 0;
}
.static-page-content h1 {
  margin-bottom: 2rem;
}
.static-page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ---------------------------------- */
/*          7. ANIMATIONS             */
/* ---------------------------------- */
[data-scroll-animation] {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-scroll-animation].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- */
/*          8. MEDIA QUERIES          */
/* ---------------------------------- */

@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }

  .curved-grid {
    grid-template-columns: 1fr;
  }
  .grid-item.text-block, .grid-item.image-block {
    grid-column: 1 / -1;
  }
  .grid-item.image-block {
    grid-row: 1;
    margin-bottom: 2rem;
  }
  .multi-section-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--light-background-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
  }

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

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

  .nav-toggle.active .hamburger {
    background: transparent;
  }
  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  
  .feature-list {
      flex-direction: column;
  }
}