/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-amber);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
    color: var(--color-text-inverse);
}

.btn--secondary {
    background: transparent;
    color: var(--color-amber);
    border: 2px solid var(--color-amber);
}

.btn--secondary:hover {
    background: var(--color-amber-glow);
    transform: translateY(-2px);
    color: var(--color-amber);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-border-light);
}

.btn--danger {
    background: var(--color-error);
    color: #fff;
}

.btn--danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    color: #fff;
}

.btn--sm {
    padding: 8px 16px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 16px 36px;
    font-size: var(--text-base);
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--glass {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card--glow:hover {
    border-color: var(--color-amber-dark);
    box-shadow: var(--shadow-glow);
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px var(--color-amber-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a4b8' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-error {
    font-size: var(--text-sm);
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-help {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Password visibility toggle */
.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrap .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--color-amber);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer__desc {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-amber);
    margin-bottom: var(--space-lg);
}

.footer__link {
    display: block;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-amber);
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.hero--photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 13, 20, 0.85) 0%, rgba(13, 13, 20, 0.6) 50%, rgba(13, 13, 20, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-5xl) var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--color-amber-glow);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-amber);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title-accent {
    background: var(--gradient-amber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-amber);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--space-xs);
}

/* Floating ember particles */
.hero__ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-amber);
    border-radius: 50%;
    opacity: 0;
    animation: ember 3s ease-in-out infinite;
}

@keyframes ember {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

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

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-2xl);
    }

    .hero__container {
        padding: var(--space-xl) var(--space-lg);
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__subtitle {
        font-size: var(--text-lg);
    }

    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ============================================================================
   Sections
   ============================================================================ */

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section--alt {
    background: var(--color-bg-secondary);
}

.section__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__header .section-subtitle {
    margin: 0 auto;
}

/* ============================================================================
   Lightbox / Modal
   ============================================================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.lightbox--open {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.lightbox__close:hover {
    color: var(--color-amber);
}

.lightbox__caption {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    text-align: center;
}

/* ============================================================================
   Utilities
   ============================================================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 3000;
    animation: slideInRight 0.3s ease forwards;
    box-shadow: var(--shadow-lg);
}

.toast--success {
    background: var(--color-success);
    color: #000;
}

.toast--error {
    background: var(--color-error);
    color: #fff;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Star ratings */
.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--color-amber);
    font-size: var(--text-lg);
}

.stars--sm { font-size: var(--text-sm); }
.stars--lg { font-size: var(--text-xl); }

/* ============================================================================
   Mobile Sticky CTA Bar
   ============================================================================ */

.mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--color-bg-primary);
        border-top: 1px solid rgba(212, 168, 83, 0.2);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-cta__btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 10px 4px;
        color: var(--color-text-secondary);
        text-decoration: none;
        font-size: var(--text-xs);
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color 0.2s ease, background 0.2s ease;
        min-height: 56px;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }

    .mobile-cta__btn:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-cta__btn:focus-visible {
        outline: 2px solid var(--color-amber);
        outline-offset: -2px;
    }

    .mobile-cta__btn--primary {
        color: var(--color-bg-primary);
        background: var(--gradient-amber);
        font-weight: 700;
    }

    .mobile-cta__btn--primary:active {
        filter: brightness(0.9);
    }

    .mobile-cta__icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-cta__label {
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Prevent footer/content from being hidden behind the sticky bar */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

