﻿/* --- LOCAL FONTS --- */
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #112250;
    --text-color: #F0E9DF;
    --text-muted: #F0E9DF;
    --accent: #F0E9DF;
    --border-color: rgba(244, 237, 229, 0.24);
    --font-heading: 'General Sans', sans-serif;
    --font-ui: 'General Sans', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --container-width: 1280px; /* Szerokość kontentu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

h1, h2, h3, .srv-title, .big-num {
    font-family: var(--font-heading);
    font-weight: 700;
}

.menu-text,
.menu-close,
.menu-links a,
.menu-links .idx,
.sub-label,
.srv-meta,
.srv-subtitle,
.label,
.small-text,
.info-block h6,
.col-social h6,
.col-office h6,
.get-in-touch-cta,
.col-office .phone,
.footer-bottom,
button,
input,
textarea {
    font-family: var(--font-ui);
    font-weight: 500;
}

a { text-decoration: none; color: inherit; transition: 0.3s; cursor: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.light { font-weight: 300; }

/* Kluczowe ustawienie kontenera - logo i menu nie są na skraju */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 8px; height: 8px; background: var(--text-color); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 40px; height: 40px; border: 1px solid rgba(244, 237, 229, 0.35); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: 0.3s;
    mix-blend-mode: normal;
}
.navbar.scrolled {
    background: rgba(17, 34, 80, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    width: min(220px, 100%);
    height: auto;
}

.menu-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.menu-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.burger-icon {
    width: 30px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.burger-icon span {
    display: block;
    height: 2px;
    background: var(--text-color);
    width: 100%;
    transition: 0.3s;
}
.burger-icon span:last-child { width: 70%; }
.menu-trigger:hover .burger-icon span:last-child { width: 100%; }

/* --- FULLSCREEN MENU --- */
.hamenu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
}

.menu-close {
    position: absolute;
    top: 40px; right: 40px; /* Wewnątrz kontenera dynamicznie w JS lub relative */
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hamenu .container { position: relative; height: 100%; display: flex; align-items: center; }

.menu-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-top: 60px;
}

.menu-links ul li { margin-bottom: 10px; overflow: hidden; }
.menu-links a {
    font-size: 80px;
    font-weight: 500;
    line-height: 1.1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 237, 229, 0.55);
    text-transform: uppercase;
    display: block;
    transform: translateY(100%);
    transition: 0.3s;
}
.menu-links a:hover {
    color: var(--text-color);
    -webkit-text-stroke: 1px var(--text-color);
    transform: translateX(20px) translateY(0) !important;
}
.menu-links .idx {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    -webkit-text-stroke: 0;
    margin-right: 20px;
    vertical-align: middle;
}

.menu-info {
    max-width: 300px;
    padding-top: 20px;
}
.info-block { margin-bottom: 40px; opacity: 0; transform: translateY(20px); }
.info-block h6 { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; letter-spacing: 1px; }
.info-block p, .social-links a { font-size: 16px; line-height: 1.6; display: block; }
.social-links a { margin-bottom: 5px; }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
}
.hero-text h1 {
    font-size: clamp(40px, 3.5vw, 80px);
    line-height: 1;
    font-weight: 700;
    text-align: left;
    margin-bottom: 80px;
}
.hero-lead {
    display: block;
    line-height: 0.95;
    margin-bottom: 0.42em;
}
.hero-lines {
    display: block;
    line-height: 1.16;
}
.hero-image-wrapper {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* For parallax */
}

/* --- ABOUT SECTION --- */
.about-section { padding: 100px 0; }
.sub-label {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); display: block; margin-bottom: 20px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}
.about-title h2 {
    font-size: clamp(34px, 3vw, 60px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 1px;
}
.about-copy p {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.6;
    color: var(--text-color);
}

.services-list { border-top: 1px solid var(--border-color); }
.service-row {
    display: grid;
    grid-template-columns: minmax(160px, 20%) 1fr;
    gap: 24px;
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}
.srv-meta {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 8px;
}
.srv-content { width: 100%; }
.srv-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-ui);
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title icon"
        "subtitle icon";
    row-gap: 6px;
    column-gap: 20px;
    align-items: center;
    cursor: pointer;
    padding: 0;
}
.srv-title {
    grid-area: title;
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}
.srv-subtitle {
    grid-area: subtitle;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.4;
}
.srv-icon {
    grid-area: icon;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    font-size: 28px;
    line-height: 1;
    transition: transform 0.3s ease;
}
.srv-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    margin-top: 0;
    max-width: 980px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}
.service-row.is-open .srv-description {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 16px;
}
.service-row.is-open .srv-icon { transform: rotate(45deg); }

/* --- HORIZONTAL SCROLL PORTFOLIO (CRITICAL) --- */
.horizontal-section {
    overflow: hidden; /* Ukrywamy nadmiar poziomy */
    /* Wysokość jest nadawana przez pin GSAP */
}

.horizontal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content; /* Szerokość zależna od zawartości */
    height: 100vh; /* Wysokość pełnego ekranu */
    padding-left: calc((100vw - var(--container-width)) / 2 + 20px); /* Odsunięcie pierwszego elementu, by zaczynał się w containerze */
}

.panel {
    width: 70vw; /* Szerokość pojedynczej karty */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px; /* Odstęp między kartami */
    flex-shrink: 0;
}

.panel-img {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 30px;
}
.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.panel:hover .panel-img img { transform: scale(1.05); }

.panel-info { position: relative; }
.panel-info h3 { font-size: 32px; font-weight: 700; margin-bottom: 5px; }
.panel-info span { font-size: 14px; color: var(--text-muted); letter-spacing: 0.2px; }
.panel-info .year { float: right; }

/* --- PRINCIPLES --- */
.principles-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(17, 34, 80, 0.25);
    background: #A1887E;
    color: #112250;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.principle-box {
    border: 1px solid rgba(240, 233, 223, 0.28);
    background: var(--bg-color);
    padding: 28px 24px;
    min-height: 220px;
    color: var(--text-color);
}
.principle-box h3 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.6px;
    color: var(--text-color);
}
.principle-box p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
}

/* --- WHAT WE DO --- */
.what-we-do { padding: 120px 0; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.circle-stat {
    width: 300px; height: 300px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    margin: 0 auto;
}
.big-num { font-size: 80px; font-weight: 700; }
.label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

.services-col h3 { font-size: 50px; margin-bottom: 50px; text-transform: uppercase; }
.acc-item {
    border-bottom: 1px solid var(--border-color);
}
.acc-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-color);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 500;
}
.acc-title { font-size: 20px; }
.acc-item .plus { font-size: 24px; transition: transform 0.3s ease; }
.acc-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    margin-top: 0;
    padding-right: 24px;
    font-size: 16px;
    line-height: 1.7;
    transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease, padding-bottom 0.3s ease;
}
.acc-item.is-open .acc-description {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    margin-top: -4px;
    padding-bottom: 26px;
}
.acc-item.is-open .plus { transform: rotate(45deg); }

/* --- GET IN TOUCH SECTION --- */
.get-in-touch-section { padding: 120px 0; background: var(--bg-color); color: var(--text-color); border-top: 1px solid var(--border-color); }
.get-in-touch-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.get-in-touch-title h3 {
    font-size: clamp(32px, 4vw, 56px);
    text-transform: uppercase;
    margin-top: 10px;
}
.get-in-touch-title .muted { color: var(--text-muted); margin-top: 15px; font-size: 18px; }
.get-in-touch-info p { margin-bottom: 16px; font-size: 18px; }
.get-in-touch-info a { color: var(--text-color); border-bottom: 1px solid var(--border-color); }
.get-in-touch-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 26px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}
.get-in-touch-cta:hover { background: var(--text-color); color: var(--bg-color); }

/* --- CONTACT SECTION --- */
.contact-section { padding: 150px 0; background: #A1887E; }
.contact-header { text-align: center; margin-bottom: 60px; }
.contact-header h3 { font-size: 60px; text-transform: uppercase; }

.contact-form { max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 30px; margin-bottom: 40px; }
.input-group { width: 100%; margin-bottom: 40px; }
.input-group input, .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-color);
    font-size: 18px;
    font-family: var(--font-ui);
    font-weight: 500;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: var(--text-color); }
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--text-muted); }

.form-submit { text-align: center; margin-top: 60px; }
.circle-btn {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.circle-btn:hover { background: var(--text-color); color: var(--bg-color); transform: scale(1.1); }

/* --- FOOTER --- */
footer { padding-top: 100px; padding-bottom: 30px; }
.footer-cta { margin-bottom: 100px; }
.small-text { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px; }
.big-mail { font-size: clamp(30px, 5vw, 70px); font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.big-mail:hover { border-bottom-color: var(--text-color); }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.col-logo h3 { font-size: 30px; }
.col-social h6, .col-office h6 { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 1px; }
.col-social ul li { margin-bottom: 10px; }
.col-social a:hover { padding-left: 5px; color: var(--text-color); }
.col-office p { margin-bottom: 20px; font-size: 18px; color: var(--text-muted); }
.col-office .phone { font-size: 20px; font-weight: 500; text-decoration: underline; }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 30px; display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.footer-bottom .links a { margin-right: 20px; }
.footer-bottom .crafted { color: var(--text-muted); }

/* --- SCROLL TO TOP --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-color);
    background: rgba(17, 34, 80, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1200;
    display: grid;
    place-items: center;
    color: var(--text-color);
}
.scroll-progress { width: 64px; height: 64px; transform: rotate(-90deg); }
.progress-track {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 6;
}
.progress-indicator {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transition: stroke-dashoffset 0.2s linear;
}
.scroll-arrow {
    position: absolute;
    font-size: 18px;
    transform: translateY(-1px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-content { flex-direction: column; }
    .menu-links a { font-size: 40px; }
    .menu-info { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; }
    
    .two-col-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    .get-in-touch-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: 1fr; }
    .principle-box { min-height: auto; }
    .form-row { flex-direction: column; gap: 0; }
    .hero-text h1 { font-size: 36px; }
    
    .panel { width: 90vw; } /* Mobile horizontal cards */
    .service-row { grid-template-columns: 1fr; gap: 14px; }
    .service-row:hover { padding-left: 0; }
    .srv-meta { padding-top: 0; }
    .srv-title { font-size: 24px; }
    .srv-subtitle { font-size: 15px; }
}


