/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ========== NAVBAR ========== */
#site-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
    background: rgba(253, 240, 242, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.25s ease;
}

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

/* ========== BUTTONS ========== */
.btn-primary {
    background: #7B2D3B;
    color: #fff;
    border: 2px solid #7B2D3B;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: #5c1f2c;
    border-color: #5c1f2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.3);
    color: #fff;
}

.btn-secondary {
    text-decoration: none;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3B, #d44060);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========== GALLERY ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 45, 59, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(123, 45, 59, 0.15);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #fce7eb;
    line-height: 1;
    pointer-events: none;
}

/* ========== FORM INPUTS ========== */
.input-field {
    border: 1.5px solid #f3a8b8;
    border-radius: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #3d141b;
    background: #fdf8f6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: #d9704e;
    opacity: 0.5;
}

.input-field:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
    background: #fff;
}

.input-field.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ========== MOBILE NAV ========== */
.mobile-nav-link {
    display: block;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gallery-item img {
        transition: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
    .btn-primary:hover {
        transform: none;
    }
    .service-card:hover {
        transform: none;
    }
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif {
        font-size: 1.75rem;
    }

    #about .relative > div:first-child {
        margin-bottom: 1rem;
    }
}
