/* Explain: App-specific component classes (UI elements like buttons, cards, navigation). */
/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(to bottom, rgba(16, 16, 16, 0.8), rgba(16, 16, 16, 0));
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(22, 22, 22, 0.94);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
    box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.brand-badge i {
    transform: rotate(-45deg);
}

.brand-mark:hover .brand-badge {
    background: var(--primary-color);
    color: var(--on-primary);
}

.nav-link {
    position: relative;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
}

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

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 22rem);
    background: var(--surface-strong);
    border-left: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    animation: panelIn 0.35s ease;
}

.mobile-link {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.35rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

@keyframes panelIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ---------- Buttons ---------- */
.btn.btn-brass,
.btn.btn-outline-light {
    height: auto;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.85rem;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
}

.btn.btn-brass {
    background: var(--primary-color);
    color: var(--on-primary);
    border: 1px solid var(--primary-color);
}

.btn.btn-brass:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brass);
}

.btn.btn-outline-light {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.btn-outline-light:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 43, 32, 0.06);
}

.btn.btn-brass.btn-lg,
.btn.btn-outline-light.btn-lg {
    min-height: 3.6rem;
    padding: 1rem 2.2rem;
    font-size: 0.95rem;
}

.btn.btn-brass:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ---------- Typographic accents ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.78rem;
    color: var(--primary-color);
}

.eyebrow::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: currentColor;
}

/* ---------- About ---------- */
.brass-frame {
    position: relative;
    isolation: isolate;
}

.brass-frame::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--primary-color);
    z-index: -1;
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    flex-shrink: 0;
}

.barber-photo {
    overflow: hidden;
}

.barber-photo img {
    transition: transform 0.6s ease;
}

.barber-card:hover .barber-photo img {
    transform: scale(1.05);
}

/* ---------- Services menu ---------- */
.menu-row {
    display: block;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line-soft);
    transition: all 0.35s ease;
}

.menu-row:hover,
.menu-row:focus-visible {
    padding-left: 0.75rem;
    border-bottom-color: var(--border-color);
}

.menu-row-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.menu-leader {
    flex: 1;
    min-width: 1.5rem;
    border-bottom: 1px dotted rgba(212, 43, 32, 0.5);
    transform: translateY(-0.35rem);
}

.menu-book {
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.menu-row:hover .menu-book,
.menu-row:focus-visible .menu-book {
    opacity: 1;
    transform: none;
}

/* ---------- Forms ---------- */
.form-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-deep);
}

.form-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 5rem;
    height: 3px;
    background: var(--primary-color);
}

.field-label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-bottom: 0.25rem;
}

.input.field-input,
.select.field-input,
.textarea.field-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    color: var(--text-color);
    font-family: var(--font-body);
    box-shadow: none;
    transition: all 0.3s ease;
}

.input.field-input,
.select.field-input {
    min-height: 3rem;
}

.input.field-input:focus,
.input.field-input:focus-within,
.select.field-input:focus,
.select.field-input:focus-within,
.textarea.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 43, 32, 0.18);
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field-input option {
    background: var(--background-color);
    color: var(--text-color);
}

.form-status {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border-left: 3px solid var(--primary-color);
}

.form-status.is-success {
    border-color: var(--primary-color);
    background: rgba(212, 43, 32, 0.1);
    color: var(--text-color);
}

.form-status.is-error {
    border-color: var(--error-color);
    background: rgba(224, 122, 107, 0.1);
    color: #F3C2B9;
}

/* ---------- Contact ---------- */
.info-tile {
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-tile:hover {
    border-color: var(--border-color);
}

.map-frame {
    border: 1px solid var(--border-color);
    background: var(--surface-strong);
}

.map-frame iframe {
    filter: grayscale(1) invert(0.92) contrast(0.95) brightness(0.88);
    border: 0;
}

.map-tint {
    background: rgba(212, 43, 32, 0.16);
    mix-blend-mode: multiply;
}