/*
Theme Name: Berdikari Post
Theme URI: https://berdikaripost.com
Author: BerdikariPost
Author URI: https://berdikaripost.com
Description: Magazine lifestyle dedié aux passionnés de sports équestres, de nature et de bien-être. Un regard authentique sur la vie en plein air.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berdikari-post
Tags: blog, lifestyle, nature, custom-logo, custom-menu, featured-images

Berdikari Post - L'art de vivre au rythme de la nature
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    /* Base Colors - Warm Light Theme */
    --bp-bg-base: #FDFCFA;
    --bp-bg-warm: #F8F6F3;
    --bp-bg-muted: #F0EDE8;
    --bp-bg-accent: #E8E4DD;
    
    /* Brand Colors - Nature Palette */
    --bp-forest: #2D5A3D;
    --bp-forest-light: #3D7A52;
    --bp-copper: #B8860B;
    --bp-copper-light: #D4A84B;
    --bp-earth: #8B7355;
    --bp-sage: #87A878;
    
    /* Text Colors */
    --bp-text-dark: #1F2937;
    --bp-text-body: #374151;
    --bp-text-muted: #6B7280;
    --bp-text-light: #9CA3AF;
    
    /* UI Colors */
    --bp-border: #E5E1DB;
    --bp-border-dark: #D1CBC2;
    --bp-shadow: rgba(31, 41, 55, 0.08);
    --bp-shadow-lg: rgba(31, 41, 55, 0.12);
    
    /* Typography */
    --bp-font-display: 'Cormorant Garamond', Georgia, serif;
    --bp-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --bp-space-xs: 4px;
    --bp-space-sm: 8px;
    --bp-space-md: 16px;
    --bp-space-lg: 24px;
    --bp-space-xl: 32px;
    --bp-space-2xl: 48px;
    --bp-space-3xl: 64px;
    --bp-space-4xl: 96px;
    
    /* Layout */
    --bp-container: 1180px;
    --bp-container-narrow: 720px;
    --bp-header-height: 80px;
    
    /* Radius */
    --bp-radius-sm: 4px;
    --bp-radius-md: 8px;
    --bp-radius-lg: 12px;
    --bp-radius-xl: 20px;
    
    /* Transitions */
    --bp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--bp-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--bp-text-body);
    background-color: var(--bp-bg-base);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bp-transition);
}

ul, ol {
    list-style: none;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bp-font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--bp-text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
}

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

.bp-text-display {
    font-family: var(--bp-font-display);
    font-weight: 500;
    font-style: italic;
}

.bp-text-accent {
    color: var(--bp-forest);
}

.bp-text-copper {
    color: var(--bp-copper);
}

/* ================================================================
   LAYOUT
   ================================================================ */
.bp-container {
    width: 100%;
    max-width: var(--bp-container);
    margin: 0 auto;
    padding: 0 var(--bp-space-lg);
}

.bp-container--narrow {
    max-width: var(--bp-container-narrow);
}

.bp-section {
    padding: var(--bp-space-4xl) 0;
}

.bp-section--muted {
    background-color: var(--bp-bg-warm);
}

.bp-section--accent {
    background-color: var(--bp-bg-muted);
}

/* ================================================================
   HEADER
   ================================================================ */
.bp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bp-border);
    transition: transform var(--bp-transition), box-shadow var(--bp-transition);
}

.bp-header--shadow {
    box-shadow: 0 4px 20px var(--bp-shadow);
}

.bp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--bp-header-height);
}

/* Logo */
.bp-logo {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-logo__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-forest);
    border-radius: var(--bp-radius-md);
    transition: background var(--bp-transition);
}

.bp-logo:hover .bp-logo__icon {
    background: var(--bp-forest-light);
}

.bp-logo__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.bp-logo__text {
    font-family: var(--bp-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bp-text-dark);
    letter-spacing: -0.02em;
}

/* Navigation */
.bp-nav {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xl);
}

.bp-nav__link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bp-text-muted);
    padding: var(--bp-space-sm) 0;
    transition: color var(--bp-transition);
}

.bp-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bp-forest);
    transition: width var(--bp-transition);
}

.bp-nav__link:hover,
.bp-nav__link--active {
    color: var(--bp-text-dark);
}

.bp-nav__link:hover::after,
.bp-nav__link--active::after {
    width: 100%;
}

/* Header CTA */
.bp-header__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--bp-forest);
    border-radius: var(--bp-radius-md);
    transition: background var(--bp-transition), transform var(--bp-transition);
}

.bp-header__cta:hover {
    background: var(--bp-forest-light);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.bp-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--bp-text-dark);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-sm);
    padding: 14px 28px;
    font-family: var(--bp-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    transition: all var(--bp-transition);
}

.bp-btn--primary {
    color: white;
    background: var(--bp-forest);
}

.bp-btn--primary:hover {
    background: var(--bp-forest-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.25);
}

.bp-btn--secondary {
    color: var(--bp-text-dark);
    background: transparent;
    border: 2px solid var(--bp-border-dark);
}

.bp-btn--secondary:hover {
    border-color: var(--bp-forest);
    color: var(--bp-forest);
}

.bp-btn--copper {
    color: white;
    background: var(--bp-copper);
}

.bp-btn--copper:hover {
    background: var(--bp-copper-light);
}

/* ================================================================
   CARDS
   ================================================================ */
.bp-card {
    background: white;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bp-border);
    transition: transform var(--bp-transition), box-shadow var(--bp-transition);
}

.bp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--bp-shadow-lg);
}

.bp-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bp-card:hover .bp-card__image img {
    transform: scale(1.05);
}

.bp-card__category {
    position: absolute;
    top: var(--bp-space-md);
    left: var(--bp-space-md);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-forest);
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--bp-radius-sm);
}

.bp-card__content {
    padding: var(--bp-space-lg);
}

.bp-card__title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: var(--bp-space-sm);
}

.bp-card__title a:hover {
    color: var(--bp-forest);
}

.bp-card__excerpt {
    font-size: 0.9375rem;
    color: var(--bp-text-muted);
    line-height: 1.6;
    margin-bottom: var(--bp-space-md);
}

.bp-card__meta {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    font-size: 0.8125rem;
    color: var(--bp-text-light);
}

.bp-card__meta span {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xs);
}

/* Featured Card */
.bp-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.bp-card--featured .bp-card__image {
    aspect-ratio: auto;
    min-height: 400px;
}

.bp-card--featured .bp-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--bp-space-2xl);
}

.bp-card--featured .bp-card__title {
    font-size: 1.75rem;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.bp-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--bp-header-height) + var(--bp-space-3xl));
    padding-bottom: var(--bp-space-3xl);
    overflow: hidden;
}

.bp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.bp-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(253, 252, 250, 0.97) 0%,
        rgba(253, 252, 250, 0.85) 50%,
        rgba(253, 252, 250, 0.7) 100%
    );
}

.bp-hero__content {
    position: relative;
    max-width: 640px;
}

.bp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp-forest);
    background: rgba(45, 90, 61, 0.1);
    border-radius: var(--bp-radius-sm);
    margin-bottom: var(--bp-space-lg);
}

.bp-hero__title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: var(--bp-space-lg);
}

.bp-hero__title em {
    font-style: italic;
    color: var(--bp-forest);
}

.bp-hero__description {
    font-size: 1.125rem;
    color: var(--bp-text-muted);
    line-height: 1.8;
    margin-bottom: var(--bp-space-xl);
    max-width: 540px;
}

.bp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bp-space-md);
}

/* ================================================================
   CATEGORY BLOCKS
   ================================================================ */
.bp-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bp-space-lg);
}

.bp-category-block {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
}

.bp-category-block__image {
    position: absolute;
    inset: 0;
}

.bp-category-block__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bp-category-block:hover .bp-category-block__image img {
    transform: scale(1.08);
}

.bp-category-block__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(31, 41, 55, 0.85) 100%
    );
    transition: background var(--bp-transition);
}

.bp-category-block:hover .bp-category-block__overlay {
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(45, 90, 61, 0.9) 100%
    );
}

.bp-category-block__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--bp-space-lg);
    color: white;
}

.bp-category-block__title {
    font-size: 1.375rem;
    font-weight: 500;
    color: white;
    margin-bottom: var(--bp-space-xs);
}

.bp-category-block__count {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ================================================================
   ARTICLES GRID
   ================================================================ */
.bp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bp-space-xl);
}

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

/* ================================================================
   NEWSLETTER
   ================================================================ */
.bp-newsletter {
    position: relative;
    padding: var(--bp-space-4xl);
    background: var(--bp-forest);
    border-radius: var(--bp-radius-xl);
    overflow: hidden;
    text-align: center;
}

.bp-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.bp-newsletter__title {
    font-size: 2.25rem;
    font-weight: 500;
    color: white;
    margin-bottom: var(--bp-space-md);
}

.bp-newsletter__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--bp-space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.bp-newsletter__form {
    display: flex;
    gap: var(--bp-space-md);
    max-width: 460px;
    margin: 0 auto var(--bp-space-lg);
}

.bp-newsletter__input {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--bp-font-body);
    font-size: 1rem;
    color: var(--bp-text-dark);
    background: white;
    border: none;
    border-radius: var(--bp-radius-md);
    outline: none;
}

.bp-newsletter__input::placeholder {
    color: var(--bp-text-light);
}

.bp-newsletter__btn {
    padding: 16px 28px;
    font-family: var(--bp-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bp-forest);
    background: var(--bp-copper-light);
    border: none;
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--bp-transition);
}

.bp-newsletter__btn:hover {
    background: var(--bp-copper);
    color: white;
}

.bp-newsletter__note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   FOOTER
   ================================================================ */
.bp-footer {
    background: var(--bp-bg-warm);
    border-top: 1px solid var(--bp-border);
}

.bp-footer__main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--bp-space-3xl);
    padding: var(--bp-space-3xl) 0;
}

.bp-footer__brand {
    max-width: 280px;
}

.bp-footer__tagline {
    font-size: 0.9375rem;
    color: var(--bp-text-muted);
    line-height: 1.7;
    margin-top: var(--bp-space-md);
}

.bp-footer__heading {
    font-family: var(--bp-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp-text-dark);
    margin-bottom: var(--bp-space-lg);
}

.bp-footer__links li {
    margin-bottom: var(--bp-space-sm);
}

.bp-footer__links a {
    font-size: 0.9375rem;
    color: var(--bp-text-muted);
    transition: color var(--bp-transition);
}

.bp-footer__links a:hover {
    color: var(--bp-forest);
}

.bp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--bp-space-lg) 0;
    border-top: 1px solid var(--bp-border);
    font-size: 0.875rem;
    color: var(--bp-text-muted);
}

.bp-footer__legal {
    display: flex;
    gap: var(--bp-space-lg);
}

.bp-footer__legal a:hover {
    color: var(--bp-forest);
}

/* ================================================================
   SINGLE ARTICLE
   ================================================================ */
.bp-article {
    padding-top: calc(var(--bp-header-height) + var(--bp-space-2xl));
}

.bp-article__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--bp-space-2xl);
}

.bp-article__category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-forest);
    background: rgba(45, 90, 61, 0.1);
    border-radius: var(--bp-radius-sm);
    margin-bottom: var(--bp-space-md);
}

.bp-article__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--bp-space-lg);
}

.bp-article__meta {
    display: flex;
    justify-content: center;
    gap: var(--bp-space-xl);
    font-size: 0.9375rem;
    color: var(--bp-text-muted);
}

.bp-article__featured-image {
    aspect-ratio: 21 / 9;
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    margin-bottom: var(--bp-space-2xl);
}

.bp-article__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-article__content {
    max-width: var(--bp-container-narrow);
    margin: 0 auto;
}

.bp-article__content p {
    font-size: 1.0625rem;
    margin-bottom: 1.75rem;
}

.bp-article__content h2 {
    margin-top: var(--bp-space-2xl);
    margin-bottom: var(--bp-space-md);
}

.bp-article__content h3 {
    margin-top: var(--bp-space-xl);
    margin-bottom: var(--bp-space-md);
}

.bp-article__content ul,
.bp-article__content ol {
    margin-bottom: 1.75rem;
    padding-left: var(--bp-space-lg);
}

.bp-article__content li {
    margin-bottom: var(--bp-space-sm);
    list-style: disc;
}

.bp-article__content blockquote {
    margin: var(--bp-space-xl) 0;
    padding: var(--bp-space-lg) var(--bp-space-xl);
    font-family: var(--bp-font-display);
    font-size: 1.375rem;
    font-style: italic;
    color: var(--bp-text-dark);
    border-left: 4px solid var(--bp-forest);
    background: var(--bp-bg-warm);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.bp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--bp-space-sm);
    margin-top: var(--bp-space-3xl);
}

.bp-pagination a,
.bp-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--bp-space-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bp-text-muted);
    background: white;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    transition: all var(--bp-transition);
}

.bp-pagination a:hover {
    color: var(--bp-forest);
    border-color: var(--bp-forest);
}

.bp-pagination .current {
    color: white;
    background: var(--bp-forest);
    border-color: var(--bp-forest);
}

/* ================================================================
   SEARCH
   ================================================================ */
.bp-search-form {
    display: flex;
    gap: var(--bp-space-sm);
}

.bp-search-form__input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--bp-font-body);
    font-size: 0.9375rem;
    color: var(--bp-text-dark);
    background: white;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    outline: none;
    transition: border-color var(--bp-transition);
}

.bp-search-form__input:focus {
    border-color: var(--bp-forest);
}

/* ================================================================
   404 PAGE
   ================================================================ */
.bp-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--bp-header-height);
}

.bp-404__code {
    font-family: var(--bp-font-display);
    font-size: 8rem;
    font-weight: 300;
    color: var(--bp-border-dark);
    line-height: 1;
    margin-bottom: var(--bp-space-md);
}

.bp-404__title {
    margin-bottom: var(--bp-space-md);
}

.bp-404__text {
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-xl);
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

/* Skip Link */
.bp-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--bp-forest);
    border-radius: var(--bp-radius-md);
    text-decoration: none;
    transition: top 0.3s ease;
}

.bp-skip-link:focus {
    top: var(--bp-space-md);
    outline: 3px solid var(--bp-copper);
    outline-offset: 2px;
}

/* Focus Styles - High Visibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--bp-forest);
    outline-offset: 2px;
}

/* Specific Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--bp-forest);
    outline-offset: 2px;
    border-radius: var(--bp-radius-sm);
}

.bp-btn:focus-visible {
    outline: 3px solid var(--bp-copper);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(184, 134, 11, 0.2);
}

.bp-nav__link:focus-visible {
    outline: 2px solid var(--bp-forest);
    outline-offset: 4px;
    border-radius: 2px;
}

.bp-card:focus-within {
    outline: 3px solid var(--bp-forest);
    outline-offset: 2px;
}

.bp-card__title a:focus-visible {
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Input Focus States */
input:focus-visible,
textarea:focus-visible {
    border-color: var(--bp-forest) !important;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bp-card:hover {
        transform: none;
    }
    
    .bp-card:hover .bp-card__image img {
        transform: none;
    }
    
    .bp-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --bp-text-muted: #4B5563;
        --bp-text-light: #6B7280;
        --bp-border: #9CA3AF;
    }
    
    .bp-card {
        border-width: 2px;
    }
    
    .bp-btn {
        border: 2px solid currentColor;
    }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.bp-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;
}

.bp-text-center { text-align: center; }
.bp-text-left { text-align: left; }
.bp-text-right { text-align: right; }

.bp-mt-0 { margin-top: 0; }
.bp-mb-0 { margin-bottom: 0; }
.bp-mb-lg { margin-bottom: var(--bp-space-lg); }
.bp-mb-xl { margin-bottom: var(--bp-space-xl); }
.bp-mb-2xl { margin-bottom: var(--bp-space-2xl); }

/* Section Headers */
.bp-section-header {
    text-align: center;
    margin-bottom: var(--bp-space-2xl);
}

.bp-section-header__subtitle {
    font-family: var(--bp-font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--bp-copper);
    margin-bottom: var(--bp-space-sm);
}

.bp-section-header__title {
    margin-bottom: var(--bp-space-sm);
}

.bp-section-header__divider {
    width: 60px;
    height: 3px;
    background: var(--bp-forest);
    margin: var(--bp-space-md) auto 0;
    border-radius: 2px;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 1024px) {
    .bp-hero {
        min-height: 80vh;
    }
    
    .bp-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bp-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bp-footer__main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bp-card--featured {
        grid-template-columns: 1fr;
    }
    
    .bp-card--featured .bp-card__image {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --bp-header-height: 70px;
    }
    
    .bp-nav {
        display: none;
    }
    
    .bp-menu-toggle {
        display: flex;
    }
    
    .bp-hero__title {
        font-size: 2.25rem;
    }
    
    .bp-hero__actions {
        flex-direction: column;
    }
    
    .bp-categories {
        grid-template-columns: 1fr;
    }
    
    .bp-category-block {
        aspect-ratio: 16 / 9;
    }
    
    .bp-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .bp-footer__main {
        grid-template-columns: 1fr;
        gap: var(--bp-space-xl);
    }
    
    .bp-footer__bottom {
        flex-direction: column;
        gap: var(--bp-space-md);
        text-align: center;
    }
    
    .bp-newsletter {
        padding: var(--bp-space-2xl);
    }
    
    .bp-newsletter__form {
        flex-direction: column;
    }
    
    .bp-section {
        padding: var(--bp-space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .bp-container {
        padding: 0 var(--bp-space-md);
    }
    
    .bp-hero__badge {
        font-size: 0.6875rem;
    }
    
    .bp-card__content {
        padding: var(--bp-space-md);
    }
}
