/* B&D Glass & Mirror - Dark Red Theme */

/* =============================================================================
   CSS Variables
   ============================================================================= */
:root {
    --bd-red-500: #df4d6f;
    --bd-red-600: #c9305a;
    --bd-red-700: #a82448;
    --bd-red-800: #8b1e3e;
    --bd-red-900: #761c38;
    --bd-dark-800: #454545;
    --bd-dark-900: #1a1a1a;
    --bd-dark-950: #0d0d0d;
}

/* =============================================================================
   Base Styles
   ============================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* Hide elements with x-cloak until Alpine loads */
[x-cloak] {
    display: none !important;
}

/* =============================================================================
   Component: Navigation
   ============================================================================= */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bd-red-500);
    transition: width 0.3s ease;
}

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

/* =============================================================================
   Component: Buttons
   ============================================================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--bd-red-700), var(--bd-red-800));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bd-red-600), var(--bd-red-700));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 30, 62, 0.3);
}

.btn-outline {
    border: 2px solid var(--bd-red-500);
    color: var(--bd-red-400);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--bd-red-500);
    color: white;
}

/* =============================================================================
   Component: Cards
   ============================================================================= */
.service-card {
    background: var(--bd-dark-900);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--bd-red-500);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =============================================================================
   Component: Forms
   ============================================================================= */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bd-dark-950);
    border: 2px solid #2a2a2a;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: white;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bd-red-500);
    box-shadow: 0 0 0 3px rgba(223, 77, 111, 0.2);
}

.form-input::placeholder {
    color: #666;
}

/* Select styling */
.form-input option {
    background: var(--bd-dark-900);
    color: white;
}

/* =============================================================================
   Component: Floating Call Button
   ============================================================================= */
.floating-call {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: linear-gradient(135deg, var(--bd-red-700), var(--bd-red-800));
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(139, 30, 62, 0.4);
    transition: all 0.3s ease;
}

.floating-call:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(139, 30, 62, 0.5);
}

/* =============================================================================
   HTMX Loading States
   ============================================================================= */
.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-request button[type="submit"] {
    position: relative;
}

.htmx-request button[type="submit"]::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 640px) {
    .service-card {
        padding: 1.5rem;
    }
}