/* Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Slider Transitions */
.slide {
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1 !important;
    z-index: 10;
}

/* Text Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Navbar Transition */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
    display: inline-block;
}

.mobile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #f77900;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

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

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

/* Utility for text stroke if needed */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Logo Carousel */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slide-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.logo-slide-item {
    flex: 0 0 auto;
    width: 180px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Move to the left (infinite scroll) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Force White Logo */
.logo-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-white:hover {
    opacity: 1;
}

/* Force Black Logo */
.logo-dark {
    filter: brightness(0);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-dark:hover {
    opacity: 1;
}

/* Service Card Enhancements */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

/* WhatsApp Pulse Animation */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* =========================================
   Modal Content — WordPress Editor Styles
   ========================================= */

/* Ensure all inline styles from the editor are preserved */
#modal-description,
#modal-description * {
    all: revert;
}

/* Re-apply base modal layout after revert */
#modal-description {
    font-family: inherit;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4b5563;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Headings inside modal */
#modal-description h1,
#modal-description h2,
#modal-description h3,
#modal-description h4,
#modal-description h5,
#modal-description h6 {
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
    line-height: 1.3;
}

#modal-description h1 { font-size: 2em; }
#modal-description h2 { font-size: 1.5em; }
#modal-description h3 { font-size: 1.25em; }
#modal-description h4 { font-size: 1.1em; }

/* Paragraphs */
#modal-description p {
    margin-bottom: 1em;
    line-height: 1.75;
}

/* Links — visible and clickable */
#modal-description a {
    color: #f77900;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

#modal-description a:hover {
    color: #ea580c;
}

/* Lists */
#modal-description ul,
#modal-description ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

#modal-description ul { list-style-type: disc; }
#modal-description ol { list-style-type: decimal; }

#modal-description li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Images inside modal content */
#modal-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    display: block;
}

/* WordPress Gallery */
#modal-description .wp-block-gallery,
#modal-description .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 1em 0;
}

#modal-description .wp-block-gallery .wp-block-image,
#modal-description .gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

#modal-description .wp-block-gallery img,
#modal-description .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 4px;
}

/* WordPress Columns */
#modal-description .wp-block-columns {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin: 1em 0;
}

#modal-description .wp-block-column {
    flex: 1;
    min-width: 200px;
}

/* Blockquote */
#modal-description blockquote {
    border-left: 4px solid #f77900;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #6b7280;
}

/* Bold, Italic, Underline, Strikethrough */
#modal-description strong,
#modal-description b {
    font-weight: 700;
}

#modal-description em,
#modal-description i:not([data-lucide]) {
    font-style: italic;
}

#modal-description u {
    text-decoration: underline;
}

#modal-description s,
#modal-description del,
#modal-description strike {
    text-decoration: line-through;
}

/* WordPress color classes */
#modal-description .has-text-color {
    color: inherit;
}

#modal-description .has-background {
    padding: 0.5em 1em;
    border-radius: 4px;
}

/* WordPress text alignment */
#modal-description .has-text-align-center { text-align: center; }
#modal-description .has-text-align-right { text-align: right; }
#modal-description .has-text-align-left { text-align: left; }

/* WordPress font sizes */
#modal-description .has-small-font-size { font-size: 0.8125em; }
#modal-description .has-medium-font-size { font-size: 1.25em; }
#modal-description .has-large-font-size { font-size: 2.25em; }
#modal-description .has-x-large-font-size { font-size: 2.75em; }

/* Figure and figcaption */
#modal-description figure {
    margin: 1em 0;
    max-width: 100%;
}

#modal-description figcaption {
    font-size: 0.875em;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5em;
}

/* Tables */
#modal-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

#modal-description th,
#modal-description td {
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    text-align: left;
}

#modal-description th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Separator / HR */
#modal-description hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2em 0;
}

/* Video and embeds */
#modal-description video,
#modal-description iframe {
    max-width: 100%;
    margin: 1em 0;
    border-radius: 4px;
}

#modal-description .wp-block-embed {
    margin: 1em 0;
}

#modal-description .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#modal-description .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
