/* =========================================
   FUTURO INVEST - GHOST THEME
   ========================================= */

/* =========================================
   0. SELF-HOSTED FONTS
   ========================================= */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. ZMIENNE I RESET (DESIGN SYSTEM)
   ========================================= */
:root {
    /* Kolory */
    --bg-color: #FFFFFF;
    --bg-gray: #F9F9F9;
    --bg-dark: #1C232E;
    --bg-footer: #0d1116;
    
    --text-main: #111111;
    --text-muted: #666666;
    
    --accent-copper: #C6A87C;
    --line-color: #E5E5E5;
    
    /* Fonty */
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', Arial, sans-serif;
    
    /* Ghost Font Settings (for editor compatibility) */
    --gh-font-heading: 'Playfair Display', Georgia, serif;
    --gh-font-body: 'Manrope', Arial, sans-serif;
    
    /* Układ */
    --container-width: 1240px;
    --gutter: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. TYPOGRAFIA
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* =========================================
   3. CONTAINER
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--bg-dark);
    color: #fff;
}

.btn--primary:hover {
    background: #2a3240;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: padding 0.3s;
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    aspect-ratio: 397/70;
    filter: brightness(0) saturate(100%) invert(70%) sepia(23%) saturate(686%) hue-rotate(359deg) brightness(93%) contrast(86%);
}

.nav-links {
    display: none;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
        gap: 30px;
        align-items: center;
        min-height: 40px;
    }
    
    .hamburger {
        display: none !important;
    }
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.nav-item:hover {
    color: var(--accent-copper);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-trigger .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    min-height: 120px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(198, 168, 124, 0.1);
    color: var(--accent-copper);
    padding-left: 25px;
}

/* Hamburger Menu */
.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    outline: 0;
    border: none;
    background: transparent;
}

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
@media (max-width: 899px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-item {
        font-size: 1.2rem;
    }
}

/* =========================================
   6. BACKGROUND LINES (MODERNISTYCZNY GRID)
   ========================================= */
.background-lines {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-width);
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--gutter);
}

.line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.03) 30%,
        rgba(0, 0, 0, 0.015) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* =========================================
   7. HERO SECTION (BLOG) - JAK INDEX.HTML
   ========================================= */
.blog-hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blog-hero__bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blog-hero__bg-wrapper picture {
    width: 100%;
    height: 100%;
}

.blog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.blog-hero__content {
    width: 100%;
    z-index: 2;
    padding-top: 80px;
}

.blog-hero__text-block {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    max-width: 650px;
}

.blog-hero__subtitle {
    display: block;
    color: var(--accent-copper);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-hero__title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-main);
}

.blog-hero__description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (min-width: 900px) {
    .blog-hero__bg-wrapper {
        width: 60%;
    }
    
    .blog-hero__content {
        min-height: 600px;
    }
    
    .blog-hero__text-block {
        min-height: 450px;
        padding: 60px 60px 60px 0;
        background: rgba(255, 255, 255, 0.8);
        max-width: 650px;
    }
    
    .blog-hero__title {
        font-size: 4.5rem;
    }
    
    .overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        height: auto !important;
        padding-top: 60px !important;
        padding-bottom: 0 !important;
        background: #fff !important;
    }
    
    .blog-hero__bg-wrapper {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16/9;
        z-index: 1;
    }
    
    .blog-hero__bg-wrapper img,
    .blog-hero__bg-wrapper picture {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .overlay {
        display: none !important;
    }
    
    .blog-hero__content {
        width: 100% !important;
        padding: 0 !important;
        min-height: 0 !important;
        z-index: 2;
    }
    
    .blog-hero__text-block {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 30px 20px !important;
        background: #fff !important;
        backdrop-filter: none !important;
    }
    
    .blog-hero__title {
        font-size: 2.2rem !important;
    }
    
    .blog-hero__description {
        font-size: 1rem !important;
    }
}

/* =========================================
   8. MAIN CONTENT AREA
   ========================================= */
main {
    position: relative;
}

/* =========================================
   9. BLOG POSTS GRID
   ========================================= */
.posts-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-color);
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin: 0;
}

.post-card {
    background: #fff;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 80px;
}

.post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 900px) {
    .post-card {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .post-card:nth-child(even) .post-card__image-wrapper {
        order: 2;
    }
    
    .post-card:nth-child(even) .post-card__content {
        order: 1;
    }
}

.post-card:hover {
    transform: translateY(-5px);
}

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

.post-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--bg-gray);
    margin-bottom: 30px;
}

@media (min-width: 900px) {
    .post-card__image-wrapper {
        height: 500px;
        margin-bottom: 0;
    }
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.post-card__content {
    padding: 0;
}

@media (min-width: 900px) {
    .post-card__content {
        padding: 40px;
    }
}

.post-card__category {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--text-main);
    background-color: #fff;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.post-card__category:hover {
    background-color: var(--text-main);
    color: #fff;
}

.post-card__title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .post-card__title {
        font-size: 1.8rem;
    }
}

.post-card__title a {
    color: var(--text-main);
    transition: color 0.3s;
}

.post-card__title a:hover {
    color: var(--accent-copper);
}

.post-card__excerpt {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--line-color);
}

.post-card__date {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}

.post-card__read-more {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--text-main);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-main);
    transition: all 0.3s;
}

.post-card__read-more:hover {
    background-color: transparent;
    color: var(--text-main);
}

/* =========================================
   10. SINGLE POST
   ========================================= */
.post {
    padding: 120px 0 100px;
}

.post-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 0 60px;
    border-bottom: 1px solid var(--line-color);
}

.post-category {
    display: inline-block;
    color: var(--accent-copper);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 25px;
}

.post-title {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 40px;
    color: var(--text-main);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.post-meta span {
    margin: 0 15px;
    opacity: 0.5;
}

.post-hero {
    width: 100%;
    margin-bottom: 0;
}

.post-hero-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.post-featured-image {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    margin-bottom: 80px;
}

.post-header {
    padding-top: 80px;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 30px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-head);
    margin: 60px 0 30px;
    color: var(--text-main);
}

.post-content h2 {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 20px;
}

.post-content h3 {
    font-size: 2rem;
}

.post-content h4 {
    font-size: 1.5rem;
}

.post-content img {
    margin: 60px 0;
    width: 100%;
    height: auto;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-copper);
    padding: 30px 0 30px 40px;
    margin: 60px 0;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-main);
    background: var(--bg-gray);
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 4rem;
    color: var(--accent-copper);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.post-content ul,
.post-content ol {
    margin: 30px 0;
    padding-left: 40px;
}

.post-content li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-content a {
    color: var(--accent-copper);
    border-bottom: 1px solid var(--accent-copper);
    transition: all 0.3s;
}

.post-content a:hover {
    color: var(--bg-dark);
    border-bottom-color: var(--bg-dark);
}

/* =========================================
   11. PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 100px 0 0;
    padding-top: 60px;
    border-top: 1px solid var(--line-color);
}

.pagination a,
.pagination .page-number,
.pagination .disabled {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--line-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--accent-copper);
    color: #fff;
    border-color: var(--accent-copper);
}

.pagination .page-number {
    background: var(--accent-copper);
    color: #fff;
    border-color: var(--accent-copper);
}

.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =========================================
   12. TAGS & CATEGORIES
   ========================================= */
.post-tags {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line-color);
}

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

.tag {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--line-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-copper);
    color: #fff;
    border-color: var(--accent-copper);
    transform: translateY(-2px);
}

/* =========================================
   13. FOOTER
   ========================================= */
.footer {
    background-color: #0d1116;
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    margin-top: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (min-width: 900px) {
    .footer__content {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 60px;
    }
}

.footer-logo {
    filter: brightness(0) saturate(100%) invert(70%) sepia(23%) saturate(686%) hue-rotate(359deg) brightness(93%) contrast(86%);
    width: 160px;
    aspect-ratio: 397 / 70;
    margin-bottom: 25px;
}

.footer-heading {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.company-address {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #e0e0e0;
}

.company-legal p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
    font-family: monospace;
}

.phone-highlight {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--accent-copper);
    margin: 5px 0 10px;
    transition: 0.3s;
}

.phone-highlight:hover {
    color: #fff;
}

.link-hover {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.link-hover:hover {
    color: var(--accent-copper);
    transform: translateX(5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.mb-40 {
    margin-bottom: 40px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 15px;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
}

@media (min-width: 900px) {
    .footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* =========================================
   14. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .post-card__title {
        font-size: 1.4rem;
    }
    
    .post-content {
        font-size: 1.05rem;
    }
    
    .post-content h2 {
        font-size: 1.8rem;
    }
    
    .post-content h3 {
        font-size: 1.5rem;
    }
    
    .post-content blockquote {
        font-size: 1.15rem;
        padding: 20px 0 20px 30px;
    }
}

/* =========================================
   11. KOENIG EDITOR SUPPORT
   ========================================= */

/* Wide images */
.kg-width-wide {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (min-width: 1200px) {
    .kg-width-wide {
        width: calc(var(--container-width) + 200px);
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-right: 0;
    }
}

/* Full width images */
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Gallery and image cards */
.kg-gallery-container,
.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card {
    margin: 30px 0;
}

.kg-image-card figcaption,
.kg-gallery-card figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
}

