/*
Theme Name: Rivital Health Advisors
Theme URI: https://rivitalhealth.com
Author: Rivital
Description: WordPress theme for Rivital Health Advisors — Building the Future of Independent Medicine
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: rivital
*/

body {
    overflow-x: hidden;
}

.bg-grid-lines {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 10vw 100%;
    pointer-events: none;
}

.bg-parallax-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    z-index: -1;
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 40%);
    opacity: 0.8;
    will-change: transform;
}

.mask-edges {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.mask-y {
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.btn-beam-wrapper {
    position: relative;
    display: inline-flex;
    border-radius: 9999px;
    overflow: hidden;
    padding: 1px;
    cursor: pointer;
}

.btn-beam-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent 70%, #2563eb 100%);
    transform-origin: 0 0;
    translate: -50% -50%;
    animation: spin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-beam-wrapper:hover::before {
    opacity: 1;
}

.btn-beam-inner {
    position: relative;
    z-index: 1;
    background-color: #0f172a;
    border-radius: 9999px;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
}

.btn-beam-wrapper:hover .btn-beam-inner {
    background-color: #1e293b;
}

.card-border-gradient {
    background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.2), rgba(0,0,0,0.03), transparent);
    padding: 1px;
    border-radius: 1rem;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.02);
}

.card-inner {
    background: #ffffff;
    border-radius: calc(1rem - 1px);
    height: 100%;
}

.custom-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    color: #0f172a;
    width: 100%;
    transition: border-color 0.3s;
}

.custom-input:focus {
    outline: none;
    border-bottom-color: #2563eb;
}

.custom-input::placeholder {
    color: #94a3b8;
}

.animate-on-scroll {
    visibility: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 12rem 1.5rem 8rem;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    max-width: 72rem;
    margin: 0 auto;
}

.hero-slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 0 12px rgba(37,99,235,0.5);
}

.hero-slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-slider-arrows button {
    pointer-events: all;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-arrows button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Holodex Carousel */
.holodex-container {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.holo-card {
    position: absolute;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    max-width: 28rem;
}

.holo-center {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 30;
    opacity: 1;
    filter: blur(0px);
}

.holo-left {
    transform: translateX(-50%) scale(0.85) translateZ(-100px);
    z-index: 20;
    opacity: 0.5;
    filter: blur(4px);
    cursor: pointer;
}

.holo-right {
    transform: translateX(50%) scale(0.85) translateZ(-100px);
    z-index: 20;
    opacity: 0.5;
    filter: blur(4px);
    cursor: pointer;
}

@media (max-width: 768px) {
    .holo-left { transform: translateX(-20%) scale(0.8) translateZ(-100px); opacity: 0; pointer-events: none;}
    .holo-right { transform: translateX(20%) scale(0.8) translateZ(-100px); opacity: 0; pointer-events: none;}
}

/* Rotating Words */
.rotating-word-container {
    display: inline-grid;
    vertical-align: bottom;
    text-align: left;
}

.rotating-word {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    white-space: nowrap;
    will-change: transform, opacity;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotating-word.exit {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Page template specific */
.page-hero {
    padding-top: 12rem;
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: 12rem;
        padding-bottom: 5rem;
    }
}

/* FAQ Accordion */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.rivital-form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.rivital-form-message.rivital-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rivital-form-message.rivital-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
