/* === Revert: Use background.jpeg instead of dynamic background === */

/* Restore image background on the root element */
html {
    background-image: url("../images/background.jpeg") !important;
    background-attachment: scroll !important; /* or 'fixed' for parallax */
    background-repeat: repeat-y !important;
    background-size: 100vw auto !important; 
    background-position: top center !important;
    position: relative !important;
}

/* Blurred overlay for a soft look, behind content */
html::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -1 !important;
    background-image: url("../images/background.jpeg") !important;
    background-attachment: scroll !important;
    background-repeat: repeat-y !important;
    background-size: 100vw auto !important;
    background-position: top center !important;
    filter: blur(6px) !important;
    pointer-events: none !important;
}

/* Disable dynamic gradient/overlays/animations */
body {
    background: transparent !important;
    animation: none !important;
}
html::after, body::before {
    content: none !important;
}

/* Optional: reduce any residual opacity handling */
@media (prefers-reduced-motion: reduce) {
    html::after, body::before { content: none !important; }
}

/* Site-wide dynamic sage + white background */
:root {
    --sage: #9dd491;
}

html, body {
    min-height: 100%;
}

body {
    /* Preserve previous constraint */
    overflow-x: hidden;

    /* Animated soft gradient (more off‑white/pastel, less pure white) */
    background: linear-gradient(
        140deg,
        #fafbf9 0%,   /* nearly white with warm sage undertone */
        #f5faf6 18%,  /* off-white with subtle sage */
        #f0f8f3 36%,  /* very pale sage green */
        #eaf4ec 54%,  /* soft whitewashed sage */
        #e8f3eb 72%,  /* gentle sage whisper */
        #f4f9f6 100%  /* return to nearly white */
    );
    background-size: 420% 420%; /* slightly larger for smoother movement */
    animation: sageGradient 28s ease-in-out infinite; /* slower for subtlety */
}

/* Subtle sage glow layers */
/* Replaced body::before with html overlays for correct stacking behind all content */
html::before,
html::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1; /* Ensure behind all page content */
}

/* Corner-anchored base tints (static) */
html::before {
    background:
        /* Top-left: soft off-white with warmth */
        radial-gradient(1200px 1200px at 0% 0%, rgba(250,252,250,0.85) 0%, rgba(245,250,247,0.70) 40%, transparent 75%),
        /* Bottom-right: very subtle sage (softened) */
        radial-gradient(1200px 1200px at 100% 100%, rgba(180, 210, 190, 0.28) 0%, rgba(157, 212, 145, 0.12) 50%, transparent 78%),
        /* Top-right: pale whisper of mint */
        radial-gradient(1000px 950px at 100% 0%, rgba(230, 245, 237, 0.35) 0%, transparent 70%),
        /* Bottom-left: creamy pearl fog */
        radial-gradient(900px 860px at 0% 100%, rgba(250, 252, 250, 0.75) 0%, transparent 65%);
}

/* Dynamic drift layer (animated) */
html::after {
    background:
        /* Gentler drift tints */
        radial-gradient(900px 900px at 15% 25%, rgba(190, 218, 200, 0.12), transparent 65%),
        radial-gradient(1000px 1000px at 85% 75%, rgba(180, 210, 190, 0.11), transparent 65%),
        radial-gradient(720px 720px at 80% 15%, rgba(235, 247, 241, 0.20), transparent 65%),
        /* Pearly float */
        radial-gradient(780px 780px at 35% 85%, rgba(250, 250, 252, 0.25), transparent 65%),
        /* Very subtle pink undertones (almost imperceptible) */
        linear-gradient(25deg,  rgba(255, 220, 220, 0.00) 45%, rgba(255, 220, 220, 0.03) 50%, rgba(255, 220, 220, 0.00) 55%),
        linear-gradient(205deg, rgba(255, 215, 215, 0.00) 60%, rgba(255, 215, 215, 0.02) 64%, rgba(255, 215, 215, 0.00) 68%),
        /* Small floating pearl/sage blobs (softened) */
        radial-gradient(40px 40px at 12% 18%, rgba(245, 252, 249, 0.7), transparent 65%),
        radial-gradient(50px 50px at 28% 42%, rgba(238, 248, 244, 0.65), transparent 70%),
        radial-gradient(36px 36px at 66% 22%, rgba(242, 251, 247, 0.7), transparent 65%),
        radial-gradient(44px 44px at 78% 58%, rgba(235, 248, 242, 0.65), transparent 65%),
        radial-gradient(34px 34px at 38% 76%, rgba(248, 252, 250, 0.7), transparent 65%),
        radial-gradient(46px 46px at 88% 34%, rgba(240, 250, 246, 0.68), transparent 65%);
    animation: auroraDrift 28s ease-in-out infinite alternate; /* slower drift */
    /* Stronger scroll parallax */
    transform: translate3d(0, calc(var(--scrollY, 0) * -0.08px), 0);
    opacity: 0.80; /* slightly reduced for subtlety */
}

/* Second counter-moving drift layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2; /* Behind html::after (-1), above html::before if needed */
    background:
        /* Soft counter tints (more whitewashed) */
        radial-gradient(820px 820px at 20% 80%, rgba(240, 248, 244, 0.18), transparent 68%),
        radial-gradient(700px 700px at 75% 30%, rgba(235, 245, 240, 0.16), transparent 65%),
        radial-gradient(600px 600px at 10% 35%, rgba(248, 251, 249, 0.18), transparent 63%),
        /* Tiny drifting blobs (softened) */
        radial-gradient(28px 28px at 18% 28%, rgba(243, 251, 248, 0.65), transparent 65%),
        radial-gradient(32px 32px at 62% 72%, rgba(237, 247, 242, 0.62), transparent 65%),
        radial-gradient(24px 24px at 84% 46%, rgba(245, 251, 248, 0.64), transparent 65%),
        radial-gradient(30px 30px at 42% 18%, rgba(240, 248, 244, 0.62), transparent 65%),
        /* Very faint alternate undertones */
        linear-gradient(155deg, rgba(255, 220, 220, 0.00) 40%, rgba(255, 220, 220, 0.02) 44%, rgba(255, 220, 220, 0.00) 48%);
    animation: auroraDrift2 32s ease-in-out infinite alternate;
    transform: translate3d(0, calc(var(--scrollY, 0) * 0.06px), 0); /* Opposite parallax to html::after */
    opacity: 0.55;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1.00);   filter: hue-rotate(0deg) saturate(1.06); }
    50%  { transform: translate3d(-3.5%, 1.8%, 0) scale(1.09); filter: hue-rotate(7deg) saturate(1.10); }
    100% { transform: translate3d(3.5%, -1.8%, 0) scale(1.11); filter: hue-rotate(-6deg) saturate(1.08); }
}

@keyframes auroraDrift2 {
    0%   { transform: translate3d(0, 0, 0) scale(1.00);   filter: hue-rotate(0deg) saturate(1.02); }
    50%  { transform: translate3d(3.0%, -1.4%, 0) scale(1.05); filter: hue-rotate(-5deg) saturate(1.06); }
    100% { transform: translate3d(-3.0%, 1.4%, 0) scale(1.08); filter: hue-rotate(4deg) saturate(1.04); }
}

/* Make the base gradient movement a bit more pronounced as well */
@keyframes sageGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    html::after { animation: none; transform: none; }
    body::before { animation: none; transform: none; }
    .hero-bar, .hero-logo, .text-box { animation: none !important; opacity: 1 !important; }
}

/* Remove legacy page background image/blur on html element (replaced by overlays above) */
/* Removed previous `html { background: none !important; }` and `html::before { content: none !important; }` to allow new overlays */

img {
    pointer-events: none;
    user-select: none;
    width: auto;
}

.hero-logo {
    max-width: 10%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    background: #00000000;
    margin: 0.25em 0.25em;
}

/* === Entrance Animations === */

.hero-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(157, 212, 145, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1.5px solid rgba(255,255,255,0.25);
    padding: 1.2em 0 0.7em 0;
    font-family: 'Lora', serif;
    border-radius: 0 0 18px 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    box-sizing: border-box;
}

.hero-nav {
    display: flex;
    position: sticky;
    flex-direction: row;
    justify-content: center;      /* Center the nav items horizontally */
    align-items: flex-start;
    gap: 0.5em;                     /* Evenly space out the nav items */
    width: fit-content;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0 1em;
    background: rgba(255,255,255,0.35);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    padding: 0.75em 1em;
}

.hero-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #293b25;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 1px 2px rgba(44,62,80,0.04);
    text-align: center;
    letter-spacing: 0.01em;
    min-width: 60px;
    min-height: 40px;
    padding: 0.25em 0.25em;
    margin-top: 0.4em;
}

.hero-nav a:hover, .hero-nav a:focus {
    background: #a3b18a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(44,62,80,0.08);
    outline: none;
}

.hero-nav .material-icons {
    font-size: 2em;
    margin-bottom: 0.1em;
    color: #293b25;
    transition: color 0.18s;
}

.hero-nav a:hover .material-icons,
.hero-nav a:focus .material-icons {
    color: #fff;
}

.hero-nav a span:last-child {
    font-size: 0.9em;
    margin-top: 0.2em;
}

.mobile-nav, .mobile-nav-toggle { display: none; }

/* Mobile styles */
@media (max-width: 768px) {
    .hero-logo {
        border-radius: 48px;
    }
    .hero-nav {
    display: none;
  }
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 212, 145, 0.85);
    border: none;
    border-radius: 18px;
    padding: 0.5em 1.2em;
    margin: 0.1em 0.25em;
    font-size: 2em;
    color: #293b25;
    box-shadow: 0 2px 12px rgba(44,62,80,0.12);
    cursor: pointer;
    backdrop-filter: blur(8px) saturate(180%);
    transition: background 0.2s, box-shadow 0.2s;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgb(119, 171, 107);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.16);
    margin: 0.5em auto;
    padding: 0.5em 0.5em;
    width: 80vw;
    max-width: 400px;
    min-width: 0;
    position: absolute;
    left: 50%;
    top: 2.5em;
    transform: translateX(-50%);
    z-index: 100;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.22);
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7em;
    font-family: 'Lora', serif;
    color: #293b25;
    text-decoration: none;
    font-size: 1.1em;
    padding: 0.7em 1em;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    transition: background 0.15s, color 0.15s;
    margin: 0.2em 0;
    box-shadow: 0 1px 4px rgba(44,62,80,0.06);
}
.mobile-nav a:hover {
    background: rgba(157, 212, 145, 0.35);
    color: #fff;
}
.mobile-nav .material-icons {
    font-size: 1.4em;
    color: #293b25;
    transition: color 0.15s;
}
.mobile-nav a:hover .material-icons {
    color: #fff;
}
}

/* Text Box */

.text-box {
    max-width: 90%;
    margin: 2rem auto;
    background: rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18), 0 1.5px 0 rgba(255,255,255,0.25) inset;
    padding: 2.5rem 2rem;
    text-align: center;
    font-family: 'Lora', serif;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: box-shadow 0.2s;
}

/* FAQ Section */

#faqs {
    text-align: center;
    font-family: 'Lora', serif;
}

.faq_h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3a28;
    margin-bottom: 0.3em;
}

.faq_p {
    font-size: 1rem;
    color: #2c3a28;
    margin-top: 0;
}