/*
Theme Name: Hayley Enright
Theme URI: https://hayleyenright.com
Author: Antigravity
Author URI: https://google.com
Description: High-end, "special," and boundary-pushing wellness theme for the Hayley Enright 2.0 rebuild.
Version: 2.0.0
Text Domain: acupunctura-lisboa-v2
*/

html {
    font-size: 17px;
}
@media (max-width: 767px) {
    html {
        font-size: 16.5px;
    }
}

/**
 * 0. Circadian Field Tokens (Biological Lighting)
 */
:root {
    --stone-morning: #EEECE7;
    --stone-evening: #D8D4CC; /* Warmer, softer field */
    --transition-glacial: 1.5s cubic-bezier(0.2, 0, 0, 1);
}

body.morning-field { background-color: var(--stone-morning); }
body.evening-field { background-color: var(--stone-evening); }

/**
 * 1. Reveal Animations (Glacial Pace)
 */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-glacial);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/**
 * Magnetic Buttons
 */
.magnetic {
    transition: transform 0.1s ease-out;
}

/**
 * Marquee Animation
 */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/**
 * Custom Cursor
 */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: #4A5D4E;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(74, 93, 78, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out;
}

/**
 * Page Transitions
 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    z-index: 10000;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none; /* Allow clicking through when it's just moving */
}

.page-transition.active {
    transform: translateY(0);
    pointer-events: auto;
}

/**
 * Floating CTA
 */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    transform: translateY(100px);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.floating-cta.visible {
    transform: translateY(0);
}

/**
 * Global Typography Softening
 */
h1, h2, h3, h4, .font-clash {
    font-family: "Cormorant Garamond", serif !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

h1 {
    letter-spacing: 0.02em;
    line-height: 1.05;
}

/* Refine Magnetic Hover for Wellness */
.magnetic:hover {
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

/**
 * Immersive Stillness Redesign (Phase 10.1)
 */

/* 1. The Stillness Portal Overrides */
body.silent-mode main, 
body.silent-mode footer,
body.silent-mode #masthead nav {
    opacity: 0.1;
    filter: blur(5px);
    pointer-events: none;
    transition: all 3s ease;
}

body.silent-mode #stillness-portal {
    opacity: 1;
    pointer-events: auto;
}

/* 1.1 The Drift Animation (Option A) */
#stillness-portal video,
#stillness-portal div.bg-cover {
    animation: stillness-drift 60s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes stillness-drift {
    0% { transform: scale(1.1) translate(0, 0); }
    100% { transform: scale(1.3) translate(-2%, -3%); }
}

/* 2. Auric Pulse Visualizer (Replaces dashed circles) */
.auric-pulse {
    fill: #4A5D4E; /* Default Earthy Sage */
    filter: blur(40px);
    opacity: 0.45;
    transform-origin: center;
    animation: auric-breathe 12s ease-in-out infinite alternate;
    transition: fill 5s cubic-bezier(0.2, 0, 0, 1);
}

body.evening-field .auric-pulse {
    fill: #8B5E3C; /* Soft Amber / Burnt Earth for evening */
}

@keyframes auric-breathe {
    0% { transform: scale(0.9); opacity: 0.3; filter: blur(30px); }
    50% { opacity: 0.7; filter: blur(60px); }
    100% { transform: scale(1.5); opacity: 0.5; filter: blur(40px); }
}

/* 3. Filmic Grain Texture (DEACTIVATED FLICKER) */
.filmic-grain::after {
    display: none;
}

@keyframes grain-dance {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

/* High-End Ken Burns Pan for Hero Images */
.ken-burns {
    animation: ken-burns-pan 30s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes ken-burns-pan {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}

/**
 * Silent Mode (Clinical Calm)
 */
body.silent-mode {
    background-color: #EEECE7 !important; /* Warmer, softer stone */
    transition: background-color 3s cubic-bezier(0.2, 0, 0, 1), opacity 2s ease;
}

body.silent-mode .reveal {
    transition-duration: 3s !important;
}

body.silent-mode .font-clash, 
body.silent-mode h1, 
body.silent-mode h2 {
    font-weight: 300 !important; /* Extremely light serif for meditative state */
    opacity: 0.7;
}

body.silent-mode #silence-toggle span.bg-noir {
    background-color: #4A5D4E !important;
    box-shadow: 0 0 15px rgba(74, 93, 78, 0.4);
}

body.silent-mode #silence-toggle .opacity-40 {
    opacity: 1;
    color: #4A5D4E;
}

/**
 * 1.3 Mobile Menu Polish & UI Collision Fix
 */
body.menu-open {
    overflow: hidden;
}

/* Hide desktop header actions when mobile menu is active to prevent overlap */
body.menu-open #masthead .nav-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Ensure mobile menu sits above all desktop elements */
#mobile-menu {
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

/**
 * 2.0 Living Blueprint / Integration Map
 */
#somatic-waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.living-blueprint-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-height: 500px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.03));
}

.somatic-node {
    fill: var(--stone-evening);
    opacity: 0.3;
    transition: all 2s cubic-bezier(0.2, 0, 0, 1);
    transform-origin: center;
}

.somatic-node.active {
    fill: #4A5D4E; /* Earthy Sage */
    opacity: 0.8;
    filter: drop-shadow(0 0 12px rgba(74, 93, 78, 0.6));
    animation: somatic-breathe 10s ease-in-out infinite alternate;
}

@keyframes somatic-breathe {
    0% { transform: scale(0.9); opacity: 0.6; filter: drop-shadow(0 0 8px rgba(74, 93, 78, 0.4)); }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 16px rgba(74, 93, 78, 0.8)); }
}

.blueprint-line {
    stroke: rgba(10, 10, 10, 0.05); /* Very light noir */
    stroke-width: 1;
    fill: none;
    transition: stroke 2s ease;
}

.somatic-container:hover .blueprint-line {
    stroke: rgba(255, 255, 255, 0.2);
}

/* Callout hairline from node to label */
.callout-line {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 0.5;
    fill: none;
    stroke-dasharray: 2, 2;
}

/* Primary label text */
.blueprint-label {
    font-size: 9px;
    fill: rgba(255, 255, 255, 0.9);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    letter-spacing: 0.04em;
}

/* "Tap to explore" subscript text */
.blueprint-sublabel {
    font-size: 6px;
    fill: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Outer pulsing glow ring - default hidden */
.somatic-node-ring {
    fill: transparent;
    stroke: rgba(74, 93, 78, 0);
    stroke-width: 1;
    transition: all 2s cubic-bezier(0.2, 0, 0, 1);
}

/* Active outer glow ring */
.somatic-node-ring.active {
    stroke: rgba(74, 93, 78, 0.35);
    animation: ring-breathe 8s ease-in-out infinite alternate;
}

@keyframes ring-breathe {
    0%   { stroke-width: 0.5; stroke-opacity: 0.2; }
    100% { stroke-width: 1.5; stroke-opacity: 0.6; }
}
