/* ============================================
   Rocky Point Plants — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* --- Selection --- */
::selection {
    background-color: #1a5632;
    color: #fefdf8;
}

/* --- Navigation --- */
#site-header.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a5632;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* --- Hero Animations --- */
.hero-badge {
    animation: fadeDown 0.8s ease forwards;
    opacity: 0;
}

.hero-headline {
    animation: fadeUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-sub {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeUp 0.8s ease 0.75s forwards;
    opacity: 0;
}

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

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

/* --- Hero Decorative Circles --- */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7cb882 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #aed0af 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #d5e8d8 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

.circle-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #7cb882 0%, transparent 70%);
    bottom: 20%;
    right: 25%;
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- FAQ Accordion --- */
.faq-btn {
    cursor: pointer;
}

.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 300px;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #1a5632;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7cb882;
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
    .hero-circle {
        display: none;
    }
}
