/* ============================================================
   如意天命理 — Official Brand Site
   Palette drawn from brand banner purple + auspicious gold
   ============================================================ */

:root {
    --indigo-950: #14102A;
    --indigo-900: #1A1440;
    --indigo-800: #2E2468;
    --indigo-700: #3D3180;
    --indigo-600: #4A3B9A;
    --indigo-500: #6B5BC4;
    --gold-500: #C9A54A;
    --gold-400: #D4B86A;
    --gold-300: #E8D5A3;
    --gold-200: #F3E9C9;
    --cream: #F8F4EC;
    --cream-dark: #EFE8D8;
    --paper: #FFFcf7;
    --ink: #1C1830;
    --ink-soft: #4A4660;
    --ink-muted: #7A7690;
    --line: rgba(46, 36, 104, 0.12);
    --line-light: rgba(255, 255, 255, 0.14);
    --shadow: 0 18px 50px rgba(20, 16, 42, 0.14);
    --radius: 14px;
    --header-h: 76px;
    --font-serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
    --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

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

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ---------- Utilities ---------- */

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--indigo-600);
    margin: 0 0 0.85rem;
}

.eyebrow.gold { color: var(--gold-400); }

.hero__eyebrow {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    letter-spacing: 0.22em;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.section {
    padding: 5.5rem 0;
}

.section--indigo {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(107, 91, 196, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 165, 74, 0.12), transparent 50%),
        linear-gradient(165deg, var(--indigo-900), var(--indigo-800) 55%, var(--indigo-950));
    color: #fff;
}

.section--soft {
    background: linear-gradient(180deg, var(--cream-dark), var(--cream));
}

.section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    color: var(--indigo-900);
}

.section-head--light h2 { color: #fff; }

.section-head__desc {
    color: var(--ink-soft);
    margin: 0;
}

.section-head--light .section-head__desc {
    color: rgba(255, 255, 255, 0.72);
}

.section-cta {
    text-align: center;
    margin-top: 2.75rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--indigo-700);
    font-weight: 500;
    letter-spacing: 0.06em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), color 0.25s;
}

.text-link:hover {
    color: var(--gold-500);
    border-bottom-color: var(--gold-500);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--indigo-950);
    box-shadow: 0 8px 24px rgba(201, 165, 74, 0.3);
}

.btn--gold:hover {
    box-shadow: 0 12px 30px rgba(201, 165, 74, 0.42);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(46, 36, 104, 0.35);
    color: var(--indigo-800);
}

.btn--ghost:hover {
    border-color: var(--indigo-800);
    background: rgba(46, 36, 104, 0.05);
}

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

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

.btn--outline {
    background: transparent;
    border-color: var(--indigo-700);
    color: var(--indigo-800);
}

.btn--outline:hover {
    background: var(--indigo-800);
    color: #fff;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn--block {
    width: 100%;
}

.btn-submit {
    position: relative;
    gap: 0.55rem;
    min-height: 3rem;
}

.btn-submit.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.92;
}

.btn-submit.is-loading:hover {
    transform: none;
}

.btn-submit__spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(26, 20, 64, 0.2);
    border-top-color: var(--indigo-950);
    border-radius: 50%;
    flex-shrink: 0;
    animation: btn-spin 0.7s linear infinite;
}

.btn-submit.is-loading .btn-submit__spinner {
    display: inline-block;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-submit__spinner {
        animation: none;
        border-top-color: var(--indigo-950);
        opacity: 0.7;
    }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(248, 244, 236, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 24px rgba(20, 16, 42, 0.06);
    background: rgba(248, 244, 236, 0.96);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--indigo-800);
    min-width: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    color: var(--indigo-700);
    flex-shrink: 0;
}

.brand__name {
    display: block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.brand__sub {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    margin-top: 0.15rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem 1.35rem;
}

.site-nav a {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.2s;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--indigo-800);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    background: var(--indigo-800);
    color: var(--gold-300) !important;
    font-weight: 500;
    letter-spacing: 0.04em !important;
}

.nav-cta:hover {
    background: var(--indigo-700);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--indigo-800);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 80% at 85% 20%, rgba(201, 165, 74, 0.12), transparent 50%),
        linear-gradient(180deg, var(--cream) 0%, #F0EBE0 100%);
}

.hero__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    right: -10%;
    top: -15%;
    background: radial-gradient(circle, rgba(74, 59, 154, 0.12), transparent 65%);
}

.hero__bagua-float {
    position: absolute;
    right: 2%;
    top: 12%;
    color: var(--indigo-700);
    opacity: 0.1;
    animation: bagua-spin 80s linear infinite;
    transform-origin: center center;
}

@keyframes bagua-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__bagua-mark {
    display: inline-flex;
    color: var(--gold-500);
    opacity: 0.95;
    margin-bottom: 1.1rem;
    filter: drop-shadow(0 6px 18px rgba(201, 165, 74, 0.28));
    animation: bagua-spin-center 60s linear infinite;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero__copy h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    color: var(--indigo-900);
    margin-bottom: 1.25rem;
}

.hero__line { display: block; }

.hero__line--accent {
    background: linear-gradient(90deg, var(--indigo-700), var(--gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__pillars li {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--indigo-700);
    background: rgba(255, 255, 255, 0.55);
}

.hero__visual {
    position: relative;
}

.hero__frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 165, 74, 0.25);
}

.hero__frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.hero__badge {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(26, 20, 64, 0.88);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(201, 165, 74, 0.35);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__badge-phone {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: var(--gold-300);
}

.hero__badge-name {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.12em;
}

/* ---------- Trust bar ---------- */

.trust-bar {
    background: var(--indigo-900);
    color: var(--gold-300);
    padding: 1.1rem 0;
    border-top: 1px solid rgba(201, 165, 74, 0.2);
    border-bottom: 1px solid rgba(201, 165, 74, 0.2);
}

.trust-bar__scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
}

.trust-chip {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(232, 213, 163, 0.25);
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- About teaser ---------- */

.about-teaser__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-teaser__media {
    position: relative;
}

.about-teaser__media img {
    border-radius: 18px;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.about-teaser__seal {
    position: absolute;
    right: -1rem;
    bottom: 1.5rem;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--indigo-800);
    color: var(--gold-300);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(46, 36, 104, 0.35);
    border: 2px solid var(--gold-400);
}

.about-teaser__body h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--indigo-900);
}

.about-teaser__body p {
    color: var(--ink-soft);
}

.about-teaser__body strong {
    color: var(--indigo-800);
    font-weight: 600;
}

/* ---------- Video section ---------- */

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 165, 74, 0.28);
    background: var(--indigo-950);
}

.video-frame--featured {
    width: min(900px, 100%);
    margin: 0 auto 1.25rem;
    border-radius: 16px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    width: min(1100px, 100%);
    margin: 0 auto;
}

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

@media (max-width: 860px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ---------- Service cards ---------- */

.service-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 1.5rem 1.15rem;
    transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 165, 74, 0.4);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(201, 165, 74, 0.15);
    color: var(--gold-300);
    margin-bottom: 1rem;
}

.service-card__sub {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--gold-400);
    margin: 0 0 0.35rem;
}

.service-card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.65;
}

/* ---------- Scene mosaic ---------- */

.scene-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.scene-mosaic__item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
}

.scene-mosaic__item--lg {
    grid-row: span 2;
    min-height: 420px;
}

.scene-mosaic__item--wide {
    grid-column: span 2;
    min-height: 220px;
}

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

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

.scene-mosaic__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(20, 16, 42, 0.8));
    color: #fff;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */

.cta-band {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 91, 196, 0.25), transparent 50%),
        linear-gradient(120deg, var(--indigo-950), var(--indigo-800));
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-band__mark {
    color: var(--gold-400);
    opacity: 0.9;
    animation: bagua-spin-center 60s linear infinite;
}

@keyframes bagua-spin-center {
    to { transform: rotate(360deg); }
}

.cta-band blockquote {
    margin: 0;
    max-width: 36rem;
}

.cta-band blockquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: 0.1em;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.cta-band blockquote footer {
    color: var(--gold-300);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ---------- Page hero ---------- */

.page-hero {
    position: relative;
    padding: 4rem 0 3.5rem;
    background: linear-gradient(165deg, var(--indigo-900), var(--indigo-800));
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(201, 165, 74, 0.15), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(107, 91, 196, 0.25), transparent 40%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.page-hero__lead {
    color: rgba(255, 255, 255, 0.75);
    max-width: 32rem;
    margin: 0 auto;
}

/* ---------- About page ---------- */

.about-page__intro {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-page__portrait img {
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.about-page__story h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--indigo-900);
}

.about-page__story p {
    color: var(--ink-soft);
}

.quote-inline {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--indigo-700) !important;
    border-left: 3px solid var(--gold-500);
    padding-left: 1rem;
    margin-top: 1.5rem !important;
}

.credentials {
    margin-bottom: 3.5rem;
}

.credentials__title {
    text-align: center;
    color: var(--indigo-900);
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
}

.credentials__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.credentials__list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.credentials__num {
    font-family: var(--font-serif);
    color: var(--gold-500);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.about-affiliations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.affiliation-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    border-top: 3px solid var(--indigo-700);
}

.affiliation-card h3 {
    color: var(--indigo-800);
    font-size: 1.2rem;
}

.affiliation-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.affiliation-card__addr {
    font-size: 0.88rem !important;
    color: var(--indigo-600) !important;
    letter-spacing: 0.04em;
}

.temple-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.temple-block__copy h2 {
    color: var(--indigo-900);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.temple-block__copy p {
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.temple-block__media img {
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* ---------- Services page ---------- */

.service-detail-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.service-detail--reverse {
    background: linear-gradient(135deg, rgba(46, 36, 104, 0.04), var(--paper));
}

.service-detail__index {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.service-detail__index > span {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold-500);
    letter-spacing: 0.08em;
}

.service-detail__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--indigo-800);
    color: var(--gold-300);
}

.service-detail__body h2 {
    color: var(--indigo-900);
    font-size: 1.6rem;
}

.service-detail__body p {
    color: var(--ink-soft);
}

.service-detail__note {
    font-size: 0.9rem;
    color: var(--indigo-600) !important;
    background: rgba(46, 36, 104, 0.06);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag-cloud li {
    padding: 0.7rem 1.3rem;
    border: 1px solid rgba(232, 213, 163, 0.35);
    border-radius: 999px;
    color: var(--gold-300);
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
}

.price-note__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.5rem;
}

.price-note__card h2 {
    color: var(--indigo-900);
    text-align: center;
}

.price-note__card ul {
    margin: 0 0 2rem;
    padding-left: 1.25rem;
    color: var(--ink-soft);
}

.price-note__card li {
    margin-bottom: 0.6rem;
}

.price-note__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ---------- Gallery ---------- */

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

.gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item__btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: var(--indigo-900);
}

.gallery-item__btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease), opacity 0.3s;
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(transparent 40%, rgba(20, 16, 42, 0.85));
    color: #fff;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item__btn:hover img {
    transform: scale(1.06);
    opacity: 0.9;
}

.gallery-item__btn:hover .gallery-item__overlay,
.gallery-item__btn:focus-visible .gallery-item__overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(14, 10, 30, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: min(960px, 100%);
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: var(--gold-300);
    letter-spacing: 0.08em;
    margin: 0;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    color: var(--indigo-900);
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list__label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-bottom: 0.25rem;
}

.contact-list__value {
    display: block;
    color: var(--indigo-800);
}

.contact-list__value--lg {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--indigo-700);
    letter-spacing: 0.06em;
}

.contact-list__value a:hover {
    color: var(--gold-500);
}

.muted { color: var(--ink-muted); }

.contact-card-visual {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-card-visual img {
    width: 100%;
}

.contact-form-wrap {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
}

.contact-form-lead {
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-row {
    margin-bottom: 1.15rem;
}

.form-row label {
    display: block;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
}

.req { color: #B83A3A; }

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--indigo-600);
    box-shadow: 0 0 0 3px rgba(74, 59, 154, 0.15);
}

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

.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert--success {
    background: rgba(46, 120, 80, 0.1);
    border: 1px solid rgba(46, 120, 80, 0.25);
    color: #1e5c3a;
}

.alert--error {
    background: rgba(184, 58, 58, 0.08);
    border: 1px solid rgba(184, 58, 58, 0.25);
    color: #8b2a2a;
}

.alert--error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.map-hint {
    text-align: center;
    max-width: 720px;
}

.map-hint h2 {
    color: var(--indigo-900);
}

.map-hint p {
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.map-hint__frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* ---------- Footer ---------- */

.site-footer {
    background: var(--indigo-950);
    color: rgba(255, 255, 255, 0.78);
    margin-top: auto;
}

.footer-ornament {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-300), var(--gold-500), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.1fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-brand__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold-300);
    margin-bottom: 1rem;
}

.footer-brand__name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 0.12em;
    margin: 0;
}

.footer-brand__master {
    font-size: 0.85rem;
    color: var(--gold-300);
    letter-spacing: 0.08em;
    margin: 0.2rem 0 0;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.06em;
    margin: 0;
}

.footer-col h3 {
    font-size: 0.95rem;
    color: var(--gold-300);
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: var(--gold-300);
}

.footer-contact li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.footer-contact .label {
    color: var(--gold-400);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p { margin: 0; }

/* ---------- Float call ---------- */

.float-call {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem 0.75rem 0.85rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--indigo-950);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(201, 165, 74, 0.45);
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.float-call:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px rgba(201, 165, 74, 0.55);
}

.float-call__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 20, 64, 0.12);
}

/* ---------- Bagua ---------- */

.bagua-svg {
    display: block;
}

/* ---------- Responsive ---------- */

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

    .service-cards .service-card:nth-child(4),
    .service-cards .service-card:nth-child(5) {
        grid-column: span 1;
    }

    .scene-mosaic {
        grid-template-columns: 1fr 1fr;
    }

    .scene-mosaic__item--lg {
        grid-row: auto;
        min-height: 260px;
    }

    .scene-mosaic__item--wide {
        grid-column: span 2;
    }

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

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(248, 244, 236, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 30px rgba(20, 16, 42, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a::after { display: none; }

    .nav-cta {
        margin-top: 0.75rem;
        text-align: center;
        border-bottom: 0 !important;
    }

    .hero__grid,
    .about-teaser__grid,
    .about-page__intro,
    .temple-block,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }

    .hero__bagua-float {
        right: -8%;
        top: auto;
        bottom: 8%;
        opacity: 0.08;
    }

    .hero__bagua-float .bagua-svg {
        width: 180px;
        height: 180px;
    }

    .hero__bagua-mark {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__copy {
        text-align: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__pillars {
        justify-content: center;
    }

    .about-teaser__seal {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .credentials__list,
    .about-affiliations {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail__index {
        flex-direction: row;
        justify-content: center;
    }

    .footer-contact li {
        grid-template-columns: 3rem 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 1.5rem);
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .scene-mosaic {
        grid-template-columns: 1fr;
    }

    .scene-mosaic__item--wide {
        grid-column: auto;
    }

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

    .float-call__text {
        display: none;
    }

    .float-call {
        padding: 0.85rem;
        border-radius: 50%;
    }

    .contact-form-wrap {
        padding: 1.35rem;
    }

    .price-note__card {
        padding: 1.5rem;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero__bagua-float,
    .hero__bagua-mark,
    .cta-band__mark {
        animation: none;
    }

    .btn:hover,
    .service-card:hover,
    .float-call:hover {
        transform: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
}
