/*
Theme Name: Huo Movement Studio
Author: Development Team
Description: Cinematic premium theme for HUO Movement Studio - Hot Pilates
Version: 2.0.0
Text Domain: huo-theme
*/

/* ============================================
   BRAND IDENTITY - HUO Movement Studio
   Palette from Manual de Identidad (WARM LIGHT)
   ============================================ */
:root {
    /* Brand Colors */
    --huo-sienna: #7A3F2A;
    --huo-lobster: #8F4636;
    --huo-coral: #BF6E4F;
    --huo-peach: #CF8E61;
    --huo-warm-gray: #C9C2BD;
    --huo-cream: #F2EFEC;
    --huo-black: #0B0B0B;
    --huo-dark-brown: #3A1F14;

    /* Semantic Colors - WARM LIGHT MODE */
    --huo-bg: #F2EFEC;
    --huo-bg-alt: #EAE4DF;
    --huo-surface: rgba(255, 255, 255, 0.5);
    --huo-surface-warm: rgba(207, 142, 97, 0.08);
    --huo-border: rgba(122, 63, 42, 0.12);
    --huo-border-light: rgba(122, 63, 42, 0.06);
    --huo-text-main: #5A3527;
    --huo-text-muted: rgba(122, 63, 42, 0.75);
    --huo-text-warm: #7A3F2A;
    --huo-primary: #BF6E4F;
    --huo-primary-hover: #A5573B;
    --huo-glow: rgba(191, 110, 79, 0.25);

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Outfit', sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 12vw, 160px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--huo-bg);
    color: var(--huo-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--huo-coral);
    color: var(--huo-cream);
}

a {
    color: var(--huo-text-main);
    text-decoration: none;
    transition: color 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
}

a:hover {
    color: var(--huo-primary);
}

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

/* ============================================
   GRAIN TEXTURE OVERLAY
   Replicates the granulated texture from the brand manual
   ============================================ */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

.grain-overlay::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, -3%); }
    50%  { transform: translate(1%, 2%); }
    75%  { transform: translate(-1%, 1%); }
    100% { transform: translate(2%, -1%); }
}

/* ============================================
   ANIMATED BACKGROUND ORBS
   Full palette: Sienna, Lobster Red, Dark Coral,
   Peach, Warm Gray, Cream - from brand manual
   ============================================ */
.ambient-lights {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Orb 1 - DARK CORAL (dominant warm center-left) */
.ambient-orb--1 {
    width: 55vw;
    height: 55vw;
    max-width: 750px;
    max-height: 750px;
    background: radial-gradient(circle,
        rgba(191, 110, 79, 0.55) 0%,
        rgba(191, 110, 79, 0.25) 40%,
        transparent 70%
    );
    filter: blur(70px);
    top: -15%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite alternate;
}

/* Orb 2 - PEACH / ARENA DORADA (soft golden glow right) */
.ambient-orb--2 {
    width: 50vw;
    height: 50vw;
    max-width: 680px;
    max-height: 680px;
    background: radial-gradient(circle,
        rgba(207, 142, 97, 0.5) 0%,
        rgba(207, 142, 97, 0.2) 40%,
        transparent 70%
    );
    filter: blur(75px);
    top: 20%;
    right: -15%;
    animation: orbFloat2 24s ease-in-out infinite alternate;
}

/* Orb 3 - SIENNA (deep earthy bottom-left) */
.ambient-orb--3 {
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle,
        rgba(122, 63, 42, 0.45) 0%,
        rgba(122, 63, 42, 0.15) 40%,
        transparent 70%
    );
    filter: blur(80px);
    bottom: -10%;
    left: 15%;
    animation: orbFloat3 22s ease-in-out infinite alternate;
}

/* Orb 4 - LOBSTER RED (medium warm, roaming) */
.ambient-orb--4 {
    width: 40vw;
    height: 40vw;
    max-width: 520px;
    max-height: 520px;
    background: radial-gradient(circle,
        rgba(143, 70, 54, 0.4) 0%,
        rgba(143, 70, 54, 0.15) 40%,
        transparent 70%
    );
    filter: blur(70px);
    top: 55%;
    left: 50%;
    animation: orbFloat4 26s ease-in-out infinite alternate;
}

/* Orb 5 - WARM GRAY (cool contrast, subtle) */
.ambient-orb--5 {
    width: 48vw;
    height: 48vw;
    max-width: 640px;
    max-height: 640px;
    background: radial-gradient(circle,
        rgba(201, 194, 189, 0.45) 0%,
        rgba(201, 194, 189, 0.15) 40%,
        transparent 70%
    );
    filter: blur(90px);
    top: -5%;
    right: 10%;
    animation: orbFloat5 28s ease-in-out infinite alternate;
}

/* Orb 6 - CREAM / WHITE highlight (luminous accent) */
.ambient-orb--6 {
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle,
        rgba(242, 239, 236, 0.7) 0%,
        rgba(242, 239, 236, 0.3) 40%,
        transparent 70%
    );
    filter: blur(60px);
    top: 35%;
    left: 25%;
    animation: orbFloat6 18s ease-in-out infinite alternate;
}

/* Orb 7 - DARK CORAL + PEACH blend (smoky center) */
.ambient-orb--7 {
    width: 42vw;
    height: 42vw;
    max-width: 560px;
    max-height: 560px;
    background: radial-gradient(ellipse,
        rgba(191, 110, 79, 0.35) 0%,
        rgba(207, 142, 97, 0.2) 30%,
        rgba(122, 63, 42, 0.1) 60%,
        transparent 80%
    );
    filter: blur(85px);
    bottom: 15%;
    right: 5%;
    animation: orbFloat7 30s ease-in-out infinite alternate;
}

/* -- ORB FLOAT ANIMATIONS -- */
@keyframes orbFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(12vw, 18vh) scale(1.15); }
    66%  { transform: translate(6vw, -8vh) scale(0.9); }
    100% { transform: translate(18vw, 12vh) scale(1.08); }
}

@keyframes orbFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-15vw, 10vh) scale(1.08); }
    66%  { transform: translate(-8vw, -12vh) scale(1.15); }
    100% { transform: translate(-10vw, 15vh) scale(0.92); }
}

@keyframes orbFloat3 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(10vw, -12vh) scale(1.12); }
    66%  { transform: translate(-8vw, -6vh) scale(0.95); }
    100% { transform: translate(-5vw, -8vh) scale(1.08); }
}

@keyframes orbFloat4 {
    0%   { transform: translate(0, 0) scale(0.9); }
    33%  { transform: translate(-12vw, 8vh) scale(1.1); }
    66%  { transform: translate(8vw, -6vh) scale(1); }
    100% { transform: translate(6vw, -10vh) scale(1.12); }
}

@keyframes orbFloat5 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-8vw, 12vh) scale(1.08); }
    66%  { transform: translate(5vw, 6vh) scale(0.92); }
    100% { transform: translate(-12vw, -5vh) scale(1.05); }
}

@keyframes orbFloat6 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(10vw, -8vh) scale(1.2); }
    100% { transform: translate(-8vw, 6vh) scale(0.95); }
}

@keyframes orbFloat7 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(6vw, -15vh) scale(1.1); }
    66%  { transform: translate(-10vw, 5vh) scale(1.05); }
    100% { transform: translate(8vw, 10vh) scale(0.9); }
}

/* Ensure all content sits above the orbs + grain */
.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 3;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-top: 0;
    color: var(--huo-sienna);
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
}

h4 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

p {
    font-weight: 300;
    letter-spacing: 0.01em;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--huo-text-main);
}

.text-serif { font-family: var(--font-serif); }
.text-sans  { font-family: var(--font-sans); }

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.text-center { text-align: center; }
.text-primary { color: var(--huo-primary); }
.text-muted { color: var(--huo-text-muted); }
.text-warm { color: var(--huo-text-warm); }

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: var(--font-sans);
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 400;
    color: var(--huo-coral);
    font-family: var(--font-sans);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 44px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--ease-out-expo);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--huo-coral), var(--huo-sienna));
    color: var(--huo-cream);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--huo-peach), var(--huo-coral));
    color: var(--huo-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(191, 110, 79, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--huo-sienna);
    border: 1px solid rgba(122, 63, 42, 0.3);
}

.btn-outline:hover {
    border-color: var(--huo-coral);
    color: var(--huo-coral);
    background: rgba(191, 110, 79, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   DIVIDERS & DECORATIVE
   ============================================ */
.huo-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--huo-coral), transparent);
    margin: 24px auto;
}

/* ============================================
   SECTION HEADER COMPONENT
   ============================================ */
.section-header {
    margin-bottom: 60px;
}

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

.section-header--left {
    text-align: left;
}

.section-header--left .huo-divider {
    margin-left: 0;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-header__sub {
    margin-top: 16px;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--huo-text-muted);
    max-width: 550px;
    line-height: 1.8;
}

.section-header--center .section-header__sub {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE CONTENT (for inner pages via index.php)
   ============================================ */
.huo-page-content {
    padding: var(--section-pad) 0;
    min-height: 50vh;
}

.huo-page-content h1,
.huo-page-content h2,
.huo-page-content h3 {
    color: var(--huo-sienna);
}

.huo-page-content a {
    color: var(--huo-coral);
    text-decoration: underline;
    text-decoration-color: rgba(191, 110, 79, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.huo-page-content a:hover {
    text-decoration-color: var(--huo-coral);
}

.huo-page-content img {
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(122, 63, 42, 0.08);
}

/* ============================================
   SCROLL REVEAL BASE
   ============================================ */
[data-motion] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-motion="fade-up"]    { transform: translateY(60px); }
[data-motion="fade-down"]  { transform: translateY(-40px); }
[data-motion="fade-left"]  { transform: translateX(60px); }
[data-motion="fade-right"] { transform: translateX(-60px); }
[data-motion="scale-up"]   { transform: scale(0.85); }
[data-motion="blur-in"]    { filter: blur(20px); transform: scale(0.95); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }

    .ambient-orb { filter: blur(50px); }
    .grain-overlay { opacity: 0.25; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* --- Class Types Section (12-col Grid with intentional spans) --- */
.class-types-section {
    padding: var(--section-pad) 0;
    background: var(--huo-bg);
    position: relative;
}

/*
 * 7 cards distribution:
 *  • Mobile: 1 col full-width (7 rows × 1)
 *  • Tablet ≥640px: regular 2-per-row + HOT 3-per-row  → 2+2+3
 *  • Desktop ≥1024px: 4 regular on row 1, 3 HOT on row 2 → 4+3
 *    (HOT cards span wider, reinforcing their visual weight)
 */
.class-types-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 2.2vw, 32px);
    margin-top: clamp(40px, 6vw, 80px);
    align-items: stretch;
}

/* Mobile default — every card spans full row */
.class-card {
    grid-column: span 12;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--huo-border);
    background: var(--huo-surface);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo);
    isolation: isolate;
}

/* Tablet — regular: 2 per row (span 6); HOT: 3 per row (span 4) */
@media (min-width: 640px) {
    .class-card {
        grid-column: span 6;
    }
    .class-card--hot {
        grid-column: span 4;
    }
}

/* Desktop — regular: 4 per row (span 3); HOT: 3 per row (span 4) */
@media (min-width: 1024px) {
    .class-card:not(.class-card--hot) {
        grid-column: span 3;
    }
    .class-card--hot {
        grid-column: span 4;
    }
}

.class-card:hover {
    transform: translateY(-6px);
    border-color: var(--huo-coral);
    box-shadow: 0 20px 60px -20px var(--huo-glow);
}

/* Placeholder background — replace with real image via .class-card__bg */
.class-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, 0.35), transparent 60%),
        linear-gradient(160deg, var(--huo-bg-alt), var(--huo-cream) 70%);
    transition: transform 1.2s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.class-card:hover .class-card__bg {
    transform: scale(1.04);
}

.class-card__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: clamp(28px, 3.4vw, 42px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.class-card__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    line-height: 1.1;
    color: var(--huo-text-warm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.class-card__flame {
    font-size: 0.9em;
    filter: drop-shadow(0 2px 6px rgba(191, 110, 79, 0.5));
}

.class-card__text {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    line-height: 1.65;
    color: var(--huo-text-muted);
    margin: 0;
    /* Full text visible — no line-clamp */
}

.class-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--huo-cream);
    background: linear-gradient(135deg, var(--huo-coral), var(--huo-sienna));
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}

.class-card__cta:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 30px -10px var(--huo-glow);
}

/* HOT variant — visually differentiated with intense coral/sienna */
.class-card--hot {
    border-color: rgba(191, 110, 79, 0.55);
    box-shadow: 0 0 0 1px rgba(191, 110, 79, 0.15) inset, 0 10px 40px -20px rgba(143, 70, 54, 0.35);
}

.class-card--hot .class-card__bg {
    background:
        radial-gradient(130% 90% at 20% 10%, rgba(255, 200, 160, 0.3), transparent 55%),
        linear-gradient(160deg, var(--huo-lobster), var(--huo-sienna) 55%, var(--huo-dark-brown));
}

.class-card--hot .class-card__title {
    color: var(--huo-cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.class-card--hot .class-card__text {
    color: rgba(242, 239, 236, 0.92);
}

.class-card--hot .class-card__cta {
    background: linear-gradient(135deg, var(--huo-peach), var(--huo-coral));
    color: var(--huo-dark-brown);
}

.class-card--hot:hover {
    border-color: var(--huo-peach);
    box-shadow: 0 0 0 1px rgba(207, 142, 97, 0.35) inset, 0 25px 70px -20px rgba(143, 70, 54, 0.55);
}

