/*
Theme Name:  Longform KD Theme
Theme URI:   https://iefimerida.gr
Author:      iefimerida.gr
Author URI:  https://iefimerida.gr
Description: Classic WordPress theme for use with WPBakery Page Builder. Based on the iefimerida.gr longform header and footer.
Version:     1.0.0
Text Domain: longform-kd-theme
Requires at least: 5.6
Requires PHP: 7.4
*/

/* ── Manrope (self-hosted, latin + latin-ext + greek) ── */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/manrope-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/manrope-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/manrope-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/manrope-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/manrope-800.woff2') format('woff2');
}

/* ── Reset ───────────────────────────────────────────── */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: #0089cf;
    text-decoration: none;
}

a:hover {
    color: #575757;
}

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

/* ── Layout ──────────────────────────────────────────── */
.site-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-content--wide {
    max-width: 1200px;
}

.site-content--full {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ── Typography ──────────────────────────────────────── */
h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 2rem; line-height: 1.25; font-weight: 700; }
h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; }

/* ── Post entry ──────────────────────────────────────── */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin: 0 0 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.entry-content {
    margin-bottom: 2rem;
}

/* ── Archive / Loop ──────────────────────────────────── */
.post-list article {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

.post-list article:last-child {
    border-bottom: none;
}

/* ── Pagination ──────────────────────────────────────── */
.pagination {
    text-align: center;
    padding: 2rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.pagination .page-numbers.current {
    background: #0089cf;
    color: #fff;
    border-color: #0089cf;
}

/* ── Sidebar ─────────────────────────────────────────── */
.site-sidebar {
    padding: 20px 0;
}

.site-sidebar .widget {
    margin-bottom: 2rem;
}

.site-sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0089cf;
}

/* ── WPBakery layout ─────────────────────────────────── */
.vc_row[data-vc-full-width="true"] {
    overflow: hidden;
}

.vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"] > .vc_column_container > .vc_column-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.vc_row[data-vc-full-width="true"][data-vc-stretch-content="true"] .vc_grid-container {
    max-width: 100% !important;
}

.vc_row:not([data-vc-full-width="true"]):not(.vc_grid) {
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* ── WPBakery masonry grid: disable hover overlay ───── */
.vc_grid .vc-gitem-zone-c {
    display: none !important;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    background-color: #faf5f0;
    color: #555;
    padding: 3rem 1.5rem 2rem;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #1a1a1a;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo svg {
    height: 32px;
    width: auto;
    fill: #1a1a1a;
}

.footer-separator {
    border: none;
    height: 1px;
    background: #ddd0c3;
    margin: 1.5rem 0;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
}

.footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-copyright {
    font-size: 13px;
    color: #999;
}
