/* ── Custom Fonts ────────────────────────────────────────── */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* ── Scroll Behavior ─────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: #8B7355; color: white; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF8F5; }
::-webkit-scrollbar-thumb { background: #C4A882; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8B7355; }

/* ── Line Clamp ──────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 5s ease-in-out infinite; }
.animate-fade-in { animation: fade-in-up 0.6s ease-out forwards; }

/* ── Scroll Reveal (Intersection Observer) ───────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Nav Link Underline ──────────────────────────────────── */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8B7355;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Prose Styles for Blog Content ───────────────────────── */
.prose-custom h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2418;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose-custom h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #2C2418;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.prose-custom p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.prose-custom ul, .prose-custom ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.prose-custom li { margin-bottom: 0.5rem; }
.prose-custom strong { color: #2C2418; font-weight: 600; }
.prose-custom a { color: #8B7355; text-decoration: underline; }
.prose-custom a:hover { color: #6B5A45; }
.prose-custom blockquote {
    border-left: 3px solid #8B7355;
    padding-left: 1rem;
    font-style: italic;
    color: #5C4F3A;
    margin: 1.5rem 0;
}
.prose-custom img { border-radius: 1rem; margin: 1.5rem 0; }

/* ── WordPress Pagination ────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}
.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #D4C5B0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #5C4F3A;
    text-decoration: none;
    transition: all 0.3s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: #8B7355;
    color: white;
    border-color: #8B7355;
}

/* ── WordPress Alignments ────────────────────────────────── */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); }

/* ── Category Tabs ───────────────────────────────────────── */
.cat-tab { transition: all 0.3s ease; }
.cat-tab.active {
    background-color: #8B7355 !important;
    color: white !important;
}
.cat-content { display: none; }
.cat-content.active { display: grid; }

/* ── Contact Form Status ─────────────────────────────────── */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
