* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #7530f1;
    --secondary-purple: #3c1b76;
    --accent-purple: #c5aff4;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --base-font-scale: 0.88;
}

html {
    font-size: 88%;
    font-size: calc(100% * var(--base-font-scale));
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Raleway', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--neutral-50);
    overflow-x: hidden;
    font-size: 1rem;
    text-align: center;
    /* Global text centering */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    /* Reduced padding for mobile */
    text-align: center;
}

section {
    scroll-margin-top: 96px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    display: inline-flex;
    align-items: center;
    /* vertically align */
    gap: 0.25em;
    /* tiny space between text & icon */
    color: var(--primary-purple);
    position: relative;
}

.butterfly-icon {
    width: 1.2em;
    /* scale with font size */
    height: auto;
    margin-left: 0em;
    /* closer to text */
    vertical-align: middle;
    display: inline-block;
}

.logo,
.tagline {
    transition: all 0.3s ease;
}

.header .tagline {
    opacity: 1;
    max-height: 40px;
    /* enough to show normally */
    overflow: hidden;
    transition: all 0.3s ease;
}

.header.scrolled .tagline {
    opacity: 0;
    max-height: 0;
    /* collapse height */
    margin: 0;
    /* remove spacing */
    pointer-events: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    /* shrink height */

}

.header.scrolled .logo {
    transform: scale(0.85);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header.scrolled::after {
    opacity: 1;
}

.header-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    width: 100%;
}

.nav {
    width: auto;
    flex: 1 1 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 28px);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-purple);
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
}

.nav-link-cta {
    color: white;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(117, 48, 241, 0.18);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover,
.nav-link-cta:focus {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(117, 48, 241, 0.22);
}

.header.scrolled .header-content {
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }

    .nav {
        width: auto;
    }

    .nav-links {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .nav-links {
        gap: 32px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header .container {
        padding: 0 12px;
    }

    .header-content {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 1 auto;
        font-size: clamp(1.35rem, 3.2vw, 1.9rem);
    }

    .logo span {
        white-space: nowrap;
    }

    .nav {
        width: auto;
        flex: 1 1 auto;
    }

    .nav-links {
        gap: clamp(4px, 1.2vw, 12px);
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: clamp(0.78rem, 1.6vw, 0.88rem);
        padding: 4px 6px;
    }

    .nav-link-cta {
        padding: 5px 12px;
        font-size: clamp(0.78rem, 1.7vw, 0.9rem);
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .nav {
        width: 100%;
    }
}

.animated-highlight {
    color: var(--primary-purple);
    font-weight: inherit;
    letter-spacing: 0.01em;
}

body.theme-dark .animated-highlight {
    color: #f6efff;
    text-shadow:
        0 0 12px rgba(117, 48, 241, 0.65), 0 5px 18px rgba(60, 27, 118, 0.6);

}

.logo {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    /* More responsive sizing */
    font-weight: 800;
    color: var(--primary-purple);
    letter-spacing: -0.02em;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    /* keep small space */
    flex: 0 0 auto;
}
   /* Footer */ 
   /* deleted from index.html */
   .site-footer {
    background: var(--neutral-50);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--neutral-200);
    margin-top: 40px;
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    font-weight: 500;
    transition: background 0.3s ease, -webkit-background-clip 0.3s ease;
}

.site-footer p:hover {
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: default;

}

/* === MailerLite Form – Everbloom Custom Styling === */

/* Wrapper (outer container) */
.ml-form-embedWrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 6px 20px rgba(117, 48, 241, 0.08);
    max-width: 480px;
    margin: 2rem auto;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* Inner form */
.ml-form-embedWrapper form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Input field */
.ml-form-embedWrapper input[type="email"] {
    width: 100%;
    border: 2px solid #cdbaf7;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafafa;
}

.ml-form-embedWrapper input[type="email"]:focus {
    border-color: #7530f1;
    box-shadow: 0 0 0 3px rgba(117, 48, 241, 0.15);
    outline: none;
    background: #fff;
}

/* Button */
.ml-form-embedWrapper .ml-form-embedSubmit button {
    background: linear-gradient(90deg, #7530f1, #a46efc);
    border: none;
    border-radius: 16px;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.ml-form-embedWrapper .ml-form-embedSubmit button:hover {
    background: linear-gradient(90deg, #6126cc, #8d50f8);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(117, 48, 241, 0.25);
}

.ml-form-embedWrapper .ml-form-embedSubmit button:focus {
    outline: 2px solid #7530f1;
    outline-offset: 3px;
}

/* Labels (if present) */
.ml-form-embedWrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700, #404040);
    margin-bottom: 6px;
    display: block;
    text-align: left;
}

/* Success message */
.ml-form-embedWrapper .ml-success {
    color: #7530f1;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error message */
.ml-form-embedWrapper .ml-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 6px;
    text-align: left;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .ml-form-embedWrapper {
        padding: 20px;
    }

    .ml-form-embedWrapper input[type="email"],
    .ml-form-embedWrapper .ml-form-embedSubmit button {
        font-size: 0.95rem;
        padding: 12px 14px;
    }
}

.email-signup {
    padding: 60px 0;
    background: var(--neutral-100);
    text-align: center;
}

.email-signup h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.email-signup p {
    font-size: 1.1rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.site-map {
    padding: 70px 0;
    background: var(--neutral-50);
}

.site-map-header {
    max-width: 640px;
    margin: 0 auto 32px;
}

.site-map-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.site-map-header p {
    font-size: 1rem;
    color: var(--neutral-600);
}

.site-map-nav {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.site-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-map-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(117, 48, 241, 0.08);
}

.site-map-item>a {
    display: inline-block;
    font-weight: 700;
    color: rgba(70, 36, 126, 0.88);
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-map-item>a:hover,
.site-map-item>a:focus {
    color: var(--secondary-purple);
    text-shadow: 0 3px 10px rgba(117, 48, 241, 0.25);
}

.site-map-item p {
    font-size: 0.95rem;
    color: var(--neutral-700);
    margin-bottom: 12px;
}

.site-map-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-map-sublist li a {
    font-size: 0.9rem;
    color: rgba(70, 36, 126, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-map-sublist li a:hover,
.site-map-sublist li a:focus {
    color: var(--secondary-purple);
    text-shadow: 0 2px 8px rgba(117, 48, 241, 0.2);
}

body.theme-dark .site-map-item>a {
    color: rgba(233, 228, 255, 0.92);
    text-shadow:
        0 0 12px rgba(197, 175, 244, 0.45),
        0 2px 12px rgba(36, 14, 84, 0.5);
}

body.theme-dark .site-map-item>a:hover,
body.theme-dark .site-map-item>a:focus {
    color: #f7f4ff;
    text-shadow:
        0 0 16px rgba(197, 175, 244, 0.6),
        0 4px 18px rgba(26, 10, 56, 0.55);
}

body.theme-dark .site-map-sublist li a {
    color: rgba(214, 206, 255, 0.88);
    text-shadow: 0 0 10px rgba(197, 175, 244, 0.35);
}

body.theme-dark .site-map-sublist li a:hover,
body.theme-dark .site-map-sublist li a:focus {
    color: #f0ecff;
    text-shadow:
        0 0 14px rgba(197, 175, 244, 0.55),
        0 3px 12px rgba(22, 8, 42, 0.45);
}

@media (max-width: 680px) {
    .site-map-item {
        padding: 18px;
    }
}