/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #574f43;
    background-color: #faf9f7;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #d95232;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #d95232;
}

.btn-primary:hover {
    background-color: #b83f28;
    border-color: #b83f28;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 82, 50, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #574f43;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #dcd8cf;
}

.btn-secondary:hover {
    border-color: #d95232;
    color: #d95232;
    transform: translateY(-2px);
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcd8cf;
    border-radius: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #574f43;
    background-color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: #d95232;
    box-shadow: 0 0 0 3px rgba(217, 82, 50, 0.1);
}

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

/* Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d95232;
    transition: width 0.3s ease;
}

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

/* Service Cards */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: #d95232;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(217, 82, 50, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b83f28;
    transform: translateY(-2px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Selection Color */
::selection {
    background-color: #f9d5c8;
    color: #7d2f23;
}
