/* --- DESIGN SYSTEM & SETUP --- */
/*
    UPDATED PALETTE (Version 2.0)
    - Replaced the corporate blue/teal palette with a warm, inviting, and
      brand-aligned palette based on the Facebook group's branding.
    - Added a separate '--accent-link' variable to ensure accessibility.
*/
:root {
    --primary-dark: #5E4B66;      /* Deep Plum (for headings) */
    --primary-text: #333333;      /* Charcoal (for body copy) */
    --accent-action: #E95D4E;     /* Warm Coral (for buttons & highlights) */
    --accent-action-dark: #D05445;/* Darker Coral (for button hover) */
    --accent-link: #D95344;       /* Accessible Coral (for inline links) */
    --bg-light: #F9ECE8;          /* Soft Peach (main background) */
    --bg-grey: #F0F0F0;           /* Subtle grey for section separation */
    --border-light: #DDDDDD;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-text);
    line-height: 1.7;
    margin: 0;
    font-size: 16px;
}

/* --- LAYOUT & CONTAINERS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: white;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Lora', serif;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem;}
h2 { font-size: 2.25rem; margin-bottom: 1rem;}
h3 { font-size: 1.5rem; color: var(--primary-dark); }

.section-intro h2 {
    margin-bottom: 0.5rem;
}
.section-intro p {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    max-width: 650px; /* Readability improvement */
}

a {
    color: var(--accent-link); /* UPDATED: Using accessible link color */
    text-decoration: none;
    font-weight: 600;
}
a:hover {
    text-decoration: underline;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--accent-action); /* UPDATED */
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-action-dark); /* UPDATED */
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* NEW: Reusable class to replace inline style */
.btn-light {
    background-color: white;
    color: var(--primary-dark);
    border-color: white;
}
.btn-light:hover {
    background-color: var(--bg-light); /* Subtle hover for light button */
    border-color: var(--bg-light);
    transform: translateY(-2px);
    text-decoration: none;
}


/* --- HEADER (For ALL pages) --- */
header {
    background-color: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.header-content .logo-block {
    text-decoration: none;
}
.header-content .full-name {
    display: block;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.2;
}
.header-content .abbreviation {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-text);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- HERO SECTION --- */
#hero {
    text-align: center;
    padding: 80px 0;
}
#hero h1 { color: var(--primary-dark); }
#hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--primary-text);
}
#hero .cta-group a { margin: 0 10px; }

/* --- WHO FOR SECTION --- */
#who-for ul {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 30px auto 0 auto;
}
#who-for li {
    font-size: 1.1rem;
    padding: 10px 0 10px 35px;
    position: relative;
}
#who-for li::before {
    content: '✔';
    color: var(--accent-action); /* UPDATED */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 1.2rem;
}

/* --- WHY SECTION --- */
#why .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.value-card h3 { margin-top: 0; }
.value-card p { font-size: 0.95rem; }

/* --- CREATOR SECTION --- */
#creator .creator-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
#creator .creator-img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
#creator .creator-text {
    max-width: 500px;
}
#creator .creator-text p.quote {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    border-left: 3px solid var(--accent-action); /* UPDATED */
    padding-left: 20px;
}

/* --- NEWSLETTER & JOIN SECTIONS --- */
#newsletter, #join {
    text-align: center;
    background-color: var(--primary-dark); /* UPDATED */
    color: white;
}
#newsletter h2, #join h2 {
    color: white;
}
#newsletter p, #join p {
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.footer-links a {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0 10px;
}
.footer-links a:hover {
    color: var(--accent-link); /* UPDATED */
    text-decoration: underline;
}
footer p {
    margin-bottom: 0.5rem;
    max-width: 100%;
    color: #777;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    section { padding: 60px 0; }
    #hero { padding: 60px 0; }

    #creator .creator-flex {
        flex-direction: column;
        text-align: center;
    }
    #creator .creator-text {
        margin-top: 20px;
    }

    .header-content .full-name { font-size: 1rem; }
}


/*
====================================
PRIVACY POLICY PAGE STYLES
====================================
*/
.privacy-policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 20px 60px 20px;
    background-color: white;
    border-radius: 8px;
}
.privacy-policy-container h1 { text-align: center; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; margin-bottom: 30px; }
.privacy-policy-container h2 { margin-top: 40px; }
.privacy-policy-container p, .privacy-policy-container li { max-width: 100%; }
.privacy-policy-container ul { padding-left: 20px; }

/*
====================================
KIT FORM STYLES - UPDATED COLORS
====================================
*/
.formkit-form {
    margin-top: 30px;
}
.formkit-fields {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.formkit-input {
    padding: 12px 20px !important;
    min-width: 300px;
    border-radius: 50px !important;
    border: 1px solid var(--border-light) !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}
.formkit-submit {
    display: inline-block !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    background-color: var(--accent-action) !important; /* UPDATED */
    color: white !important;
}
.formkit-submit:hover {
    background-color: var(--accent-action-dark) !important; /* UPDATED */
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .formkit-fields {
        flex-direction: column;
        align-items: center;
    }
    .formkit-input {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}

/* --- Styles for custom Kit success message - UPDATED COLORS --- */
.formkit-alert-success.custom-success-message {
    background-color: #fdf5f4 !important; /* Lighter version of soft peach */
    color: var(--primary-dark) !important; /* Deep Plum text */
    border: 2px solid var(--accent-action) !important; /* Warm Coral border */
    border-radius: 8px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    display: flex !important;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Style for the icon we're adding with CSS */
.custom-success-message::before {
    content: 'ⓘ';
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--accent-action); /* UPDATED */
    font-size: 2rem;
    line-height: 1;
}

/* Style the text inside the message for hierarchy */
.custom-success-message strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px;
}

/*
====================================
NEW: ACCESSIBILITY & USABILITY
====================================
*/
/* Custom, high-contrast focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.formkit-submit:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
    border-radius: 4px; /* Optional: adds a nice curve to the outline */
}