/* Wavii Site Styles */
:root {
    /* wavii Brand Colour Palette */
    --primary-wave-blue: #006BA0;
    --secondary-tropical-teal: #009891;
    --tertiary-dark-sea: #0B5D82;
    --accent-mist: #BFE5E4;
    --off-white: #FAF7F2;
    --surface-light: #FFFFFF;
    --surface-dark: #000000;
    
    /* Gradients */
    --gradient-water: linear-gradient(135deg, var(--primary-wave-blue) 0%, var(--secondary-tropical-teal) 50%, var(--accent-mist) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 107, 160, 0.15) 0%, rgba(0, 152, 145, 0.1) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-max-width: 1200px;
}

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

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(0, 107, 160, 0.25) 0%, rgba(0, 152, 145, 0.2) 100%), url('sydney_harbour.jpg');
    background-size: cover;
    background-position: center var(--bg-y, 50%);
    background-attachment: fixed;
    color: white;
    animation: fadeIn 1s ease-in;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 93, 130, 0.45) 0%, rgba(0, 107, 160, 0.5) 50%, rgba(0, 152, 145, 0.4) 100%);
    z-index: 1;
}

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

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

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 100;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-book-now {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.nav-book-now:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-login {
    padding: 0.75rem 1.5rem;
    background: var(--primary-wave-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-login:hover {
    background: var(--tertiary-dark-sea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 107, 160, 0.3);
}

.nav-back {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-top: 3rem;
    color: white;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Buttons */
/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--primary-wave-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--tertiary-dark-sea);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 107, 160, 0.3);
}

.btn-secondary {
    background: var(--secondary-tropical-teal);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-wave-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 152, 145, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-wave-blue);
    border: 2px solid var(--primary-wave-blue);
}

.btn-outline:hover {
    background: var(--primary-wave-blue);
    color: white;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: transparent;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 10;
}

.wave-divider.hero-wave {
    overflow: visible;
    margin-top: -80px;
    z-index: 15;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.wave-divider.top {
    transform: rotate(180deg);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-light {
    background: var(--surface-light);
}

.section-off-white {
    background: var(--off-white);
}

.section-dark {
    background: var(--tertiary-dark-sea);
    color: white;
}

.section-gradient {
    background: linear-gradient(135deg, rgba(0, 107, 160, 0.05) 0%, rgba(0, 152, 145, 0.05) 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tertiary-dark-sea);
    text-align: center;
}

.section-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--primary-wave-blue);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle {
    color: var(--accent-mist);
}

.image-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    background: url('../boat-aerial.jpg');
    background-size: cover;
    background-position: center var(--bg-y, 50%);
    background-attachment: fixed;
    z-index: 0;
}

/* Extend image section to overlap with dividers */
.image-section::before,
.image-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: url('../boat-aerial.jpg');
    background-size: cover;
    background-position: center var(--bg-y, 50%);
    background-attachment: fixed;
    z-index: -1;
}

.image-section::before {
    top: -80px;
}

.image-section::after {
    bottom: -80px;
}


/* Image section inner wrapper for animations (keeps parallax working) */
.image-inner {
    width: 100%;
    height: 100%;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 107, 160, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 107, 160, 0.15);
}

.benefit-card h3 {
    color: var(--primary-wave-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.7;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-wave-blue), var(--secondary-tropical-teal));
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 107, 160, 0.2);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* App Store Section */
.section-dark {
    background: var(--tertiary-dark-sea);
    color: white;
    padding: var(--section-padding);
}

.section-dark .section-title {
    color: white;
}

.app-store-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.app-store-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.app-store-buttons a {
    transition: transform 0.3s ease;
}

.app-store-buttons a:hover {
    transform: translateY(-5px);
}

.app-store-buttons img {
    height: 60px;
    width: auto;
}

/* Footer */
footer {
    background: var(--tertiary-dark-sea);
    color: white;
    padding: 1rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-mist);
    font-size: 1.2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-mist);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    background: transparent;
    color: white;
    border-radius: 0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
}

.social-icon:hover {
    background: transparent;
    color: var(--accent-mist);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Form Styles */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 107, 160, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-wave-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-wave-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Booking Form */
.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.booking-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 107, 160, 0.1);
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.contact-info h3 {
    color: var(--primary-wave-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.booking-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.booking-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .booking-form {
        padding: 2rem 1.5rem;
    }

    .booking-form-container {
        padding: 1rem;
    }
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-content h1 {
    color: var(--primary-wave-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2 {
    color: var(--primary-wave-blue);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--tertiary-dark-sea);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-wave-blue);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 107, 160, 0.05);
    border-radius: 10px;
}

/* Responsive Design */
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.about-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.about-image img {
    width: auto;
    height: 100%;
    max-width: 287.5px;
    object-fit: contain;
    filter: opacity(0.8);
}

.about-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--tertiary-dark-sea);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.features-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--secondary-tropical-teal);
    font-size: 1.5rem;
    line-height: 1;
}

/* Operator Login Section */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 107, 160, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--tertiary-dark-sea);
}

.form-group input {
    padding: 1rem;
    border: 2px solid var(--accent-mist);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-tropical-teal);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--primary-wave-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: var(--secondary-tropical-teal);
    text-decoration: underline;
}

/* FAQ Styles */
.search-box {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-wave-blue);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    color: var(--primary-wave-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-mist);
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 107, 160, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 107, 160, 0.15);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-wave-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 107, 160, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-tropical-teal);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: #666;
    line-height: 1.8;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Paint-brush underline effect */
.brush-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.brush-underline::after {
    content: '';
    position: absolute;
    left: -10%;
    bottom: -15px;
    width: 120%;
    height: 50px;
    background: url('/assets/stroke.png') no-repeat center;
    background-size: 100% 100%;
    opacity: 0.8;
    transform: rotate(-1deg);
    z-index: 0;
    /* Fallback: use filter to colorize the stroke image */
    filter: hue-rotate(180deg) brightness(0.7) saturate(2);
}

.section-dark .brush-underline::after {
    opacity: 0.3;
}

/* Loading animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }

    .nav {
        padding: 1rem;
    }

    .hero {
        min-height: 90vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        max-width: 120px;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    .store-badge {
        min-width: 180px;
        padding: 0.875rem 1.5rem;
    }

    .app-store-buttons img {
        height: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--secondary-tropical-teal);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
