/* --- Base Variables & Reset --- */
:root {
    --primary: #4a6b5d;       /* Warm Sage/Olive - representing growth and peace */
    --primary-dark: #375246;
    --secondary: #eaddca;     /* Soft Warm Cream */
    --text-main: #2b3a42;     /* Deep Slate instead of harsh black */
    --text-muted: #5a6e79;
    --bg-light: #fbfaf8;      /* Warm off-white background */
    --bg-white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 0;
}

.container-narrow {
    width: 90%;
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; color: var(--primary-dark); }

p { margin-bottom: 1.5rem; }
.lead { font-size: 1.3rem; color: var(--text-muted); font-style: italic; }

/* --- Navigation --- */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid #eae7e2;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-left: 4px;
    vertical-align: super;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-white, .btn-submit, .btn-nav {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary, .btn-submit {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover, .btn-submit:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(43, 58, 66, 0.05);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

.btn-white:hover {
    background-color: var(--secondary);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    padding: 0.5rem 1.2rem;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(243, 241, 237, 0.88), rgba(243, 241, 237, 0.88)), url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?q=80&w=1920') no-repeat center center/cover;
    padding: 8rem 0;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Core Values Section --- */
.about-section {
    background-color: var(--bg-white);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.pillar-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
}

/* --- Challenges Section --- */
.challenges-section h2 {
    text-align: center;
}

.challenges-section > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.callout-box {
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* --- Statistics Callout Styling --- */
.stat-box {
    border-left-color: var(--primary-dark);
    margin-bottom: 3rem;
}

.stat-box strong {
    color: var(--primary-dark);
    font-size: 1.15rem;
}

.stat-em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary);
    color: var(--bg-white);
}

.cta-section h2 {
    color: var(--bg-white);
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* --- Contact Form --- */
.contact-section {
    background-color: var(--bg-white);
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dcd8d2;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: var(--bg-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-main);
    color: #a4b3bc;
    font-size: 0.9rem;
    padding: 2rem 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .btn-secondary { margin-left: 0; margin-top: 1rem; display: block; }
}
/* Shared story invitation and accessible navigation */
html { scroll-behavior: smooth; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--primary); outline-offset: 3px;
}
.nav-links { gap: 1.15rem; flex-wrap: wrap; }
.nav-links a[aria-current="page"] { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { color: var(--primary-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.stories-invitation { background: var(--secondary); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 200; background: white; padding: .8rem; }
.story-page .story-hero { background: linear-gradient(135deg, #e6ede7, var(--secondary)); padding: 4rem 0; }
.story-page .story-hero .container-narrow { padding: 0; }
.story-page .story-hero h1 { font-size: 3.2rem; margin-bottom: 1.5rem; }
.story-page .story-hero .lead { font-style: normal; margin-bottom: 2rem; }
.story-page .promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.story-page .promise div { background: rgba(255,255,255,.7); border-radius: 12px; padding: 1.1rem; font-size: .9rem; }
.story-page .promise strong { display: block; color: var(--primary-dark); margin-bottom: .4rem; }
.story-page main > .container-narrow { max-width: 850px; padding: 3rem 0 4rem; }
.story-page .intro-card, .story-page .form-section { background: white; border: 1px solid #eae7e2; border-radius: 12px; padding: 2rem; }
.story-page .intro-card { margin-bottom: 1.5rem; }
.story-page .intro-card h2, .story-page .form-section h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.story-page .intro-card p { margin-bottom: 1rem; }
.story-page .privacy-note, .story-page .crisis { padding: 1.2rem; background: #edf2ee; border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; font-size: .95rem; }
.story-page form { display: grid; gap: 1.5rem; }
.story-page .section-number { display: inline-grid; place-items: center; background: #edf2ee; color: var(--primary-dark); width: 36px; height: 36px; border-radius: 50%; margin-bottom: 1rem; font-weight: 600; }
.story-page .section-help, .story-page .hint, .story-page .optional, .story-page .required-note { color: var(--text-muted); }
.story-page .field, .story-page fieldset { margin-top: 1.5rem; }
.story-page fieldset { border: 0; min-width: 0; padding: 0; }
.story-page label, .story-page legend { font-size: .95rem; font-weight: 500; margin-bottom: .5rem; }
.story-page .field > label, .story-page .hint { display: block; }
.story-page .optional, .story-page .hint, .story-page .required-note { font-size: .85rem; font-weight: 400; }
.story-page .hint { margin-bottom: .6rem; }
.story-page input[type="text"], .story-page input[type="email"], .story-page textarea, .story-page select {
    width: 100%; min-width: 0; padding: .8rem 1rem; border: 1px solid #dcd8d2; border-radius: 6px;
    font-family: var(--font-sans); font-size: 1rem; color: var(--text-main); background: var(--bg-light);
}
.story-page textarea { min-height: 135px; resize: vertical; }
.story-page textarea.story { min-height: 260px; }
.story-page .choices { display: grid; gap: .6rem; }
.story-page .choices.two-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
.story-page .choice { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem; border: 1px solid #eae7e2; border-radius: 6px; background: var(--bg-light); margin: 0; cursor: pointer; }
.story-page .choice input { flex: 0 0 auto; margin-top: .4rem; accent-color: var(--primary); }
.story-page .sensitive { background: #f9f0eb; padding: 1.2rem; border-radius: 8px; font-size: .95rem; }
.story-page .crisis { margin-top: 1.5rem; }
.story-page .consent { border-top: 4px solid var(--primary); }
.story-page .required-note { margin: 1rem 0 0; }
.story-page .submit-wrap { text-align: center; }
.story-page .submit-button { padding: 1rem 2rem; border-radius: 30px; border: 0; font: inherit; background: var(--primary); color: white; cursor: pointer; }
.story-page .submit-button:hover { background: var(--primary-dark); }
.story-page .submit-wrap p { font-size: .9rem; color: var(--text-muted); margin: 1rem 0; }
.story-page .hidden { display: none; }
.footer a { color: #d9e3dc; }
@media (max-width: 1000px) {
    .nav-container { flex-direction: column; gap: .8rem; }
    .nav-links { justify-content: center; }
}
@media (max-width: 768px) {
    .navbar { position: static; }
    .nav-links { display: flex; gap: .65rem 1rem; justify-content: center; }
    .nav-links a { font-size: .85rem; }
    .story-page .story-hero h1 { font-size: 2.2rem; }
    .story-page .promise, .story-page .choices.two-col { grid-template-columns: 1fr; }
    .story-page .form-section, .story-page .intro-card { padding: 1.25rem; }
    .story-page .story-hero { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Public story collection */
.stories-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stories-actions .btn-secondary { margin: 0; }
.stories-hero { background: linear-gradient(135deg, #e6ede7, var(--secondary)); }
.stories-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.stories-hero .lead { font-style: normal; }
.stories-purpose, .stories-collection { background: var(--bg-white); }
.stories-themes .section-intro { margin-bottom: 2rem; }
.stories-reading-note { padding: 1rem 1.25rem; background: var(--bg-light); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; font-size: .95rem; }
.stories-empty { margin-top: 2rem; padding: 2.5rem 2rem; background: var(--bg-light); border: 1px solid #eae7e2; border-radius: 12px; text-align: center; }
.empty-decoration { display: block; width: 3rem; height: 4px; border-radius: 4px; background: var(--primary); margin: 0 auto 1.5rem; }
.stories-publication { margin-top: 2.5rem; border-top: 1px solid #eae7e2; padding-top: 2rem; font-size: .95rem; color: var(--text-muted); }
.stories-publication p:last-child, .story-article p:last-child { margin-bottom: 0; }
.story-article { margin-top: 2rem; padding: 2rem; background: var(--bg-light); border-radius: 12px; border-top: 4px solid var(--primary); overflow-wrap: anywhere; }
.story-meta { font-size: .85rem; color: var(--text-muted); }
.story-article blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--primary); font-family: var(--font-serif); font-size: 1.3rem; }
.story-article details { border-top: 1px solid #dcd8d2; padding-top: 1rem; }
.story-article summary { cursor: pointer; color: var(--primary-dark); font-weight: 500; }
.story-body { padding-top: 1.5rem; }
@media (max-width: 768px) {
 .stories-empty, .story-article { padding: 1.5rem; }
 .stories-themes .pillars-grid { grid-template-columns: 1fr; }
}

.source-note { font-size: .85rem; color: var(--text-muted); }
.source-note a { color: var(--primary-dark); text-underline-offset: 3px; }
.crisis-support {
    background: #f6ebe7;
    padding: 2.5rem 0;
}
.crisis-support-card {
    background: var(--bg-white);
    border: 1px solid #e8d0c8;
    border-left: 6px solid #a64b3c;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(43, 58, 66, .07);
}
.crisis-support-card h2 {
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    margin-bottom: 1rem;
}
.crisis-support-card p { margin-bottom: .85rem; }
.crisis-support-card a { color: var(--primary-dark); font-weight: 600; }
.crisis-support-card .crisis-disclaimer {
    margin: 1.1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #eadbd5;
    color: var(--text-muted);
    font-size: .9rem;
}

.jotform-panel {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid #eae7e2;
    border-radius: 12px;
}
.jotform-panel h2, .jotform-panel h3 { margin-bottom: .75rem; }
.form-service-note { color: var(--text-muted); font-size: .9rem; }
.jotform-panel iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    margin-top: 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--bg-light);
}
.contact-jotform { margin-top: 2rem; }
.contact-jotform iframe { min-height: 720px; }

@media (max-width: 768px) {
    .crisis-support-card, .jotform-panel { padding: 1.25rem; }
    .jotform-panel iframe { min-height: 900px; }
    .contact-jotform iframe { min-height: 760px; }
}
