/* Explain: App-specific component styles. */
/* ---------- Buttons ---------- */
.btn-caf,
.btn-caf-outline,
.btn-caf-gold,
.btn-caf-light,
.btn-caf-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn-caf {
    background: var(--text-color);
    color: var(--background-color);
    border: 1px solid var(--text-color);
}

.btn-caf:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fffdfa;
}

.btn-caf-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-caf-outline:hover {
    border-color: var(--text-color);
    background: var(--surface-alt);
}

.btn-caf-gold {
    background: var(--primary-color);
    color: #fffdfa;
    border: 1px solid var(--primary-color);
}

.btn-caf-gold:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-caf-light {
    background: transparent;
    color: #fdfaf4;
    border: 1px solid rgba(253, 250, 244, 0.5);
}

.btn-caf-light:hover {
    background: rgba(253, 250, 244, 0.15);
    border-color: #fdfaf4;
}

.btn-caf-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    letter-spacing: 0.1em;
}

.btn-caf-ghost:hover {
    color: var(--text-color);
}

.btn-caf-sm {
    min-height: 2.5rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.625rem;
    gap: 0.45rem;
}

/* ---------- Navigation ---------- */
.nav-link {
    position: relative;
    display: inline-block;
    padding-block: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* ---------- Service cards ---------- */
.service-card {
    height: 100%;
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-color);
}

/* ---------- Collections gallery ---------- */
.gallery-btn {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    cursor: pointer;
}

.gallery-btn img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.gallery-btn:hover img,
.gallery-btn:focus-visible img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: left;
    background: linear-gradient(to top, rgba(23, 20, 16, 0.8), rgba(23, 20, 16, 0) 62%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-btn:hover .gallery-overlay,
.gallery-btn:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-cat {
    font-size: 0.625rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #d9c9a8;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    color: #fdfaf4;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 13, 10, 0.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-inner {
    width: 100%;
    max-width: 56rem;
    text-align: center;
}

.lightbox-inner img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e9dfca;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(253, 250, 244, 0.4);
    border-radius: 999px;
    background: transparent;
    color: #fdfaf4;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(253, 250, 244, 0.15);
}

/* ---------- Forms ---------- */
.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color 0.25s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.field-input::placeholder {
    color: #b7ada0;
}

select.field-input {
    cursor: pointer;
}