/* === 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,
        #f5faf6 0%,   /* off‑white with mint tint */
        #eef7f0 22%,  /* pastel mint white */
        #e6f4ea 48%,  /* soft mint */
        #d3ead8 74%,  /* sage‑leaning pastel */
        #eaf6f0 100%  /* gentle off‑white */
    );
    background-size: 420% 420%; /* slightly larger for smoother movement */
    animation: sageGradient 24s ease-in-out infinite; /* faster for prominence */
}

/* 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: off‑white tint instead of bright white */
        radial-gradient(1200px 1200px at 0% 0%, rgba(248,252,249,0.78) 0%, rgba(245,250,247,0.64) 36%, transparent 70%),
        /* Bottom-right: stronger sage */
        radial-gradient(1200px 1200px at 100% 100%, rgba(157, 212, 145, 0.54) 0%, rgba(157, 212, 145, 0.36) 46%, transparent 72%),
        /* Top-right: mint wash */
        radial-gradient(1000px 950px at 100% 0%, rgba(226, 244, 226, 0.60) 0%, transparent 66%),
        /* Bottom-left: pearl fog */
        radial-gradient(900px 860px at 0% 100%, rgba(248, 252, 250, 0.66) 0%, transparent 62%);
}

/* Dynamic drift layer (animated) */
html::after {
    background:
        /* Larger drift tints */
        radial-gradient(900px 900px at 15% 25%, rgba(157, 212, 145, 0.20), transparent 60%),
        radial-gradient(1000px 1000px at 85% 75%, rgba(157, 212, 145, 0.19), transparent 60%),
        radial-gradient(720px 720px at 80% 15%, rgba(230, 243, 230, 0.34), transparent 60%),
        /* Pearly float */
        radial-gradient(780px 780px at 35% 85%, rgba(250, 248, 252, 0.34), transparent 62%),
        /* Subtle pink streaks */
        linear-gradient(25deg,  rgba(255, 192, 203, 0.00) 45%, rgba(255, 192, 203, 0.08) 50%, rgba(255, 192, 203, 0.00) 55%),
        linear-gradient(205deg, rgba(255, 182, 193, 0.00) 60%, rgba(255, 182, 193, 0.06) 64%, rgba(255, 182, 193, 0.00) 68%),
        /* Small floating pearl/mint blobs */
        radial-gradient(40px 40px at 12% 18%, rgba(240, 252, 246, 0.9), transparent 60%),
        radial-gradient(50px 50px at 28% 42%, rgba(223, 245, 229, 0.85), transparent 65%),
        radial-gradient(36px 36px at 66% 22%, rgba(236, 250, 244, 0.9), transparent 60%),
        radial-gradient(44px 44px at 78% 58%, rgba(219, 243, 228, 0.85), transparent 60%),
        radial-gradient(34px 34px at 38% 76%, rgba(242, 252, 247, 0.88), transparent 60%),
        radial-gradient(46px 46px at 88% 34%, rgba(226, 246, 234, 0.86), transparent 60%);
    animation: auroraDrift 24s ease-in-out infinite alternate; /* faster drift */
    /* Stronger scroll parallax */
    transform: translate3d(0, calc(var(--scrollY, 0) * -0.08px), 0);
    opacity: 0.985; /* more visible */
}

/* 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 */
        radial-gradient(820px 820px at 20% 80%, rgba(232, 246, 236, 0.28), transparent 62%),
        radial-gradient(700px 700px at 75% 30%, rgba(214, 236, 219, 0.26), transparent 60%),
        radial-gradient(600px 600px at 10% 35%, rgba(245, 249, 247, 0.28), transparent 58%),
        /* Tiny drifting blobs */
        radial-gradient(28px 28px at 18% 28%, rgba(236, 252, 245, 0.85), transparent 60%),
        radial-gradient(32px 32px at 62% 72%, rgba(225, 245, 232, 0.82), transparent 60%),
        radial-gradient(24px 24px at 84% 46%, rgba(240, 250, 246, 0.84), transparent 60%),
        radial-gradient(30px 30px at 42% 18%, rgba(232, 246, 236, 0.82), transparent 60%),
        /* Very faint alternate pink glints */
        linear-gradient(155deg, rgba(255, 192, 203, 0.00) 40%, rgba(255, 192, 203, 0.06) 44%, rgba(255, 192, 203, 0.00) 48%);
    animation: auroraDrift2 30s ease-in-out infinite alternate;
    transform: translate3d(0, calc(var(--scrollY, 0) * 0.06px), 0); /* Opposite parallax to html::after */
    opacity: 0.75;
}

@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; }
}

/* 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;
}

.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: 'Playfair Display', Georgia, 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.6em 1.2em;
    margin: 0.5em 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: 'Playfair Display', Georgia, 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: 'Playfair Display', 'Georgia', 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: 'Playfair Display', 'Georgia', 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;
}