/*
Theme Name: Éveil d'Intérieur
Theme URI: https://eveildinterieur.fr
Author: Éveil d'Intérieur
Author URI: https://eveildinterieur.fr
Description: Magazine francophone dédié au développement personnel, à la méditation et à l'art de vivre conscient. Ressources, formations et retraites pour cultiver l'équilibre intérieur.
Version: 1.0.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: eveildinterieur
Tags: blog, education, wellness, custom-logo, custom-menu, featured-images, theme-options

Éveil d'Intérieur - Cultivez votre équilibre, réveillez votre potentiel.
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Backgrounds - Warm neutrals */
    --ev-bg-primary: #fdfcfa;
    --ev-bg-secondary: #f7f5f2;
    --ev-bg-tertiary: #efecea;
    --ev-bg-card: #ffffff;
    
    /* Accent Colors - Sage & Earth tones */
    --ev-accent-primary: #6b7c6e;
    --ev-accent-secondary: #8b7355;
    --ev-accent-tertiary: #9a8478;
    --ev-accent-highlight: #c4a77d;
    
    /* Text Colors */
    --ev-text-primary: #2d2d2d;
    --ev-text-secondary: #5a5a5a;
    --ev-text-muted: #8a8a8a;
    --ev-text-light: #a8a8a8;
    
    /* Semantic Colors */
    --ev-success: #059669;
    --ev-error: #dc2626;
    --ev-warning: #d97706;
    
    /* Borders & Shadows */
    --ev-border: rgba(0, 0, 0, 0.06);
    --ev-border-medium: rgba(0, 0, 0, 0.1);
    --ev-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ev-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.06);
    --ev-shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --ev-font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --ev-font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing & Layout */
    --ev-container: 1180px;
    --ev-container-narrow: 720px;
    --ev-radius-sm: 4px;
    --ev-radius-md: 8px;
    --ev-radius-lg: 12px;
    --ev-radius-xl: 20px;
    
    /* Transitions */
    --ev-transition-fast: 0.15s ease;
    --ev-transition-base: 0.25s ease;
    --ev-transition-slow: 0.4s ease;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--ev-font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ev-text-primary);
    background: var(--ev-bg-primary);
}

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

a {
    color: var(--ev-accent-primary);
    text-decoration: none;
    transition: color var(--ev-transition-fast);
}

a:hover {
    color: var(--ev-accent-secondary);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--ev-font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ev-text-primary);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1.5rem 0;
}

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

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--ev-accent-highlight);
    background: var(--ev-bg-secondary);
    font-family: var(--ev-font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ev-text-secondary);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ev-container {
    width: 100%;
    max-width: var(--ev-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.ev-section {
    padding: 5rem 0;
}

.ev-section--alt {
    background: var(--ev-bg-secondary);
}

/* ============================================================
   SKIP LINKS (Accessibilité WCAG 2.1)
   ============================================================ */
.ev-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 1rem 2rem;
    background: var(--ev-accent-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ev-radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: top 0.2s ease;
}

.ev-skip-link:focus {
    top: 1rem;
    color: #fff;
    outline: 3px solid var(--ev-accent-highlight);
    outline-offset: 2px;
}

/* Screen Reader Only */
.screen-reader-text,
.ev-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

.ev-header--scrolled {
    box-shadow: var(--ev-shadow-soft);
}

.ev-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

/* Logo */
.ev-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--ev-text-primary);
}

.ev-logo:hover {
    color: var(--ev-accent-primary);
}

.ev-logo__mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ev-accent-primary);
}

.ev-logo__mark svg {
    width: 100%;
    height: 100%;
}

.ev-logo__text {
    font-family: var(--ev-font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Navigation */
.ev-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.ev-nav__link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ev-text-secondary);
    transition: color var(--ev-transition-fast);
    padding: 0.5rem 0;
}

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

.ev-nav__link:hover {
    color: var(--ev-text-primary);
}

.ev-nav__link:hover::after {
    width: 100%;
}

.ev-nav__link--active {
    color: var(--ev-text-primary);
}

.ev-nav__link--active::after {
    width: 100%;
}

.ev-nav__link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   MOBILE MENU TOGGLE (Hamburger)
   ============================================================ */
.ev-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.ev-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ev-text-primary);
    transition: all var(--ev-transition-fast);
    position: absolute;
}

.ev-menu-toggle span:nth-child(1) {
    top: 14px;
}

.ev-menu-toggle span:nth-child(2) {
    top: 21px;
}

.ev-menu-toggle span:nth-child(3) {
    top: 28px;
}

/* Hamburger to X animation */
.ev-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.ev-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.ev-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.ev-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--ev-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ev-transition-base);
}

.ev-mobile-menu--open {
    opacity: 1;
    visibility: visible;
}

.ev-mobile-menu__inner {
    text-align: center;
    padding: 2rem;
}

.ev-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ev-mobile-menu__link {
    font-family: var(--ev-font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ev-text-primary);
    transition: color var(--ev-transition-fast);
}

.ev-mobile-menu__link:hover {
    color: var(--ev-accent-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--ev-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--ev-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--ev-transition-base);
    text-decoration: none;
}

.ev-btn--primary {
    background: var(--ev-accent-primary);
    color: #fff;
}

.ev-btn--primary:hover {
    background: #5a6b5d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--ev-shadow-medium);
}

.ev-btn--secondary {
    background: transparent;
    color: var(--ev-text-primary);
    border: 1.5px solid var(--ev-border-medium);
}

.ev-btn--secondary:hover {
    border-color: var(--ev-accent-primary);
    color: var(--ev-accent-primary);
}

.ev-btn--text {
    background: none;
    padding: 0.5rem 0;
    color: var(--ev-accent-primary);
    font-weight: 500;
}

.ev-btn--text:hover {
    color: var(--ev-accent-secondary);
}

.ev-btn--text svg {
    transition: transform var(--ev-transition-fast);
}

.ev-btn--text:hover svg {
    transform: translateX(3px);
}

.ev-btn__loading {
    display: none;
}

.ev-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* ============================================================
   CARDS
   ============================================================ */
.ev-card {
    background: var(--ev-bg-card);
    border-radius: var(--ev-radius-lg);
    overflow: hidden;
    transition: all var(--ev-transition-base);
    box-shadow: var(--ev-shadow-soft);
}

.ev-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ev-shadow-elevated);
}

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

.ev-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ev-transition-slow);
}

.ev-card:hover .ev-card__image img {
    transform: scale(1.03);
}

.ev-card__content {
    padding: 1.5rem;
}

.ev-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--ev-text-muted);
}

.ev-card__category {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ev-accent-primary);
}

.ev-card__title {
    font-family: var(--ev-font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ev-text-primary);
    margin-bottom: 0.75rem;
}

.ev-card__title a {
    color: inherit;
}

.ev-card__title a:hover {
    color: var(--ev-accent-primary);
}

.ev-card__excerpt {
    font-size: 0.9375rem;
    color: var(--ev-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Featured card variant */
.ev-card--featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.ev-card--featured .ev-card__image {
    aspect-ratio: auto;
    min-height: 320px;
}

.ev-card--featured .ev-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.ev-card--featured .ev-card__title {
    font-size: 1.65rem;
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.ev-grid {
    display: grid;
    gap: 2rem;
}

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

.ev-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ev-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   HERO
   ============================================================ */
.ev-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    background: linear-gradient(165deg, var(--ev-bg-secondary) 0%, var(--ev-bg-primary) 100%);
    overflow: hidden;
}

.ev-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ev-hero__content {
    max-width: 560px;
}

.ev-hero__tagline {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ev-accent-primary);
    margin-bottom: 1.25rem;
}

.ev-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.ev-hero__description {
    font-size: 1.125rem;
    color: var(--ev-text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.ev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ev-hero__visual {
    position: relative;
}

.ev-hero__image {
    position: relative;
    border-radius: var(--ev-radius-xl);
    overflow: hidden;
    box-shadow: var(--ev-shadow-elevated);
}

.ev-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.ev-hero__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Decorative elements */
.ev-hero__decor {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 124, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ev-hero__decor--1 {
    top: 10%;
    right: -5%;
}

.ev-hero__decor--2 {
    bottom: 5%;
    left: -8%;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.ev-section-header {
    margin-bottom: 3rem;
}

.ev-section-header--center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ev-section-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ev-accent-primary);
    margin-bottom: 0.75rem;
}

.ev-section-header__title {
    margin-bottom: 1rem;
}

.ev-section-header__description {
    font-size: 1.0625rem;
    color: var(--ev-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CATEGORIES SHOWCASE
   ============================================================ */
.ev-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ev-category-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--ev-radius-lg);
    overflow: hidden;
    text-decoration: none;
}

.ev-category-card__image {
    position: absolute;
    inset: 0;
}

.ev-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ev-transition-slow);
}

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

.ev-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
    transition: background var(--ev-transition-base);
}

.ev-category-card:hover .ev-category-card__overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.ev-category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.ev-category-card__title {
    font-family: var(--ev-font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.375rem;
}

.ev-category-card__count {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   QUOTE/INSPIRATION BLOCK
   ============================================================ */
.ev-quote-block {
    position: relative;
    padding: 4rem;
    background: var(--ev-bg-tertiary);
    border-radius: var(--ev-radius-xl);
    text-align: center;
    margin: 0;
}

.ev-quote-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--ev-accent-highlight);
}

.ev-quote-block__text {
    font-family: var(--ev-font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--ev-text-primary);
    margin: 0 auto 1.5rem;
    max-width: 700px;
}

.ev-quote-block__author {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ev-text-muted);
    font-style: normal;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.ev-newsletter {
    background: var(--ev-bg-tertiary);
    border-radius: var(--ev-radius-xl);
    padding: 4rem;
    text-align: center;
}

.ev-newsletter__title {
    margin-bottom: 0.75rem;
}

.ev-newsletter__description {
    font-size: 1.0625rem;
    color: var(--ev-text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.ev-newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto 1.25rem;
    position: relative;
}

.ev-newsletter__input {
    flex: 1;
    padding: 0.9375rem 1.25rem;
    font-family: var(--ev-font-sans);
    font-size: 0.9375rem;
    border: 1.5px solid var(--ev-border-medium);
    border-radius: var(--ev-radius-md);
    background: var(--ev-bg-card);
    color: var(--ev-text-primary);
    transition: border-color var(--ev-transition-fast);
}

.ev-newsletter__input:focus {
    outline: none;
    border-color: var(--ev-accent-primary);
}

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

.ev-newsletter__note {
    font-size: 0.8125rem;
    color: var(--ev-text-muted);
    margin: 0;
}

/* Honeypot Field (invisible) */
.ev-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* ============================================================
   FORM MESSAGES
   ============================================================ */
.ev-form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--ev-radius-sm);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.ev-form-message--success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--ev-success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.ev-form-message--error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--ev-error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ev-footer {
    background: var(--ev-bg-secondary);
    border-top: 1px solid var(--ev-border);
    padding: 4rem 0 2rem;
}

.ev-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.ev-footer__brand .ev-logo {
    margin-bottom: 1rem;
}

.ev-footer__tagline {
    font-size: 0.9375rem;
    color: var(--ev-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.ev-footer__title {
    font-family: var(--ev-font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ev-text-primary);
    margin-bottom: 1.25rem;
}

.ev-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ev-footer__links li {
    margin-bottom: 0.75rem;
}

.ev-footer__links a {
    font-size: 0.9375rem;
    color: var(--ev-text-secondary);
}

.ev-footer__links a:hover {
    color: var(--ev-accent-primary);
}

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

.ev-footer__bottom p {
    margin: 0;
}

.ev-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.ev-footer__legal a {
    color: var(--ev-text-muted);
}

.ev-footer__legal a:hover {
    color: var(--ev-accent-primary);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.ev-article {
    padding-top: 6rem;
}

.ev-article__header {
    max-width: var(--ev-container-narrow);
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    text-align: center;
}

.ev-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--ev-text-muted);
}

.ev-article__category {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ev-accent-primary);
}

.ev-article__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.ev-article__excerpt {
    font-size: 1.125rem;
    color: var(--ev-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.ev-article__featured-image {
    max-width: 960px;
    margin: 0 auto 3rem;
    border-radius: var(--ev-radius-lg);
    overflow: hidden;
}

.ev-article__featured-image img {
    width: 100%;
    height: auto;
}

.ev-article__content {
    max-width: var(--ev-container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ev-article__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.ev-article__content h2 {
    margin: 2.5rem 0 1rem;
}

.ev-article__content h3 {
    margin: 2rem 0 0.875rem;
}

.ev-article__content ul,
.ev-article__content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.ev-article__content li {
    margin-bottom: 0.5rem;
}

/* Images in article content */
.ev-article__content img,
.ev-article__content figure {
    margin: 2rem 0;
    border-radius: var(--ev-radius-md);
}

.ev-article__content figure img {
    margin: 0;
}

.ev-article__content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--ev-text-muted);
    text-align: center;
}

/* WordPress alignment classes */
.ev-article__content .alignwide {
    max-width: 960px;
    margin-left: calc(-1 * (960px - 720px) / 2);
    margin-right: calc(-1 * (960px - 720px) / 2);
    width: calc(100% + (960px - 720px));
}

.ev-article__content .alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.ev-article__content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ev-article__content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

.ev-article__content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 50%;
}

/* Tags */
.ev-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--ev-text-secondary);
    background: var(--ev-bg-secondary);
    border-radius: var(--ev-radius-sm);
    transition: all var(--ev-transition-fast);
}

.ev-tag:hover {
    background: var(--ev-accent-primary);
    color: #fff;
}

/* Article footer */
.ev-article__footer {
    max-width: var(--ev-container-narrow);
    margin: 3rem auto 0;
    padding: 0 1.5rem;
}

.ev-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ev-border);
}

/* ============================================================
   CATEGORY HERO
   ============================================================ */
.ev-category-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: var(--ev-bg-secondary);
    overflow: hidden;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.ev-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem;
}

.ev-404__code {
    font-family: var(--ev-font-serif);
    font-size: 8rem;
    font-weight: 300;
    color: var(--ev-bg-tertiary);
    line-height: 1;
    margin-bottom: 1rem;
}

.ev-404__title {
    margin-bottom: 0.75rem;
}

.ev-404__description {
    color: var(--ev-text-secondary);
    margin-bottom: 2rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ev-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 4rem;
}

.ev-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ev-text-secondary);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius-md);
    transition: all var(--ev-transition-fast);
}

.ev-pagination__link:hover {
    border-color: var(--ev-accent-primary);
    color: var(--ev-accent-primary);
}

.ev-pagination__link--current {
    background: var(--ev-accent-primary);
    border-color: var(--ev-accent-primary);
    color: #fff;
}

.ev-pagination__link--current:hover {
    color: #fff;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ev-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ev-text-muted);
    margin-bottom: 1.5rem;
}

.ev-breadcrumbs a {
    color: var(--ev-text-muted);
}

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

.ev-breadcrumbs__separator {
    color: var(--ev-text-light);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.ev-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.ev-page__header {
    max-width: var(--ev-container-narrow);
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    text-align: center;
}

.ev-page__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.ev-page__content {
    max-width: var(--ev-container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ev-page__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.ev-page__content h2 {
    margin: 2.5rem 0 1rem;
}

.ev-page__content h3 {
    margin: 2rem 0 0.875rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.ev-will-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ev-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grids */
.ev-grid .ev-will-animate:nth-child(1) { transition-delay: 0s; }
.ev-grid .ev-will-animate:nth-child(2) { transition-delay: 0.1s; }
.ev-grid .ev-will-animate:nth-child(3) { transition-delay: 0.15s; }
.ev-grid .ev-will-animate:nth-child(4) { transition-delay: 0.2s; }
.ev-grid .ev-will-animate:nth-child(5) { transition-delay: 0.25s; }
.ev-grid .ev-will-animate:nth-child(6) { transition-delay: 0.3s; }

/* Image loaded state */
img.ev-loaded {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   FOCUS STATES (Accessibility)
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--ev-accent-primary);
    outline-offset: 2px;
}

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

/* ============================================================
   UTILITIES
   ============================================================ */
.ev-text-center { text-align: center; }
.ev-text-left { text-align: left; }
.ev-text-right { text-align: right; }

.ev-mt-0 { margin-top: 0; }
.ev-mb-0 { margin-bottom: 0; }
.ev-mt-1 { margin-top: 0.5rem; }
.ev-mb-1 { margin-bottom: 0.5rem; }
.ev-mt-2 { margin-top: 1rem; }
.ev-mb-2 { margin-bottom: 1rem; }
.ev-mt-3 { margin-top: 1.5rem; }
.ev-mb-3 { margin-bottom: 1.5rem; }
.ev-mt-4 { margin-top: 2rem; }
.ev-mb-4 { margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ev-hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ev-hero__visual {
        max-width: 560px;
        margin: 0 auto;
    }
    
    .ev-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ev-grid--3,
    .ev-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ev-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ev-card--featured {
        grid-template-columns: 1fr;
    }
    
    .ev-article__content .alignwide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ev-section {
        padding: 3.5rem 0;
    }
    
    .ev-nav {
        display: none;
    }
    
    .ev-menu-toggle {
        display: flex;
    }
    
    .ev-hero {
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    
    .ev-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ev-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ev-category-card {
        aspect-ratio: 2 / 1;
    }
    
    .ev-grid--2,
    .ev-grid--3,
    .ev-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .ev-quote-block {
        padding: 2.5rem 1.5rem;
    }
    
    .ev-quote-block__text {
        font-size: 1.35rem;
    }
    
    .ev-newsletter {
        padding: 2.5rem 1.5rem;
    }
    
    .ev-newsletter__form {
        flex-direction: column;
    }
    
    .ev-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ev-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .ev-article__content .alignleft,
    .ev-article__content .alignright {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .ev-container {
        padding: 0 1rem;
    }
    
    .ev-header__inner {
        height: 64px;
    }
    
    .ev-logo__text {
        font-size: 1.15rem;
    }
    
    .ev-logo__mark {
        width: 36px;
        height: 36px;
    }
    
    .ev-404__code {
        font-size: 5rem;
    }
    
    .ev-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .ev-header,
    .ev-footer,
    .ev-mobile-menu,
    .ev-newsletter,
    .ev-btn,
    .ev-pagination,
    .ev-skip-link {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .ev-article {
        padding-top: 0;
    }
    
    .ev-article__content {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================================
   REDUCED MOTION (Accessibility)
   ============================================================ */
@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;
    }
    
    .ev-will-animate {
        opacity: 1;
        transform: none;
    }
}
