/*
Theme Name: Hliadyk Nordic Edition
Author: Bohdan Hliadyk
Description: Custom WordPress theme based on the "Nordic Edition" brand concept. Built on the principles of Scandinavian restraint, Swiss precision, and Ukrainian dignity.
Version: 1.0
*/

/* === CSS Змінні (для легкого керування) === */
:root {
    --font-headings: 'Jost', 'Century Gothic', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-background: #FFFFFF;
    --color-text: #1A1A1A;
    --color-accent: #172B3E;
}

/* === Глобальні стилі === */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    padding-top: 110px;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-accent);
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* === Хедер === */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-graphic {
    height: 50px;
    margin-right: 12px;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-accent);
}

/* === Навігація в хедері === */
.header-menu-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header-menu-list li {
    margin-left: 35px;
}

.header-menu-list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s ease-in-out;
}

.header-menu-list a:hover {
    color: var(--color-accent);
}

/* === Гамбургер-меню (початкові стилі) === */
.hamburger-button {
    display: none;
    position: fixed;
    top: 37px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 5px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Анімація гамбургера в хрестик */
.hamburger-button.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hamburger-button.is-active .hamburger-line {
    background-color: #FFFFFF;
}


/* === Панель мобільного меню === */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 43, 62, 0.98);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-panel.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel .mobile-menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-panel .mobile-menu-list li {
    margin: 20px 0;
}

.mobile-menu-panel .mobile-menu-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 24px;
    font-family: var(--font-headings);
}

/* === Hero Block (Головна сторінка - Центрована версія) === */
.hero-section {
    background-color: #FFFFFF;
    min-height: calc(85vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 20px;
}

.hero-container {
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    display: block;
}

.hero-separator {
    width: 100px;
    height: 2px;
    margin: 3rem auto;
    background-color: var(--color-accent);
    border: none;
}

.hero-aphorism {
    font-size: 1.3rem;
    line-height: 1.7;
    font-style: italic;
    color: #495057;
    margin: 0;
}

/* === Сторінка "Про мене" === */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-page-container {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 30% 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 5%;
    align-items: start;
}

.about-photo-area {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.about-content-area {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.about-principles-area {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
}

.about-content-area > *:first-child {
    margin-top: 0;
}

.principles-list {
    list-style-type: none;
    padding: 0;
    margin: 2.5rem 0 0 0;
}

.principles-list li {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.principles-list li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 0.75em;
}

.about-content-area {
    font-size: 1.15rem; /* Збільшено розмір шрифту */
    line-height: 1.9; /* Збільшено міжрядковий інтервал */
    letter-spacing: 0.2px; /* Додано "повітря" між літерами */
    color: #343a40;
}

/* === Сторінка архіву "Аналітика" === */
.archive-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 20px;
}

.publication-list .publication-item {
    padding: 3rem 0;
    border-bottom: 1px solid #dee2e6;
}

.publication-list .publication-item:first-child {
    padding-top: 2rem;
}

.publication-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.publication-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.publication-title a {
    color: var(--color-accent);
    text-decoration: none;
}

.publication-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.publication-excerpt p {
    margin: 0;
}

.publication-read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-accent);
    text-decoration: none;
}

/* === Сторінка окремої публікації === */
.single-container {
    max-width: 720px;
    margin: 4rem auto;
    padding: 0 20px;
}

.single-publication-header {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #dee2e6;
}

.publication-title-single {
    font-size: 2.8rem;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.publication-meta-single {
    font-size: 0.95rem;
    color: #6c757d;
}

.publication-meta-single .meta-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.75em;
    color: #ced4da;
}

.publication-meta-single a {
    color: #6c757d;
    text-decoration: none;
    border-bottom: 1px dotted #6c757d;
}

.publication-meta-single a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.publication-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
}

.publication-content p,
.publication-content ul,
.publication-content ol,
.publication-content blockquote {
    margin-bottom: 1.5em;
}

.publication-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* === Футер === */
.site-footer {
    background-color: #f8f9fa;
    padding: 4rem 40px;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-column-left {
    text-align: left;
}

.footer-philosophy {
    font-style: italic;
    margin-top: 1.5rem;
}

.footer-column-right {
    text-align: left;
}

.footer-column p {
    margin: 0 0 0.5rem 0;
}

.footer-contacts a {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social ul {
    list-style-type: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.footer-column a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-column a:hover {
    color: var(--color-accent);
}

/* === Адаптивність === */
@media (max-width: 1200px) {
    .header-container, .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .about-photo-area { order: 1; }
    .about-content-area { order: 2; }
    .about-principles-area { order: 3; }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header-container {
         padding: 15px 20px;
         max-width: none;
    }

    .hamburger-button {
        top: 15px;
    }

    .navigation-area,
    .logo-text {
        display: none;
    }

    .hamburger-button {
        display: block;
    }

    .hero-section {
        min-height: calc(85vh - 80px);
    }

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

    .hero-aphorism {
        font-size: 1.2rem;
    }

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

    .publication-title,
    .publication-title-single {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2.5rem;
    }

    .footer-column-left,
    .footer-column-right {
        text-align: center;
        width: 100%;
    }

    .footer-social ul {
        justify-content: center;
    }
}