/* ===========================
   Dexcarte - Shared Styles
   =========================== */

:root {
    --primary-color: #d97706;
    --primary-dark: #b45309;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    outline: none;
    border: none;
}

.nav-link:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Hero Pattern (SVG background) */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Component Transitions */
.service-card {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
    border-top-color: var(--primary-color);
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.contact-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
    border-left-color: var(--primary-color);
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.material-card {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.material-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
}

/* Process Step Connector */
.process-step {
    position: relative;
}

.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 40px;
    right: -40px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .process-step:not(:last-child):after {
        display: none;
    }
}

/* Form Focus Styles */
.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-loaded {
    opacity: 1;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Gallery Filter Active State */
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}
