@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --primary: #0067a2;
    --primary-dark: #005a8d;
    --primary-deep: #004b74;
    --primary-soft: #eaf6fc;
    --surface: #ffffff;
    --surface-alt: #f7fbfe;
    --border: rgba(0, 103, 162, 0.14);
    --text-main: #24364a;
    --text-muted: #5b6b7d;
    --text-on-primary: #ffffff;
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.16);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
    --radius-lg: 1.25rem;
    --radius-md: 1rem;
    --radius-sm: 0.75rem;
    --content-width: 1040px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b74ad 0%, var(--primary) 55%, var(--primary-deep) 100%);
    color: var(--text-on-primary);
    line-height: 1.65;
}

a {
    color: inherit;
}

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

body.page-home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 4rem;
}

body.page-home .container {
    text-align: center;
    padding: 2.75rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 680px;
}

body.page-home h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.08;
}

body.page-home h1 span {
    display: block;
}

body.page-home .subheading {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

body.page-home .subheading span {
    display: block;
    margin-top: 0.45rem;
    font-weight: 600;
    color: #1e3a5f;
}

body.page-home p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

body.page-home .action-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.75rem 0;
}

.cta-button,
.practice-cta-link,
.method-actions a,
.workshop-registration a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 103, 162, 0.24);
    border: 2px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.cta-button:hover,
.practice-cta-link:hover,
.method-actions a:hover,
.workshop-registration a:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(0, 90, 141, 0.28);
}

body.page-home .quote,
.practice-quote,
.resource-quote {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary);
}

body.page-home .quote {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e9f4;
}

body.page-home .quote-author,
.practice-quote cite,
.resource-quote cite {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: normal;
    margin-top: 0.5rem;
    font-weight: 600;
}

body.page-home footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 75, 116, 0.96);
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

body.page-home footer a {
    color: #dbeefe;
    text-decoration: underline;
}

.page-wrapper {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

body.page-workshops .content-box,
body.page-team .content-box {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(2.3rem, 4vw, 3.25rem);
    color: #fff;
    margin-bottom: 0.65rem;
    line-height: 1.15;
}

.page-header p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin: 0 auto;
}

.content-box {
    width: 100%;
    background: var(--surface);
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}

.content-box p {
    margin-bottom: 1rem;
}

.content-box h2,
.contact-section h2,
.resource-text h2,
.resource-heading {
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--primary);
}

.content-box h2 {
    font-size: 1.7rem;
    margin: 2rem 0 0.75rem;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box ul {
    padding-left: 1.35rem;
    margin: 0.75rem 0 1rem;
}

.content-box li {
    margin-bottom: 0.75rem;
}

.content-box a,
.contact-section a,
.resource-text h2 a,
.resource-list a,
.workshop-registration a {
    color: var(--primary);
    text-decoration: underline;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    font-weight: 500;
    color: #fff;
}

.team-grid,
.workshop-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card,
.workshop-card {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.team-card figure {
    margin: -1.5rem -1.5rem 0;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    background: #dcecf6;
}

.team-card figure img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-card h2 {
    font-size: 1.35rem;
    color: #0c4a6e;
    font-weight: 600;
    margin-top: 0.5rem;
}

.team-card span {
    font-size: 0.96rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-section {
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-photo {
    width: 220px;
    height: 280px;
    flex: 0 0 220px;
    object-fit: cover;
    border-radius: 50% / 40%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.contact-details {
    flex: 1;
}

.contact-section h2 {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
    margin-top: 0;
}

.contact-section p {
    color: var(--text-muted);
}

.practice-cta-row,
.method-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.practice-quote,
.resource-quote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-image img {
    width: 96px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.resource-text h2,
.resource-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.45rem 0 0.25rem;
}

.method-figure {
    float: right;
    max-width: 220px;
    margin: 0 0 1rem 1.5rem;
}

.method-figure img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.method-actions a {
    min-width: 180px;
}

.workshop-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.workshop-card h2 {
    font-size: 1.45rem;
    color: #0c4a6e;
    font-weight: 600;
    margin: 0;
}

.workshop-card time {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.workshop-card p {
    color: var(--text-main);
    font-size: 0.98rem;
}

.session-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.session-time {
    font-size: 0.95rem;
    color: #0c4a6e;
    font-weight: 700;
}

.workshop-registration {
    color: #0c4a6e;
    font-weight: 700;
    margin-top: 0.75rem;
}

.workshop-registration a {
    margin-left: 0.4rem;
}

.registration-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.registration-panel h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.registration-intro {
    color: var(--text-muted);
}

.registration-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label {
    font-weight: 600;
    color: #0c4a6e;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(12, 74, 110, 0.16);
    border-radius: 0.8rem;
    background: #fff;
    color: var(--text-main);
    font: inherit;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid rgba(0, 103, 162, 0.2);
    outline-offset: 1px;
    border-color: rgba(0, 103, 162, 0.45);
}

.form-actions {
    margin-top: 0.25rem;
}

.form-message {
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    margin-top: 1rem;
    font-weight: 500;
}

.form-message-success {
    background: #e6f7ec;
    color: #17603a;
}

.form-message-error,
.field-error {
    color: #a12727;
}

.form-message-error {
    background: #fdecec;
}

.field-error {
    font-size: 0.92rem;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .page-wrapper {
        width: min(calc(100% - 1.25rem), var(--content-width));
        padding: 2rem 0 3rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .resource-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .method-figure {
        float: none;
        max-width: 260px;
        margin: 0 auto 1.25rem;
        display: block;
    }
}

@media (max-width: 760px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.page-home {
        display: block;
        padding: 1rem 1rem 4rem;
    }

    body.page-home .container {
        padding: 1.9rem 1.4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-photo {
        margin: 0 auto 1rem;
    }

    .contact-section {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .workshop-list {
        grid-template-columns: 1fr;
    }
}
