/*
 * Luxury Button Styles for Brooklyn Chiropractic Care
 * Ensures consistent branding and proper text fitting across all templates
 *
 * Color Palette:
 * - Primary: #1C241F (Deep Forest Green)
 * - Accent: #C5A059 (Luxury Gold)
 * - Sage: #9BA17F (Brand Sage Green)
 * - White: #FFFFFF
 *
 * Typography:
 * - Font Family: 'Manrope', sans-serif
 * - All text: UPPERCASE
 */

/* ===================================
   PRIMARY BUTTON STYLES
   =================================== */

.btn-default,
.btn-solid,
.btn-primary {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;

    /* Optimized sizing for better text fit */
    padding: 16px 28px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    min-height: 48px;

    /* Default colors */
    background-color: #1C241F !important;
    color: #FFFFFF !important;
}

/* Hover state */
.btn-default:hover,
.btn-solid:hover,
.btn-primary:hover {
    background-color: #C5A059 !important;
    color: #FFFFFF !important;
    letter-spacing: 2px;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 36, 31, 0.15);
}

/* Active/Focus states */
.btn-default:active,
.btn-default:focus,
.btn-solid:active,
.btn-solid:focus {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

/* ===================================
   SECONDARY BUTTON STYLES (Outlined)
   =================================== */

.btn-secondary,
.btn-outlined {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;

    /* Optimized sizing */
    padding: 14px 28px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    min-height: 48px;

    /* Outlined style */
    background-color: transparent !important;
    color: #1C241F !important;
    border: 2px solid #1C241F !important;
}

.btn-secondary:hover,
.btn-outlined:hover {
    background-color: #1C241F !important;
    color: #FFFFFF !important;
    letter-spacing: 2px;
}

/* ===================================
   HIGHLIGHTED BUTTON (Gold)
   =================================== */

.btn-highlighted {
    background-color: #C5A059 !important;
    color: #FFFFFF !important;
    padding: 16px 28px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.btn-highlighted:hover {
    background-color: #1C241F !important;
    color: #FFFFFF !important;
    letter-spacing: 2px;
}

/* ===================================
   LUXURY TEXT LINK BUTTONS
   =================================== */

.btn-luxury,
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #1C241F !important;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(28, 36, 31, 0.15);
    transition: all 0.4s ease;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(28, 36, 31, 0.15);
}

.btn-luxury:hover,
.btn-link:hover {
    color: #C5A059 !important;
    border-bottom-color: #C5A059;
    letter-spacing: 2.5px;
}

/* Arrow icon for luxury links */
.btn-luxury::after,
.btn-link::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-luxury:hover::after,
.btn-link:hover::after {
    transform: translateX(5px);
}

/* ===================================
   SIDEBAR CTA BUTTONS
   =================================== */

.sidebar-cta-box .btn-default,
.service-sidebar-cta .btn-solid {
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.3;
    min-height: auto;
}

.sidebar-cta-box .btn-default:hover,
.service-sidebar-cta .btn-solid:hover {
    letter-spacing: 1.5px;
}

/* ===================================
   CTA BAR BUTTONS
   =================================== */

.luxury-cta-bar .btn-solid,
.luxury-cta-bar .btn-default {
    padding: 16px 32px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    min-width: 200px;
    flex-shrink: 0;
}

/* ===================================
   LANDING PAGE BUTTONS
   =================================== */

.lp-btn {
    display: inline-block;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 50px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.lp-btn-primary {
    background-color: #C5A059;
    color: #FFFFFF !important;
    border: 2px solid #C5A059;
}

.lp-btn-primary:hover {
    background-color: #FFFFFF;
    color: #1C241F !important;
    border-color: #FFFFFF;
    letter-spacing: 2px;
}

.lp-btn-secondary {
    background-color: transparent;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF;
}

.lp-btn-secondary:hover {
    background-color: #FFFFFF;
    color: #1C241F !important;
    letter-spacing: 2px;
}

/* ===================================
   RESPONSIVE BUTTON ADJUSTMENTS
   =================================== */

/* Tablets */
@media (max-width: 991px) {
    .btn-default,
    .btn-solid,
    .btn-primary {
        padding: 14px 24px;
        font-size: 0.72rem;
        letter-spacing: 1.2px;
    }

    .luxury-cta-bar .btn-solid,
    .luxury-cta-bar .btn-default {
        min-width: 180px;
        padding: 14px 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .btn-default,
    .btn-solid,
    .btn-primary,
    .btn-secondary,
    .btn-outlined {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.7rem;
        letter-spacing: 1px;
        white-space: normal;
    }

    .btn-default:hover,
    .btn-solid:hover,
    .btn-primary:hover {
        letter-spacing: 1.2px;
    }

    .sidebar-cta-box .btn-default,
    .service-sidebar-cta .btn-solid {
        font-size: 0.68rem;
        letter-spacing: 1px;
        padding: 14px 18px;
    }

    .luxury-cta-bar .btn-solid,
    .luxury-cta-bar .btn-default {
        width: 100%;
        min-width: auto;
    }

    .lp-btn {
        width: 100%;
        display: block;
        padding: 14px 20px;
        font-size: 0.7rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .btn-default,
    .btn-solid,
    .btn-primary {
        font-size: 0.65rem;
        letter-spacing: 0.8px;
        padding: 12px 16px;
    }

    .btn-luxury,
    .btn-link {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
}

/* ===================================
   BUTTON VARIATIONS FOR SPECIFIC CONTEXTS
   =================================== */

/* Hero/Banner buttons */
.hero-content-body .btn-default,
.hero-content-body .btn-highlighted {
    margin-right: 12px;
    margin-bottom: 12px;
}

/* Appointment buttons */
.cta-appointment-btn .btn-default,
.appointment-btn .btn-default {
    min-width: 200px;
}

@media (max-width: 768px) {
    .hero-content-body .btn-default,
    .hero-content-body .btn-highlighted {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cta-appointment-btn .btn-default,
    .appointment-btn .btn-default {
        min-width: auto;
        width: 100%;
    }
}

/* ===================================
   LOADING STATE (Optional)
   =================================== */

.btn-default.loading,
.btn-solid.loading,
.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   DISABLED STATE
   =================================== */

.btn-default:disabled,
.btn-solid:disabled,
.btn-primary:disabled,
.btn-default.disabled,
.btn-solid.disabled,
.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

.btn-default:focus-visible,
.btn-solid:focus-visible,
.btn-primary:focus-visible,
.btn-luxury:focus-visible {
    outline: 3px solid #C5A059;
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-default,
    .btn-solid,
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-default,
    .btn-solid,
    .btn-primary,
    .btn-luxury,
    .lp-btn {
        transition: none;
    }
}
