/* components.css – reusable UI components such as buttons, cards, nav, and form elements */

/* Navigation Visual Styles */
.nav-link {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: block;
    }

    .mobile-nav-overlay .nav-link {
        font-size: var(--font-size-lg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #C00030;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
}

.btn-text {
    display: inline-block;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-blue-medium);
    font-size: 0.9rem;
    color: var(--color-blue-medium);
    transition: all 0.3s;
}

.btn-text:hover {
    background-color: var(--color-blue-medium);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
    background-color: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-align: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s;
}

.card:hover::before {
    background: var(--grad-blue);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    color: white;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-body {
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--color-surface-tint);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue-bright);
    background-color: var(--color-light);
    box-shadow: 0 0 0 4px rgba(0, 181, 221, 0.1);
}

.form-error {
    color: var(--color-accent);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
    display: none;
}

/* Accordions */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-primary);
    color: var(--color-primary);
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-blue-medium);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: var(--space-lg);
}

/* Footer Links */
.footer a {
    opacity: 0.7;
}

.footer a:hover {
    opacity: 1;
    color: var(--color-light);
}



/* Color Bars Widget */
.color-bars-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2001;
}

.color-swatch {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.swatch-c {
    background-color: cyan;
}

.swatch-m {
    background-color: magenta;
}

.swatch-y {
    background-color: yellow;
}

.swatch-k {
    background-color: black;
}

.swatch-reset {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    width: auto;
    padding: 0 6px;
}

/* CMYK Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: all;
}

.preloader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-dots {
    display: flex;
    gap: 20px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: mergeDots 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.dot-c {
    background-color: cyan;
    mix-blend-mode: multiply;
}

.dot-m {
    background-color: magenta;
    mix-blend-mode: multiply;
}

.dot-y {
    background-color: yellow;
    mix-blend-mode: multiply;
}

.dot-k {
    background-color: black;
    mix-blend-mode: multiply;
}

@keyframes mergeDots {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
        margin: 0 10px;
    }

    70% {
        transform: scale(1.5);
        margin: 0 -10px;
    }

    100% {
        transform: scale(0.1);
        opacity: 0;
        margin: 0 -15px;
    }
}

/* Fresh Print Reveal Animation */
@keyframes printSnap {
    0% {
        opacity: 0;
        filter: drop-shadow(-10px -5px 0 cyan) drop-shadow(10px 5px 0 magenta) drop-shadow(0 10px 0 yellow);
        transform: scale(1.05);
    }

    30% {
        opacity: 0.8;
        filter: drop-shadow(-8px -4px 0 cyan) drop-shadow(8px 4px 0 magenta) drop-shadow(0 8px 0 yellow);
    }

    60% {
        filter: drop-shadow(-4px -2px 0 cyan) drop-shadow(4px 2px 0 magenta) drop-shadow(0 4px 0 yellow);
    }

    100% {
        opacity: 1;
        filter: none;
        transform: scale(1);
    }
}

.reveal-print {
    animation: printSnap 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    will-change: filter, transform, opacity;
}

/* CMYK Hover Effect */
.cmyk-hover {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cmyk-hover:hover {
    filter: drop-shadow(-3px -2px 0 cyan) drop-shadow(3px 2px 0 magenta) drop-shadow(0 3px 0 yellow);
    transform: scale(1.02);
}

/* Brand Visual Images (Tinted) */
.brand-visual {
    position: relative;
    /* overflow: hidden; Removed to allow CMYK shadows */
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.brand-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
    /* Apply radius to image since container isn't clipping */
}

.brand-visual:hover img {
    opacity: 1;
}

/* Background Gradients/Colors for Tints */
.bg-lime-teal {
    background: var(--grad-lime-teal);
}

.bg-blue {
    background: var(--grad-blue);
}

.bg-teal {
    background-color: var(--color-teal);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-silver {
    background-color: #ccc;
    color: var(--color-primary);
}