/* ============================================================
   Sendai Balboa Festival — Event Website
   Design System: Dark theme + Deep Green accent
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --bg-dark: #0d0f12;
    --bg-section: #13161b;
    --bg-card: #1a1e25;
    --bg-accent-bar: #1b5e3b;

    --green-primary: #1b7a45;
    --green-light: #27a85b;
    --green-glow: rgba(39, 168, 91, 0.25);
    --green-dark: #145a33;

    --gold: #d4a843;
    --gold-light: #e8c96a;

    --text-primary: #f0f0f0;
    --text-secondary: #b0b8c4;
    --text-muted: #6b7685;
    --text-on-green: #ffffff;

    --line-color: rgba(255, 255, 255, 0.08);
    --line-light: rgba(255, 255, 255, 0.04);

    --font-display: 'Montserrat', sans-serif;
    --font-elegant: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Noto Sans JP', 'Segoe UI', sans-serif;

    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --container-max: 1100px;
    --section-padding: 5rem 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--gold-light);
}

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

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

.section-padding {
    padding: var(--section-padding);
}

/* --- i18n toggle --- */
[data-lang="en"] .ja,
[data-lang="ja"] .en {
    display: none !important;
}

/* --- Scroll Animation --- */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(13, 15, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-color);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    background: var(--green-primary);
    color: var(--text-on-green) !important;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--green-light);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.lang-btn {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--green-primary);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 15, 18, 0.3) 0%,
            rgba(13, 15, 18, 0.6) 50%,
            rgba(13, 15, 18, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 800px;
}

.hero-logo-img {
    width: 480px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6)) brightness(1.15);
    opacity: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
}

.hero-date {
    font-family: var(--font-elegant);
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.hero-location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: var(--green-primary);
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--green-glow);
}

.hero-cta:hover {
    background: var(--green-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--green-glow);
}

/* Registration opening banner */
.reg-opening-banner {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.35);
    border-radius: 6px;
    text-align: center;
}

.reg-opening-banner p {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    line-height: 1.6;
}

.reg-opening-banner .reg-date-highlight {
    display: block;
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--gold);
    margin-top: 0.2rem;
}

/* Tentative badge */
.tentative-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 168, 67, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 3px;
    margin-bottom: 1rem;
}

/* ============================================================
   Accent Bar (section divider)
   ============================================================ */
.accent-bar {
    background: var(--bg-accent-bar);
    padding: 1rem 2rem;
    text-align: center;
}

.accent-bar h2 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

/* ============================================================
   Section Common
   ============================================================ */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ============================================================
   About / Video
   ============================================================ */
.about-section {
    background: var(--bg-section);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   Schedule & Venue
   ============================================================ */
.schedule-section {
    background: var(--bg-dark);
}

.timetable-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.schedule-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
}

.schedule-card .day-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 0.75rem;
}

.schedule-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.schedule-card .time {
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.schedule-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.schedule-card ul {
    list-style: none;
    padding: 0;
}

.schedule-card ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    padding: 0.2rem 0;
}

.schedule-card ul li::before {
    content: '▸ ';
    color: var(--green-light);
    font-weight: 600;
}

/* Venue info */
.venue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.venue-details h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.venue-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

.venue-details .venue-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    background: var(--green-glow);
    color: var(--green-light);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.venue-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.venue-map iframe {
    width: 100%;
    height: 280px;
    border: none;
    filter: grayscale(0.3) brightness(0.85);
}

.workshop-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--gold);
    font-weight: 400;
}

/* ============================================================
   Instructors
   ============================================================ */
.instructors-section {
    background: var(--bg-section);
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.instructor-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.instructor-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-4px);
}

.instructor-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: grayscale(0.1);
    transition: filter 0.4s ease;
}

.instructor-card:hover .instructor-photo {
    filter: grayscale(0);
}

.instructor-info {
    padding: 1.5rem;
}

.instructor-role {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 0.3rem;
}

.instructor-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.instructor-name-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.instructor-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    text-align: left;
}

/* ============================================================
   Registration
   ============================================================ */
.registration-section {
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.price-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
}

.price-card.featured {
    border-color: var(--green-primary);
    box-shadow: 0 0 30px var(--green-glow);
}

.price-card.featured::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.3rem 1rem;
    background: var(--green-primary);
    color: #fff;
    border-radius: 0 0 4px 4px;
}

.price-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-col {
    text-align: center;
}

.price-col-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-light);
    margin-bottom: 0.25rem;
}

.price-amount.small {
    font-size: 1.5rem;
}

.price-amount .currency {
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: super;
}

.price-amount-regular {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-amount-regular .currency {
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: super;
}

.price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.price-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line-light);
    font-weight: 300;
}

.price-features li::before {
    content: '✓';
    color: var(--green-light);
    font-weight: 700;
    margin-right: 0.6rem;
}

.register-btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 1.8rem;
    background: transparent;
    color: var(--green-light);
    border: 1px solid var(--green-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--green-primary);
    color: #fff;
}

.price-card.featured .register-btn {
    background: var(--green-primary);
    color: #fff;
}

.price-card.featured .register-btn:hover {
    background: var(--green-light);
}

/* Single party tickets sub-section */
.single-party-section {
    max-width: 900px;
    margin: 2rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

.single-party-section h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.single-party-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.single-party-item .day-name {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-light);
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.single-party-item .prices {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.single-party-item .prices .early {
    color: var(--gold);
    font-weight: 500;
}

.registration-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.8;
}

.payment-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--green-glow);
    border-radius: 6px;
    display: inline-block;
}

.payment-note-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

/* ============================================================
   Sendai Guide
   ============================================================ */
.guide-section {
    background: var(--bg-section);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.guide-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
}

.guide-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.4s ease;
}

.guide-card:hover .guide-card-img {
    filter: brightness(1);
}

.guide-card-body {
    padding: 1.25rem;
}

.guide-card-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.guide-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--line-color);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--green-light);
}

.footer-contact {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13, 15, 18, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--line-color);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .venue-info {
        grid-template-columns: 1fr;
    }

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

    .hero-logo-img {
        width: 380px;
    }

    .section-padding {
        padding: 3.5rem 1.25rem;
    }

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

    .single-party-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-nav {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

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