/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #d4916e;
    border-radius: 3px;
}

/* === HEADER === */
#site-header {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(207, 184, 162, 0.2);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}

#site-header.scrolled {
    box-shadow: 0 1px 30px rgba(92, 64, 53, 0.06);
    background: rgba(253, 252, 255, 0.97);
}

/* === NAV LINKS === */
.nav-link {
    position: relative;
}

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

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

/* === MOBILE MENU === */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.25s; }

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

/* === HERO === */
.hero-subtitle {
    opacity: 0;
    animation: fadeDown 0.8s ease 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeDown 0.9s ease 0.4s forwards;
}

.hero-title span {
    display: block;
}

.hero-description {
    opacity: 0;
    animation: fadeDown 0.8s ease 0.7s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeDown 0.8s ease 0.9s forwards;
}

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

/* === BUTTONS === */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* === SERVICE CARDS === */
.service-card {
    position: relative;
    transition: all 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9784f, #d4916e);
    transition: width 0.5s ease;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(92, 64, 53, 0.08);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(92, 64, 53, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === FORM === */
.input-field {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #e2d3c4;
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #5c4035;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

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

.input-field:focus {
    border-bottom-color: #c9784f;
}

.input-field option {
    color: #5c4035;
    background: #fdfcfa;
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal-delay="100"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="200"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="300"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* === DECORATIVE LINES === */
.deco-line {
    position: absolute;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #deb596, transparent);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-title span {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-title span {
        font-size: 4.5rem;
    }
}

/* === WAPTION === */
@media (max-width: 640px) {
    .writing-vertical {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}
