/* ==========================================================================
   Global Styles — Reset, Typography, Layout, Utilities
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--lh-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--lh-gray-dark);
    background-color: var(--lh-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--lh-primary);
    text-decoration: none;
    transition: color var(--lh-transition);
}

a:hover {
    color: var(--lh-primary-dark);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--lh-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lh-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--lh-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-content {
    min-height: 60vh;
}

/* Content area with sidebar */
.content-area {
    display: flex;
    gap: 40px;
}

.content-area .posts-content {
    flex: 1;
    min-width: 0;
}

.content-area .site-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.content-area:not(.has-sidebar) .site-sidebar {
    display: none;
}

/* Section Spacing */
.homepage-section {
    padding: var(--lh-section-padding-mobile) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--lh-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--lh-radius);
    font-family: var(--lh-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--lh-transition);
}

.btn-primary {
    background-color: var(--lh-primary);
    color: var(--lh-white);
    border-color: var(--lh-primary);
}

.btn-primary:hover {
    background-color: var(--lh-primary-dark);
    border-color: var(--lh-primary-dark);
    color: var(--lh-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--lh-primary);
    border-color: var(--lh-primary);
}

.btn-outline:hover {
    background-color: var(--lh-primary);
    color: var(--lh-white);
}

.btn-white {
    background-color: var(--lh-white);
    color: var(--lh-accent);
    border-color: var(--lh-white);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--lh-accent);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* Screen reader text (accessibility) */
.screen-reader-text,
.sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--lh-white);
    clip: auto !important;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    z-index: 999999;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--lh-gray);
    text-align: center;
    padding-top: 8px;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Page header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lh-gray-medium);
}

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

/* Pagination */
.navigation.pagination {
    margin-top: 48px;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lh-gray-dark);
    transition: all var(--lh-transition);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background-color: var(--lh-primary);
    border-color: var(--lh-primary);
    color: var(--lh-white);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.875rem;
    color: var(--lh-gray);
}

.breadcrumbs a {
    color: var(--lh-gray);
}

.breadcrumbs a:hover {
    color: var(--lh-primary);
}

.breadcrumbs .separator {
    margin: 0 8px;
}
