/* 
  Main Stylesheet: XOXO, AGreeno

  Philosophy:
  - Simple structure
  - Minimal animation
  - Compositor-friendly hover effects
  - No layout changes on interaction
*/

:root {
    --accent: #e8a4b8;
    --accent-soft: rgba(232, 164, 184, 0.18);
    --bg-dark: #21072E;
    --bg-overlay: rgba(21, 18, 38, 0.0);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-dark);
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* --------------- BACKGROUND --------------- */
.pattern-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.pattern-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --------------- TYPOGRAPHY --------------- */
h1 {
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-family: "Indie Flower", cursive;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

p {
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 2.4rem;
}

/* --------------- LAYOUT --------------- */
.page {
    min-height: 100vh;
    padding: 4.5rem 1.5rem 2.0rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.home .container {
    max-width: 450px;
}

.home .container>p {
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.55),
        0 0 22px rgba(175, 56, 130, 0.65),
        0 0 38px rgba(0, 255, 255, 0.55),
        0 0 52px rgba(0, 255, 255, 0.35);
}

.mohi-spirit-wear .container {
    border: 2px solid rgb(175 56 130);
    border-radius: 1.25rem;
    padding: 2.5rem 2.0rem;
}

/* --------------- LOGO --------------- */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2.0rem;
}

.logo img {
    width: min(420px, 85vw);
    height: auto;
    filter:
        drop-shadow(0 0 18px rgba(255, 0, 230, 0.35)) drop-shadow(0 0 36px rgba(0, 255, 255, 0.25));
}

body:not(.home) .logo img {
    width: min(200px, 75vw);
}

/* --------------- NAVIGATION BUTTONS --------------- */
nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-bottom: 3.5rem;
}

nav a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15.375rem;
    height: 3.75rem;
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    padding: 0 0.5rem;
    border-radius: 2.5rem;
    border: 3px solid #AF3882;
    background-color: transparent;
    background-image: linear-gradient(45deg,
            rgba(175, 56, 130, 0.471) 0%,
            transparent 100%);
    color: rgba(255, 255, 255, 0.83);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        text-shadow 0.18s ease;
    will-change: transform;
}

nav a:hover {
    transform: scale(1.05);
    background-color: rgba(1, 255, 255, 0.16);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(175, 56, 130, 0.75);
}

.morph-label {
    position: relative;
    overflow: hidden;
}

/* both labels occupy the same centered space */
.morph-label span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

/* default state */
.label-primary {
    opacity: 1;
    transform: translateY(0);
}

/* hidden state */
.label-secondary {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* hover / focus */
.morph-label:hover .label-primary,
.morph-label:focus-visible .label-primary {
    opacity: 0;
    transform: translateY(-6px);
}

.morph-label:hover .label-secondary,
.morph-label:focus-visible .label-secondary {
    opacity: 1;
    transform: translateY(0);
}

.link-grid-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.link-grid-secondary {
    margin-bottom: 2rem;
}

.link-grid-secondary a {
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 0.15rem;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.link-grid-secondary a:hover {
    color: #ffffff;
    border-color: rgba(0, 255, 255, 0.75);
}

.detail-page .content {
    align-items: flex-start;
}

.detail-page .container {
    display: grid;
    gap: 1.5rem;
    width: min(900px, 100%);
}

.section-card {
    border: 2px solid rgba(175, 56, 130, 0.78);
    border-radius: 1.5rem;
    background: rgba(18, 12, 32, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.08);
}

.section-card h1,
.section-card h2,
.section-card h3,
.section-card p {
    text-align: left;
}

.section-card h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    margin: 0 0 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
}

.section-card h2 {
    margin-top: 0;
    font-family: "Alfa Slab One", serif;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.section-card h3 {
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 255, 255, 0.78);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-card p.lead-copy {
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.section-card p.lead-copy--compact {
    margin-bottom: 0.85rem;
}

.payment-panel {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(6, 14, 30, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payment-panel__header {
    display: block;
    margin-bottom: 1.5rem;
}

.payment-panel__content {
    display: grid;
    gap: 1.25rem;
}

.mini-label {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(175, 56, 130, 0.92);
}

.instruction-note {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(159, 239, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.instruction-note p:last-child {
    margin-bottom: 0;
}

.payment-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.payment-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.75rem;
    padding: 0 0.5rem;
    border-radius: 2.5rem;
    border: 3px solid #AF3882;
    background-color: transparent;
    background-image: linear-gradient(45deg,
            rgba(175, 56, 130, 0.471) 0%,
            transparent 100%);
    color: rgba(255, 255, 255, 0.83);
    text-decoration: none;
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        text-shadow 0.18s ease;
    will-change: transform;
}

.section-card a.payment-chip:hover {
    transform: scale(1.05);
    background-color: rgba(1, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.83);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(175, 56, 130, 0.75);
}

.instruction-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.6rem;
}

.form-jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
}

.form-jump-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.75rem;
    padding: 0 0.5rem;
    border-radius: 2.5rem;
    border: 3px solid #AF3882;
    background-color: transparent;
    background-image: linear-gradient(45deg,
            rgba(175, 56, 130, 0.471) 0%,
            transparent 100%);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.83);
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        text-shadow 0.18s ease;
    will-change: transform;
}

.section-card .form-jump-links a:hover {
    transform: scale(1.05);
    background-color: rgba(1, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.83);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(175, 56, 130, 0.75);
}

.embed-stack {
    display: grid;
    gap: 1.25rem;
}

.embed-frame {
    border: 1px solid rgba(159, 239, 255, 0.16);
    border-radius: 1.25rem;
    overflow: hidden;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.embed-frame iframe {
    border: 0;
    border-radius: 0.75rem;
    display: block;
}

.site-form {
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field span,
.form-fieldset legend {
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(175, 56, 130, 0.92);
}

.form-field input,
.form-field select {
    width: 100%;
    border: 1px solid rgba(159, 239, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.95rem 1rem;
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1rem;
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.08);
}

.form-fieldset {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid rgba(159, 239, 255, 0.16);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.fieldset-note {
    margin: 0.25rem 0 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
}

.checkbox-grid input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #AF3882;
}

.form-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.site-form-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 15.375rem;
    min-height: 3.75rem;
    padding: 0 0.9rem;
    border-radius: 2.5rem;
    border: 3px solid #AF3882;
    background-color: transparent;
    background-image: linear-gradient(45deg,
            rgba(175, 56, 130, 0.471) 0%,
            transparent 100%);
    color: rgba(255, 255, 255, 0.83);
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        text-shadow 0.18s ease;
}

.site-form-button:hover {
    transform: scale(1.05);
    background-color: rgba(1, 255, 255, 0.16);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(175, 56, 130, 0.75);
}

.section-card a {
    color: #9fefff;
}

.section-card a:hover {
    color: #ffffff;
}

/* --------------- SOCIAL ICONS --------------- */
.social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social a {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
}

.social a:hover {
    transform: scale(1.12);
}

.social-icon {
    width: 100%;
    height: 100%;
    fill: rgba(123, 97, 135, 0.7);
    transition:
        fill 0.15s ease,
        filter 0.15s ease;
}

.social a:hover .social-icon {
    fill: rgba(175, 56, 130, 0.75);
    filter:
        drop-shadow(0 0 10px rgba(175, 56, 130, 0.75)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.45));
}

/* Safari-specific */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .social a:hover .social-icon {
        filter: drop-shadow(0 0 5px rgba(255, 190, 215, 0.55));
    }
}

/* --------------- FOOTER --------------- */
footer {
    font-family: "Kantumruy Pro", "Open Sans", sans-serif;
    margin-top: auto;
    padding-top: 2.5rem;
    color: rgba(123, 97, 135, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-text {
    font-size: 0.80rem;
    text-align: center;
}

.scroll-top-button {
    position: fixed;
    right: max(1.25rem, calc((100vw - 900px) / 2 - 4.5rem));
    bottom: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2.5rem;
    border: 3px solid #AF3882;
    background-color: transparent;
    background-image: linear-gradient(45deg,
            rgba(175, 56, 130, 0.471) 0%,
            transparent 100%);
    color: rgba(255, 255, 255, 0.83);
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        text-shadow 0.18s ease;
    will-change: transform;
    z-index: 20;
}

.scroll-top-button span {
    display: block;
}

.scroll-top-button__icon {
    width: 1.9rem;
    height: 1.9rem;
}

.scroll-top-button__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.scroll-top-button__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-top-button.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-button:hover {
    transform: scale(1.05);
    background-color: rgba(1, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.83);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(175, 56, 130, 0.75);
}

.scroll-top-button:hover .scroll-top-button__icon {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(175, 56, 130, 0.75));
}

/* --------------- RESPONSIVE TYPOGRAPHY --------------- */
@media (max-width: 480px) {
    p {
        font-size: 1rem;
    }

    .section-card {
        padding: 1.35rem;
    }

    .section-card h1 {
        font-size: 2.1rem;
    }

    .lead-copy {
        max-width: none;
    }

    .payment-panel {
        padding: 1.15rem;
    }

    .instruction-note-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top-button {
        right: 1rem;
        bottom: 1rem;
    }
}
