:root {
    --mm-bg: #1A0E26;
    --mm-surface: #160f1e;
    --mm-peri: #8b9fe8;
    --mm-accent: #e8622a;
    --mm-cream: #f0e8d8;
    --mm-muted: #7a6878;
    --mm-border: rgba(139,159,232,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.site { background: var(--mm-bg); color: var(--mm-cream); width: 100%; overflow-x: hidden; font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2.5rem; border-bottom: 1px solid var(--mm-border); position: relative; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--mm-cream); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle .nav-toggle-close { display: none; }
.nav.open .nav-toggle .nav-toggle-open { display: none; }
.nav.open .nav-toggle .nav-toggle-close { display: block; }
.nav-logo { font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mm-peri); font-family: 'Instrument Serif', Georgia, serif; display: flex; align-items: center; }
.nav-logo-img { height: 22px; width: auto; display: block; }
.nav-logo svg { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--mm-accent); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: Helvetica, sans-serif; transition: color 0.2s; }
.nav-links a:hover { color: var(--mm-cream); }

.hero { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem 4rem; text-align: center; border-bottom: 2px solid var(--mm-peri); position: relative; }
.hero-bg { position: relative; background-image: url("https://moonmirrortarot.com/assets/images/tarot-reading.webp"); background-size: cover; background-position: center top; min-height: 640px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,6,16,0.53) 0%, rgba(14,10,18,0.67) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0; }
.hero-bg .hero-title { color: #f5efe4; text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.hero-bg .hero-eyebrow { color: var(--mm-accent); }
.hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mm-accent); font-family: Helvetica, sans-serif; margin-bottom: 0.9rem; }
.hero-content > div:last-child { margin-top: 1.8rem; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; color: var(--mm-cream); margin-bottom: 1.2rem; font-weight: normal; font-family: 'Instrument Serif', Georgia, serif; }
.hero-title em { color: var(--mm-peri); font-style: italic; }
.hero-sub { font-size: 1.05rem; color: var(--mm-muted); max-width: 460px; line-height: 1.8; margin-bottom: 2.5rem; font-family: Helvetica, sans-serif; font-weight: 300; }

.btn-primary {
    display: inline-block;
    background: #e8622a !important;
    color: var(--mm-cream) !important;
    text-decoration: none !important;
    border: 1px solid #e8622a !important;
    padding: 0.85rem 2.2rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-family: Helvetica, sans-serif !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    transition: background 0.2s, color 0.2s !important;
    line-height: 1 !important;
    outline: none !important;
    -webkit-appearance: none !important;
}
.btn-primary:hover {
    background: transparent !important;
    color: #e8622a !important;
}
.btn-ghost {
    display: inline-block;
    background: transparent !important;
    color: var(--mm-cream) !important;
    text-decoration: none !important;
    border: 1px solid var(--mm-cream) !important;
    padding: 0.85rem 2.2rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-family: Helvetica, sans-serif !important;
    cursor: pointer !important;
    border-radius: 999px !important;
    transition: background 0.2s, color 0.2s !important;
    margin-left: 1rem !important;
    line-height: 1 !important;
    outline: none !important;
    -webkit-appearance: none !important;
}
.btn-ghost:hover {
    background: var(--mm-cream) !important;
    color: #1A0E26 !important;
}

.moon-deco { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; margin: 0 auto 2.8rem; position: relative; }
@keyframes mmPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.06); opacity: 1; }
}
.moon-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(139,159,232,0.45); animation: mmPulse 3.2s ease-in-out infinite; top: 50%; left: 50%; }
.moon-ring-1 { width: 90px; height: 90px; margin: -45px 0 0 -45px; animation-delay: 0s; }
.moon-ring-2 { width: 126px; height: 126px; margin: -63px 0 0 -63px; animation-delay: 1s; border-color: rgba(139,159,232,0.28); }
.moon-ring-3 { width: 164px; height: 164px; margin: -82px 0 0 -82px; animation-delay: 2s; border-color: rgba(139,159,232,0.14); }
.moon-core { width: 68px; height: 68px; border-radius: 50%; background: #3d3560; z-index: 2; position: relative; }

.section { padding: 5rem 2.5rem; }
#contact { border-bottom: 1px solid var(--mm-border); }
.section-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mm-accent); font-family: Helvetica, sans-serif; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--mm-cream); margin-bottom: 1.5rem; font-weight: normal; line-height: 1.2; font-family: 'Instrument Serif', Georgia, serif; }
.section-title em { color: var(--mm-peri); font-style: italic; }

.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.philosophy-text { font-size: 1rem; color: var(--mm-muted); line-height: 1.9; font-family: Helvetica, sans-serif; font-weight: 300; }
.philosophy-text p { margin-bottom: 1.2rem; }
.philosophy-grid img, .contact-info img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.philosophy-pull { font-size: 1.66rem; color: var(--mm-peri); line-height: 1.7; font-style: italic; border-left: 1px solid var(--mm-accent); padding-left: 1.5rem; font-family: 'Instrument Serif', Georgia, serif; }

.deck-note-inline { margin-top: 0.5rem; font-size: 0.76rem; color: var(--mm-muted); font-family: Helvetica, sans-serif; font-style: italic; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.service-card { background: var(--mm-surface); padding: 2rem 1.8rem; border: 1px solid var(--mm-border); border-radius: 10px; }
.service-num { font-size: 0.775rem; letter-spacing: 0.2em; color: var(--mm-accent); font-family: Helvetica, sans-serif; margin-bottom: 1rem; }
.service-name { font-size: 1.75rem; color: var(--mm-cream); margin-bottom: 0.8rem; font-weight: normal; font-family: 'Instrument Serif', Georgia, serif; }
.service-desc { font-size: 0.975rem; color: var(--mm-muted); line-height: 1.8; font-family: Helvetica, sans-serif; font-weight: 300; margin-bottom: 1.2rem; }
.service-price { font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mm-peri); font-family: Helvetica, sans-serif; }
.services-note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--mm-muted); font-family: Helvetica, sans-serif; font-style: italic; }
.services-note a { color: var(--mm-accent); text-decoration: none; }

.card-section { padding: 5rem 2.5rem; text-align: center; }
.card-row { display: flex; justify-content: center; gap: 1rem; margin: 3rem 0 2rem; flex-wrap: wrap; }

.tarot-wrap { position: relative; width: 240px; height: 320px; display: flex; align-items: center; justify-content: center; }
.tarot-card { width: 240px; height: 320px; border: 1px solid var(--mm-border); border-radius: 12px; background: #251A32; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.35s, border-color 0.3s; }
.tarot-card:hover { transform: translateY(-7px); border-color: var(--mm-peri); }
.tarot-card.flipped { border-color: var(--mm-accent); }

@keyframes innerRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.card-ring { position: absolute; border-radius: 50%; pointer-events: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cr1 { width: 42px; height: 42px; border: 1px solid rgba(139,159,232,0.7); animation: innerRingPulse 2.8s ease-in-out infinite 0s; }
.cr2 { width: 70px; height: 70px; border: 1px solid rgba(139,159,232,0.45); animation: innerRingPulse 2.8s ease-in-out infinite 0.8s; }
.cr3 { width: 95px; height: 95px; border: 1px solid rgba(139,159,232,0.22); animation: innerRingPulse 2.8s ease-in-out infinite 1.6s; }

.card-back { position: absolute; inset: 0; transition: opacity 0.35s; }
.card-front { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; opacity: 0; transition: opacity 0.35s; }
.card-front.card-front-image { padding: 0; display: block; }
.card-front-image .card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-front-symbol { width: 70%; aspect-ratio: 1; margin-bottom: 10px; color: var(--mm-cream); display: flex; align-items: center; justify-content: center; }
.card-front-symbol svg { width: 100%; height: 100%; }
.card-front-name { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mm-peri); font-family: Helvetica, sans-serif; text-align: center; }
.tarot-card.flipped .card-back { opacity: 0; }
.tarot-card.flipped .card-front { opacity: 1; }

.card-reading { min-height: 60px; font-size: 1.85rem; color: var(--mm-muted); font-style: italic; max-width: 760px; margin: 0 auto; line-height: 1.45; font-family: 'Instrument Serif', Georgia, serif; }
.card-hint { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mm-muted); font-family: Helvetica, sans-serif; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-grid > :nth-child(1) { order: 2; }
.contact-grid > :nth-child(2) { order: 1; }
.contact-form-field { margin-bottom: 1.2rem; }
.contact-form-field label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mm-muted); font-family: Helvetica, sans-serif; margin-bottom: 0.5rem; }
.contact-form-field input, .contact-form-field select, .contact-form-field textarea { width: 100%; background: #251A32; border: 1px solid var(--mm-border); color: var(--mm-cream); padding: 0.75rem 1rem; font-family: Helvetica, sans-serif; font-size: 0.88rem; border-radius: 6px; outline: none; }
.contact-form-field input:focus, .contact-form-field textarea:focus { border-color: var(--mm-peri); }
.contact-form-field select option { background: #251A32; }
.contact-form-field textarea { height: 100px; resize: vertical; }
.contact-info p { font-size: 0.9rem; color: var(--mm-muted); line-height: 1.9; font-family: Helvetica, sans-serif; margin-bottom: 2rem; font-weight: 300; }
.contact-detail { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mm-accent); flex-shrink: 0; }
.contact-detail span { font-size: 0.85rem; color: var(--mm-peri); font-family: Helvetica, sans-serif; }

.footer { padding: 2rem 2.5rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--mm-border); }
.footer-copy { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--mm-muted); font-family: Helvetica, sans-serif; }
.footer-mark { font-size: 1.2rem; color: var(--mm-peri); }

/* Slide-up entry animations */
@keyframes mmSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mm-reveal { opacity: 0; transform: translateY(28px); }
.mm-reveal.is-in { animation: mmSlideUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
@media (prefers-reduced-motion: reduce) {
    .mm-reveal, .mm-reveal.is-in { opacity: 1; transform: none; animation: none; }
}

/* Tablet */
@media (max-width: 960px) {
    .nav { padding: 1rem 1.5rem; flex-wrap: nowrap; }
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--mm-bg); border-bottom: 1px solid var(--mm-border); padding: 1rem 1.5rem calc(1rem + 20px); gap: 0.9rem; z-index: 20; }
    .nav.open .nav-links { display: flex; }
    .hero { min-height: 460px; padding: 4rem 1.5rem 3rem; }
    .section, .card-section { padding: 4rem 1.75rem; }
    .philosophy-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .philosophy-pull { font-size: 1.4rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .card-row { gap: 8px; }
}

/* Mobile */
@media (max-width: 600px) {
    .nav { padding: 0.9rem 1.1rem; }
    .nav-logo { font-size: 0.92rem; }
    .nav-links { gap: 0.9rem 1rem; }
    .nav-links a { font-size: 0.72rem; }
    .hero { min-height: 420px; padding: 3.25rem 1.1rem 2.75rem; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem) !important; }
    .hero-sub { font-size: 0.95rem; }
    .btn-ghost { margin-left: 0 !important; margin-top: 0.7rem !important; }
    .hero-content > div:last-child { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
    .section, .card-section { padding: 3rem 1.1rem; }
    .section-title { font-size: clamp(1.55rem, 6vw, 2rem); }
    .philosophy-pull { font-size: 1.2rem; padding-left: 1rem; }
    .service-card { padding: 1.5rem 1.3rem; }
    .service-name { font-size: 1.5rem; }
    .service-desc { font-size: 0.95rem; }
    .card-row { gap: 8px; margin: 2rem 0 1.5rem; }
    .tarot-wrap, .tarot-card { width: 175px; height: 233px; }
    .card-reading.in-row { flex: 1 0 100%; margin: 0.4rem 0 0.6rem; font-size: 1.35rem; min-height: 0; padding: 0 0.4rem; }
    .cr1 { width: 32px; height: 32px; }
    .cr2 { width: 54px; height: 54px; }
    .cr3 { width: 74px; height: 74px; }
    .card-front-symbol { width: 65%; }
    .card-front-name { font-size: 0.6rem; }
    .footer { flex-direction: column; gap: 0.75rem; padding: 1.5rem 1.1rem; text-align: center; }
}
