/* Inter */
@font-face {
  font-family: "Inter";
  src: url("../ASSETS/Inter-VariableFont_opsz\,wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

/* Saira */
@font-face {
  font-family: "Saira";
  src: url("../ASSETS/Saira-VariableFont_wdth\,wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-family: "Saira", sans-serif;
    font-weight: 400;
    scroll-behavior: smooth;
}

body {
    background-color: #171717;
}

@media (min-width: 2000px) {
    html, body {
        font-size: 1.2rem;
    }
}

/* ---------------------------------------------------------------- START -> CANVAS i STATIC */

#threeCanvasContainer {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;   
    width: 80%;
    height: 95vh;
    overflow: hidden;
    border: 1rem solid #171717;
    border-radius: 50px;
}

canvas#threeCanvas {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;       
    width: 100% !important;    
    height: 100% !important;  
    display: block;    
}

#static {
    display: none;
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;   
    width: 100%;
    height: 100%;
    border-radius: 50px;
    object-fit: cover;
    object-position: center;
}

#toggleAnimation {
    z-index: 1;
    position: absolute;
    top: 2rem;
    left: 22%;  
    font-family: "Saira", sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 0;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s ease-out;
}

#toggleAnimation:hover {
    opacity: 1;
}

/* ---------------------------------------------------------------- KONIEC -> CANVAS i STATIC */
/* ---------------------------------------------------------------- START -> EKRAN ŁADOWANIA */

#loadingScreen {
    z-index: -1;           
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0A; 
    color:white;
    flex-direction: column;
    border-radius: 34px;
    border: 0;
}

#loadingScreen[hidden] {
    display: none;
}

#circle {
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { 
    to { 
        transform: rotate(360deg); 
    }
}

/* ---------------------------------------------------------------- KONIEC -> EKRAN ŁADOWANIA */
/* ---------------------------------------------------------------- START -> MENU NAWIGACJI (DESKTOP) */

nav {
    background-image: linear-gradient(0deg ,#373737 10%, #262626 50%, #171717 90%); 
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    display: flex;
    flex-direction: column;
    padding: 4rem 0;
    border-right: 1px solid #373737;
}

#logoDiv {
    text-align: center;
}

img#logo {
    width: 10vw;
    height: auto;
}

ul.nawigacja {
    display: flex;
    list-style-type: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;   
}

.nawigacja li a {
    display: flex;
    text-decoration: none;
    color: #a3a3a3;
    padding: 1rem 0 1rem 1rem;
    margin: 0 1vw;
    border-bottom: 1px solid #525252;
    gap: 1rem;
    transition: 0.3s ease-in-out;
    align-items: center;
}

.nawigacja a:hover, .nawigacja a.active {
    color: white;
    border-bottom: 1px solid white;
    padding: 1rem 0 1rem 1rem;
    gap: 1rem;
    filter: drop-shadow(0 0 25px white);
}

a .ikonaMenu {
    height: 1.2em;
    width: auto;
    filter: brightness(0.5);
    transition: 0.3s ease-in-out;
}

a:hover .ikonaMenu, a.active .ikonaMenu {
  filter: brightness(1);
}

/* ---------------------------------------------------------------- KONIEC -> MENU NAWIGACJI */
/* ---------------------------------------------------------------- START -> KONTA SPOŁECZNOŚCIOWE */

.social {
    background-color: #171717;
    border-radius: 0 0 0 50px;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    list-style-type: none;
    flex-direction: row;
    gap: 2rem;
    margin: 1rem 1rem 0 0;
    padding: 1rem 2rem;   
}

.social img {
    height: 2rem;
    width: auto;
    filter: brightness(0.6);
    transition: 0.3s ease-in-out;
} 

.social a:hover img {
    filter: brightness(1);
    transition: 0.3s ease-in-out;
}

/* ---------------------------------------------------------------- KONIEC -> KONTA SPOŁECZNOŚCIOWE */
/* ---------------------------------------------------------------- START -> MAIN */

main {
    margin-left: 20%;
    width: 80%;
    padding: 1rem 1rem 2rem 1rem;
    color: white;
}

#heroSection {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#heroDiv {
    background-image: linear-gradient(180deg, transparent, #d4d4d4a2 20%, #d4d4d4 100%);
    color: #171717;
    padding: 0 1rem;
    font-family: "Inter", sans-serif;
    translate: 0 1rem;
    border-radius: 15px;
}

h1#contactHeading {
    font-size: 4.5vw;
    text-align: left;
    line-height: 1;
    font-weight: 700;
}

p#tekstKontaktu {
    font-size: 1.5vw;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

#squaresList { 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.squareDiv {
    background-color: #171717;
    color: white;
    width: 95%;
    height: 100%;
    padding: 1rem 0;
    border-radius: 26px;
    margin-top: 1rem;
    font-size: 1.1rem;
    align-content: center;
}

.ikonaKontaktu {
    width: 2.5vw;
    height: auto;
}

li.contactSquares {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 30%;    
    color: #171717;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    border: 1px solid #171717;
    border-radius: 34px;
    white-space: normal;
    font-family: "Inter", sans-serif;
}

li.contactSquares p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
}

#extra {
    width: 100%;
    background-color: #d4d4d4;
    display: flex;
    padding: 1rem 2rem;
    margin: 0;
    color: white;
    border: 0;
    border-radius: 0 0 50px 50px;
}

section#mainSection {
    background-color: #262626;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    color: white;
    border: 0;
    border-radius: 40px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0 20px #000;
}

section#TimeMapsection {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 1rem;
}

#timeDiv h2 {
    font-size: 1.5rem;
    padding-left: 1rem;
    margin-bottom: 2rem;
    border-left: 5px solid #af1e1c;
    border-radius: 5px;
}

.dniGodziny {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.dniGodziny li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #525252 ;
}


.dniGodziny .zamknięte .godzina {
    font-weight: 600;
}

/* mapa */
iframe#mapa {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 26px;
}

hr {
    border: 1px solid #525252;
    margin: 4rem 0;
}


/* ---------------------------------------------------------------- KONIEC -> MAIN */
/* ---------------------------------------------------------------- START -> FORMULARZ */

#descriptionDivSec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

img#mailPic {
    width: 70%;
    height: auto;
    /* box-shadow: 0 0 10px #171717; */
}

#formSection {
    color: white;
    border-radius: 50px;
    padding: 1rem;
}

#optional {
    display: inline;
    margin-bottom: 0;
}

#optional i {
    color: #d4d4d4;
    font-size: 0.9rem;
}

#formMainDiv {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

#formSection h2 {
    text-align: left;
    text-transform: uppercase;
    border-left: 5px solid #af1e1c;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

#formSection p {
    line-height: 1.8;
    text-align: justify;
}

form[name="contact"] {
    background: radial-gradient(circle,  #801614 0%, #373737 100%);
    border-radius: 26px;
    border: 1px solid #525252;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    margin: 1rem 0;
    box-shadow: 0 0 20px #000;
}

form[name="contact"] span {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

form[name="contact"] label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inputDiv {
    border-radius: 10px;
    width: 100%;
    /* box-shadow: 0 0 10px #171717; */
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #525252;
}

.formInput {
    padding: 0.5rem;
    background: #fafafa;
    border-radius: 10px;
    border: 0;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    transition: 0.15s ease;
    width: 100%;
}

.phoneField {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
}

.phoneField select {
    width: 40%;
    border-radius: 10px 0 0 10px;
    border-right: 0;
    cursor: pointer;
}

.phoneField input {
    width: 100%;
    border-left: 1px solid #171717;
    border-radius: 0 10px 10px 0;
}

option:hover {
    background-color: #af1e1c !important;
}

textarea.formInput {
    height: 200px;
    min-height: 200px;
    max-height: 500px;
    resize: vertical;
}

.formInput:focus {
    outline: 3px solid #af1e1c;
    background: #fff;
}

#captchaError {
    display: none;
    color: #af1e1c;
    margin-top: 1rem;
}

#submitDiv {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

#submitButton {
    color: #171717;
    /* background-image: linear-gradient(45deg, #801614 0%, #af1e1c 100%); */
    background-color: #fafafa;
    border-radius: 24px;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    border: 1px solid transparent;
    width: 200px;
    transition: 0.3s ease-in-out;   
    cursor: pointer;
}

#submitButton:hover {
    color: #f5f5f5;
    background-color: #af1e1c;
    border: 1px solid #d4d4d4; 
    transition: 0.2s ease-in;  
}

.message, .messageGreen {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f5f5f5;
    font-weight: 500;
    border: 0;
    border-radius: 24px;
}

.message {
    color: #801614;
}

.messageGreen {
    color: #1a7f32;
}

.message img, .messageGreen img {
    width: 2rem;
    height: auto;
}

/* ---------------------------------------------------------------- KONIEC -> FORMULARZ */
/* ---------------------------------------------------------------- START -> STOPKA */

footer {
    margin-left: 20%;
    margin-top: 4rem;
    width: 80%;
    color: #d4d4d4;
    background-color: #171717;
    font-weight: 300;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    pointer-events: auto;
}

.footerDiv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    overflow-wrap: break-word;
    align-items: start;
    align-content: start;
    justify-items: center;
    justify-content: center;
    column-gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid #262626;
}

.footerDivDiv {
    text-align: left;
    color: #d4d4d4;
}

.footerDivDiv p {
    padding: 0.5rem 0;
    color: #d4d4d4;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    gap: 0.5rem;
}

.footerDivDiv b {
    font-weight: 600;
}

.footerHeader {
    font-weight: 600;
    font-size: 1.1rem;
}

#footerIconsSpan {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.footerIcon {
    width: 1.8rem;
    height: auto;
    margin-top: 2rem;
}

.footerIcon:hover {
    opacity: 0.7;
}

#copyrightDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 0;
    border-bottom: 1px solid #262626;
}

#copyrightDiv a {
    color:#d4d4d4;
    text-decoration: none;
}

#copyrightDiv a:hover {
    color:#af1e1c;
    text-decoration: underline;
}

/* ---------------------------------------------------------------- KONIEC -> STOPKA */
/* ---------------------------------------------------------------- START -> MENU MOBILE */

#nawigacjaMobile, .hamburger {
    display: none;
}

/* ---------------------------------------------------------------- KONIEC -> MENU MOBILE */
/* ---------------------------------------------------------------- START -> RESPONSYWNOŚĆ */
/* TABLET: max-width 1024px */
@media (max-width: 1024px) {

    #threeCanvasContainer {
        width: 100%;
        border: 0;
        padding: 0;
    }

    canvas#threeCanvas {
        max-width: 100%;
        padding: 1rem;
        border-radius: 50px;
    }

    #loadingScreen {
        inset: 1rem;
    }

    #toggleAnimation {
        top: 2rem;
        left: 14%;
        padding: 1rem;
    }

    .social {
        margin: 0;
        padding: 2rem 2rem 1rem 2rem;
        gap: 3rem;
    }

    /* MENU - HAMBURGER */
    .hamburger {
        display: inline-flex;
        position: fixed;
        top: 2rem;
        left: 0;
        z-index: 9999;
        background: #171717;
        padding: 0.5rem 1rem 0.5rem 1.5rem;
        border-radius: 0 18px 18px 0;
        cursor: pointer;
        box-shadow: 0 0 15px #171717;
        pointer-events: auto;
    }

    .hamburger::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -20px;
        width: 20px;
        height: 20px;
        background: transparent;
        border-top-left-radius: 20px;
        box-shadow: -10px -10px 0 10px #171717;
    }

    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        top: -20px;
        width: 20px;
        height: 20px;
        background: transparent;
        border-bottom-left-radius: 30px;
        box-shadow: -10px 10px 0 10px #171717;
    }

    #hamburgerIcon {
        width: 36px;
        height: auto;
        padding: 0.2rem;
    }

    /* MENU */
    nav {
        position: fixed;
        left: 0;
        height: 100dvh;
        overflow: auto;
        width: 80vw;
        max-width: 360px;
        transform: translateX(-100%);
        transition: transform 220ms ease;
        z-index: 1000;
    }

    ul.nawigacja {
        margin-top: 1rem;
    }

    #nawigacjaMobile:checked ~ nav {
        transform: translateX(0);
    }

    .nawigacja li a {
        margin: 0 1rem;
    }

    img#logo {
        width: 10rem;
        height: auto;
        margin: 2rem 0;
    }
    
    .ikona {
        width: 4rem;
        height: auto;
    }

    /* MAIN */
    main {
        width: 100%;
        margin: 0;
    }

    section#mainSection {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    #heroDiv {
        background-image: linear-gradient(180deg, transparent 0%, #d4d4d4ea 30%, #d4d4d4 100%);
        translate: 0 0;
        border-radius: 0;
    }

    #heroSection {
        height: 100vh;
    }

    h1#contactHeading {
        font-size: 3.5rem;
    }

    p#tekstKontaktu {
        font-size: 1.2rem;
    }

    li.contactSquares {
        width: 30%;
        padding: 0.5rem;
    }

    .squareDiv {
        height: 100%;
        width: 100%;
        padding: 1rem 0.5rem;
        margin-top: 0.5rem;
        align-content: center;
        font-size: 1rem;
    }

    li.contactSquares p {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .ikonaKontaktu {
        width: 2rem;
    }

    section#TimeMapsection {
        gap: 1rem;
    }

    #timeDiv h2, #formSection h2 {
        font-size: 1.2rem;
    }

    ul#daneKontaktowe li {
        padding: 0 0.5rem;
        
    }

    .dniGodziny {
        padding: 0.5rem;
    }

    section#TimeMapsection {
        grid-template-columns: 1fr;
    }

    div#mapaDiv {
        height: 400px;
    }

    #submitButton {
        font-family: "Saira", sans-serif;
        width: 100%;
    }

    /* STOPKA */
    footer {
        width: 100%;
        margin-left: 0;
    }

    #formMainDiv {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #descriptionDivSec {
        gap: 1rem;
    }
    
    img#mailPic{
        width: 40%;
        height: auto;
    }
}

@media (max-width: 830px) { /* TELEFON: max-width 780px */

    /* STOPKA */
    .footerDiv {
        justify-items: left;
        padding: 3rem;
        row-gap: 1rem;
    }
}

/* TELEFON: max-width 600px */
@media (max-width: 600px) {

    html, body {
        height: 100%;
        margin: 0;
        font-size: 0.9rem;
        font-weight: 400;
    }

    canvas#threeCanvas, #loadingScreen, #extra, #toggleAnimation {
        display: none;
    }

    #threeCanvasContainer {
        position: static;
        display: block;
        width: 100%;
        height: 50%;
        object-fit: cover;
        object-position: center;
        translate: 0 3rem;
        border: 0;
        border-radius: 0;
        padding: 0.5rem;
    }

    #static {
        position: static;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
        padding: 0;
    }

    .social {
        position: absolute;
        top: 0;
        left: 0.5rem;
        right: 0.5rem;
        gap: 2rem;
        justify-content: flex-end;
        padding: 2rem;
        border-radius: 0 18px 18px 0;
        box-shadow: 0 0 15px #171717;
    }

    .social::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -18px;
        width: 18px;
        height: 18px;
        background: transparent;
        border-top-left-radius: 18px;
        box-shadow: -10px -10px 0 10px #171717;
    }

    /* MENU - HAMBURGER */
    .hamburger {
        display: inline-flex;
        position: fixed;
        top: 1.2rem;
        left: 0;
        z-index: 9999;
        background: #171717;
        padding: 0.5rem 1rem 0.5rem 1.5rem;
        border-radius: 0 18px 18px 0;
        cursor: pointer;
        box-shadow: 0 0 15px #171717;
        pointer-events: auto;
    }

    .hamburger::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -20px;
        width: 20px;
        height: 20px;
        background: transparent;
        border-top-left-radius: 20px;
        box-shadow: -10px -10px 0 10px #171717;
    }

    .hamburger::after {
        content: "";
        position: absolute;
        left: 0;
        top: -20px;
        width: 20px;
        height: 20px;
        background: transparent;
        border-bottom-left-radius: 20px;
        box-shadow: -10px 10px 0 10px #171717;
    }

    /* TREŚĆ */
    main {
        width: 100%;
        margin: 0 0 5rem 0;
        padding: 0 0.5rem;
    }

    #heroSection {
        height: auto;
        flex-direction: column;
        background-color: #d4d4d4;
        justify-content: flex-start;
        border: 1px solid #171717;
        border-radius: 16px;
        padding: 0.5rem;
        gap: 1rem;
        line-height: 1.5;
        translate: 0 -3rem;
        /* box-shadow: 0 -2px 15px #171717; */
    }

    #heroDiv {
        padding: 0;
        border-radius: 34px;
    }

    h1#contactHeading {
        font-size: 2rem;
        color: #1b1a19;
        text-transform: uppercase;
        padding: 0.5rem;
        font-weight: 800;
    }

    li.contactSquares p {
        font-size: 1.2rem;
        font-weight: 600;
    }

    p#tekstKontaktu {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }

    .squareDiv {
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    #squaresList {
        display: flex;
        flex-direction: column;
    }

    li.contactSquares {
        width: 100%;
        border-radius: 12px;
    }

    section#mainSection {
        border-radius: 16px;
        padding: 1.5rem 1rem;
        margin: 0;
    }

    section#TimeMapsection {
        grid-template-columns: 1fr;
    }

    div#timeDiv h2, #formSection h2 {
        font-size: 1.5rem;
        border-radius: 6px;
    }

    iframe#mapa {
        padding: 0;
        border-radius: 12px;
        height: 50vh;
    }

    #descriptionDivSec {
        gap: 2rem;
    }

    #formSection, section#TimeMapsection {
        padding: 0.5rem;
    }

    form[name="contact"] span:first-of-type {
        grid-template-columns: 1fr;
    }

    #formSection p {
        text-align: justify;
    }

    form[name="contact"] {
        border-radius: 12px;
        padding: 1rem;
    }

    .phoneField select {
        width: 70%;
    }

    #submitButton {
        width: 100%;
        border-radius: 50px;
    }

    /* STOPKA */
    footer {
        width: 100%;
        margin-left: 0;
    }

    .footerDiv {
        justify-items: left;
        padding: 2rem;
        row-gap: 2rem;
    }   

    #copyrightDiv {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    #hiddenSep {
        display: none;
    }
}