/*
Theme Name: Mazayen Core Styles
Description: Custom styles converted from Tailwind for Mazayen Al-An'am
Version: 1.1.0
*/

:root {
    --brand-red: #D32F2F;
    --brand-dark-red: #B71C1C;
    --brand-black: #0a0a0a;
    --brand-dark-gray: #121212;
    --brand-light-gray: #1e1e1e;
    --text-white: #ffffff;
    --text-gray: #d1d5db;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--brand-black);
    color: var(--text-white);
}

/* Utilities */
.text-brand-red {
    color: var(--brand-red);
}

.text-white {
    color: var(--text-white);
}

.bg-brand-red {
    background-color: var(--brand-red);
}

.bg-brand-black {
    background-color: var(--brand-black);
}

.bg-brand-lightGray {
    background-color: var(--brand-light-gray);
}

.bg-brand-darkGray {
    background-color: var(--brand-dark-gray);
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.object-cover {
    object-fit: cover;
}

/* Buttons */
.mazayen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.mazayen-btn-primary {
    background-color: var(--brand-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(211, 47, 47, 0.5);
}

.mazayen-btn-primary:hover {
    background-color: var(--brand-dark-red);
}

.mazayen-btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.mazayen-btn-outline:hover {
    background-color: white;
    color: var(--brand-black);
}

/* Section Title */
.mazayen-section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.mazayen-section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--brand-red);
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

/* Hero Style */
.mazayen-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 1rem;
}

.mazayen-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.mazayen-hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
}

.mazayen-hero-subtitle {
    color: var(--brand-red);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mazayen-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

@media (min-width: 768px) {
    .mazayen-hero-title {
        font-size: 3.75rem;
    }
}

.mazayen-hero-desc {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Services / Cards */
.mazayen-card {
    background-color: var(--brand-light-gray);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    height: 100%;
}

.mazayen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
    border-bottom-color: var(--brand-red);
}

.mazayen-icon-wrapper {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background-color: var(--brand-dark-gray);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    color: var(--brand-red);
    transition: all 0.3s ease;
}

.mazayen-icon-wrapper svg {
    width: 2rem;
    height: 2rem;
    fill: var(--brand-red);
}


.mazayen-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.mazayen-card-desc {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Vision Cards (Red Border Hover) */
.mazayen-vision-card {
    background-color: var(--brand-light-gray);
    /* Dark gray background */
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: right;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.mazayen-vision-card:hover {
    border-color: var(--brand-red);
    /* Subtle red glow */
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.15);
}

.mazayen-vision-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--brand-black);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.mazayen-vision-card:hover .mazayen-vision-icon {
    background-color: var(--brand-red);
}

.mazayen-vision-icon i,
.mazayen-vision-icon svg {
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s ease;
}

/* About Image Grayscale Effect */
.mazayen-grayscale-img {
    filter: grayscale(100%);
    transition: all 0.5s ease;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mazayen-grayscale-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* -------------- HEADER STYLES -------------- */
.mazayen-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mazayen-header.is-sticky {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mazayen-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mazayen-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.mazayen-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-red);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.mazayen-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.mazayen-nav {
    display: none;
}

@media (min-width: 768px) {
    .mazayen-nav {
        display: flex;
        gap: 2rem;
    }
}

.mazayen-nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.mazayen-nav-link:hover {
    color: var(--brand-red);
}

.mazayen-header-cta {
    display: none;
}

@media (min-width: 768px) {
    .mazayen-header-cta {
        display: flex;
    }
}

.mazayen-mobile-toggle {
    display: block;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mazayen-mobile-toggle {
        display: none;
    }
}

.mazayen-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--brand-light-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    padding: 1rem;
}

.mazayen-mobile-menu.is-active {
    display: flex;
}

.mazayen-mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mazayen-mobile-link:last-child {
    border-bottom: none;
}

.mazayen-mobile-link:hover {
    color: var(--brand-red);
    padding-right: 5px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* -------------- FORM STYLES -------------- */
.mazayen-form-wrapper {
    background-color: var(--brand-black);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
    text-align: right;
}

.mazayen-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.mazayen-form-group {
    margin-bottom: 1.25rem;
}

.mazayen-form-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.mazayen-form-group input,
.mazayen-form-group select,
.mazayen-form-group textarea {
    width: 100%;
    background-color: var(--brand-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    font-size: 1rem;
}

.mazayen-form-group input:focus,
.mazayen-form-group select:focus,
.mazayen-form-group textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 1px var(--brand-red);
}

.mazayen-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1rem;
}

.mazayen-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* -------------- FOOTER STYLES -------------- */
.mazayen-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-light-gray);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mazayen-social-icon:hover {
    background-color: var(--brand-red);
    color: white;
    transform: translateY(-3px);
}

/* -------------- SLIDER STYLES -------------- */
.mazayen-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mazayen-slide-item {
    width: 100%;
}

.mazayen-slide-link {
    display: block;
    width: 100%;
    position: relative;
}

/* The magic of object-fit covers the area while maintaining aspect ratio, but we rely on <picture> for source change */
.mazayen-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Custom Swiper Arrows */
/* Use absolute positioning and ensure z-index */
.mazayen-slider-container .swiper-button-next,
.mazayen-slider-container .swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
}

.mazayen-slider-container .swiper-button-next:after,
.mazayen-slider-container .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.mazayen-slider-container .swiper-button-next:hover,
.mazayen-slider-container .swiper-button-prev:hover {
    background-color: var(--brand-red);
}

/* Pagination Dots */
.mazayen-slider-container .swiper-pagination-bullet {
    background-color: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.mazayen-slider-container .swiper-pagination-bullet-active {
    background-color: var(--brand-red);
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Slider Text Content */
.mazayen-slide-content {
    /* Position is handled by wrapper now */
    z-index: 10;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Grayscale Mode */
.mazayen-slide-grayscale .mazayen-slide-img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Allow hovering to remove grayscale if desired (optional, maybe not requested but nice) 
.mazayen-slide-grayscale:hover .mazayen-slide-img {
    filter: grayscale(0%);
}
*/

.mazayen-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.mazayen-slide-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .mazayen-slide-title {
        font-size: 3rem;
    }

    .mazayen-slide-description {
        font-size: 1.25rem;
    }
}