/* Exit Towels - Main Stylesheet */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #F2F4F7;
    color: #102A43;
    overflow-x: hidden;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Card Styles */
.product-card,
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.12);
}

.gradient-overlay {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, 0.7) 100%);
}

.number-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: -10px;
    line-height: 1;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Mobile Category Navigation */
.category-nav-mobile {
    position: sticky;
    top: 80px;
    background: rgba(242, 244, 247, 0.98);
    backdrop-filter: blur(10px);
    z-index: 40;
    border-bottom: 2px solid rgba(10, 22, 40, 0.08);
}

.category-dropdown {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230A1628'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

/* Desktop Category Navigation */
.category-nav-desktop {
    position: sticky;
    top: 80px;
    background: rgba(242, 244, 247, 0.98);
    backdrop-filter: blur(10px);
    z-index: 40;
    border-bottom: 2px solid rgba(10, 22, 40, 0.08);
}

.category-tab {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    background: none;
    padding: 0.75rem 1.5rem;
}

.category-tab:hover {
    color: #102A43;
    background: rgba(107, 124, 99, 0.05);
}

.category-tab.active {
    color: #102A43;
    border-bottom-color: #A3B7A3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .category-nav-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .category-nav-mobile {
        display: none;
    }
}

.category-section {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.category-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 42, 67, 0.97);
    backdrop-filter: blur(20px);
    z-index: 45;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #A3B7A3;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

/* Product Badges & Swatches */
.spec-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(107, 124, 99, 0.1);
    color: #A3B7A3;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(10, 22, 40, 0.1);
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #A3B7A3;
}

.color-swatch.active {
    border-color: #A3B7A3;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(163, 183, 163, 0.2);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.text-balance {
    text-wrap: balance;
}

/* Quote Modal Styles */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    overflow-y: auto;
}

.quote-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 42, 67, 0.75);
    backdrop-filter: blur(8px);
    z-index: 61;
}

.quote-modal-content {
    position: relative;
    z-index: 62;
    max-width: 600px;
    margin: 2rem auto;
    background: #F2F4F7;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(10, 22, 40, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(10, 22, 40, 0.08);
}

.close-btn {
    background: none;
    border: none;
    color: #102A43;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Product Context Banner */
.product-context-banner {
    background: rgba(107, 124, 99, 0.08);
    border-left: 4px solid #A3B7A3;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

/* Form Styles */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #102A43;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid rgba(10, 22, 40, 0.1);
    color: #102A43;
    font-size: 0.9375rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #A3B7A3;
}

.form-input::placeholder {
    color: rgba(10, 22, 40, 0.4);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Radio Buttons */
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #102A43;
}

.radio-input {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #A3B7A3;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid rgba(10, 22, 40, 0.2);
    color: #102A43;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(10, 22, 40, 0.05);
    border-color: #0A1628;
}

/* Responsive */
@media (max-width: 640px) {
    .quote-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
}
