/* =========================================
   PITCHAK CUSTOM STYLES
   ========================================= */

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out;
}

/* ---- Header Scrolled State ---- */
.site-header.scrolled [data-header-bg] {
    opacity: 1;
}

/* ---- Lightbox ---- */
#pitchak-lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

#pitchak-lightbox.active img {
    animation: scaleIn 0.4s ease-out;
}

/* ---- Navigation ---- */
.pitchak-menu-item a {
    position: relative;
}

.pitchak-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #dc2626, #f59e0b);
    transition: width 0.3s ease;
}

.pitchak-menu-item a:hover::after,
.pitchak-menu-item.active a::after {
    width: 100%;
}

/* ---- Mobile Menu ---- */
[data-mobile-menu].active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* ---- WordPress Core Styles ---- */
.wp-block-image img {
    border-radius: 0;
    border: 1px solid #1f2937;
}

.wp-block-quote {
    border-left-color: #dc2626;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.5);
}

.wp-block-button__link {
    background: linear-gradient(to right, #dc2626, #b91c1c) !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.wp-block-button__link:hover {
    background: linear-gradient(to right, #f59e0b, #dc2626) !important;
    transform: scale(1.02);
}

/* ---- Pagination ---- */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #111827;
    border: 1px solid #1f2937;
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: linear-gradient(to right, #dc2626, #b91c1c);
    border-color: #dc2626;
    color: white;
}

/* ---- Screen Reader Text ---- */
.sr-only,
.screen-reader-text {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ---- Contact Form 7 Overrides ---- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #111827;
    border: 1px solid #1f2937;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #dc2626;
}

.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #dc2626, #b91c1c);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(to right, #f59e0b, #dc2626);
    transform: scale(1.02);
}

.wpcf7-response-output {
    border-color: #dc2626 !important;
    color: #f87171;
    padding: 1rem;
    margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
    border-color: #10b981 !important;
    color: #34d399;
}

/* ---- Comment Form ---- */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #111827;
    border: 1px solid #1f2937;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #dc2626;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #9ca3af;
    font-weight: 500;
}

/* ---- Elementor Overrides ---- */

/* Ensure Elementor pages have no restrictive wrappers */
.elementor-page-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.elementor-page .site-header {
    position: fixed;
}

/* Elementor sections should have no theme padding constraints */
.elementor-section {
    padding: 0;
    max-width: 100%;
}

/* Elementor full-width sections */
.elementor-section.elementor-section-stretched {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.elementor-widget-container {
    color: inherit;
}

/* Elementor canvas: completely clean slate */
body.elementor-canvas {
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

body.elementor-canvas .elementor-canvas-content {
    width: 100%;
    min-height: 100vh;
}

/* Ensure Elementor editor preview inherits theme fonts */
.elementor-editor-active body,
.elementor-editor-preview body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Fix z-index issues between theme header and Elementor editor panel */
.elementor-editor-active .site-header {
    z-index: 99 !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}
