/*
Theme Name: Takanori Okamoto Renewal
Theme URI: https://takanori-okamoto.com
Author: XION
Description: WordPress theme based on the current static renewal design.
Version: 2.0.0
Text Domain: takanori-okamoto
*/

:root {
    /* Premium Dark Theme Palette */
    --bg: #09090b;
    --surface: #141416;
    --surface-light: #1f1f23;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(219, 178, 120, 0.5);

    --text: #f9f9fa;
    --muted: #a1a1aa;
    --brand: #dbb278;
    /* Champagne Gold Accent */
    --brand-hover: #e8c492;

    --font-en:
        "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-ja: "Shippori Mincho", serif;

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-ja);
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: var(--font-en);
    letter-spacing: 0.03em;
    color: var(--brand);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--brand);
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-en);
}

.lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: var(--font-ja);
}

.text-light {
    color: #fff !important;
}

/* Progress Bar */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 100;
    background: transparent;
}

.progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(219, 178, 120, 0.6);
    transition: width 0.1s linear;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5vw;
    z-index: 90;
    transition:
        padding 0.4s var(--ease),
        background 0.4s var(--ease),
        backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled {
    padding: 16px 5vw;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.brand:hover {
    color: var(--brand);
}

.site-header nav {
    display: flex;
    gap: 32px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 10px;
    transition: all 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) {
    top: 16px;
}

.menu-toggle span:nth-child(2) {
    top: 21px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.site-header nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.site-header nav a:hover {
    color: var(--brand);
}

.site-header nav a[aria-current="page"] {
    color: var(--brand);
}

.site-header nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Layout Panels */
.panel {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.panel.compact {
    min-height: auto;
    padding: 88px 0;
}

.content {
    width: min(1200px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content.narrow {
    width: min(1000px, 92%);
}

/* Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.center h1,
.section-header.center h2,
.section-header.center h3,
.section-header.center .eyebrow,
.section-header.center .lead {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#gallery .section-header.center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#gallery .section-header.center h2,
#gallery .section-header.center .eyebrow,
#gallery .section-header.center .lead {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

#gallery .portfolio-header {
    display: grid !important;
    justify-items: center;
    align-items: center;
    width: 100%;
    text-align: center !important;
}

#gallery .portfolio-header h2,
#gallery .portfolio-header .eyebrow,
#gallery .portfolio-header .lead,
#gallery .portfolio-header .line {
    justify-self: center;
    text-align: center !important;
}

/* Portfolio header (robust centering)
   - Some pages/sections may reuse the same "PORTFOLIO" header outside of #gallery.
   - This keeps the heading centered even if the parent id/class changes.
*/
.portfolio-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    justify-items: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.portfolio-header h2,
.portfolio-header .eyebrow,
.portfolio-header .lead,
.portfolio-header .line {
    justify-self: center;
    text-align: center !important;
}

.line {
    width: 40px;
    height: 2px;
    background: var(--brand);
    margin-top: 24px;
    border-radius: 2px;
}

.line.centered {
    margin: 24px auto 0;
}

.line.bg-light {
    background: #fff;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.pt-3 {
    padding-top: 24px;
}

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

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

/* Backgrounds */
.solid {
    background: var(--bg);
}

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

.hero {
    background-image: url("assets/images/home-hero-family-01.webp");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(9, 9, 11, 0.95) 0%,
        rgba(9, 9, 11, 0.6) 50%,
        rgba(9, 9, 11, 0.4) 100%
    );
    z-index: 1;
}

.image {
    background: url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1800&q=80")
        center/cover fixed;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

/* Buttons */
.cta-row {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-row.center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
    z-index: 0;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn.primary {
    background: var(--text);
    color: var(--bg);
}

.btn.primary:hover {
    background: var(--brand);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(219, 178, 120, 0.25);
}

.btn.primary.outline {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.btn.primary.outline::before {
    background: var(--brand);
}

.btn.primary.outline:hover {
    color: #fff;
    border-color: #fff;
}

.btn.ghost {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn.ghost:hover {
    border-color: var(--text);
    background: transparent;
}

.btn.block {
    width: 100%;
}

/* Grid Components */
.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.entry-followup {
    margin-top: 24px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.entry-grid .entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.entry-grid .entry-card p {
    flex: 1;
}

.entry-grid .entry-card .btn {
    min-height: 52px;
}

.entry-followup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.entry-followup-copy {
    flex: 1;
}

.entry-followup-card .btn {
    flex-shrink: 0;
}

.align-start {
    align-items: start;
}

.wedding-plan-grid,
.referral-share-grid,
.framed-print-grid {
    align-items: stretch;
}

.wedding-price-list {
    grid-template-columns: minmax(0, 1fr) auto;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wedding-album-table {
    width: 100%;
    min-width: 720px;
}

.wedding-plan-grid .plan-card:not(.horizontal),
.referral-share-grid .info-card,
.framed-print-grid .info-card {
    height: 100%;
}

.wedding-plan-grid .plan-card:not(.horizontal) {
    display: flex;
    flex-direction: column;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.info-card p {
    color: var(--muted);
    font-family: var(--font-ja);
}

/* Service Cards */
.service-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease);
}

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

.hover-lift {
    overflow: hidden;
}

.family-img {
    background-image: url("assets/images/family-daily-01.webp");
}

.wedding-img {
    background-image: url("assets/images/wedding-day-01.webp");
}

.works-img {
    background-image: url("https://images.unsplash.com/photo-1542038784456-1ea8e935640e?auto=format&fit=crop&w=600&q=80");
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    background: var(--surface);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-body .micro-meta {
    color: var(--brand);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var(--font-en);
    flex-grow: 0;
}

.link-arrow {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--brand);
    text-decoration: none;
    transition:
        transform 0.3s var(--ease),
        color 0.3s ease;
    margin-top: auto;
}

.hover-lift:hover .link-arrow {
    transform: translateX(4px);
    color: var(--brand-hover);
}

/* Plans Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 32px;
    background: var(--surface-light);
    position: relative;
    transition: all 0.3s var(--ease);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.plan-card.featured {
    border-color: var(--brand);
    background: linear-gradient(
        180deg,
        rgba(219, 178, 120, 0.05) 0%,
        rgba(20, 20, 22, 1) 100%
    );
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card.horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px;
}

@media (min-width: 768px) {
    .plan-card.horizontal {
        text-align: left;
        align-items: flex-start;
    }
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand);
    color: var(--bg);
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
}

.price {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--font-en);
    margin: 16px 0 8px;
    color: #fff;
    white-space: nowrap;
}

.price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--muted);
    font-family: var(--font-ja);
    white-space: nowrap;
}

.note {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-ja);
    margin-top: 16px;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.note.highlight {
    color: var(--brand);
    font-weight: 500;
}

.sub {
    margin-top: 24px;
    color: #7f7f8a;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Interactive Tabs & Gallery */
.tab-buttons {
    margin: 24px 0 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-btn {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: inherit;
    font-family: var(--font-ja);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    color: var(--bg);
    border-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition:
        transform 0.6s var(--ease),
        opacity 0.4s ease;
    opacity: 0.85;
}

.gallery-grid figure:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Features & Referral */
.feature-grid {
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-grid > div {
    border-left: 2px solid var(--brand);
    padding-left: 16px;
}

.feature-grid strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-ja);
    font-weight: 500;
    color: #fff;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.referral-banner {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.banner-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #fff;
}

.banner-content p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Flow Grid */
.flow-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.flow-grid::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.flow-grid li {
    position: relative;
    z-index: 1;
    background: var(--surface);
    padding-top: 48px;
}

.flow-grid strong {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--brand);
}

.flow-grid span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.flow-grid small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* FAQ List */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

details {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    background: var(--surface-light);
    transition: all 0.3s var(--ease);
}

details[open] {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

summary {
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-family: var(--font-ja);
    color: #fff;
    font-size: 1rem;
}

summary::-webkit-details-marker {
    display: none;
}

.icon {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 300;
    transition: transform 0.3s ease;
}

details p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Contact Specifics */
.contact-card {
    background: #111114;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 64px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(219, 178, 120, 0.05) 0%,
        transparent 70%
    );
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form-embed .wpcf7 {
    width: 100%;
}

.contact-form-embed .wpcf7 form {
    display: grid;
    gap: 20px;
}

.contact-form-embed .wpcf7 p {
    margin: 0;
}

.contact-form-embed .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.contact-form-embed .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ffb1b1;
}

.contact-form-embed .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.contact-form-embed .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(219, 178, 120, 0.35);
    background: rgba(219, 178, 120, 0.08);
    color: #f6e2be;
}

.contact-form-embed .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-embed .wpcf7 form.failed .wpcf7-response-output,
.contact-form-embed .wpcf7 form.aborted .wpcf7-response-output,
.contact-form-embed .wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: rgba(255, 120, 120, 0.28);
    background: rgba(160, 32, 32, 0.12);
    color: #ffd1d1;
}

.contact-form-embed .wpcf7-spinner {
    margin: 8px 0 0;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
    border: 1px solid var(--border);
}

.form-notice.is-success {
    background: rgba(219, 178, 120, 0.08);
    border-color: rgba(219, 178, 120, 0.35);
    color: #f6e2be;
}

.form-notice.is-error {
    background: rgba(160, 32, 32, 0.12);
    border-color: rgba(255, 120, 120, 0.28);
    color: #ffd1d1;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    font-family: var(--font-ja);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 4px;
    padding: 14px 16px;
    font: inherit;
    font-family: var(--font-ja);
    transition: all 0.3s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(219, 178, 120, 0.1);
}

::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--muted);
    pointer-events: none;
}

select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Buttons & CTA */
.sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    text-decoration: none;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    background: var(--brand);
    color: #000;
    border-radius: 4px;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(219, 178, 120, 0.3);
    transition:
        transform 0.3s var(--ease),
        box-shadow 0.3s ease;
}

.sticky-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(219, 178, 120, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(219, 178, 120, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(219, 178, 120, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(219, 178, 120, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-brand {
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.footer-links a[aria-current="page"] {
    color: var(--brand);
}

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

.t-border {
    border-top: 1px solid var(--border);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

.socials a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-en);
    margin-left: 24px;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: #fff;
}

/* --- Reveal Animations --- */
.loading {
    opacity: 0;
    visibility: hidden;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s var(--ease),
        transform 0.6s var(--ease);
}

.fade-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-stagger:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-stagger:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-stagger:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-stagger:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-stagger:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-stagger:nth-child(6) {
    transition-delay: 0.6s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsiveness */
@media (max-width: 980px) {
    .hero {
        background-attachment: scroll;
        background-position: 24% center;
    }

    .menu-toggle {
        display: block;
    }

    .site-header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        z-index: 1000;
    }

    .site-header nav.active {
        transform: translateX(0);
    }

    .site-header nav a {
        font-size: 1.5rem;
        font-family: var(--font-en);
        letter-spacing: 2px;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .plan-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-grid > div {
        border-left: none;
        border-top: 2px solid var(--brand);
        padding-left: 0;
        padding-top: 16px;
    }

    .referral-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-left: 24px;
    }

    .flow-grid::before {
        top: 0;
        bottom: 0;
        left: 24px;
        width: 1px;
        height: auto;
    }

    .flow-grid li {
        padding-top: 0;
        padding-left: 48px;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .space-between {
        flex-direction: column;
        gap: 24px;
    }

    .sticky-cta {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        background-position: 18% center;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .plan-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .panel {
        padding: 80px 0 60px;
    }

    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .socials a {
        margin-left: 0;
        margin-right: 24px;
    }
}

/* Premium UI Components */
.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 48px;
    gap: 40px;
    text-align: left;
}

.cta-banner .text {
    flex: 1;
}

.cta-banner h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--brand);
    font-family: var(--font-ja);
}

.cta-banner .text p {
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-banner .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .cta-banner .btn {
        width: 100%;
    }
}

.premium-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.flow-item {
    position: relative;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease);
    z-index: 1;
    overflow: hidden;
}

.flow-item:hover {
    border-color: var(--brand);
    background: rgba(219, 178, 120, 0.05);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.flow-item .number {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand);
    opacity: 0.08;
    position: absolute;
    top: -10px;
    right: 15px;
    z-index: -1;
}

.flow-item h4 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--brand);
    font-family: var(--font-ja);
    font-weight: 600;
}

.flow-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 992px) {
    .premium-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-flow {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.text-center {
    text-align: center !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mt-4 {
    margin-top: 32px !important;
}

/* Premium Timeline - High End Design */
.premium-timeline {
    max-width: 900px;
    margin: 100px auto 0;
    position: relative;
    padding: 40px 0;
}

.premium-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 10%,
        var(--border) 90%,
        transparent
    );
    transform: translateX(-0.5px);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 60px;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--brand);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(219, 178, 120, 0.4);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-year {
    position: absolute;
    top: -20px;
    font-family: var(--font-en);
    font-size: 8rem;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.timeline-item:nth-child(even) .timeline-year {
    left: 40px;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: 40px;
}

.timeline-item-accent .timeline-year {
    opacity: 0.09;
}

.timeline-item-accent .timeline-dot {
    width: 14px;
    height: 14px;
    border-width: 3px;
    box-shadow: 0 0 16px rgba(219, 178, 120, 0.55);
}

.timeline-item-accent .timeline-content {
    background: rgba(219, 178, 120, 0.06);
    border-color: rgba(219, 178, 120, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.timeline-item-accent .timeline-content:hover {
    background: rgba(219, 178, 120, 0.1);
    border-color: rgba(219, 178, 120, 0.45);
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 24px 52px rgba(219, 178, 120, 0.12);
}

.timeline-item-accent .year-small {
    color: #f0c98b;
}

.timeline-item-accent .timeline-content h4 {
    color: var(--brand);
}

.timeline-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.4s var(--ease);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(219, 178, 120, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.year-small {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--brand);
    margin-bottom: 12px;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-ja);
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .section-header.center > * {
        max-width: 100%;
    }

    .section-header.center h1,
    .section-header.center h2,
    .section-header.center .lead {
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .section-header.center h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.35;
    }

    .section-header.center .lead {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .wedding-price-list {
        grid-template-columns: 1fr;
    }

    .wedding-price-list dd {
        margin: 0 0 8px;
    }

    .wedding-album-table {
        min-width: 0;
        table-layout: fixed;
    }

    .wedding-album-table th,
    .wedding-album-table td {
        white-space: normal !important;
        word-break: break-word;
    }

    #wedding-detail .plan-card.featured.horizontal {
        display: block;
    }

    #wedding-detail .plan-card.featured.horizontal > div {
        padding-right: 0 !important;
    }

    #wedding-detail .plan-card.featured.horizontal > div + div {
        margin-top: 20px;
    }

    .entry-followup-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .entry-followup-card .btn {
        width: 100%;
    }

    .premium-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 20px 20px 20px 50px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 14px !important;
    }

    .timeline-year {
        font-size: 4rem;
        top: -10px;
        left: 50px !important;
        opacity: 0.05;
    }
}

/* Force center for PORTFOLIO header (last override) */
#gallery .section-header.center.portfolio-header {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#gallery .section-header.center.portfolio-header * {
    text-align: center !important;
}
