/**
 * Custom CSS for ARWAC Theme
 * Additional styles beyond Tailwind
 */

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

/* Ensure all containers don't overflow */
.container {
    max-width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swiper custom styles - matching Next.js */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s !important;
    margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.75) !important;
}

.swiper-pagination-bullet-active {
    background: #eab308 !important;
    transform: scale(1.25) !important;
    box-shadow: 0 4px 6px rgba(234, 179, 8, 0.3) !important;
}

.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 50% !important;
    transition: all 0.3s !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #eab308 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    color: white !important;
}

/* Prose styles for blog content */
.prose {
    max-width: 65ch;
}

.prose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose a {
    color: #eab308;
    text-decoration: underline;
}

.prose a:hover {
    color: #ca8a04;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid #eab308;
    padding-left: 1rem;
    font-style: italic;
    color: #9ca3af;
    margin: 1.5rem 0;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #eab308;
    ring: 2px;
    ring-color: rgba(234, 179, 8, 0.3);
}

/* Contact Form 7 custom styles - matching Next.js */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form label {
    display: block;
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    background-color: #eab308;
    color: black;
    font-weight: 600;
    padding: 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #ca8a04;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Loading spinner */
.wpcf7-spinner {
    margin-left: 0.5rem;
}

/* Animation utilities */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* Modal styles */
#team-member-modal .modal-content {
    animation: modal-slide-up 0.3s ease-out;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button styles */
#back-to-top {
    transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.opacity-0 {
    visibility: hidden;
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white\/10 {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
