/*
    Enchanted Garden Shop
    shared.css -- site-wide design system
    Approved direction: Concept B2, Moss and Cream
    Every page loads this file first, then its own page-specific CSS file.
*/

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Quicksand:wght@400;500;600&display=swap');

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

:root {
    /* Core palette, do not introduce new colors outside this list */
    --moss: #7c9169;
    --moss-deep: #5c7350;
    --cream: #fbf7ec;
    --panel: #ffffff;
    --forest-deep: #35472c;
    --ink: #33301f;
    --gold: #c99a3f;
    --ruby: #ad4f52;
    --gold-light: #f6e3ab;

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-label: 'Marcellus', serif;
    --font-body: 'Quicksand', sans-serif;

    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 44px;
    --space-xl: 64px;

    /* Radius scale */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-pill: 999px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--moss);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Accessibility: skip link and focus states
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--forest-deep);
    color: var(--cream);
    padding: 14px 22px;
    font-family: var(--font-label);
    font-size: 14px;
    z-index: 200;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ruby);
    outline-offset: 2px;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--forest-deep);
}

.eyebrow {
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ruby);
    margin-bottom: 10px;
    display: block;
}

.eyebrow.on-dark {
    color: var(--gold-light);
}

/* ==========================================================================
   Crisis resources banner
   Every page that discusses trauma, abuse, or counseling includes this.
   ========================================================================== */

.crisis-banner {
    background: var(--cream);
    border: 1px solid var(--moss-deep);
    border-left: 5px solid var(--ruby);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: var(--space-md) auto;
    max-width: 720px;
    font-size: 15px;
    color: var(--ink);
}

.crisis-banner strong {
    color: var(--forest-deep);
}

.crisis-banner a {
    color: var(--ruby);
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

header.site-header {
    padding: 20px 24px;
    background: var(--moss);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.site-crest {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid var(--cream);
    padding: 8px;
    background: var(--cream);
    box-shadow: 0 6px 18px rgba(53, 71, 44, 0.25);
}

.site-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-crest.crest-mobile-only {
    display: none;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.site-name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 34px;
    color: var(--cream);
    text-shadow: 0 2px 10px rgba(53, 71, 44, 0.3);
}

.site-tagline {
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.header-donate {
    flex-shrink: 0;
    padding: 12px 24px;
}

/* ==========================================================================
   Navigation, with dropdown support and mobile hamburger
   ========================================================================== */

nav.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    padding: 16px 16px;
    background: var(--cream);
    border-top: 3px solid var(--forest-deep);
    border-bottom: 3px solid var(--forest-deep);
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--forest-deep);
    color: var(--forest-deep);
    font-family: var(--font-label);
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 8px auto;
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--forest-deep);
    position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--forest-deep);
}

.nav-toggle .bar::before {
    top: -6px;
}

.nav-toggle .bar::after {
    top: 6px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
}

nav.site-nav > .nav-links > a,
nav.site-nav .nav-item > a {
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--forest-deep);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
}

nav.site-nav > .nav-links > a[aria-current="page"],
nav.site-nav .nav-item > a[aria-current="page"] {
    background: var(--forest-deep);
    color: var(--cream);
}

nav.site-nav > .nav-links > a:hover,
nav.site-nav .nav-item:hover > a,
nav.site-nav .nav-item > a:focus {
    background: var(--forest-deep);
    color: var(--cream);
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel);
    border: 1px solid var(--moss-deep);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 28px rgba(53, 71, 44, 0.2);
    padding: 8px;
    min-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--forest-deep);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: left;
}

.nav-dropdown a:hover {
    background: var(--cream);
    color: var(--ruby);
}

@media (max-width: 780px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }

    .site-brand {
        flex-direction: column;
        text-align: center;
    }

    .site-brand-text {
        align-items: center;
    }

    .site-crest.crest-desktop-only {
        display: none;
    }

    .site-crest.crest-mobile-only {
        display: block;
        width: 56px;
        height: 56px;
    }

    .header-donate {
        order: 2;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        transition: max-height 0.25s ease;
    }

    .nav-item.open .nav-dropdown {
        max-height: 400px;
        padding: 8px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
}

.btn:hover {
    background: #ffffff;
    color: var(--forest-deep);
}

.btn.solid {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest-deep);
}

.btn.solid:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    color: var(--cream);
}

.btn.on-light {
    border-color: var(--forest-deep);
    color: var(--forest-deep);
    background: transparent;
}

.btn.on-light:hover {
    background: var(--forest-deep);
    color: var(--cream);
}

.btn.donate {
    background: var(--ruby);
    border-color: var(--ruby);
    color: #ffffff;
}

.btn.donate:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest-deep);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 28px 24px 0;
    border-radius: var(--radius-lg);
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(1.05);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: var(--space-md);
}

.hero-overlay h1 {
    font-weight: 600;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-overlay p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Page header variant, for interior pages without a full photo hero */
.page-header {
    padding: 56px 24px 44px;
    text-align: center;
    background: var(--forest-deep);
    color: var(--cream);
}

.page-header h1 {
    color: var(--cream);
    font-size: 34px;
    margin-bottom: 14px;
}

.page-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 17px;
    opacity: 0.92;
}

/* ==========================================================================
   Section wrappers
   ========================================================================== */

.section {
    padding: var(--space-xl) var(--space-md);
}

.section.on-moss {
    background: var(--moss);
    text-align: center;
}

.section.on-cream {
    background: var(--cream);
}

.section.on-panel {
    background: var(--panel);
}

.section h2 {
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: var(--space-lg);
}

.section.on-moss h2 {
    color: var(--cream);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: 720px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1020px;
    margin: 0 auto;
}

.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 34px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-bottom: 4px solid var(--gold);
    text-align: left;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(53, 71, 44, 0.28);
}

.card-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--moss);
    color: var(--cream);
}

.card h3 {
    font-family: var(--font-label);
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--forest-deep);
}

.card p {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 18px;
}

.card .link {
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ruby);
}

/* Class / event card variant, with a date tag and price */

.card.class-card {
    padding: 0;
    overflow: hidden;
}

.class-card .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 18px 0;
}

.class-card .tag {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--forest-deep);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.class-card .price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--ruby);
}

.class-card h3 {
    padding: 14px 18px 4px;
}

.class-card p {
    padding: 0 18px 20px;
    opacity: 0.75;
    margin-bottom: 0;
}

/* ==========================================================================
   Pill tags
   ========================================================================== */

.pill-list {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pill {
    font-size: 12px;
    font-family: var(--font-label);
    letter-spacing: 0.04em;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    display: inline-block;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-shell {
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: left;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--forest-deep);
    margin-bottom: 6px;
}

.form-field .hint {
    font-size: 12px;
    color: var(--ink);
    opacity: 0.6;
    margin-top: 4px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid var(--moss-deep);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--ink);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: var(--ruby);
}

.form-error-text {
    display: none;
    font-size: 13px;
    color: var(--ruby);
    margin-top: 6px;
}

.form-field.has-error .form-error-text {
    display: block;
}

/* Honeypot field, hidden from sighted users and keyboard tab order, but
   left in the DOM for bots that fill in every field indiscriminately. */
.form-field.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-status.success {
    display: block;
    background: #e8f0e2;
    color: var(--forest-deep);
    border: 1px solid var(--moss);
}

.form-status.error {
    display: block;
    background: #f7e8e9;
    color: var(--ruby);
    border: 1px solid var(--ruby);
}

.form-submit {
    width: 100%;
    text-align: center;
    border: none;
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    background: var(--forest-deep);
    color: var(--cream);
    cursor: pointer;
    transition: background 0.25s ease;
}

.form-submit:hover {
    background: var(--gold);
    color: var(--forest-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
    background: var(--forest-deep);
    color: var(--cream);
    text-align: center;
    padding: 40px 24px 28px;
    font-family: var(--font-label);
    font-size: 12px;
}

.footer-donate {
    margin-bottom: 24px;
}

.foot-nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.foot-nav a:hover {
    color: var(--gold-light);
}

.foot-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 12px;
    opacity: 0.85;
}

.foot-links a:hover {
    color: var(--gold-light);
}

.foot-address {
    margin-bottom: 6px;
    opacity: 0.9;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.foot-fein {
    opacity: 0.65;
    font-size: 11px;
    margin-bottom: 14px;
}

.fine {
    opacity: 0.6;
    font-size: 11px;
}

/* ==========================================================================
   Utility
   ========================================================================== */

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

.mt-md {
    margin-top: var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Placeholder image blocks, used where a real client photo is still needed */
.photo-placeholder {
    background: repeating-linear-gradient(135deg, var(--moss-deep), var(--moss-deep) 12px, var(--moss) 12px, var(--moss) 24px);
    border: 2px dashed var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cream);
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: var(--space-md);
    min-height: 220px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 780px) {
    .card-grid,
    .card-grid.two-col {
        grid-template-columns: 1fr;
    }

    .site-name {
        font-size: 26px;
    }

    .hero-overlay h1 {
        font-size: 26px;
    }

    .hero {
        margin: 20px 12px 0;
        min-height: 360px;
    }

    .form-shell {
        padding: 26px 20px;
    }
}
