/* ============================================
   His Purpose Nutrition — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

/* ---------- BASE ---------- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #7B2D3B;
    color: #FDF9F6;
}

/* ---------- NAVBAR ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

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

.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav-link {
    position: relative;
}

/* ---------- HERO ---------- */
.clip-hero-right {
    clip-path: polygon(30% 0%, 100% 0, 100% 100%, 0% 100%);
}

.hero-eyebrow {
    opacity: 1;
    animation: fadeDown 0.8s ease forwards;
}

.hero-image-frame {
    opacity: 1;
    animation: fadeUp 1s ease 0.2s forwards;
}

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

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

/* ---------- OFFERING CARDS ---------- */
.offering-card {
    opacity: 1;
}

.offering-card:hover .offering-img {
    transform: scale(1.05);
}

/* ---------- ABOUT IMAGE ---------- */
.about-image-stack {
    position: relative;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion — disable transitions */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .offering-card:hover .offering-img,
    .overflow-hidden img {
        transform: none;
        transition: none;
    }
}

/* ---------- VALUE ITEMS ---------- */
.value-item {
    opacity: 1;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(6px);
}

/* ---------- FORM ---------- */
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #f39aad;
    box-shadow: 0 0 0 3px rgba(243, 154, 173, 0.15);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .clip-hero-right {
        clip-path: none;
        display: none;
    }

    #hero {
        padding-top: 6rem;
    }

    .hero-image-frame img {
        height: 400px !important;
    }

    .about-image-stack img {
        height: 380px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image-frame img {
        height: 500px !important;
    }
}

/* ---------- UTILITY ---------- */
.font-serif {
    letter-spacing: -0.01em;
}
