/* Samurai Ninja Museum Tokyo - Design System */

:root {
    /* Primary Color Palette */
    --sumi-black: #1A1A1A;
    --vermillion: #C33124;
    --temple-gold: #C8962E;
    --washi-ivory: #F5F0E8;

    /* Supporting Colors */
    --bamboo-green: #3A6B35;
    --steel-gray: #6B7280;
    --smoke: #F3F4F6;
    --white: #FFFFFF;

    /* Spacing Scale */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 12px;
    --sp-base: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;
    --sp-4xl: 96px;

    /* Container */
    --container-max-width: 1280px;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--sumi-black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--sp-base);
}

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

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

strong {
    font-weight: 700;
}

/* ─── Layout ─── */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--sp-base);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--sp-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--sp-xl);
    }
}

/* ─── Type Scale ─── */
.text-display {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.text-h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.text-h3 {
    font-size: 1.375rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .text-display {
        font-size: 4rem;
    }

    .text-h1 {
        font-size: 3rem;
    }

    .text-h2 {
        font-size: 2.25rem;
    }

    .text-h3 {
        font-size: 1.75rem;
    }
}

/* ─── Overline Label ─── */
.overline {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--vermillion);
    margin-bottom: var(--sp-sm);
}

/* ─── Button System ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-md) var(--sp-lg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease-out;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(195, 49, 36, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--sumi-black);
    color: var(--sumi-black);
}

.btn-secondary:hover {
    background-color: var(--sumi-black);
    color: var(--white);
}

.btn-secondary-hero {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-secondary-hero:hover {
    background-color: var(--white);
    color: var(--sumi-black);
}

.btn-lg {
    padding: var(--sp-base) var(--sp-xl);
    font-size: 15px;
}

.btn-sm {
    padding: var(--sp-sm) var(--sp-base);
    font-size: 13px;
}

/* ─── Navigation ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    height: 72px;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
    color: var(--white);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-links {
    display: none;
    gap: var(--sp-xl);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-base);
}

.btn-nav {
    display: none;
}

@media (min-width: 1024px) {
    .btn-nav {
        display: inline-flex;
    }
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(26, 26, 26, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-menu-link {
    display: block;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: var(--sp-base) 0;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--temple-gold);
}

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(26, 26, 26, 0.75) 0%,
            rgba(26, 26, 26, 0.45) 50%,
            rgba(26, 26, 26, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    padding-top: 100px;
}

.hero-sub {
    font-size: 1.1rem;
    margin-top: var(--sp-base);
    opacity: 0.9;
    line-height: 1.7;
}

.hero-ctas {
    margin-top: var(--sp-xl);
    display: flex;
    gap: var(--sp-base);
    flex-wrap: wrap;
}

.trust-badge-hero {
    margin-top: var(--sp-xl);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 0.9375rem;
}

.trust-badge-hero .stars {
    color: var(--temple-gold);
    font-size: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ─── Sections ─── */
.section {
    padding: var(--sp-2xl) 0;
}

@media (min-width: 1024px) {
    .section {
        padding: var(--sp-4xl) 0;
    }
}

.section-alt {
    background-color: var(--smoke);
}

.section-washi {
    background-color: var(--washi-ivory);
}

.section-header {
    margin-bottom: var(--sp-xl);
}

.section-sub {
    color: var(--steel-gray);
    font-size: 1.0625rem;
    max-width: 600px;
    margin-top: var(--sp-sm);
}

.section-header[style*="center"] .section-sub {
    margin: var(--sp-sm) auto 0;
    text-align: center;
}

/* ─── Intro Grid ─── */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.intro-text p {
    margin-top: var(--sp-base);
    color: var(--steel-gray);
    line-height: 1.8;
}

.intro-text p:first-of-type {
    color: var(--sumi-black);
}

.intro-img img {
    border-radius: 16px;
}

/* ─── Card Grid ─── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img {
    aspect-ratio: 3/2;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

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

.card-ribbon {
    position: absolute;
    top: var(--sp-md);
    right: var(--sp-md);
    background: var(--vermillion);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-ribbon.gold {
    background: var(--temple-gold);
}

.card-body {
    padding: var(--sp-lg);
}

.card-body p {
    color: var(--steel-gray);
    font-size: 0.9375rem;
    margin-top: var(--sp-sm);
    line-height: 1.65;
}

.card-meta {
    margin-top: var(--sp-base);
    font-weight: 600;
    font-size: 0.875rem;
}

.card-meta.included {
    color: var(--bamboo-green);
}

.card-meta.included::before {
    content: "✓ ";
}

.card-meta.upgrade {
    color: var(--vermillion);
}

/* ─── Image Break ─── */
.img-break {
    width: 100%;
    overflow: hidden;
    max-height: 400px;
}

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

@media (min-width: 1024px) {
    .img-break {
        max-height: 480px;
    }
}

/* ─── Pricing Grid ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
    margin-top: var(--sp-xl);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--smoke);
    border-radius: 16px;
    padding: var(--sp-xl);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
    border-color: var(--vermillion);
    box-shadow: 0 8px 20px rgba(195, 49, 36, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vermillion);
    color: var(--white);
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--sp-sm);
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sumi-black);
    margin-bottom: var(--sp-xs);
}

.price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--steel-gray);
}

.price-child {
    font-size: 0.875rem;
    color: var(--steel-gray);
    margin-bottom: var(--sp-lg);
}

.feature-list {
    list-style: none;
    margin: var(--sp-base) 0;
    padding: 0;
}

.feature-list li {
    padding: var(--sp-sm) 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--smoke);
}

.feature-list li.included::before {
    content: "✓ ";
    color: var(--bamboo-green);
    font-weight: 700;
}

.feature-list li.excluded {
    color: var(--steel-gray);
    opacity: 0.6;
}

.feature-list li.excluded::before {
    content: "— ";
}

/* ─── Comparison Grid ─── */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comparison-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-img-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.comparison-body {
    padding: var(--sp-xl);
}

.badge-new {
    display: inline-block;
    background: var(--vermillion);
    color: var(--white);
    font-size: 0.6875rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: var(--sp-sm);
    text-transform: uppercase;
}

.check-list {
    list-style: none;
    margin-top: var(--sp-base);
}

.check-list li {
    padding: var(--sp-sm) 0;
    font-size: 0.9375rem;
}

.check-list li::before {
    content: "✓ ";
    color: var(--bamboo-green);
    font-weight: 700;
}

/* ─── Reviews ─── */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--sp-xl);
    flex-wrap: wrap;
    gap: var(--sp-base);
}

.reviews-score {
    text-align: right;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--temple-gold);
}

.score-source {
    font-size: 0.8125rem;
    color: var(--steel-gray);
}

.reviews-scroll {
    display: flex;
    overflow-x: auto;
    gap: var(--sp-lg);
    padding-bottom: var(--sp-lg);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 300px;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--white);
    padding: var(--sp-lg);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.review-stars {
    color: var(--temple-gold);
    font-size: 1rem;
}

.review-text {
    margin: var(--sp-base) 0;
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sumi-black);
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--smoke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--steel-gray);
    flex-shrink: 0;
}

.review-author strong {
    font-size: 0.875rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--steel-gray);
}

/* ─── FAQ Accordion ─── */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--smoke);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-lg) 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--sumi-black);
    font-family: inherit;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--vermillion);
}

.chevron {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--sp-base);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: var(--sp-lg);
    line-height: 1.8;
    color: var(--steel-gray);
    font-size: 0.9375rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question {
    color: var(--vermillion);
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.faq-cta {
    text-align: center;
    margin-top: var(--sp-2xl);
}

.faq-cta p {
    margin-bottom: var(--sp-base);
    color: var(--steel-gray);
}

/* ─── Location Grid ─── */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    margin-top: var(--sp-xl);
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.location-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--sp-xs);
}

.location-info p {
    color: var(--steel-gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.nearby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-base);
}

@media (max-width: 480px) {
    .nearby-grid {
        grid-template-columns: 1fr;
    }
}

.nearby-card {
    background: var(--white);
    padding: var(--sp-lg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.nearby-card strong {
    color: var(--vermillion);
    font-size: 0.9375rem;
}

.nearby-card p {
    font-size: 0.8125rem;
    color: var(--steel-gray);
    margin-top: var(--sp-xs);
    line-height: 1.6;
}

/* ─── Footer ─── */
.footer {
    background-color: var(--sumi-black);
    color: var(--white);
    padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-2xl);
}

.footer-text {
    opacity: 0.65;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
    font-size: 0.8125rem;
    opacity: 0.45;
}

/* ─── Scroll Animations ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ─── Mobile Sticky CTA ─── */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    padding: var(--sp-md) var(--sp-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

.mobile-cta-text {
    color: var(--white);
}

.mobile-cta-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
}

.mobile-cta-text span {
    font-size: 0.75rem;
    opacity: 0.7;
}

@media (min-width: 1024px) {
    .mobile-cta-bar {
        display: none;
    }
}