/* ============================================
   Whitney A Berry — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: #a7d8c9;
    color: #0a1f3f;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4c9b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8a896;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 31, 63, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #0a1f3f;
}

#navbar.scrolled .nav-logo-sub {
    color: #153a70;
}

#navbar.scrolled .nav-link {
    color: #0f2d58;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* --- Form Inputs --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #d4c9b8;
}

/* --- Testimonial Cards --- */
.bg-white {
    position: relative;
}

.bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a7d8c9, #3fa88d);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px 4px 0 0;
}

.bg-white:hover::before {
    opacity: 1;
}

/* --- Section Divider Lines --- */
section > div > div:first-child > div:first-child {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Fade In Up Animation (below fold only — progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #back-to-top,
    #contact-form,
    #form-success {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}
