/*
Theme Name: OH WOW! Starter
Theme URI: https://ohwow.agency
Author: OH WOW! Agency
Author URI: https://ohwow.agency
Description: Tema base ultra-ligero para OH WOW! Agency, diseñado para trabajar con Elementor Pro. Incluye Custom Post Types, animaciones scroll-triggered personalizadas (word reveal, footer transition, Dynamic Island header), y soporte completo para Elementor Theme Builder.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohwow
Tags: one-page, custom-logo, elementor-ready, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================================
   Base Reset & Typography — Minimal foundation, Elementor handles the rest
   ========================================================================== */

:root {
    /* Brand Colors */
    --ohwow-accent: #C5FF00;
    --ohwow-dark: #0A0A0A;
    --ohwow-white: #FFFFFF;
    --ohwow-gray: #888888;
    --ohwow-gray-light: #F5F5F5;

    /* Typography */
    --ohwow-font-display: 'Outfit', sans-serif;
    --ohwow-font-body: 'Inter', sans-serif;

    /* Spacing */
    --ohwow-gap: clamp(1rem, 3vw, 2rem);

    /* Transitions */
    --ohwow-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ohwow-duration: 0.4s;
	
	/* Cursor */
	--cursor-light: url("http://ohwow-local.local/wp-content/uploads/2026/02/varitaWhite-e1771406525867.png") 0 0, auto;
    --cursor-dark: url("http://ohwow-local.local/wp-content/uploads/2026/02/varitaDark-1-e1771406546503.png") 0 0, auto;
	--cursor-glow: 0 0 15px rgba(255, 255, 255, 0.6);
	 
}

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



html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
	cursor: var(--cursor-light);
    font-family: var(--ohwow-font-body);
    color: var(--ohwow-dark);
    background-color: var(--ohwow-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 64px; /* Space for fixed header */
	transition: cursor 0.3s ease; 
}

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

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

/* ==========================================================================
   Section when the cursor change color
   ========================================================================== */

/* Sección negra */
.black-section,
.black-section * {
  cursor: var(--cursor-dark);
  transition: cursor 0.3s ease; /* Animación suave para la transición */
}

/* ==========================================================================
   Elementor Overrides — Ensure Elementor doesn't fight the theme
   ========================================================================== */

/* Remove default Elementor page padding when using full-width template */
.elementor-page .site-content {
    padding: 0;
    margin-bottom: 0;
}

/* Kill any bottom gap after footer widget */
.elementor-page .site-content > .elementor:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure Elementor sections can go full width */
.elementor-section.elementor-section-full_width {
    max-width: 100%;
}

/* Fix Elementor editor body class */
body.elementor-editor-active {
    overflow: visible;
}

/* ==========================================================================
   Dynamic Island Header — Progressive shrink: full → island → compact
   ========================================================================== */

.ohwow-dynamic-island {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, .3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    transform: none;
    border: none;
}

/* State 2: Floating island — wide (JS controls progressive values) */
.ohwow-dynamic-island.is-scrolled {
    /* JS handles: width, max-width, border-radius, top, padding, box-shadow */
}

/* State 3: Compact island (JS controls progressive values) */
.ohwow-dynamic-island.is-compact {
    /* JS handles: max-width, padding, box-shadow */
}

.ohwow-dynamic-island__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ohwow-dynamic-island__logo img {
    height: 36px;
    width: auto;
    transition: height 0.5s var(--ohwow-ease);
}

.ohwow-dynamic-island.is-scrolled .ohwow-dynamic-island__logo img {
    height: 28px;
}

.ohwow-dynamic-island__logo-text {
    font-family: var(--ohwow-font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ohwow-dark);
    white-space: nowrap;
    letter-spacing: -0.02em;
    transition: font-size 0.5s var(--ohwow-ease);
}

.ohwow-dynamic-island.is-scrolled .ohwow-dynamic-island__logo-text {
    font-size: 1rem;
}

.ohwow-dynamic-island__nav {
    display: none;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin-left: 40px;
    overflow: visible;
}

@media (min-width: 768px) {
    .ohwow-dynamic-island__nav {
        display: flex;
    }
}

.ohwow-dynamic-island__nav a {
    font-family: var(--ohwow-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ohwow-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.ohwow-dynamic-island__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: #BCED09;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ohwow-dynamic-island__nav a:hover::after,
.ohwow-dynamic-island__nav .current-menu-item > a::after,
.ohwow-dynamic-island__nav .current_page_item > a::after {
    width: 100%;
}

.ohwow-dynamic-island__nav a:hover {
    color: var(--ohwow-dark);
}

/* Hamburger */
.ohwow-dynamic-island__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 10001;
}

@media (min-width: 768px) {
    .ohwow-dynamic-island__hamburger {
        display: none;
    }
}

.ohwow-dynamic-island__hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ohwow-dark);
    border-radius: 2px;
    transition: all 0.3s var(--ohwow-ease);
    transform-origin: center;
}

.ohwow-dynamic-island__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ohwow-dynamic-island__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.ohwow-dynamic-island__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.ohwow-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ohwow-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.ohwow-mobile-nav__list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ohwow-mobile-nav__list a {
    font-family: var(--ohwow-font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--ohwow-white);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.ohwow-mobile-nav__list a:hover {
    color: var(--ohwow-accent);
}

/* ==========================================================================
   Scroll-Triggered Word Reveal Animation
   ========================================================================== */

[data-scroll-reveal] {
    overflow: hidden;
}

.ohwow-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(6px);
    transition:
        opacity 0.5s var(--ohwow-ease),
        filter 0.5s var(--ohwow-ease),
        transform 0.5s var(--ohwow-ease);
    will-change: opacity, filter, transform;
    /* Inherit all typography from parent */
    font-size: inherit !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    color: inherit !important;
}

.ohwow-word.is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Scroll reveal text block — layout only, typography controlled by Elementor */
.ohwow-scroll-text {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Reveal Elementor widget */
.ohwow-scroll-reveal .ohwow-word {
    font-size: inherit !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    line-height: inherit !important;
    letter-spacing: -1px !important;
    text-transform: inherit !important;
    color: inherit !important;
}

.ohwow-step {
    position: relative;
    min-height: 200vh;
}

.ohwow-step__sticky {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.6s ease;
}

.ohwow-step.is-hidden .ohwow-step__sticky {
    opacity: 0;
    pointer-events: none;
}


/* ==========================================================================
   Footer Color Transition — Scroll-based black → green
   ========================================================================== */

.ohwow-footer {
    background-color: var(--ohwow-dark);
    color: var(--ohwow-white);
    transition:
        background-color 0.6s var(--ohwow-ease),
        color 0.6s var(--ohwow-ease);
}

.ohwow-footer.is-at-bottom {
    background-color: var(--ohwow-accent);
    color: var(--ohwow-dark);
}

.ohwow-footer.is-at-bottom a {
    color: var(--ohwow-dark);
}

.ohwow-footer.is-at-bottom .ohwow-footer__social svg,
.ohwow-footer.is-at-bottom .ohwow-footer__social path {
    fill: var(--ohwow-dark);
    stroke: var(--ohwow-dark);
}

/* ==========================================================================
   Utility Classes — For use with Elementor custom CSS
   ========================================================================== */

.ohwow-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ohwow-ease), transform 0.6s var(--ohwow-ease);
}

.ohwow-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.ohwow-services {
    width: 100%;
}

.ohwow-services__title {
    margin: 0;
}

.ohwow-services__grid {
    display: grid;
    width: 100%;
}

.ohwow-services__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: solid;
    text-align: center;
    text-decoration: none;
    cursor: default;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a.ohwow-services__pill {
    cursor: var(--cursor-light);
}

/* Disabled card button — no URL */
.ohwow-flip-card__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 767px) {
    .ohwow-services__grid {
        grid-template-columns: 1fr !important;
    }
}
