/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(107, 28, 28, 0.08);
}

.nav-link-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-link-text {
    color: #6b1c1c;
}

/* ===== Hero Floating Cards ===== */
.floating-card-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-medium 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.floating-card-3 {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
}

/* ===== Approach Items ===== */
.approach-item {
    opacity: 1;
}

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

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

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

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

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 28, 28, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9f3;
}

::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b82e2e;
}

/* ===== Selection ===== */
::selection {
    background: rgba(107, 28, 28, 0.15);
    color: #3d0a0a;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card-1 {
        position: relative;
        top: auto;
        left: auto;
        z-index: 10;
        margin-bottom: 12px;
        animation: none;
    }

    .floating-card-2 {
        position: relative;
        bottom: auto;
        left: auto;
        z-index: 10;
        margin-bottom: 12px;
        animation: none;
    }

    .floating-card-3 {
        position: relative;
        bottom: auto;
        right: auto;
        z-index: 10;
        animation: none;
    }
}

/* ===== Print ===== */
@media print {
    #navbar, .floating-card-1, .floating-card-2, .floating-card-3 {
        display: none;
    }
}
