/**
 * Chamlaco Theme - Savyu Clone Styles
 * 
 * @package Chamlaco
 * @version 2.0.0
 */

/* =====================================================
   CSS Variables - Savyu Color Palette
   ===================================================== */
:root {
    --savyu-main-color: #FF6633;
    --savyu-gradient-pink: #FB4372;
    --savyu-gradient-orange: #FF6633;
    --savyu-gradient-purple: #6830E6;
    --savyu-gradient-cyan: #34DBD8;
    --savyu-blue: #3280F8;
}

/* =====================================================
   Base Styles
   ===================================================== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Blob Animation
   ===================================================== */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(30px, 10px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

/* =====================================================
   Float Animation
   ===================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* =====================================================
   Marquee Animation
   ===================================================== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* =====================================================
   Pulse Glow Animation
   ===================================================== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* =====================================================
   Mobile Menu Styles
   ===================================================== */
#mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu-overlay.hidden {
    display: none;
}

/* =====================================================
   Header Styles
   ===================================================== */
#main-header {
    transition: box-shadow 0.3s ease;
}

#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   WordPress Admin Bar Adjustments
   ===================================================== */
body.admin-bar #main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #main-header {
        top: 46px;
    }
}

/* =====================================================
   Responsive Fixes
   ===================================================== */
@media screen and (max-width: 767px) {
    #main-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    #main-content {
        padding-top: 60px;
    }

    /* Hide large blobs on mobile */
    .animate-blob {
        width: 200px !important;
        height: 200px !important;
    }
}

@media screen and (min-width: 768px) {
    #main-content {
        padding-top: 70px;
    }
}

/* =====================================================
   Hero Section Specific Styles
   ===================================================== */
#hero-tilt {
    transform-style: preserve-3d;
}

#hero-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-savyu-main-color {
    color: var(--savyu-main-color);
}

body.menu-open {
    overflow: hidden;
}

/* =====================================================
   Custom Scrollbar
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--savyu-main-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--savyu-gradient-pink);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--savyu-main-color) #1a1a1a;
}

/* =====================================================
   Scroll Reveal Animations
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Initial hidden state */
.animate-on-scroll {
    opacity: 0;
}

/* Triggered animations */
.animate-on-scroll.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Stagger delays */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* =====================================================
   FAQ Accordion Styles
   ===================================================== */
/* =====================================================
   FAQ Accordion Styles
   ===================================================== */
.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease;
    opacity: 0;
}

.faq-answer.open {
    height: auto;
    opacity: 1;
}

.faq-arrow {
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* =====================================================
   Divider Line Gradient
   ===================================================== */
.divider-line {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border: none;
    margin: 0;
    opacity: 0.8;
}

/* =====================================================
   Contact Form 7 Styles (Refined)
   ===================================================== */
.cf7-group {
    position: relative;
    margin-top: 2rem;
    /* Space for floating label */
}

/* Input Styles */
.chamlaco-cf7-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    /* slate-200 */
    font-size: 1rem;
    color: #0f172a;
    /* slate-900 */
    outline: none;
    transition: all 0.3s;
    border-radius: 0;
}

.chamlaco-cf7-input:focus {
    border-bottom-color: #FF6633;
    /* Theme Orange */
}

/* Floating Label */
.cf7-label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: #64748b;
    /* slate-500 */
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform-origin: left top;
}

/* Float Up State */
.cf7-group:has(input:focus) .cf7-label,
.cf7-group:has(input:not(:placeholder-shown)) .cf7-label,
.cf7-group:has(textarea:focus) .cf7-label,
.cf7-group:has(textarea:not(:placeholder-shown)) .cf7-label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #FF6633;
}

/* Required Asterisk */
.cf7-label .required-mark {
    color: #ef4444;
    /* red-500 */
    margin-left: 2px;
}

/* Textarea */
textarea.chamlaco-cf7-input {
    resize: none;
    min-height: 2.5rem;
}

/* Button Gradient */
.btn-gradient {
    background: linear-gradient(135deg, #FB4372 0%, #FF6633 100%);
    transition: all 0.3s;
    border: none;
}

.btn-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 102, 51, 0.4);
}

.btn-icon-fix {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon-fix svg {
    margin-right: 0 !important;
}

/* =====================================================
   Prose / Content Typography
   ===================================================== */
.prose {
    color: #374151;
    /* gray-700 */
    max-width: 100%;
    line-height: 1.75;
}

.prose h1 {
    font-size: 2.5rem;
    /* 40px */
    line-height: 1.1;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #111827;
    /* gray-900 */
}

.prose h2 {
    font-size: 2rem;
    /* 32px */
    line-height: 1.3333333;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-size: 1.75rem;
    /* 28px */
    line-height: 1.6;
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    color: #111827;
}

.prose h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #111827;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose a {
    color: #FF6633;
    text-decoration: underline;
    font-weight: 500;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
    list-style-type: disc;
}

.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
    list-style-type: decimal;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}