/* Shepherd Health Journal - Site Styles
*/

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --shj-color-primary: #2c5530;
    --shj-color-secondary: #4a7856;
    --shj-color-accent: #8cb369;
    --shj-color-text: #2d3436;
    --shj-color-text-light: #636e72;
    --shj-color-bg: #fefefe;
    --shj-color-bg-alt: #f8f9fa;
    --shj-color-border: #dfe6e9;
    --shj-font-primary: 'Merriweather', Georgia, 'Times New Roman', serif;
    --shj-font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shj-max-width: 1180px;
    --shj-content-width: 780px;
}

.shj-body {
    font-family: var(--shj-font-primary);
    font-size: 17px;
    line-height: 1.75;
    color: var(--shj-color-text);
    background-color: var(--shj-color-bg);
}

/* Skip Link for Accessibility */
.shj-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--shj-color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    text-decoration: none;
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

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

/* Header */
.shj-header {
    background-color: var(--shj-color-primary);
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.shj-header-container {
    max-width: var(--shj-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shj-logo {
    text-decoration: none;
}

.shj-logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.01em;
}

.shj-nav-list {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.shj-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: var(--shj-font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.shj-nav-link:hover,
.shj-nav-link:focus,
.shj-nav-active {
    color: var(--shj-color-accent);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--shj-color-accent);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--shj-color-accent);
    outline-offset: 2px;
}

.shj-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.shj-mobile-bar {
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Main Content */
.shj-main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.shj-hero {
    background: linear-gradient(140deg, var(--shj-color-primary) 0%, var(--shj-color-secondary) 100%);
    padding: 4.5rem 2rem;
    text-align: center;
    color: #fff;
}

.shj-hero-title {
    font-size: 2.4rem;
    margin-bottom: 1.1rem;
    font-weight: normal;
}

.shj-hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto;
}

/* Content Sections */
.shj-content-section {
    max-width: var(--shj-content-width);
    margin: 0 auto;
    padding: 3.2rem 2rem;
}

.shj-content-section h2 {
    font-size: 1.75rem;
    color: var(--shj-color-primary);
    margin: 2.2rem 0 1rem;
}

.shj-content-section h3 {
    font-size: 1.35rem;
    color: var(--shj-color-secondary);
    margin: 1.6rem 0 0.8rem;
}

.shj-content-section p {
    margin-bottom: 1.3rem;
}

.shj-content-section ul,
.shj-content-section ol {
    margin: 1rem 0 1.6rem 2rem;
}

.shj-content-section li {
    margin-bottom: 0.55rem;
}

/* Featured Section */
.shj-featured-section {
    background-color: var(--shj-color-bg-alt);
    padding: 3.2rem 2rem;
}

.shj-section-title {
    font-size: 1.75rem;
    text-align: center;
    color: var(--shj-color-primary);
    margin-bottom: 2.2rem;
}

.shj-featured-grid {
    max-width: var(--shj-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.8rem;
}

.shj-featured-item {
    background: #fff;
    padding: 1.6rem;
    border-radius: 6px;
    border: 1px solid var(--shj-color-border);
}

.shj-featured-title {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.shj-featured-link {
    color: var(--shj-color-primary);
    text-decoration: none;
}

.shj-featured-link:hover {
    color: var(--shj-color-secondary);
}

.shj-featured-date {
    font-family: var(--shj-font-secondary);
    font-size: 0.85rem;
    color: var(--shj-color-text-light);
}

.shj-featured-excerpt {
    margin-top: 0.8rem;
    font-size: 0.94rem;
    color: var(--shj-color-text-light);
}

.shj-section-cta {
    text-align: center;
    margin-top: 2.2rem;
}

/* Buttons */
.shj-btn {
    display: inline-block;
    background-color: var(--shj-color-primary);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--shj-font-secondary);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

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

.shj-btn-secondary {
    display: inline-block;
    border: 2px solid var(--shj-color-primary);
    color: var(--shj-color-primary);
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--shj-font-secondary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.shj-btn-secondary:hover {
    background-color: var(--shj-color-primary);
    color: #fff;
}

/* About Preview */
.shj-about-preview {
    max-width: var(--shj-content-width);
    margin: 0 auto;
    padding: 3.2rem 2rem;
    text-align: center;
}

.shj-about-content {
    margin-top: 1.6rem;
}

.shj-about-content p {
    margin-bottom: 1.6rem;
}

/* Article Styles */
.shj-article {
    max-width: var(--shj-content-width);
    margin: 0 auto;
    padding: 3.2rem 2rem;
}

.shj-article-header {
    margin-bottom: 2.2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--shj-color-border);
}

.shj-article-title {
    font-size: 2.1rem;
    color: var(--shj-color-primary);
    margin-bottom: 0.8rem;
    line-height: 1.35;
}

.shj-article-date {
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    color: var(--shj-color-text-light);
}

.shj-article-author {
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    color: var(--shj-color-text-light);
    margin-left: 1rem;
}

.shj-article-content h2 {
    font-size: 1.55rem;
    color: var(--shj-color-primary);
    margin: 2.6rem 0 1.1rem;
}

.shj-article-content h3 {
    font-size: 1.25rem;
    color: var(--shj-color-secondary);
    margin: 2.1rem 0 0.8rem;
}

.shj-article-content p {
    margin-bottom: 1.3rem;
}

.shj-article-content ul,
.shj-article-content ol {
    margin: 1rem 0 1.6rem 2rem;
}

.shj-article-content li {
    margin-bottom: 0.55rem;
}

.shj-article-content strong {
    color: var(--shj-color-primary);
}

.shj-article-content a {
    color: var(--shj-color-secondary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.shj-article-content a:hover {
    color: var(--shj-color-primary);
}

.shj-article-footer {
    margin-top: 3.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--shj-color-border);
}

.shj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.shj-tags-label {
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    color: var(--shj-color-text-light);
    margin-right: 0.55rem;
}

.shj-tag {
    background-color: var(--shj-color-bg-alt);
    padding: 0.28rem 0.8rem;
    border-radius: 14px;
    font-family: var(--shj-font-secondary);
    font-size: 0.85rem;
    color: var(--shj-color-text-light);
}

/* Breadcrumb */
.shj-breadcrumb {
    max-width: var(--shj-content-width);
    margin: 0 auto;
    padding: 1.2rem 2rem 0;
}

.shj-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-family: var(--shj-font-secondary);
    font-size: 0.85rem;
}

.shj-breadcrumb li {
    display: flex;
    align-items: center;
}

.shj-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.6rem;
    color: var(--shj-color-text-light);
}

.shj-breadcrumb a {
    color: var(--shj-color-secondary);
    text-decoration: none;
}

.shj-breadcrumb a:hover {
    color: var(--shj-color-primary);
}

.shj-breadcrumb [aria-current="page"] {
    color: var(--shj-color-text-light);
}

/* List Styles */
.shj-list-section {
    max-width: var(--shj-content-width);
    margin: 0 auto;
    padding: 3.2rem 2rem;
}

.shj-list-header {
    margin-bottom: 2.2rem;
}

.shj-list-title {
    font-size: 2.1rem;
    color: var(--shj-color-primary);
    margin-bottom: 0.8rem;
}

.shj-list-description {
    color: var(--shj-color-text-light);
}

.shj-list-items {
    margin-top: 2.2rem;
}

.shj-list-item {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--shj-color-border);
}

.shj-list-item:first-child {
    border-top: 1px solid var(--shj-color-border);
}

.shj-list-item-title {
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
}

.shj-list-item-link {
    color: var(--shj-color-primary);
    text-decoration: none;
}

.shj-list-item-link:hover {
    color: var(--shj-color-secondary);
}

.shj-list-item-date {
    font-family: var(--shj-font-secondary);
    font-size: 0.85rem;
    color: var(--shj-color-text-light);
}

.shj-list-item-excerpt {
    margin-top: 0.8rem;
    color: var(--shj-color-text-light);
}

.shj-read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--shj-color-secondary);
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.shj-read-more:hover {
    color: var(--shj-color-primary);
}

/* Footer */
.shj-footer {
    background-color: var(--shj-color-primary);
    color: rgba(255, 255, 255, 0.92);
    padding: 3.2rem 0 1.6rem;
}

.shj-footer-container {
    max-width: var(--shj-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.shj-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.shj-footer-logo {
    font-size: 1.25rem;
    font-weight: bold;
}

.shj-footer-tagline {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.shj-footer-heading {
    font-family: var(--shj-font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.1rem;
}

.shj-footer-links {
    list-style: none;
}

.shj-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
}

.shj-footer-link:hover {
    color: var(--shj-color-accent);
}

.shj-footer-author-name {
    font-size: 0.95rem;
    margin-bottom: 0.28rem;
}

.shj-footer-author-credentials {
    font-size: 0.85rem;
    opacity: 0.8;
}

.shj-footer-bottom {
    padding-top: 1.6rem;
    text-align: center;
}

.shj-copyright {
    font-family: var(--shj-font-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .shj-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--shj-color-primary);
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .shj-nav.shj-nav-open {
        display: block;
    }

    .shj-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .shj-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .shj-nav-link {
        display: block;
        padding: 0.75rem 2rem;
    }

    .shj-mobile-toggle {
        display: flex;
    }

    .shj-hero-title {
        font-size: 1.75rem;
    }

    .shj-hero-subtitle {
        font-size: 1rem;
    }

    .shj-footer-main {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .shj-article-title,
    .shj-list-title {
        font-size: 1.75rem;
    }

    .shj-content-section,
    .shj-article,
    .shj-list-section {
        padding: 2.2rem 1.6rem;
    }
}
