/* Comprehensive Button System - Pantone 2345 C (#EE6352) Brand Colors */

/* Base button reset and common styles */
.btn,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-sm,
.btn-lg,
.btn-animated,
button.btn,
a.btn,
input[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Primary button - Orange CTA */
.btn,
.btn-primary {
    background: linear-gradient(135deg, #EE6352 0%, #E85543 100%) !important;
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px rgba(238, 99, 82, 0.2);
}

.btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #D94F3F 0%, #C84535 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(238, 99, 82, 0.3);
}

.btn:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(238, 99, 82, 0.2);
}

/* Secondary button - Outlined style */
.btn-secondary {
    background: transparent !important;
    color: #EE6352 !important;
    border: 2px solid #EE6352 !important;
    padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
}

.btn-secondary:hover {
    background: #EE6352 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 99, 82, 0.2);
}

/* Tertiary button - Ghost style */
.btn-tertiary {
    background: transparent !important;
    color: #1F5C63 !important;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #EE6352;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.btn-tertiary:hover {
    color: #EE6352 !important;
}

.btn-tertiary:hover::after {
    width: 100%;
}

/* Size variations */
.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.125rem;
}

/* Animated button with ripple effect */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

/* Icon handling in buttons */
.btn i,
.btn-primary i,
.btn-secondary i,
.btn-tertiary i,
.btn .fas,
.btn .far,
.btn .fab,
.btn svg {
    background: transparent !important;
    color: inherit !important;
    margin: 0 0.25rem;
    font-size: 1em;
    line-height: 1;
}

/* Button icons animation */
.btn i.fa-arrow-right,
.btn-secondary i.fa-arrow-right {
    transition: transform 0.3s ease;
}

.btn:hover i.fa-arrow-right,
.btn-secondary:hover i.fa-arrow-right {
    transform: translateX(4px);
}

/* Disabled state */
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading state */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
    to { transform: rotate(360deg); }
}

/* Special buttons */
#cookie-accept,
#cookie-reject,
button[id*="accept"],
button[id*="reject"] {
    min-width: 100px;
}

#cookie-reject {
    background: #5A5A5A !important;
    color: #FFFFFF !important;
    border: none !important;
}

#cookie-reject:hover {
    background: #404040 !important;
}

/* Contact form submit button */
form .btn,
form button[type="submit"],
form input[type="submit"] {
    width: auto;
    min-width: 150px;
}

/* CTA sections buttons */
.cta-section .btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero section buttons */
.hero .btn,
.hero-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Button group styling */
.btn-group {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .btn-group {
        width: 100%;
        justify-content: center;
    }

    .btn-group .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Focus states for accessibility */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-tertiary:focus {
    outline: 3px solid rgba(238, 99, 82, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}
