/*
Theme Name: Proxima Centauri Insurance Brokers
Theme URI: https://pcib.hr
Author: PCIB
Description: Corporate theme for Proxima Centauri Insurance Brokers - Croatian insurance brokerage company.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 5.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pcib
*/

/* Custom styles extending Tailwind */

/* Accessibility - Focus Visible States */
*:focus-visible {
    outline: 2px solid #3a7ca5;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #3a7ca5;
    outline-offset: 2px;
}

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

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

/* Custom transitions */
.transition {
    transition: all 0.3s ease;
}

/* Custom shadow for cards */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Custom gradient for buttons */
.btn-gradient {
    background: linear-gradient(to right, #1f4e79, #3a7ca5);
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* Custom form inputs */
.input-custom {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.input-custom:focus {
    border-color: #1f4e79;
    box-shadow: 0 0 0 2px rgba(31, 78, 121, 0.2);
}

/* Custom section spacing */
.section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Custom hero height */
.hero-height {
    min-height: 70vh;
}

/* Custom icon sizes */
.icon-lg {
    width: 2.5rem;
    height: 2.5rem;
}

/* Insurance Grid Styles */
.insurance-item {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.insurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Team Member Styles */
.team-member-btn {
    transition: all 0.2s ease;
}
.team-member-btn:hover {
    transform: translateY(-2px);
    background-color: #f8fafc;
}

/* FAQ Styles */
.faq-question {
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: #f8fafc;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

/* Custom underline effect */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1f4e79;
    transition: width 0.3s ease;
}
.link-underline:hover::after {
    width: 100%;
}

/* Insurance Slider */
.insurance-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.insurance-slider::-webkit-scrollbar {
    display: none;
}

.insurance-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.insurance-card:hover {
    transform: scale(1.05);
}

.insurance-card .image-container {
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.insurance-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insurance-card:hover img {
    transform: scale(1.1);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #3a7ca5;
    color: #3a7ca5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: #3a7ca5;
    color: white;
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}
