/*
Theme Name: Le Guidon Bayonnais
Theme URI: https://www.leguidonbayonnais.fr/
Author: Le Guidon Bayonnais
Author URI: https://www.leguidonbayonnais.fr/
Description: Thème WordPress personnalisé pour Le Guidon Bayonnais — le guide du cyclisme à Bayonne et au Pays Basque.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leguidon
Tags: cycling, bayonne, custom-menu, featured-images
*/

/* ============================================================
   IMPORTS — Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Colors */
    --color-primary: #007A4D;
    --color-primary-dark: #005f3b;
    --color-primary-light: rgba(0, 122, 77, 0.1);
    --color-secondary: #F5A623;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-light: #F8FAFC;
    --color-bg-neutral: #f5f5f5;
    --color-text: #171717;
    --color-text-light: #525252;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: rgba(255, 255, 255, 0.2);
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-100: #f1f5f9;
    --color-emerald-100: rgba(209, 250, 229, 0.8);
    --color-emerald-400: #34d399;

    /* Fonts */
    --font-logo: 'Syne', sans-serif;
    --font-nav: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --max-width: 1280px;
    --radius-full: 9999px;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-bento: 2.5rem;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

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

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-nav);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

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

.btn-secondary:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 3rem;
    }
}

/* Grain overlay */
.header-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 50;
    text-decoration: none;
}

.site-logo .logo-text {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #111827;
    display: block;
}

.site-logo .logo-text .logo-accent {
    color: var(--color-primary);
    font-weight: 800;
    font-style: italic;
}

.logo-wrapper {
    position: relative;
}

.logo-corner {
    position: absolute;
    bottom: -4px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.site-logo:hover .logo-corner {
    transform: scale(1.1);
}

/* Desktop nav */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-nav);
    font-weight: 500;
    color: #374151;
}

.nav-links a {
    font-size: 0.9375rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Current page indicator */
.nav-links a.current-menu-item,
.nav-links .current-menu-item > a {
    color: var(--color-primary);
}

.nav-links a.current-menu-item::after,
.nav-links .current-menu-item > a::after {
    width: 100%;
}

.nav-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid #e5e7eb;
    padding-left: 2rem;
}

.nav-btn-cta {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-nav);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.nav-btn-cta:hover {
    background-color: var(--cta-hover-bg) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.nav-btn-cta:active {
    transform: scale(0.95);
}

/* Mobile toggle */
.mobile-toggle {
    display: block;
    z-index: 50;
    padding: 0.5rem;
    color: #111827;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 24px;
    height: 20px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 75%; }
.hamburger span:nth-child(3) { bottom: 0; }

/* Mobile menu open state */
.mobile-toggle.is-open .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.is-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.is-open .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 40;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.mobile-menu.is-open {
    display: flex;
    animation: navFadeIn 0.4s ease forwards;
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-label {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(6, 78, 59, 0.4);
    margin-bottom: 0.5rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-links a {
    font-family: var(--font-logo);
    font-size: 2.25rem;
    color: #111827;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-ctas {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mobile-menu-ctas .nav-btn-cta {
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    font-size: 1.25rem;
    text-align: center;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.site-content {
    margin-top: var(--header-height);
    min-height: 60vh;
}

.content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-area article {
    margin-bottom: 3rem;
}

.content-area article .entry-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-area article .entry-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.content-area article .entry-title a:hover {
    color: var(--color-primary);
}

.content-area article .entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.content-area article .entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.content-area article .entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.content-area article .entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-area article .entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-area article .entry-content a:hover {
    color: var(--color-primary-dark);
}

.content-area article .entry-content img {
    border-radius: var(--radius-2xl);
    margin: 1.5rem 0;
}

.content-area article .entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.content-area article .entry-content ul,
.content-area article .entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-area article .entry-content ul {
    list-style: disc;
}

.content-area article .entry-content ol {
    list-style: decimal;
}

.content-area article .entry-content li {
    margin-bottom: 0.5rem;
}

/* Read more */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Post thumbnail */
.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-3xl);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination a {
    color: var(--color-text-light);
    background: var(--color-bg-light);
}

.pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination .current {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    background: var(--color-bg-light);
    padding: 4rem 1rem 2rem;
    font-family: var(--font-body);
    overflow: hidden;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 4rem 1.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 4rem 2rem 2rem;
    }
}

/* Grain overlay */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Bento grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* === Brand block === */
.footer-brand {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-bento);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-slate-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

.footer-brand:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 7;
    }
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 5;
    }
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand-icon {
    background: var(--color-primary);
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-white);
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    color: var(--color-slate-900);
}

.footer-brand-name span {
    color: var(--color-primary);
}

.footer-brand-desc {
    color: var(--color-slate-600);
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 0;
}

.footer-social {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: #f8fafc;
    border: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-600);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-social a svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* === Navigation block === */
.footer-nav-block {
    display: none;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-bento);
    border: 1px solid var(--color-slate-100);
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.footer-nav-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .footer-nav-block {
        display: flex;
        grid-column: span 5;
    }
}

@media (min-width: 1024px) {
    .footer-nav-block {
        grid-column: span 3;
    }
}

.footer-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links a {
    color: var(--color-slate-800);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.footer-nav-links a .link-bar {
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    margin-right: 0;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-nav-links a:hover .link-bar {
    width: 1rem;
    margin-right: 0.5rem;
}

/* === Newsletter block === */
.footer-newsletter {
    background: var(--color-primary);
    padding: 2rem;
    border-radius: var(--radius-bento);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .footer-newsletter {
        grid-column: span 12;
    }
}

@media (min-width: 1024px) {
    .footer-newsletter {
        grid-column: span 4;
    }
}

.footer-newsletter-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    opacity: 0.1;
    transition: transform 0.7s ease;
}

.footer-newsletter:hover .footer-newsletter-bg {
    transform: rotate(12deg);
}

.footer-newsletter-bg svg {
    width: 16rem;
    height: 16rem;
}

.footer-newsletter-content {
    position: relative;
    z-index: 10;
}

.footer-newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.footer-newsletter-text {
    color: var(--color-emerald-100);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-newsletter-form {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-newsletter-form input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 1rem 1.25rem;
    color: var(--color-white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(209, 250, 229, 0.5);
}

.footer-newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.footer-newsletter-form button {
    width: 100%;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    font-size: 1rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-newsletter-form button:hover {
    background: #ecfdf5;
}

.footer-newsletter-form button:active {
    transform: scale(0.98);
}

/* === Mobile nav block (footer) === */
.footer-mobile-nav {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-bento);
    border: 1px solid var(--color-slate-100);
}

@media (min-width: 768px) {
    .footer-mobile-nav {
        display: none;
    }
}

.footer-mobile-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.footer-mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-mobile-nav-links a {
    color: #334155;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-mobile-nav-links a:hover {
    color: var(--color-primary);
}

/* === Language switcher block === */
.footer-lang {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-lang {
        grid-column: span 4;
    }
}

@media (min-width: 1024px) {
    .footer-lang {
        grid-column: span 3;
    }
}

.footer-lang-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-600);
}

.footer-lang-inner svg {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
}

/* === Bottom copyright === */
.footer-bottom {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--color-slate-100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-500);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        grid-column: span 8;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        grid-column: span 9;
    }
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-pulse {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-emerald-400);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */

/* 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;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    padding-top: 0.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item img {
    border-radius: var(--radius-2xl);
}

/* WordPress admin bar offset */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Sidebar */
.sidebar {
    padding: 2rem 0;
}

.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
}

.sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-2xl);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    margin-bottom: 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.comment-form .submit {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--color-primary-dark);
}

/* 404 page */
.error-404 {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
