/* ---- Phone Layouts ---- */
.portfolio-phone,
.offer-phone {
    display: none;
}

/* ---- Highlight style: ==text== (green box). Bold style: **text** (plain bold). ---- */
strong[style*="color:#000000"] {
    background: var(--secondary);
    padding: 2px 6px;
}

/* ============================================
   ATTENTION DRAWING STUDIO
   Base + Menu
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #000000;
    --secondary: #c2fcc0;
    --bg-white: #FFFFFF;
    --bg-black: #000000;
    --text: #000000;
    --font: 'Lexend', sans-serif;
    --canvas: 1440px;
    --content: calc(100% - 240px);
    --margin: 120px;
    --cols: 4;
    --gap: 12px;
    --section-gap: 80px;
}

/* ---- Reset ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   MENU / HEADER
   ============================================ */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--margin);
    z-index: 1000;
}

/* Container utility */
.container,
.wave-content {
    width: calc(100% - 240px);
    margin: 0 120px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    width: 100%;
    height: 80vh;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 120px;
}

.hero-overlay .hero-title {
    display: inline-block;
}

.hero-title {
    font-weight: 800;
    font-size: 52px;
    line-height: 1.25;
    color: var(--primary);
    max-width: 560px;
    margin: 0;
}

.hero-line {
    display: inline-block;
    background: var(--secondary);
    padding: 4px 16px;
}

.menu-logo {
    display: flex;
    align-items: center;
}

.menu-logo img {
    height: 32px;
    width: auto;
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    text-transform: lowercase;
}

.menu-nav a {
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.menu-nav a.active,
.menu-nav a.menu-contact.active {
    background: var(--secondary);
}

.menu-nav a:hover:not(.active) {
    background: rgba(194, 252, 192, 0.3);
}

.menu-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    margin-left: 8px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.lang-btn:hover {
    opacity: 0.7;
}

.lang-btn.lang-active {
    opacity: 1;
}

.lang-sep {
    opacity: 0.3;
}

/* ---- Hamburger Toggle ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   SECTION 2: WAVE CTA
   ============================================ */
.wave-cta {
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: -30px;
    z-index: 10;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.wave-content {
    position: relative;
    z-index: 1;
    width: var(--content);
    margin: 0 auto;
    height: 100%;
}

.wave-inner {
    width: 100%;
    height: 100%;
    display: flex;
}

.wave-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
}

/* Left column */
.wave-col-left {
    align-items: flex-start;
    justify-content: space-between;
    padding: 50px 40px 50px 0;
}

.wave-arrow {
    width: 100%;
    height: auto;
}

@media (min-width: 1801px) {
    .wave-cta {
        height: 480px;
    }
    .wave-arrow {
        width: 60%;
        height: auto;
    }
}

.btn--rounded {
    display: inline-block;
    padding: 18px 40px;
    margin: 0 0 30px 30px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.btn--rounded:hover {
    background: #a8e0a6;
}

/* Right column */
.wave-col-right {
    justify-content: center;
    padding: 40px 0 40px 40px;
}

.wave-inner-stacked {
    display: none;
}

.wave-arrow-stacked {
    width: 120px;
    height: auto;
    margin: 24px 0;
}

.btn--stacked {
    align-self: flex-start;
}

.wave-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 12px;
}

.wave-text-bold {
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 0;
    margin-top: 8px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.lightbox.active {
    display: block;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-count {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 3;
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
    margin-top: 40px;
    background: #FFFFFF;
    padding: 0 120px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 10px;
    width: 100%;
}

.p-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.p-item--img {
    padding: 0;
    cursor: pointer;
    position: relative;
}

.p-num {
    font-size: 11px;
    font-weight: 700;
    color: #bbb;
}

.p-02-img {
    background-image: url('../images/portfolio/webp/gallery_1_rescoop25_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery_1_rescoop25_thumb.webp') type('image/webp'), url('../images/portfolio/gallery_1_rescoop25_thumb.jpg'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
}

.p-04-img {
    background-image: url('../images/portfolio/webp/gallery1_online_conference_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery1_online_conference_thumb.webp') type('image/webp'), url('../images/portfolio/gallery1_online_conference_thumb.png'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 4;
    grid-row: 1;
}

.p-03-text {
    background-color: #000000 !important;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
}

.p-01 { grid-column: 1; grid-row: 1; }
.p-02-img { grid-column: 2; grid-row: 1; }
.p-03-text { grid-column: 3; grid-row: 1; }
.p-04-img { grid-column: 4; grid-row: 1; }

.p-05-img {
    background-image: url('../images/portfolio/webp/gallery1_doradcy_plansze_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery1_doradcy_plansze_thumb.webp') type('image/webp'), url('../images/portfolio/gallery1_doradcy_plansze_thumb.png'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 1;
    grid-row: 2;
}

.p-06-img {
    background-image: url('../images/portfolio/webp/gallery1_webinar_note_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery1_webinar_note_thumb.webp') type('image/webp'), url('../images/portfolio/gallery1_webinar_note_thumb.png'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 2;
    grid-row: 2;
}

.p-vert {
    grid-column: 2 !important;
    grid-row: 3 / span 2 !important;
    padding: 0 !important;
}

.p-09-text { grid-column: 1; grid-row: 3; }

.p-vert {
    grid-column: 2 !important;
    grid-row-start: 3 !important;
    grid-row-end: 5 !important;
    padding: 0 !important;
}

.p-big {
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
    padding: 0;
}

.p-13-img {
    background-image: url('../images/portfolio/webp/gallery_1_golab_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery_1_golab_thumb.webp') type('image/webp'), url('../images/portfolio/gallery_1_golab_thumb.jpg'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 1;
    grid-row: 4;
}

.p-15-img {
    background-image: url('../images/portfolio/webp/gallery1_videoexplainer_thumb.webp'); background-image: image-set(url('../images/portfolio/webp/gallery1_videoexplainer_thumb.webp') type('image/webp'), url('../images/portfolio/gallery1_videoexplainer_thumb.png'));;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    grid-column: 3;
    grid-row: 4;
}

.p-16-text { grid-column: 4; grid-row: 4; }

/* p-big and p-vert use grid-area from template */

.p-03-text {
    background-color: #000000 !important;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-03-text span {
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}

.p-03-text span strong {
    font-weight: 800;
}

.p-white-text {
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 22px);
    line-height: 1.4;
    color: #FFFFFF;
    text-align: left;
    margin: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.p-white-text strong {
    font-weight: 800;
}

.p-text-box {
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 22px);
    line-height: 1.4;
    color: #FFFFFF;
    text-align: left;
    margin: 0;
}

.p-text-box strong {
    font-weight: 800;
}

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

/* Cell 01 - Title + Arrow */
.p-cell.p-01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.p-title-box {
    width: 100%;
    padding: 20px 10px 0;
    text-align: center;
}

.p-title {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: var(--primary);
    text-align: center;
    margin: 0;
}

.p-arrow {
    width: 70%;
    height: auto;
    max-height: 40%;
    margin-bottom: 30px;
}


/* ============================================
   RESPONSIVE - TABLET (768px - 1023px)
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        margin: 0;
    }
    .hero-overlay {
        padding: 0 10vw;
    }
    .hero-title {
        font-size: 42px;
        max-width: 460px;
    }
    .hero-line {
        padding: 3px 12px;
    }
    .wave-cta {
        height: auto;
        min-height: 380px;
        overflow: visible;
        margin-top: -10vw;
    }
    .wave-content {
        width: 100%;
        margin: 0;
        padding: 30px 0 30px 0;
        height: auto;
    }
    .wave-inner {
        display: none;
    }
    .wave-inner-stacked {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 10vw;
    }
    .wave-text {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: left;
    }
    .wave-arrow-stacked {
        width: 120px;
        margin: 20px auto 40px;
        align-self: center;
    }
    .btn--stacked {
        margin: 0 auto;
        align-self: center;
    }
    /* Portfolio tablet styles moved to portfolio.css */
    .p-title {
        font-size: 36px;
    }
    .menu-nav {
        font-size: 14px;
    }
    .menu-nav a {
        padding: 8px 14px;
    }
    .portfolio {
        padding: 0 5vw;
    }
    .about {
        padding: 0 5vw;
    }
    .about-inner {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        min-height: auto;
    }
    .about-col-img {
        width: 100%;
        min-height: 400px;
        order: -1;
    }
    .about-col-text {
        padding: 30px 0;
        display: block;
        height: auto;
    }
    .testimonials {
        padding: 0 5vw;
    }
    .contact {
        padding: 0 5vw;
    }
    .footer {
        padding: 40px 5vw;
    }
}

/* ============================================
   RESPONSIVE - PHONE (< 768px)
   ============================================ */
@media (max-width: 576px) {
    /* ---- Navbar ---- */
    .menu {
        padding: 12px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-logo img {
        height: 28px;
    }
    .menu-nav {
        position: fixed;
        inset: 0;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 16px;
        font-size: 20px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .menu-nav.active {
        opacity: 1;
        pointer-events: auto;
    }
    .menu-nav a {
        padding: 14px 30px;
        width: 80%;
        text-align: center;
    }
    .menu-lang {
        margin-top: 20px;
    }

    /* ---- Hero ---- */
    .hero {
        height: 70vh;
        min-height: 400px;
        margin: 0;
    }
    .hero-title {
        font-size: 32px;
        max-width: 340px;
    }
    .hero-line {
        padding: 3px 10px;
    }
    .hero-overlay {
        bottom: 60px;
        left: 0;
        right: 0;
        padding: 0 5vw;
    }

    /* ---- Wave CTA ---- */
    .wave-cta {
        height: auto;
        min-height: 300px;
        margin-top: -10vw;
    }
    .wave-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .wave-inner {
        display: none;
    }
    .wave-inner-stacked {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10vw 5vw;
    }
    .wave-text {
        font-size: 15px;
        margin-bottom: 10px;
        text-align: left;
    }
    .wave-arrow-stacked {
        width: 100px;
        margin: 18px auto 36px;
        align-self: center;
    }
    .btn--stacked {
        margin: 0 auto;
        align-self: center;
    }

    /* ---- Portfolio ---- */
    .portfolio {
        padding: 0;
    }
    .portfolio-grid {
        display: none;
    }
    .portfolio-phone {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .p-phone-img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }
    .p-phone-tall {
        min-height: 500px;
        object-fit: cover;
    }
    .p-phone-text {
        padding: 40px 20px;
        text-align: center;
    }
    .p-phone-dark {
        background: #000000;
    }
    #lightbox {
        display: none !important;
    }

    /* ---- About ---- */
    .about {
        padding: 0 !important;
    }
    .about-inner {
        display: block !important;
        min-height: auto;
    }
    .about-col-img {
        width: 100%;
        min-height: 350px;
        display: block;
    }
    .about-col-text {
        padding: 30px 20px;
        display: block;
        height: auto;
    }

    /* ---- Testimonials ---- */
    .testimonials {
        padding: 0 20px;
        margin-top: 30px;
    }
    .testimonials-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .test-title-col {
        padding-top: 20px;
        padding-bottom: 16px;
    }
    .test-title {
        font-size: 24px;
    }

    /* ---- Offer ---- */
    .offer {
        margin-top: 0;
        padding: 40px 0 0;
    }

    /* ---- Contact ---- */
    /* Phone contact styles in portfolio.css */

    /* ---- Footer ---- */
    .footer {
        padding: 30px 5vw !important;
    }
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .footer-col {
        align-items: center !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
        max-width: 280px;
    }
    .offer-grid {
        grid-template-columns: 1fr;
    }
    .offer-cell {
        min-height: auto;
        padding: 16px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
