/* 
 * Ride on surf in BALI - Main Stylesheet 
 */

:root {
    /* Colors - HSL */
    /* Deep Ocean Blue */
    --color-primary: hsl(210, 50%, 25%); 
    --color-primary-dark: hsl(210, 60%, 15%);
    --color-primary-light: hsl(210, 40%, 45%);
    
    /* Sandy Gold / Earthy */
    --color-accent: hsl(35, 60%, 55%);
    --color-accent-light: hsl(35, 70%, 75%);

    /* Neutrals */
    --color-bg-body: hsl(0, 0%, 98%);
    --color-bg-light: hsl(0, 0%, 100%);
    --color-text-main: hsl(210, 20%, 20%);
    --color-text-muted: hsl(210, 10%, 50%);
    --color-text-light: hsl(0, 0%, 100%);

    /* Location Section Background */
    --color-location-bg: hsl(150, 20%, 95%);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
}



/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}


body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol, dl {
    list-style: none;
}

.sp {
    display: none;
}

@media (max-width: 768px) {
    .sp {
        display: inline-block;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}
@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Typography Utilities */
.section-title {
    font-family: var(--font-heading);
    font-size: min(3rem,9vw);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-subtitle {
    display: block;
    font-size: min(1.15rem,3.64vw);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.section-lead {
    font-size: min(1.125rem,4.6vw);
    margin-bottom: 3rem;
    font-feature-settings: "palt";
}

/* Sections Common */
.section {
    padding: min(14vw,var(--spacing-xl)) 0;
}
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}
@media (max-width: 768px) {
    .section-header {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
}



.section-header.left-align {
    text-align: left;
}

/* Buttons */
.submit-btn, .footer-cta {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (any-hover: hover) {
    .submit-btn:hover, .footer-cta:hover {
        background-color: var(--color-primary-dark);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-image: url('../assets/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
    animation: fadeInUp 1.2s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-logo-wrapper {
    margin: 0;
    opacity: 0;
    animation: fadeInLogo 1.5s ease-out forwards;
    animation-delay: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out;
}

.hero-content.is-scrolled .hero-logo-wrapper {
    transform: translateY(0); /* Let the natural flow move it */
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    transition: transform 0.8s ease-in-out;
}

.hero-content.is-scrolled .hero-logo {
    transform: scale(0.8); /* Scale down slightly when content appears */
}

.hero-scroll-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease-out, max-height 1.2s ease-in-out, transform 1s ease-out;
    width: 100%;
    margin-top: 0;
}

.hero-scroll-content.is-visible {
    opacity: 1;
    max-height: 800px;
    margin-top: 3rem;
    transform: translateY(0);
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.concept-en {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.main-copy {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sub-copy {
    font-size: min(1.3rem,4vw);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
    font-feature-settings: "palt";
}

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

/* Tour Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}
@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-item {
    position: relative;
    padding: var(--spacing-md);
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: hsl(35, 0%, 100%);
    position: absolute;
    top: 2rem;
    right: 3rem;
    text-shadow: 0 2px 8px rgba(66, 66, 66, .5);
}
@media (max-width: 768px) {
    .highlight-number {
        font-size: 2.6rem;
    }
}
.highlight-item h3 {
    font-size: min(1.25rem,6vw);
    margin-bottom: 1rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

@media (any-hover: hover) {
    .highlight-item:hover .highlight-image img {
        transform: scale(1.05);
    }
}

/* Quote Section */
.quote {
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
}
@media (max-width: 768px) {
    .quote {
        padding: 6rem 1rem;
        text-align: left;
    }
}

.quote blockquote {
    max-width: 900px;
    margin: 0 auto;
}

.quote p {
    font-family: var(--font-heading);
    font-size: min(2.2rem,6.4vw);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.quote cite {
    font-size: min(0.9rem,3vw);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* The Journey (Timeline Carousel) */
.journey {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.journey-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: var(--spacing-lg);
    padding-bottom: 2rem;
}

.journey-timeline-line {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    z-index: 1;
}

.journey-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 5vw;
    gap: 3rem;
}

.journey-carousel::-webkit-scrollbar {
    display: none;
}

.journey-slide {
    flex: 0 0 350px;
    position: relative;
    z-index: 2;
    padding-top: 40px; /* Space for point */
}

.journey-timeline-point {
    position: absolute;
    top: 5px;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: 3;
}

.journey-day {
    font-family: var(--font-heading);
    font-size: min(1rem,4vw);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.journey-slide h3 {
    font-size: min(1.25rem,6vw);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.journey-slide p {
    font-size: min(0.9rem,4vw);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    min-height: 5.4em; /* Approx 3 lines */
}

.journey-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

@media (any-hover: hover) {
    .journey-slide:hover .journey-image img {
        transform: scale(1.05);
    }
}

.journey-nav {
    position: absolute;
    bottom: -3rem;
    right: 5vw;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-prev, .carousel-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(1.25rem,6vw);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev {
    background-color: hsl(35, 60%, 90%);
    color: var(--color-accent);
}

.carousel-next {
    background-color: var(--color-accent);
    color: white;
}

@media (any-hover: hover) {
    .carousel-prev:hover, .carousel-next:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .journey-carousel {
        padding: 0 5vw;
        scroll-snap-type: x mandatory;
        gap: 5vw;
    }
    
    .journey-slide {
        flex: 0 0 90vw;
        scroll-snap-align: center;
    }
}



.journey-note {
    text-align: left;
    font-size: min(0.85rem,2.85vw);
    color: var(--color-text-muted);
    margin-top: 4rem; /* Clear the absolute positioned nav */
    margin-left: 5vw; /* Align with carousel padding/nav */
    padding-bottom: 1rem;
}

/* Instructor Section */


.section.instructor {
    padding-bottom: 0;
}

.instructor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: min(8rem,6vw);
    align-items: center;
}

.instructor-visual {
    height: 650px;
    position: relative;
    display: block;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-main {
    top: 0;
    left: 0;
    width: 70%;
    height: 350px;
    z-index: 1;
}

.item-action {
    top: 250px;
    right: 0;
    width: 60%;
    height: 250px;
    z-index: 2;
    border: 4px solid white;
}

.item-vertical {
    bottom: 0;
    left: 10%;
    width: 35%;
    height: 280px;
    z-index: 3;
    border: 4px solid white;
}

@media (max-width: 768px) {
    .item-main {
        width: 80%;
        height: 280px;
    }
    .item-action {
        top: 240px;
        right: 0;
        width: 60%;
        height: 180px;
    }
    .item-vertical {
        bottom: 0;
        left: 6%;
        width: 40%;
        height: 210px;
    }
}

@media (any-hover: hover) {
    .collage-item:hover {
        transform: translateY(-5px) scale(1.02);
        z-index: 10;
    }
}

.instructor-name {
    font-size: min(2.5rem,8vw);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
}
@media (max-width: 768px) {
    .instructor-name {
        text-align: center;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        margin-top: 2.5rem;
    }
}

.name-en {
    display: block;
    font-size:  min(1.1rem,4.3vw);
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.instructor-bio p {
    font-size: min(1.05rem,4.05vw);
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.instructor-quote {
    font-family: var(--font-heading);
    font-size: min(1.125rem,6vw);
    font-weight: 600;
    color: var(--color-primary);
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-top: 2.5rem;
}


/* Location Section */

.section.location {
    padding-bottom: 0;
}
.location-box {
    background-color: var(--color-location-bg);
    padding: min(8rem,8vw) var(--spacing-md);
    border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
    .location-box {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}


.section-intro {
    font-size: min(1.1rem,4.3vw);
    color: var(--color-text-main);
    line-height: 1.8;
    max-width: 700px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-feature-settings: "palt";
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: min(2vw,var(--spacing-md));
    margin-top: var(--spacing-lg);
}

.location-item {
    background: white;
    padding: min(2vw,var(--spacing-md));
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .location-item {
        padding: var(--spacing-md) 1.5rem;
    }
}

@media (any-hover: hover) {
    .location-item:hover {
        transform: translateY(-5px);
    }
}

.location-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

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

@media (any-hover: hover) {
    .location-item:hover .location-image img {
        transform: scale(1.05);
    }
}

.location-item h3 {
    font-family: var(--font-heading);
    font-size: min(1.5rem,5.7vw);
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.location-item p {
    font-size: min(0.95rem,3.6vw);
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Overview Section */
.overview {
    background-color: white;
}

.overview-list, .precautions-list {
    border-top: 1px solid #eee;
}

.overview-row, .precautions-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    align-items: baseline;
}

.overview-row:last-child, .precautions-row:last-child {
    border-bottom: none;
}

.overview-row dt, .precautions-row dt {
    font-weight: 700;
    color: var(--color-primary);
    font-size: min(1.1rem,3.8vw);
}

.overview-row dd, .precautions-row dd {
    font-size: min(1rem,3.6vw);
    line-height: 1.8;
    color: var(--color-text-main);
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-message {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-top: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .overview-row, .precautions-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
}

/* Precautions Section */
.precautions {
    background-color: var(--color-bg-light);
}


/* Price Section */
.price-box {
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    background: white;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .price-box {
        padding: var(--spacing-lg) min(var(--spacing-md),6vw);
    }
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.price-label {
    font-size: min(1.1rem,4.3vw);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: min(3rem,11vw);
    font-weight: 700;
    color: var(--color-primary);
}

.tax {
    font-size: min(1rem,3vw);
    color: var(--color-text-muted);
    font-weight: 400;
}
.price-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.detail-row{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.detail-row > dt{
    font-weight: 600;
}


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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

/* Textarea styling to match inputs */
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 140px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-privacy {
    margin: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: min(1.25rem,6vw);
    font-size: min(1.1rem,4.3vw);
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

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

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

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-cta {
    display: none; /* Already have a form above, but requirements said footer CTA. Let's make it a sticky or just a button */
}

@media (max-width: 768px) {
    .instructor-profile .left-align {
        text-align: center;
    }
    .instructor-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .instructor-visual {
        height: 550px;
        order: 2;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-item {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(209, 149, 56, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

@media (any-hover: hover) {
    .floating-cta:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 30px rgba(209, 149, 56, 0.5);
        color: white;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        left: 1.5rem; /* Stretch on mobile for easier tapping */
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}




