/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #1B4332;
    color: #FDFCF8;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #2a4a2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1B4332;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #b8d0bc;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #dce8e0;
    border-color: #8fb892;
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    background: #D4A574;
    color: #1B4332;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-accent:hover {
    background: #c49a6c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

/* ── Nav links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A574;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile links ── */
.mobile-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mobile-link:hover {
    opacity: 0.7;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

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

/* ── Image hover ── */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Selection ── */
::selection {
    background: #b8d0bc;
    color: #1B4332;
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Navbar glass effect ── */
.navbar-scrolled {
    background: rgba(253, 252, 248, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

/* ── Smooth image loading ── */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F2;
}
::-webkit-scrollbar-thumb {
    background: #b8d0bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb892;
}
