/* @import url('./how-i-work.css'); */
/* =========================================
   GLOBAL CSS VARIABLES & FONTS
   ========================================= */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('/packages/katarzyna_hoffmann/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}

:root {
    --color-primary: #1b2a3a;       /* Dark Navy */
    --color-accent: #c91535;        /* Red */
    --color-sea-blue: #0077be;
    --color-text-main: #333333;     /* Main Body Text */
    --color-text-muted: #666666;    /* Muted Text / Descriptions */
    --color-text-light: #888899;    /* Label Subtitles */
    --color-bg-light: #f9f9f9;      /* Light Grey Section BG */
    --color-bg-footer-top: #f4f6f8; /* Contact Footer BG */
    --color-bg-footer: #1b2a3a;     /* Dark Footer BG */
    --color-white: #ffffff;
    --separator-color: var(--color-accent); /* Default separator */
}

.icon-sea-blue {
    stroke: var(--color-sea-blue) !important;
}

/* =========================================
   SECTION BACKGROUND & SEPARATORS
   ========================================= */
.home-intro {
    --separator-color: var(--color-accent);
}

.home-why {
    --separator-color: var(--color-primary);
}

.home-services {
    --separator-color: var(--color-white);
}

.feature-col {
    --separator-color: var(--color-white);
}

/* =========================================
   BASIC RESET & TYPOGRAPHY
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--color-text-main);
    overflow-x: hidden;
}

/* Global Heading Font Rule */
h1, h2, h3, h4, h5, h6,
.sitename,
.obszary-title,
.po-co-title {
    font-family: 'Times New Roman', Georgia, serif;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--color-bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.sitename {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.1;
}

.subtitle {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle .dot {
    color: var(--color-accent);
    margin: 0 6px;
    font-size: 14px;
}

/* =========================================
   NAVIGATION STYLES
   ========================================= */
.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    border-bottom: 2px solid var(--color-accent);
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* =========================================
   INTRO & OUTRO LAYOUTS
   ========================================= */
.intro-layout, .outro-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content, .outro-content {
    flex: 1;
}

.intro-media, .outro-media {
    flex: 1;
}

.intro-media .am-block-image img,
.outro-media .am-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.about-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.about-media .am-block {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
}

.about-media .am-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.intro-content h1::after,
.intro-content h2::after,
.outro-content h1::after,
.outro-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: var(--separator-color);
}

.intro-content .am-button, .outro-content .am-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.intro-content .am-button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.intro-content .am-button::after {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transition: stroke 0.3s ease;
}

.intro-content .am-button:hover::after {
    filter: brightness(0) invert(1);
}

/* =========================================
   PO-CO SECTION
   ========================================= */
.po-co {
    padding: 60px 20px;
    background-color: var(--color-bg-light);
}

.po-co-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--color-primary);
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.col-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.col-item svg {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
}

.col-text h3 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--color-primary);
}

.col-text p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   SPLIT DARK SECTION
   ========================================= */
.split-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 20px;
}

.split-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.split-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.split-col:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    padding-right: 50px;
}

.split-col:last-child {
    padding-left: 10px;
}

.split-col h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0;
}

.split-col h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: var(--color-white);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--color-white);
}

.list-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
}

/* =========================================
   OBSZARY PRACY SECTION
   ========================================= */
.obszary {
    padding: 80px 20px;
    background-color: var(--color-bg-light);
}

.obszary-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--color-primary);
}

.obszary-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.obszar-card {
    background: var(--color-white);
    padding: 25px 20px;
    border-radius: 8px;
    flex: 1 1 calc(20% - 20px);
    min-width: 220px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.obszar-card svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
    margin-top: 2px;
}

.card-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.obszar-card h3 {
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--color-primary);
    line-height: 1.3;
}

.obszar-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
    width: 100%;
}

/* =========================================
   CONTACT FOOTER SECTION
   ========================================= */
.contact-footer {
    background-color: var(--color-bg-footer-top);
    padding: 70px 20px;
    width: 100%;
}

.contact-info-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-lead {
    max-width: 320px;
}

.contact-channels {
    display: flex;
    gap: 30px;
    align-items: center;
}

.channel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-text span {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--color-text-light);
    font-weight: bold;
}

.channel-text a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-bg-footer);
    color: var(--color-white);
    padding: 40px 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-rights {
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.privacy-link {
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--color-white);
}

.site-footer .brand .sitename {
    font-size: 1.3rem;
    color: var(--color-white);
}

.site-footer .subtitle {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.site-footer .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================================
   TABLET RESPONSIVE (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .header-inner {
        padding: 15px 25px;
    }

    .intro-layout, .outro-layout {
        gap: 35px;
        padding: 0px 20px;
    }

    .obszar-card {
        flex: 1 1 calc(33.333% - 20px);
    }

    .split-grid {
        gap: 30px;
    }

    .split-col:first-child {
        padding-right: 30px;
    }
}

/* =========================================
   MOBILE RESPONSIVE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Header & Mobile Nav */
    .header-inner {
        padding: 15px 20px;
    }

    .site-logo {
        height: 60px;
    }

    .sitename {
        font-size: 22px;
    }

    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 2000;
    }

    .nav-toggle-label span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--color-primary);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1500;
    }

    .main-nav a {
        font-size: 20px;
    }

    .nav-toggle:checked ~ .main-nav {
        transform: translateY(0);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Split Section: Stack vertically & remove divider */
    .split-grid {
        flex-direction: column;
        gap: 40px;
    }

    .split-col:first-child {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .split-col:last-child {
        padding-left: 0;
    }

    /* Obszary Cards: 1 column */
    .obszar-card {
        flex: 1 1 100%;
    }

    /* Contact Footer: Stack vertically */
    .contact-info-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .contact-channels {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Site Footer: Stack vertically & center */
    .footer-inner {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-rights {
        text-align: center;
    }
    
    .privacy-link {
        display: inline-block;
        margin-top: 10px;
    }

    .site-footer .brand {
        flex-direction: column;
        text-align: center;
    }

    /* =========================================
       EDGE-TO-EDGE FLUSH MEDIA ON MOBILE
       ========================================= */

    /* Remove padding/margins from parent section layouts on mobile */
    .intro-layout,
    .outro-layout {
        flex-direction: column;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 20px;
    }

    /* Keep text content padded inside while media stays flush */
    .intro-content,
    .outro-content {
        padding: 20px 20px;
        width: 100%;
    }

    /* Force media blocks to span 100% full bleed with zero margins/padding */
    .intro-media,
    .outro-media,
    .about-media {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Remove border-radius and default Automad block margins for total bleed */
    .intro-media .am-block,
    .outro-media .am-block,
    .about-media .am-block,
    .intro-media figure,
    .outro-media figure,
    .about-media figure,
    .intro-media .am-block-image,
    .outro-media .am-block-image,
    .about-media .am-block-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Force images flush with zero rounding */
    .intro-media img,
    .outro-media img,
    .about-media img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
    }
}