/*
================================================
  Australia's Hidden Gems - CSS File
  Version: 1.0
  Author: AI Assistant
================================================
*/

/* 
TABLE OF CONTENTS
------------------
1.  :root - CSS Variables
2.  Global Styles & Resets
3.  Utility Classes
4.  Header & Navigation
5.  Hero Section
6.  Section Styles
7.  Component Styles
    - Buttons
    - Cards
    - Forms
    - Timeline
    - FAQ Accordion
    - Gallery
    - Resources
8.  Footer
9.  Special Page Styles (Success, Privacy)
10. Animation & Transitions
11. Responsive Design (Media Queries)
------------------
*/

/* 1. :root - CSS Variables
--------------------------------------------- */
:root {
    /* Color Palette (Triadic - Ocean, Sunset, Sand) */
    --primary-color: #0077B6;   /* Deep Ocean Blue */
    --secondary-color: #F77F00; /* Vibrant Sunset Orange */
    --accent-color: #FCBF49;    /* Warm Sand Yellow */
    --primary-darker: #005A8D;
    
    /* Text & Background Colors */
    --text-color: #212529;      /* Dark Gray for readability */
    --text-color-light: #495057;
    --white-color: #FFFFFF;
    --light-text-color: #F8F9FA;
    --bg-color: #FFFFFF;
    --light-bg-color: #FFFBEF; /* Very light cream/sand */
    --border-color: #dee2e6;

    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 8px 24px rgba(21, 21, 21, 0.08);
    --box-shadow-hover: 0 12px 30px rgba(21, 21, 21, 0.12);

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
    --transition-bouncy: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 2. Global Styles & Resets
--------------------------------------------- */
*,
*::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(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

ul {
    list-style-type: none;
}

/* 3. Utility Classes
--------------------------------------------- */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.text-center { text-align: center; }
.is-two-thirds { max-width: 66.66%; }
.is-two-thirds-centered { max-width: 66.66%; margin-left: auto; margin-right: auto; }

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    padding: 0.75rem;
    flex: 1;
}

.is-vcentered { align-items: center; }

.has-gradient-background {
    background: linear-gradient(135deg, var(--light-bg-color) 0%, #ffffff 100%);
    color: var(--text-color);
}

/* 4. Header & Navigation
--------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: 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.05);
    padding: 0.5rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white-color);
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.site-header.scrolled .logo {
    color: var(--primary-darker);
    text-shadow: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--white-color);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.site-header.scrolled .main-nav a {
    color: var(--text-color);
    text-shadow: none;
}

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

.main-nav a:hover::after {
    transform: scaleX(1);
}

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

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: var(--transition-smooth);
}
.site-header.scrolled .burger-menu span {
    background-color: var(--text-color);
}


/* 5. Hero Section
--------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    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(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4.5rem;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* 6. Section Styles
--------------------------------------------- */
#about .image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
#about h3 {
    color: var(--primary-darker);
}

/* 7. Component Styles
--------------------------------------------- */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bouncy);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4);
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--box-shadow-hover);
    text-decoration: none;
}

.btn-primary:hover {
    color: var(--white-color);
}

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

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

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

.card-image {
    width: 100%;
    height: 250px;
    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.1);
}

.card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.card-content h3 {
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

.card-content p:last-child {
    margin-bottom: 0;
}
.card-content strong {
    color: var(--text-color);
}

/* Forms */
.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-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(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}
.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0 0.25rem;
    background-color: var(--bg-color);
    color: var(--text-color-light);
    pointer-events: none;
    transition: all 0.2s ease;
}
.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: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: transparent;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* FAQ */
.faq-container { max-width: 800px; }
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    color: var(--primary-darker);
}
.faq-question::after {
    content: '+';
    font-family: var(--font-heading);
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}
.faq-question.active::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
    background-color: var(--light-bg-color);
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Resources */
.resources-list { max-width: 800px; }
.resource-item {
    background: var(--bg-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    transition: var(--transition-smooth);
}
.resource-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}
.resource-item h4 a {
    text-decoration: none;
    color: var(--primary-darker);
}
.resource-item h4 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 8. Footer
--------------------------------------------- */
.site-footer {
    background-color: var(--text-color);
    color: var(--light-text-color);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}
.footer-col p, .footer-col ul li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-col a:hover {
    color: var(--white-color);
    text-decoration: none;
    padding-left: 5px;
}
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
}
.map-container iframe { filter: grayscale(1) invert(0.9); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 9. Special Page Styles
--------------------------------------------- */
/* Success Page */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: var(--white-color);
}
.success-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.success-content p {
    color: var(--light-text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-content .btn {
    background: var(--accent-color);
    color: var(--text-color);
}

/* Privacy & Terms Pages */
body.legal-page main {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 4rem;
}
.legal-page h1 { color: var(--primary-darker); }

/* 10. Animation & Transitions
--------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}
.fade-in { transform: translateY(30px); }
.fade-in-up { transform: translateY(50px); }
.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}
.delay-1 { --delay: 0.2s; }
.delay-2 { --delay: 0.4s; }

/* 11. Responsive Design
--------------------------------------------- */
@media (max-width: 992px) {
    .is-two-thirds, .is-two-thirds-centered {
        max-width: 90%;
    }
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 20px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-section h1 { font-size: 3.5rem; }

    .section-padding { padding: 4rem 0; }
    
    .columns { flex-direction: column; }
    .is-two-thirds, .is-two-thirds-centered { max-width: 100%; }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .main-nav.active { display: flex; }
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .main-nav a, .site-header.scrolled .main-nav a {
        font-size: 1.5rem;
        color: var(--text-color);
        text-shadow: none;
    }

    .burger-menu { display: block; }
    .burger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .burger-menu.active span { background-color: var(--text-color); }
}