/*
Theme Name: PeakVoyage
Theme URI: https://thealpinistascollective.com
Author: The Alpinistas Collective
Author URI: https://thealpinistascollective.com
Description: Тема для блога о женском альпинизме, активном отдыхе, экспедициях и обучении. Современный минимализм с природными оттенками гор.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: peakvoyage
Tags: blog, one-column, two-columns, custom-menu, custom-logo, featured-images, responsive-layout
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --color-bg: #FDFAF5;
    --color-white: #FFFFFF;
    --color-terracotta: #B04A3A;
    --color-terracotta-dark: #8E3B2E;
    --color-terracotta-light: #D4796C;
    --color-sage: #7A9E7E;
    --color-sage-dark: #5C7F60;
    --color-sage-light: #A8C5AB;
    --color-graphite: #2D3E4F;
    --color-graphite-light: #4A6275;
    --color-gray-100: #F5F2ED;
    --color-gray-200: #E8E4DE;
    --color-gray-300: #C9C4BC;
    --color-gray-400: #9B9590;
    --color-gray-500: #6E6862;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(45,62,79,0.08);
    --shadow-md: 0 4px 16px rgba(45,62,79,0.10);
    --shadow-lg: 0 8px 32px rgba(45,62,79,0.14);
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-graphite);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-graphite);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25em;
}

/* ============================================
   LAYOUT
============================================ */
.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ============================================
   HEADER
============================================ */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-graphite);
}

.site-branding a:hover {
    color: var(--color-terracotta);
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

.site-logo-svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    margin: 0;
}

.site-description {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    margin-top: 2px;
    display: none;
}

/* ============================================
   NAVIGATION
============================================ */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-graphite);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--color-terracotta);
    background: rgba(176, 74, 58, 0.06);
}

/* Submenu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 200;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 300;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-graphite);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Header search */
.header-search {
    flex-shrink: 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
}

.header-search .search-field {
    width: 180px;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-graphite);
    transition: all var(--transition);
}

.header-search .search-field:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background: var(--color-white);
    width: 220px;
}

.header-search .search-submit {
    padding: 0.45rem 0.75rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 1px solid var(--color-terracotta);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--transition);
}

.header-search .search-submit:hover {
    background: var(--color-terracotta-dark);
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-graphite) 0%, #1a2a38 100%);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(45,62,79,0.3) 0%,
        rgba(45,62,79,0.55) 50%,
        rgba(45,62,79,0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: heroFadeUp 1s ease 0.3s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    background: rgba(122,158,126,0.25);
    border: 1px solid rgba(122,158,126,0.5);
    border-radius: 50px;
    color: var(--color-sage-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--color-white);
    transform: scale(1.2);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
    color: var(--color-white);
}

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

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

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* ============================================
   SECTION HEADINGS
============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-sage);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--color-graphite);
    margin-bottom: 0.75rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-terracotta);
    margin: 0 auto;
    border-radius: 3px;
}

/* ============================================
   POSTS GRID
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================
   POST CARD
============================================ */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--color-gray-200);
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-thumbnail .difficulty-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-easy {
    background: rgba(122,158,126,0.9);
    color: var(--color-white);
}
.difficulty-medium {
    background: rgba(218,165,32,0.9);
    color: var(--color-white);
}
.difficulty-hard {
    background: rgba(176,74,58,0.9);
    color: var(--color-white);
}

.post-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-gray-400);
}

.post-card-meta .category-link {
    color: var(--color-terracotta);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.post-card-meta .category-link:hover {
    color: var(--color-terracotta-dark);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--color-graphite);
}

.post-card-title a {
    color: inherit;
}

.post-card-title a:hover {
    color: var(--color-terracotta);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-card-excerpt a {
    color: var(--color-terracotta);
    text-decoration: underline;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-100);
    margin-top: auto;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

.post-card-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-readmore {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-card-readmore:hover {
    gap: 0.6rem;
}

.post-card-readmore svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.post-card:hover .post-card-readmore svg {
    transform: translateX(3px);
}

/* No thumbnail placeholder */
.post-card-thumbnail .no-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage) 100%);
}

.post-card-thumbnail .no-thumb-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* ============================================
   FEATURED POST (first card larger)
============================================ */
.posts-grid .post-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.posts-grid .post-card:first-child .post-card-thumbnail {
    aspect-ratio: auto;
    min-height: 320px;
}

.posts-grid .post-card:first-child .post-card-body {
    padding: 2rem;
    justify-content: center;
}

.posts-grid .post-card:first-child .post-card-title {
    font-size: 1.65rem;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-graphite);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.pagination .page-numbers.current {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.pagination .dots {
    background: none;
    border: none;
    color: var(--color-gray-400);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* ============================================
   SINGLE POST
============================================ */
.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-gray-400);
}

.single-post-meta .meta-category {
    color: var(--color-terracotta);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.single-post-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post-subtitle {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--color-gray-500);
    font-style: italic;
}

.single-post-thumbnail {
    max-width: 960px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Post content */
.post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-content h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.75rem;
}

.post-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.35rem;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content a {
    color: var(--color-terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--color-terracotta-dark);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-terracotta);
    background: var(--color-gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-graphite);
}

.post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-style: normal;
    font-family: var(--font-body);
    color: var(--color-gray-400);
}

.post-content ul,
.post-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-content .wp-caption {
    margin: 1.5rem 0;
}

.post-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    text-align: center;
    margin-top: 0.5rem;
}

/* Success story quote block */
.success-quote {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    position: relative;
}

.success-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    position: absolute;
    top: 0;
    left: 1.5rem;
    color: rgba(255,255,255,0.2);
    line-height: 1;
}

.success-quote p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.success-quote cite {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-style: normal;
}

/* Post tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-tags-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-graphite);
    margin-right: 0.5rem;
}

.post-tags a {
    padding: 0.3rem 0.85rem;
    background: var(--color-gray-100);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-gray-500);
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.post-nav-link {
    padding: 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition);
}

.post-nav-link:hover {
    border-color: var(--color-terracotta);
    box-shadow: var(--shadow-sm);
}

.post-nav-link .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-400);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.post-nav-link .nav-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-graphite);
    line-height: 1.35;
}

.post-nav-link:hover .nav-title {
    color: var(--color-terracotta);
}

.post-nav-link.next {
    text-align: right;
}

/* ============================================
   COMMENTS
============================================ */
.comments-area {
    max-width: 760px;
    margin: 3rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gray-200);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-meta .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-graphite);
}

.comment-metadata {
    font-size: 0.78rem;
    color: var(--color-gray-400);
}

.comment-metadata a {
    color: var(--color-gray-400);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.children {
    list-style: none;
    padding-left: 2rem;
}

/* Comment form */
.comment-respond {
    margin-top: 2.5rem;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-graphite);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-graphite);
    background: var(--color-white);
    transition: border-color var(--transition);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form .form-submit input {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}

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

/* ============================================
   PAGE TEMPLATE
============================================ */
.page-header-section {
    background: linear-gradient(135deg, var(--color-graphite) 0%, #1a2a38 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header-section .page-title {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header-section .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.page-header-section .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header-section .breadcrumb a:hover {
    color: var(--color-white);
}

/* ============================================
   SIDEBAR / WIDGETS
============================================ */
.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-terracotta);
    color: var(--color-graphite);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-graphite);
    font-size: 0.9rem;
}

.widget ul li a:hover {
    color: var(--color-terracotta);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--color-graphite);
    color: rgba(255,255,255,0.8);
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-widget-area .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
    color: var(--color-white);
    border-bottom-color: var(--color-terracotta);
    font-size: 1rem;
}

.footer-widget-area .widget ul li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.footer-widget-area .widget ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-widget-area .widget ul li a:hover {
    color: var(--color-terracotta-light);
}

/* Footer map visual */
.footer-map {
    padding: 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-map-title {
    font-family: var(--font-display);
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.footer-map-visual {
    position: relative;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-map-visual svg {
    opacity: 0.15;
    width: 80%;
    max-width: 600px;
}

.footer-map-pins {
    position: absolute;
    inset: 0;
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-terracotta);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 4px rgba(176,74,58,0.3);
    animation: pinPulse 2s ease infinite;
}

@keyframes pinPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(176,74,58,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(176,74,58,0.1); }
}

/* Newsletter */
.footer-newsletter {
    padding: 2.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.newsletter-form button {
    padding: 0.65rem 1.25rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--color-terracotta-dark);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================
   SEARCH FORM
============================================ */
.search-form {
    display: flex;
    align-items: stretch;
}

.search-form .search-field {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-graphite);
    background: var(--color-white);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

.search-form .search-submit {
    padding: 0.65rem 1.25rem;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 1px solid var(--color-terracotta);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.search-form .search-submit:hover {
    background: var(--color-terracotta-dark);
}

/* ============================================
   NO RESULTS
============================================ */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--color-gray-500);
    margin-bottom: 2rem;
}

/* ============================================
   SCROLL TO TOP
============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

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

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    width: auto;
    z-index: 100000;
    background: var(--color-white);
    padding: 1rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid .post-card:first-child {
        grid-column: 1 / -1;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--color-gray-200);
        box-shadow: var(--shadow-lg);
        z-index: 200;
    }

    .main-navigation .nav-menu.toggled {
        display: flex;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .header-search {
        display: none;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid .post-card:first-child {
        grid-template-columns: 1fr;
    }

    .posts-grid .post-card:first-child .post-card-thumbnail {
        aspect-ratio: 16/10;
        min-height: auto;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 2rem 1.25rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .section-title {
        font-size: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .children {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0.75rem 1rem;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-area {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   PRINT
============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .scroll-to-top,
    .post-navigation,
    .comments-area,
    .pagination {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .post-content {
        max-width: 100%;
    }
}
