/* =========================================================================
   Experience Page — Shared Components
   Editorial / hospitality design language; mobile-first; A11y aware.
   ========================================================================= */

/* ---------- Local design tokens (component-scoped) ---------- */

.experience-hero,
.experience-detail,
.features-section,
.info-section,
.cta-section,
.pricing-section {
    /* Variable section rhythm: tighter on mobile, generous on desktop */
    --section-pad-y: clamp(64px, 10vw, 112px);
    --content-max: 1200px;
    --content-pad-x: clamp(20px, 4vw, 32px);
    --radius-card: 16px;
    --radius-image: 14px;
    --hairline: 1px solid var(--border-color);
    --shadow-soft: 0 1px 2px rgba(28, 28, 28, 0.04),
                   0 8px 24px rgba(28, 28, 28, 0.06);
    --shadow-lift: 0 2px 4px rgba(28, 28, 28, 0.05),
                   0 16px 40px rgba(28, 28, 28, 0.10);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================================================
   Hero
   ========================================================================= */

.experience-hero {
    position: relative;
    min-height: clamp(420px, 58vh, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
    /* Calm sumi gradient — pages can override via inline `--exp-hero` to use a real photograph */
    background:
        var(--exp-hero, linear-gradient(160deg, #2A2825 0%, #1F2A2A 55%, #15201F 100%));
    background-size: cover;
    background-position: center;
}

/* Soft washi noise + gradient overlay for legibility */
.experience-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 18, 16, 0) 0%, rgba(20, 18, 16, 0.55) 100%),
        var(--washi-texture);
    background-blend-mode: normal, soft-light;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Slim gold rule — restrained brand cue */
.experience-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 36px;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.7));
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.experience-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 var(--content-pad-x);
}

.experience-title {
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
    line-height: 1.1;
}

.experience-title .japanese {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 0.6em;
}

.experience-title .english {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.78;
}

.experience-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    font-weight: 300;
    line-height: 1.85;
    margin: 0 auto;
    max-width: 36rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.55s forwards;
}

/* =========================================================================
   Breadcrumb
   ========================================================================= */

.breadcrumb {
    background: var(--light-color);
    padding: 0.85rem 0;
    margin-top: 80px; /* clear the fixed navbar */
    border-bottom: var(--hairline);
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 64px;
    }
}

.breadcrumb-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-pad-x);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.breadcrumb-list::-webkit-scrollbar { display: none; }

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 0.85em;
    user-select: none;
}

/* =========================================================================
   Detail (intro paragraph + photograph)
   ========================================================================= */

.experience-detail {
    padding: var(--section-pad-y) 0;
    background: var(--white);
    position: relative;
}

.detail-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-pad-x);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 880px) {
    .detail-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: clamp(3rem, 6vw, 5rem);
        align-items: center;
    }
}

.detail-text {
    padding: 0;
}

.detail-text h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    color: var(--dark-color);
    margin-bottom: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    /* Slim accent rule above the heading */
    position: relative;
    padding-top: 1.2rem;
}

.detail-text h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 1px;
    background: var(--primary-color);
}

.detail-text p {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 38rem;
}

.detail-text p:last-of-type {
    margin-bottom: 0;
}

.detail-image {
    position: relative;
    border-radius: var(--radius-image);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.detail-image:hover img {
    transform: scale(1.03);
}

/* =========================================================================
   Section header (re-used across pages)
   ========================================================================= */

.features-section .section-header,
.pricing-section .section-header,
.info-section .section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.features-section .section-title,
.pricing-section .section-title,
.info-section .section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.features-section .section-subtitle,
.pricing-section .section-subtitle,
.info-section .section-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.98rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* =========================================================================
   Feature grid
   ========================================================================= */

.features-section {
    background: var(--light-color);
    padding: var(--section-pad-y) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-pad-x);
    counter-reset: feature;
}

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

@media (min-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.feature-card {
    background: var(--white);
    padding: clamp(1.6rem, 3vw, 2.25rem);
    border-radius: var(--radius-card);
    text-align: left;
    border: var(--hairline);
    box-shadow: 0 1px 2px rgba(28, 28, 28, 0.03);
    transition: transform 0.45s var(--ease-out),
                box-shadow 0.45s var(--ease-out),
                border-color 0.45s var(--ease-out);
    counter-increment: feature;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(212, 175, 55, 0.55);
}

/* Numeric counter — quietly luxurious, no FA icon dependency */
.feature-card::after {
    content: counter(feature, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--primary-color);
    opacity: 0.55;
}

/* The legacy FA icon container — restyled to be a quiet accent rather than a
   gold-gradient bauble. We keep the markup compatible. */
.feature-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(139, 115, 85, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem;
    transition: border-color 0.4s var(--ease-out),
                background 0.4s var(--ease-out);
    box-shadow: none;
}

.feature-card:hover .feature-icon {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.08);
    transform: none;
}

.feature-icon i {
    font-size: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.94rem;
    margin: 0;
}

/* =========================================================================
   Info card (table of facts)
   ========================================================================= */

.info-section {
    padding: var(--section-pad-y) 0;
    background: var(--white);
}

.info-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--content-pad-x);
}

.info-card {
    background: var(--light-color);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: var(--hairline);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.info-card table {
    width: 100%;
    border-collapse: collapse;
}

.info-card th,
.info-card td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: var(--hairline);
    font-size: 0.95rem;
    line-height: 1.65;
}

.info-card th {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    text-transform: uppercase;
    width: 30%;
    white-space: nowrap;
}

.info-card td {
    color: var(--text-primary);
    font-weight: 400;
}

.info-card tr:last-child th,
.info-card tr:last-child td {
    border-bottom: none;
}

.info-card tr:hover {
    background: rgba(212, 175, 55, 0.04);
}

@media (max-width: 560px) {
    .info-card table,
    .info-card thead,
    .info-card tbody,
    .info-card tr,
    .info-card th,
    .info-card td {
        display: block;
        width: 100%;
    }
    .info-card th {
        padding-bottom: 0.25rem;
        border-bottom: none;
    }
    .info-card td {
        padding-top: 0.25rem;
    }
    .info-card tr {
        padding: 1rem 0;
        border-bottom: var(--hairline);
    }
    .info-card tr:last-child {
        border-bottom: none;
    }
}

/* =========================================================================
   CTA — calmer treatment, not pure-black slab
   ========================================================================= */

.cta-section {
    background:
        linear-gradient(180deg, #1F1E1B 0%, #15140F 100%);
    color: var(--white);
    padding: var(--section-pad-y) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--washi-texture);
    opacity: 0.06;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.7), transparent);
    transform: translateX(-50%);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--content-pad-x);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.cta-content p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2.4rem;
    opacity: 0.82;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.06em;
    transition: transform 0.3s var(--ease-out),
                background 0.3s var(--ease-out),
                color 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
    min-height: 44px; /* tap target */
}

.btn-cta i {
    font-size: 0.85em;
    opacity: 0.85;
}

.btn-cta-primary {
    background: var(--accent-color);
    color: #1A1A1A;
    border-color: var(--accent-color);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.22);
}

.btn-cta-primary:hover,
.btn-cta-primary:focus-visible {
    background: #E2BF4A;
    border-color: #E2BF4A;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.32);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.btn-cta:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
}

/* =========================================================================
   Animations & accessibility
   ========================================================================= */

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

/* Universal focus-visible ring for interactive elements inside experience pages */
.experience-hero a:focus-visible,
.breadcrumb-list a:focus-visible,
.feature-card:focus-visible,
.btn-cta:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .experience-title,
    .experience-subtitle {
        opacity: 1;
        animation: none;
    }
    .feature-card,
    .detail-image img,
    .btn-cta {
        transition-duration: 0.001ms;
    }
    .feature-card:hover {
        transform: none;
    }
}

/* =========================================================================
   Mobile fine-tunes
   ========================================================================= */

@media (max-width: 640px) {
    .experience-hero {
        min-height: clamp(360px, 70vh, 480px);
        background-attachment: scroll; /* avoid iOS jank */
    }

    .experience-title .japanese {
        letter-spacing: 0.06em;
    }

    .experience-title .english {
        letter-spacing: 0.24em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-cta {
        justify-content: center;
        width: 100%;
    }

    .feature-card::after {
        top: 0.9rem;
        right: 1.1rem;
    }
}
